
  * { box-sizing: border-box; }
  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    position: relative;
  }
  [hidden] { display: none !important; }

  .background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: opacity 1s ease-in-out;
    opacity: 1;
  }

  .card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 30px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
  }

  .title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
  }

  .icon-btn {
    position: absolute;
    top: 15px;
    background: none;
    border: none;
    color: rgba(102, 126, 234, 0.5);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
  }
  .icon-btn:hover { color: #667eea; transform: scale(1.1); }
  .icon-btn:focus-visible { outline: 2px solid #667eea; outline-offset: 2px; border-radius: 6px; }
  .icon-btn svg { width: 22px; height: 22px; display: block; }
  #viewCacheBtn { right: 15px; }
  #compressionToggleBtn { right: 55px; }

  .upload-area {
    display: block;
    position: relative;
    border: 2px dashed #667eea;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.05);
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
  }
  .upload-area:hover {
    border-color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
  }
  .upload-area.dragover {
    border-color: #764ba2;
    background: rgba(102, 126, 234, 0.18);
    transform: scale(1.01);
  }
  .upload-area:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
  }
  .upload-area svg.upload-icon {
    width: 40px; height: 40px;
    color: #667eea;
    margin-bottom: 10px;
  }
  .upload-text { color: #667eea; font-size: 15px; font-weight: 500; }
  .upload-sub { color: #999; font-size: 12px; margin-top: 6px; }

  .upload-area input[type="file"] {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .upload-hint {
    color: #999;
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .upload-hint svg { width: 16px; height: 16px; color: #667eea; flex-shrink: 0; }

  .form-group { margin-top: 20px; }

  .btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin: 0 4px;
  }
  .btn:focus-visible { outline: 2px solid #667eea; outline-offset: 2px; }
  .btn-light { background: #f0f2f8; color: #555; }
  .btn-light:hover { background: #e0e4f0; transform: translateY(-2px); }

  .link-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e4e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    max-height: 200px;
    overflow-y: hidden;
    outline: none;
    transition: border-color 0.2s;
    color: #333;
    background: #fff;
  }
  .link-textarea:focus { border-color: #667eea; }

  .upload-progress { display: none; margin-top: 15px; text-align: center; }
  .upload-progress.show { display: block; }
  .progress-text { font-size: 14px; font-weight: 500; color: #667eea; letter-spacing: 0.5px; }

  .thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
  }
  .thumbnail-item {
    position: relative;
    width: 80px; height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
  }
  .thumbnail-item:hover { transform: scale(1.05); }
  .thumbnail-item img,
  .thumbnail-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .thumbnail-item .file-icon {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
  }
  .thumbnail-item .remove-btn {
    position: absolute;
    top: 2px; right: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
  }
  .thumbnail-item:hover .remove-btn { opacity: 1; }

  .cache-content {
    margin-top: 20px;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 8px;
  }
  .cache-item {
    display: block;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.1);
    font-size: 13px;
    color: #555;
    word-break: break-all;
  }
  .cache-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
  }
  .cache-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 14px;
  }

  .project-link {
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
    color: #999;
    line-height: 1.6;
  }
  .project-link a { color: #667eea; text-decoration: none; transition: color 0.3s ease; }
  .project-link a:hover { color: #764ba2; text-decoration: underline; }

  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
  }
  .toast {
    background: rgba(50, 50, 50, 0.95);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 320px;
    word-break: break-word;
    line-height: 1.5;
  }
  .toast-show { opacity: 1; transform: translateX(0); }
  .toast-success { background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); }
  .toast-error   { background: linear-gradient(135deg, #ff4d4f 0%, #d9363e 100%); }
  .toast-info    { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
  .toast-warning { background: linear-gradient(135deg, #faad14 0%, #d48806 100%); }

  @media (max-width: 768px) {
    .card { padding: 20px; border-radius: 12px; }
    .title { font-size: 24px; }
    .icon-btn svg { width: 20px; height: 20px; }
    .toast-container { top: 10px; right: 10px; left: 10px; }
    .toast { max-width: none; }
  }
:root{color-scheme:light;--home-ink:#292a42;--home-muted:#9699ad;--home-accent:#7764d8;--home-line:#eeedf5}
.upload-tasks{display:grid;gap:12px;margin-top:15px}.upload-task{border:1px solid #e7e0f3;border-radius:12px;background:#fff;padding:15px;min-width:0}.upload-task-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0}.upload-task-name{font-size:13px;font-weight:600;color:#625774;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-task-percent{font-size:12px;color:#8d76b1;white-space:nowrap}.upload-task-stage{font-size:12px;line-height:1.7;color:#91839f;margin:7px 0 0;overflow-wrap:anywhere}.upload-task-track{height:5px;border-radius:5px;overflow:hidden;background:#eee8f7;margin-top:11px}.upload-task-track>span{display:block;width:0;height:100%;background:linear-gradient(90deg,#b6a2e7,#8b74c4);border-radius:inherit;transition:width .2s}.upload-task-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 0}.upload-task-metrics>div{min-width:0}.upload-task-metrics dt{font-size:10px;color:#aaa0b6;margin:0 0 5px}.upload-task-metrics dd{font-size:12px;color:#756287;font-variant-numeric:tabular-nums;margin:0;overflow-wrap:anywhere;line-height:1.6}.upload-task-note{font-size:11px;line-height:1.8;color:#aaa0b6;margin:11px 0 0}.upload-task[data-state=done]{border-color:#dcebe2;background:#fbfefc}.upload-task[data-state=done] .upload-task-percent{color:#6c9b80}.upload-task[data-state=done] .upload-task-track>span{background:#97b6a3}.upload-task[data-state=failed]{border-color:#ecdde4;background:#fffcfd}.upload-task[data-state=failed] .upload-task-percent{color:#b27b8e}.upload-task[data-state=failed] .upload-task-track>span{background:#bda0ad}@media(max-width:680px){.upload-task{padding:12px}.upload-task-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.upload-task-name{font-size:12px}.upload-task-stage{font-size:11px}.upload-task-metrics dd{font-size:12px}.upload-task-note{font-size:10px}}
body{display:block;margin:0;padding:0;min-height:100vh;color:var(--home-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:radial-gradient(ellipse at 8% 0%,#e9edff 0,transparent 45%),radial-gradient(ellipse at 98% 30%,#f0e8ff 0,transparent 40%),#f8f9fd!important}
button,a,input,label,summary{-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}:focus-visible{outline:3px solid #b9aafa;outline-offset:4px}.home-shell{max-width:1060px;margin:auto;padding:28px 30px 24px}.home-nav{display:flex;align-items:center;justify-content:space-between;gap:20px}.home-brand{display:inline-flex;align-items:center;gap:10px;font-size:19px;font-weight:700;letter-spacing:-.4px;white-space:nowrap}.home-logo{display:inline-grid;place-items:center;width:33px;height:33px;border-radius:11px;color:#fff;background:linear-gradient(135deg,#9483ee,#6d5ad2);font-size:20px;box-shadow:0 4px 11px #7964d92e}.brand-caption{font-size:13px;font-weight:450;color:#9d9cb1;letter-spacing:0;border-left:1px solid #d9d8e8;margin-left:4px;padding-left:14px}.nav-actions{display:flex;align-items:center;gap:9px}.home-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;min-height:38px;border:1px solid #e8e5f1;border-radius:10px;color:#7e7b96;background:#ffffff9e;font-size:13px;font-weight:550;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s}.home-button svg{width:16px;height:16px}.home-button:hover,.home-button[aria-expanded=true]{background:#fff;border-color:#cdc3ef;color:var(--home-accent)}.nav-manage{background:#f3f0fc;color:#8070c8;border-color:#e6e0f6}
.home-main{max-width:780px;margin:0 auto}.home-hero{text-align:center;padding:43px 0 27px}.hero-label{display:inline-flex;align-items:center;gap:7px;color:#8a829e;font-size:13px;letter-spacing:.6px;background:#ffffff9e;padding:6px 11px;border:1px solid #fff;border-radius:20px}.hero-label>span{width:5px;height:5px;border-radius:50%;background:#9d8cde}.title{font-size:35px;line-height:1.35;font-weight:750;letter-spacing:-1px;margin:14px 0 9px;color:var(--home-ink);background:none;-webkit-text-fill-color:initial}.title-dot{color:#ad9de5;font-weight:500;margin:0 2px}.home-hero p{font-size:14px;color:#848298;margin:0;line-height:1.75;letter-spacing:.2px}.card{width:100%;max-width:none;text-align:left;background:#ffffffed;border:1px solid #fff;border-radius:24px;padding:28px 30px 25px;box-shadow:0 8px 45px #584a8620;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.storage-fieldset{border:0;margin:0;padding:0;min-width:0}.storage-fieldset legend{padding:0;margin:0 0 12px;font-size:13px;font-weight:650;color:#67677f}.storage-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.storage-option{display:flex;align-items:center;gap:11px;position:relative;min-width:0;padding:15px 14px;border:1px solid #eae9f1;border-radius:13px;background:#fcfcff;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}.storage-option:hover{border-color:#cdc2ef;background:#faf8ff}.storage-option.is-selected{border-color:#ab99e9;background:linear-gradient(110deg,#f7f4ff,#faf9ff);box-shadow:0 0 0 2px #e9e2fc66}.storage-option:focus-within{outline:3px solid #d0c4f9;outline-offset:2px}.storage-option.is-disabled{opacity:.5;cursor:not-allowed}.storage-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.storage-option-icon{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:10px;flex:none}.storage-option-icon svg{width:22px;height:22px}.cloud-icon{background:#fff1da;color:#d7953f}.tg-icon{background:#e8f3ff;color:#459ed5}.storage-option-copy{display:flex;flex-direction:column;min-width:0;gap:5px}.storage-option-copy strong{display:flex;align-items:center;gap:7px;color:#55546e;font-size:14px;font-weight:650;white-space:nowrap}.storage-option-copy small{color:#9690a6;font-size:12px;line-height:1.5}.radio-mark{position:relative;margin-left:auto;align-self:flex-start;margin-top:1px;border:1.5px solid #dedbe9;width:14px;height:14px;flex:none;border-radius:50%;background:#fff}.is-selected .radio-mark{border-color:#9c86df}.is-selected .radio-mark::after{content:"";position:absolute;inset:3px;background:#9c86df;border-radius:50%}.storage-note{display:flex;align-items:flex-start;gap:6px;font-size:12px;color:#8f879f;line-height:1.7;margin:12px 0 23px;padding:0 2px}.storage-note svg{width:13px;height:13px;margin-top:2px}.storage-note span{min-width:0}.upload-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.upload-toolbar h2,.section-heading h2{font-size:13px;font-weight:650;color:#67677f;margin:0}.compression-control{display:inline-flex;align-items:center;gap:5px;background:none;border:0;padding:4px 0;color:#9993ad;font-size:12px;cursor:pointer}.compression-control svg{width:14px;height:14px;color:#9c8bcc}.compression-state{padding:3px 6px;color:#9d89c7;background:#f2eef9;border-radius:5px;font-size:11px}.compression-control[aria-pressed=false] .compression-state{color:#aaa6b5;background:#f2f1f5}.compression-control:hover{color:#7964c7}
.upload-area{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;padding:29px 20px 25px;min-height:236px;border:1.5px dashed #c6b8ef;border-radius:15px;background:linear-gradient(140deg,#f9f7ff,#fafbff);transition:background .2s,border-color .2s;position:relative}.upload-area:hover{border-color:#9a83d9;background:#f5f0ff}.upload-area.dragover{border-color:#9074d4;background:#eee6ff;transform:none;box-shadow:0 0 0 5px #ebe1fc66}.upload-icon-wrap{display:inline-flex;align-items:center;justify-content:center;width:53px;height:53px;background:#fff;border:1px solid #efeafb;border-radius:16px;box-shadow:0 4px 13px #8c74c612;margin-bottom:17px}.upload-area svg.upload-icon{width:27px;height:27px;margin:0;color:#a18bcf;stroke-width:1.5}.upload-text{display:block;font-size:15px;font-weight:550;color:#77708e;line-height:1.7}.upload-sub{display:block;font-size:12px;color:#978ba9;margin-top:6px;line-height:1.8}.choose-file{display:inline-flex;align-items:center;gap:14px;font-size:13px;color:#fff;padding:9px 16px;border-radius:8px;background:linear-gradient(120deg,#9b83df,#8670ce);box-shadow:0 4px 9px #a08ad424;margin-top:19px}.choose-file svg{width:14px;height:14px}.upload-hint{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-top:12px;color:#8c849c;font-size:11px;line-height:1.8}.upload-hint kbd{display:inline-block;padding:0 3px;background:#f8f7fb;border:1px solid #eae7f1;border-radius:3px;min-width:16px;color:#a79db9;font-size:10px;font-family:inherit;line-height:1.5}.upload-progress{margin-top:21px;text-align:left;padding:14px;border:1px solid #eee9f8;border-radius:10px;background:#fbf9ff}.progress-text{font-size:13px;font-weight:500;color:#9682be;letter-spacing:0}.upload-track{height:4px;border-radius:4px;overflow:hidden;background:#eee8f7;margin-top:10px}.upload-track>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#b6a2e7,#8b74c4);border-radius:inherit;transition:width .2s}
.upload-results{margin-top:23px;border-top:1px solid var(--home-line);padding-top:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-heading>span{font-size:12px;color:#ada6bd}.form-group{margin-top:12px}#formatButtons{display:flex;gap:5px;flex-wrap:wrap}.btn{font-size:13px;padding:7px 12px;margin:0;min-height:31px;border-radius:7px;font-weight:500}.btn-light{background:#f5f3fa;color:#ada3bd;border:1px solid transparent}.btn-light:hover{background:#eee7f9;color:#9076c1;transform:none}.btn-light.is-active{background:#f2ebfc;border-color:#e1d4f4;color:#937bc0}.link-textarea{font-size:13px;color:#9586ad;background:#fcfbff;border-color:#eae4f3;border-radius:10px;padding:12px 13px;line-height:1.8;overflow-wrap:anywhere}.link-textarea:focus{border-color:#b69ad7}.thumbnail-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));justify-content:start;gap:10px;margin-top:15px}.thumbnail-container:empty{display:none}.thumbnail-item{width:auto;height:auto;aspect-ratio:1;border-radius:10px;border:1px solid #eee8f4;background:#f9f7fc;box-shadow:none;cursor:copy}.thumbnail-item:hover{transform:translateY(-2px)}.thumbnail-item::after{content:"点击复制";position:absolute;bottom:0;left:0;right:0;text-align:center;color:#fff;background:linear-gradient(transparent,#605371ae);padding:12px 2px 6px;font-size:11px;pointer-events:none;opacity:0;transition:opacity .18s}.thumbnail-item:hover::after,.thumbnail-item:focus-visible::after{opacity:1}.thumbnail-item .remove-btn{top:5px;right:5px;width:19px;height:19px;z-index:2;background:#75658bbf;font-size:14px}.thumbnail-item:focus-within .remove-btn{opacity:1}
.history-panel{margin-top:22px;padding:23px 26px;background:#ffffffd9;border:1px solid #fff;border-radius:19px;box-shadow:0 4px 25px #84749b0c}.history-caption{font-size:12px;color:#aaa1b9;line-height:1.8;margin:7px 0 0}.history-close{padding:3px 0;border:0;background:none;color:#a393b7;font-size:12px;cursor:pointer}.history-close span{margin-left:4px}.cache-content{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:360px;margin-top:17px;padding:1px 2px 2px;border-radius:0;overscroll-behavior:contain}.cache-item{margin:0!important;padding:10px!important;border:1px solid #ede8f4;background:#fdfcff;border-radius:11px;box-shadow:none;font-size:13px;color:#90849e;word-break:normal;min-width:0}.cache-item:hover{background:#f7f2fd;border-color:#d5c4e9;transform:none}.cache-item img,.cache-item video{width:58px!important;height:52px!important;border-radius:7px!important;background:#f1edf7}.cache-entry-info{flex:1;min-width:0}.cache-entry-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9486a4;font-size:13px;font-weight:500}.cache-entry-time{display:block;margin-top:7px;color:#b9afc4;font-size:11px}.cache-empty{grid-column:1/-1;border:1px dashed #e7e0ef;border-radius:11px;padding:29px 10px;font-size:13px;color:#b3a8be;background:#fdfbff}.home-footer{text-align:center;margin:23px 0 0;color:#8e819e}.home-footer p{display:flex;justify-content:center;align-items:center;gap:5px;margin:0;font-size:12px;line-height:1.8}.home-footer svg{width:13px;height:13px}.home-footer small{display:block;font-size:11px;color:#a69ab3;line-height:1.8;margin-top:7px}.toast{border-radius:12px;font-size:13px;box-shadow:0 8px 24px #5c427c1c;backdrop-filter:blur(12px)}.toast-success{background:#7e9c8ee8}.toast-error{background:#bd7a8ce8}.toast-info{background:#9480b9ed}.toast-warning{background:#bca17be8}#resumeNotice{padding:11px 13px;border-radius:9px;background:#f6efff;border:1px solid #e8ddf5;font-size:13px!important;line-height:1.8;color:#a48ac3!important;overflow-wrap:anywhere}
@media(max-width:680px){.home-shell{padding:21px 17px 22px}.brand-caption{display:none}.home-brand{font-size:17px;gap:8px}.home-logo{width:30px;height:30px;border-radius:10px;font-size:18px}.nav-actions{gap:6px}.home-button{padding:8px 10px;min-height:35px;font-size:12px;gap:5px}.home-button svg{width:14px;height:14px}.home-hero{padding:34px 0 23px}.hero-label{font-size:11px;padding:5px 9px}.title{font-size:29px;letter-spacing:-.7px;margin-top:13px}.home-hero p{font-size:13px}.card{border-radius:19px;padding:21px 19px 19px;box-shadow:0 7px 33px #6c4d8720}.storage-options{gap:9px}.storage-option{padding:12px 10px;gap:8px;align-items:flex-start;flex-wrap:wrap;min-height:92px}.storage-option-icon{width:28px;height:28px;border-radius:9px}.storage-option-icon svg{width:18px;height:18px}.storage-option-copy{gap:5px;width:100%;padding-top:2px}.storage-option-copy strong{font-size:13px;gap:5px}.storage-option-copy small{font-size:10px}.radio-mark{position:absolute;top:12px;right:11px;width:12px;height:12px}.is-selected .radio-mark::after{inset:2px}.storage-note{font-size:11px;margin:12px 0 20px;gap:5px}.storage-note svg{width:12px;height:12px}.upload-toolbar h2,.section-heading h2{font-size:13px}.compression-control{font-size:11px;gap:4px}.compression-control svg{width:12px;height:12px}.compression-state{font-size:10px;padding:2px 5px}.upload-area{min-height:223px;padding:27px 12px 24px;border-radius:12px}.upload-icon-wrap{width:47px;height:47px;border-radius:14px;margin-bottom:16px}.upload-area svg.upload-icon{width:24px;height:24px}.upload-text{font-size:13px}.upload-sub{font-size:10px;margin-top:6px}.choose-file{font-size:12px;padding:8px 14px;margin-top:18px;border-radius:7px}.upload-hint{font-size:10px;gap:4px 9px;justify-content:center;text-align:center}.upload-hint kbd{font-size:9px}.section-heading>span{font-size:10px}.thumbnail-container{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:8px}.thumbnail-item .remove-btn{opacity:1}.history-panel{padding:19px 17px;border-radius:17px}.cache-content{grid-template-columns:1fr;max-height:330px}.history-caption{font-size:11px}.home-footer{margin-top:20px}.home-footer p{font-size:11px}.home-footer small{font-size:10px;padding:0 6px}.toast{font-size:13px;padding:11px 15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

@media(max-width:380px){.home-nav{gap:9px}.home-button{padding:8px}.nav-actions{gap:5px}.home-brand{gap:7px}.storage-option-copy strong{gap:4px}.upload-sub{max-width:220px}.upload-hint{font-size:9px}}

.upload-shield{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;box-sizing:border-box;padding:16px;background:#211a3266;backdrop-filter:blur(4px);overflow:auto;overscroll-behavior:contain}
.shield-dialog-card{box-sizing:border-box;width:min(420px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #eee8f5;border-radius:20px;background:#fff;box-shadow:0 24px 90px #30234433;color:#62566f;text-align:left}
.shield-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.shield-dialog-heading h2{margin:0;font-size:18px;line-height:1.5;font-weight:600;color:#52445f}.shield-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:8px;border:0;border-radius:10px;background:#f7f4fb;color:#8a799b;cursor:pointer}.shield-close:hover{background:#eee7f6}.shield-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.shield-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;color:#8b7a9c;font-size:14px;line-height:1.7;text-align:center}.shield-row svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}.shield-row button{min-height:36px;padding:4px 10px;border:1px solid #e6def0;border-radius:8px;background:#faf7fe;color:#86649e;font-size:13px;cursor:pointer}.upload-shield[data-state=error] .shield-row{color:#b26d81}
#shieldWidget{display:flex;justify-content:center;margin:18px auto 0;max-width:100%}#shieldWidget:empty{display:none}.shield-dialog-hint{margin:16px 0 0;color:#a393af;font-size:13px;line-height:1.6;text-align:center}

@media(max-width:380px){.shield-dialog-card{padding:20px}.shield-dialog-heading h2{font-size:17px}}

.history-actions{display:flex;align-items:center;gap:18px;flex:none}.history-count{display:inline-block;margin-left:4px;padding:2px 6px;border-radius:6px;background:#f1ecfa;color:#9a88b5;font-size:11px;font-weight:500;vertical-align:middle}.history-clear{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;background:none;color:#a38aad;font-size:12px;padding:5px 0;cursor:pointer}.history-clear svg{width:14px;height:14px}.history-clear:hover:not(:disabled){color:#bb788e}.history-clear:disabled{color:#bab1c2}.cache-item{display:flex;align-items:center;gap:7px;cursor:default}.cache-copy{display:flex;align-items:center;gap:11px;flex:1;min-width:0;padding:0;border:0;border-radius:7px;background:none;text-align:left;color:inherit;cursor:copy}.cache-copy img,.cache-copy video{object-fit:cover;flex:none}.cache-delete{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:36px;padding:6px;border:1px solid transparent;border-radius:8px;background:none;color:#b5a8c1;cursor:pointer}.cache-delete svg{width:16px;height:16px}.cache-delete:hover{color:#b56d86;border-color:#f0dce5;background:#fbf1f5}.cache-copy:disabled{cursor:default;opacity:.65}.history-confirm{width:min(380px,calc(100vw - 34px));max-width:none;box-sizing:border-box;padding:25px;border:1px solid #fff;border-radius:19px;color:var(--home-ink);background:#fff;box-shadow:0 15px 70px #65507730}.history-confirm::backdrop{background:#4a405c55;backdrop-filter:blur(5px)}.history-confirm h2{font-size:17px;margin:0 0 12px;color:#5f5572}.history-confirm p{font-size:13px;line-height:1.9;color:#9b8aa9;margin:0}.history-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.history-confirm-actions button{border:1px solid #eae3f1;border-radius:9px;padding:9px 14px;font-size:13px;cursor:pointer}.history-cancel{color:#93859e;background:#faf8fc}.history-confirm-delete{color:#fff;background:#a17bb7;border-color:#a17bb7!important}.history-confirm-delete:hover{background:#9069a6}
@media(max-width:680px){.history-actions{gap:12px}.history-clear,.history-close{font-size:11px;min-height:32px}.history-clear svg{width:13px;height:13px}.cache-delete{width:36px;height:38px}.cache-copy{gap:9px}.history-count{font-size:10px}.history-confirm{padding:22px}}
.link-textarea{display:block;box-sizing:border-box;min-height:56px;max-height:240px;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere;text-align:left;vertical-align:top;appearance:none;-webkit-appearance:none}.history-panel{scroll-margin-top:18px}.history-panel:focus{outline:none}.history-panel:focus-visible{outline:3px solid #b9aafa;outline-offset:4px}
.home-announcement{display:flex;align-items:flex-start;gap:12px;padding:18px 21px;margin:0 0 19px;border:1px solid #e4dcf8;border-radius:16px;background:#faf7ffed;box-shadow:0 4px 20px #8572b00a}.announcement-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:31px;height:31px;border-radius:9px;color:#9b82d1;background:#f0e9fc}.announcement-icon svg{width:19px;height:19px}.announcement-copy{min-width:0;flex:1}.announcement-copy h2{font-size:13px;line-height:1.6;color:#8a73b4;margin:0 0 5px}.announcement-copy p{font-size:13px;line-height:1.9;color:#9a8bab;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
@media(max-width:680px){.home-announcement{padding:15px;gap:10px;border-radius:14px;margin-bottom:16px}.announcement-copy h2{font-size:12px}.announcement-copy p{font-size:12px}.announcement-icon{width:28px;height:28px}}
@media(max-width:680px){.link-textarea{font-size:16px;line-height:1.6;padding:12px;min-height:56px}.cache-content{-webkit-overflow-scrolling:touch;touch-action:pan-y}.history-panel{scroll-margin-top:12px}}
.public-pending{margin-top:22px;padding:23px 26px;background:#ffffffdf;border:1px solid #ede4f7;border-radius:19px;box-shadow:0 4px 22px #84749b0c}.public-pending-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px;margin-top:12px;background:#fdfaff;border:1px solid #eee6f5;border-radius:12px}.public-pending-info{min-width:0;flex:1}.public-pending-info strong{display:block;overflow-wrap:anywhere;font-size:13px;color:#9480a5}.public-pending-info p{font-size:12px;color:#b098bd;line-height:1.8;margin:6px 0 0}.public-pending-info small{font-size:11px;line-height:1.8;color:#b5a7bf;display:block;margin-top:3px}.public-pending-actions{display:flex;gap:7px;flex:none}.public-pending-actions .home-button{font-size:12px;padding:7px 11px;min-height:34px}.public-pending-actions .recovery-remove{color:#bc8ea6;background:#fcf5fa;border-color:#f0e2eb}
@media(max-width:680px){.public-pending{padding:19px 17px}.public-pending .section-heading{align-items:flex-start;flex-wrap:wrap}.public-pending-item{align-items:flex-start;flex-wrap:wrap;padding:13px}.public-pending-info{flex-basis:100%}.public-pending-actions{margin-left:auto}}

.upload-task-success{display:flex;align-items:center;gap:12px;padding:13px 0 3px}.upload-task-success>span{display:grid;place-items:center;width:31px;height:31px;background:#eaf6ef;border-radius:50%;color:#5caa80;font-size:17px}.upload-task-success strong{font-size:13px;color:#527967}.upload-task-success small{display:block;margin-top:5px;color:#8ca194;font-size:11px}.upload-task-details{margin-top:12px;font-size:11px;color:#a89ab5}.upload-task-details summary{cursor:pointer;width:max-content}.upload-task-details p{line-height:1.9;margin:8px 0 0}.upload-task[data-state=done] .upload-task-stage,.upload-task[data-state=done] .upload-task-track{display:none}

.quota-note{font-size:11px;color:#9388a4;text-align:center;line-height:1.8;margin:16px 0 0}.admin-upload-note{padding:10px 14px;border-radius:10px;background:#eff8f2;color:#517d60;font-size:12px;margin:10px 0 18px}

.storage-options.single-source{grid-template-columns:minmax(0,1fr)}.single-source .storage-option{min-height:76px}.single-source .radio-mark{display:none}.storage-unavailable{margin:0;padding:17px 18px;border:1px dashed #dce0ea;border-radius:12px;background:#f8f9fc;color:#7c8495;font-size:13px;line-height:1.8}

.upload-area[aria-disabled=true]{cursor:wait}.upload-area[aria-disabled=true] .choose-file{opacity:.6}
.video-frame{display:block;position:relative;width:100%;height:100%;min-width:0;overflow:hidden;background:linear-gradient(145deg,#eee9fa,#e4eaf8);border-radius:inherit}.video-frame>video{display:block;width:100%;height:100%;object-fit:cover}.video-preview-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#9986ba;pointer-events:none;background:linear-gradient(145deg,#f1ebfa,#e8eefb)}.video-preview-fallback svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.5}.video-preview-fallback small{font-size:10px;line-height:1.4;text-align:center;padding:0 5px}.video-frame.has-poster::after{content:'▶';position:absolute;left:6px;bottom:5px;font-size:11px;line-height:19px;text-align:center;width:20px;height:20px;border-radius:50%;color:#fff;background:#44395880;pointer-events:none}.video-frame.is-playing::after{display:none}.cache-copy>.video-frame{width:58px;height:52px;border-radius:7px;flex:none}.cache-copy>.video-frame .video-preview-fallback small{display:none}.gallery-video{opacity:1!important}.media-container>.video-frame{position:absolute;inset:0}.media-container>.video-frame>video{object-fit:contain}.media-container>.video-frame .video-preview-fallback{padding-bottom:30px;box-sizing:border-box}.media-container>.video-frame.has-poster::after{display:none}

.video-frame>.video-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2}.video-frame>video{visibility:hidden}.video-preview-fallback{z-index:1;background:#f1f2f7;color:#a1a6b7}.video-preview-fallback[hidden]{display:none!important}.video-frame.has-poster:after{display:none}.preview-retry{pointer-events:auto;border:1px solid #e2def0;border-radius:7px;padding:4px 10px;background:#fff;color:#8d7dad;font-size:11px}.media-preview .video-preview-fallback{padding-bottom:0!important}.cache-copy>.video-frame .video-cover{object-fit:cover}
