:root{font-family:"PingFang SC","PingFang TC",sans-serif;font-size:16px;color:#303030;background:#fff;font-synthesis:none;--sidebar-width:272px;--line:#dcdcd9;--muted:#727272;--radius-panel:28px;--radius-control:16px;--surface-soft:#f5f5f3;--outline:#dededb}
.wallet-qr-placeholder.has-payment-qr>svg,
.wallet-qr-placeholder.has-payment-qr>span { display: none; }
.wallet-qr-placeholder.has-payment-qr img { width: 100%; height: 100%; object-fit: contain; }
.recharge-modal .wallet-qr-placeholder.has-payment-qr { width: 196px; max-width: 100%; padding: 8px; gap: 0; }
.wallet-qr-placeholder .payment-qr { width: 180px; height: 180px; flex-shrink: 0; }
.modal.payment-success-modal { width: 360px; max-width: calc(100vw - 32px); padding: 36px 28px 28px; text-align: center; border-radius: 24px; }
.payment-success-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: #edf7f1; color: #189b69; }
.payment-success-mark svg { width: 28px; height: 28px; stroke-width: 2; }
.payment-success-modal h2 { font-size: 22px; font-weight: 600; }
.payment-success-caption { margin-top: 8px; color: #89929e; font-size: 14px; }
.payment-success-credits { display: block; margin-top: 24px; font-size: 32px; font-weight: 600; }
.payment-success-balance { margin: 12px 0 28px; color: #89929e; font-size: 13px; }
.payment-success-balance span { margin-left: 8px; color: #35404d; }
.payment-success-modal>.black-button { width: 100%; }
*,*:before,*:after{box-sizing:border-box;font-family:inherit;font-size:inherit}body{margin:0;min-height:100svh}button,input,select,textarea{font-family:inherit;font-size:inherit}button{border:0;background:none;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button,a,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #969696;outline-offset:4px}.hidden{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}h1,h2,p{margin:0}h1,h2{font-weight:500;line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.sidebar{width:var(--sidebar-width);position:fixed;inset:0 auto 0 0;z-index:30;background:#1b1b1b;color:#fff;display:flex;flex-direction:column;padding:36px 22px 25px}.brand{display:block;width:176px;max-width:calc(100% - 28px);margin:0 14px}.brand-logo{display:block;width:100%;height:auto}.navigation{display:flex;flex-direction:column;gap:9px;margin-top:55px}.nav-link{display:flex;align-items:center;gap:14px;width:100%;height:50px;text-align:left;border-radius:8px;padding:0 17px;color:#aaa;transition:.2s}.nav-link:hover{background:#2b2b2b;color:#fff}.nav-link.active{background:#f2f2f2;color:#292929;font-weight:500}#libraryCount{margin-left:auto;color:#888}.sidebar-bottom{margin-top:auto;padding:38px 16px 0}.credit-balance{display:flex;align-items:center;justify-content:space-between;color:#999;margin-bottom:17px}.credit-balance>span:last-child{color:#ddd;font-weight:500}.recharge-link{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 0 24px;color:#ccc}.recharge-link svg{width:16px;height:16px}.sidebar-login{border-top:1px solid #393939;padding:22px 0 0;display:flex;align-items:center;gap:11px;width:100%;color:#c6c6c6}.sidebar-login>svg:first-child{color:#999}.sidebar-login>svg:last-child{margin-left:auto;width:15px;height:15px;color:#777}.sidebar-shade{display:none}.main-shell{margin-left:var(--sidebar-width);min-height:100svh}.main-shell>.mobile-menu{display:none}
.workspace,.library-view{max-width:1900px;margin:0 auto;padding:32px}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,29%);gap:28px;align-items:start}.preview-column{min-width:0}.upload-area{height:calc(100svh - 64px);min-height:620px;background:#fff;border:1px solid #dedede;border-radius:10px;position:relative;display:grid;place-items:center;isolation:isolate;outline-offset:-10px;transition:background .2s}.preview-column.has-files .upload-area{height:calc(100svh - 160px);min-height:525px}.upload-area.dragover{background:#fafafa;border-color:#888}.upload-area.dragover:after{content:'';position:absolute;inset:13px;border:1px dashed #bbb;border-radius:4px;pointer-events:none}.upload-empty{display:flex;align-items:center;flex-direction:column;transform:translateY(-9px)}.upload-glyph{width:80px;height:80px;stroke:#c8c8c8;stroke-width:1.2;margin-bottom:28px;overflow:visible}.upload-glyph .glyph-center{stroke:#6e6e6e;stroke-width:1.4}.upload-empty>p{color:#666;letter-spacing:.5px;margin-bottom:22px}.upload-actions{display:flex;align-items:center;justify-content:center;gap:22px}.choose-button{height:40px;display:flex;align-items:center;justify-content:center;gap:22px;background:#2d2d2d;color:#fff;border-radius:6px;padding:0 19px;transition:.2s}.choose-button svg{width:15px;height:15px}.choose-button:hover{background:#444}.text-button{display:flex;align-items:center;gap:8px;color:#888;padding:5px 0}.text-button svg{width:16px;height:16px}.text-button:hover{color:#333}
.settings-panel{height:calc(100svh - 112px);min-height:560px;display:flex;flex-direction:column;border:1px solid #e4e4e4;border-radius:16px;padding:24px 22px 28px;position:sticky;top:32px;min-width:0}.settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 0 23px;border-bottom:0}.settings-heading h2{display:flex;align-items:center;gap:9px}.settings-heading h2 svg{width:17px;height:17px;color:#555}.settings-heading .text-button{gap:7px}.settings-heading .text-button svg{width:14px;height:14px}.settings-fields{padding-top:26px}.setting-field{margin-bottom:27px}.field-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;color:#626262}.select-wrap{position:relative}.select-wrap select{width:100%;height:43px;border:1px solid #ddd;border-radius:5px;background:#fff;appearance:none;padding:0 35px 0 13px;color:#555;cursor:pointer}.select-wrap svg{position:absolute;right:13px;top:14px;width:14px;height:14px;transform:rotate(90deg);pointer-events:none;color:#aaa}.parameter-summary{border-collapse:collapse;width:100%;border-top:0;margin-top:4px}.parameter-summary th,.parameter-summary td{padding:14px 0;font-weight:400;vertical-align:top}.parameter-summary th{color:#969696;text-align:left;white-space:nowrap}.parameter-summary td{text-align:right;color:#696969;font-variant-numeric:tabular-nums}.parameter-summary tr:first-child th,.parameter-summary tr:first-child td{padding-top:23px}.settings-actions{margin-top:auto;padding-top:27px;padding-bottom:1px}.start-button{height:45px;width:100%;padding:0 17px;display:flex;align-items:center;justify-content:center;gap:16px;border-radius:6px;transition:.2s}.start-button{background:#292929;color:#fff}.start-button svg{width:16px;height:16px}.start-button:disabled{background:#e4e4e4;color:#aaa}.start-button:not(:disabled):hover{background:#444}.media-summary{margin-top:13px;color:#999;line-height:1.6}
.uploaded-preview{position:absolute;inset:0;min-width:0;min-height:0;padding:66px 22px 58px;display:flex;align-items:center;justify-content:center;overflow:hidden}.uploaded-preview>img,.uploaded-preview>video{display:block;max-width:100%;max-height:100%;object-fit:contain}.preview-file-meta{position:absolute;top:20px;left:20px;right:20px;display:flex;align-items:center;gap:16px;color:#888;pointer-events:none}.preview-file-meta>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}.preview-bottom-meta{position:absolute;bottom:18px;left:20px;right:20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 18px;color:#999;line-height:1.5;font-variant-numeric:tabular-nums;pointer-events:none}.preview-bottom-meta>span{white-space:nowrap}.preview-output-meta{margin-left:auto;text-align:right}.preview-strip{display:flex;align-items:center;gap:10px;margin-top:16px;padding:0 0 4px;overflow-x:auto;max-width:100%}.preview-thumbnail,.add-thumbnail{width:64px;height:64px;flex-shrink:0;border:1px solid #ddd;border-radius:6px;padding:4px;background:#fff;display:flex;align-items:center;justify-content:center;color:#999}.preview-thumbnail img{display:block;max-width:100%;max-height:100%;object-fit:contain}.preview-thumbnail.active{border-color:#555;box-shadow:0 0 0 1px #555}.add-thumbnail svg{width:20px;height:20px}.preview-thumbnail>svg{width:25px;height:25px}.preview-thumbnail:hover,.add-thumbnail:hover{border-color:#999}
.library-view{max-width:1500px;padding:40px}.library-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.library-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.library-toolbar>span{color:#aaa}.library-tabs{display:flex;align-items:center;gap:28px}.library-tabs button{padding:0 0 15px;color:#aaa;position:relative}.library-tabs button.active{color:#555}.library-tabs button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#888}.asset-row{display:flex;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding:20px 0}.asset-open{display:flex;align-items:center;gap:20px;flex:1;min-width:0;text-align:left;padding:0}.asset-thumb{width:68px;height:54px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.asset-thumb img,.asset-thumb video{display:block;max-width:100%;max-height:100%;object-fit:contain}.asset-info{min-width:0;display:flex;flex-direction:column;gap:8px}.asset-name{color:#777;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-meta,.asset-status{color:#aaa}.asset-status{padding:0 13px}.asset-actions{display:flex;gap:17px;color:#aaa}.asset-actions button{padding:4px;display:grid;place-items:center}.asset-actions svg{width:16px;height:16px}.empty-library{text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:390px}.empty-library p{color:#bbb;margin-bottom:22px}
.modal{border:1px solid #e4e4e4;border-radius:12px;background:#fff;color:#555;width:390px;max-width:calc(100vw - 32px);padding:42px 29px 29px}.modal::backdrop{background:#1919194d;backdrop-filter:blur(4px)}.modal h2{margin-bottom:29px}.modal label{display:block;color:#aaa;margin-bottom:9px}.modal input{width:100%;height:43px;background:#fff;border:1px solid #e2e2e2;border-radius:5px;padding:0 12px;margin-bottom:23px;outline-color:#aaa}.modal input::placeholder{color:#bbb}.black-button{height:43px;background:#333;border-radius:6px;color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 19px;width:100%}.black-button:disabled{background:#eee;color:#aaa}.icon-button{width:30px;height:30px;display:grid;place-items:center}.icon-button svg{width:16px;height:16px}.modal-close{position:absolute;top:10px;right:10px;color:#aaa}.balance-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:26px;color:#aaa}.balance-row strong{color:#777;font-weight:600}.detail-modal{width:900px;padding:40px 26px 26px}.detail-media{max-width:100%;max-height:65vh;display:block;margin:auto}.detail-bottom{display:flex;gap:20px;align-items:center;justify-content:space-between;padding-top:23px}.detail-bottom .black-button{width:auto;flex-shrink:0}.detail-bottom .black-button svg{width:16px;height:16px}.detail-name{word-break:break-all}.detail-dimensions{display:block;margin-top:8px;color:#aaa}.muted{color:#aaa}.delete-actions{display:flex;gap:24px;justify-content:flex-end;margin-top:30px}.delete-actions .black-button{width:110px}.toast{position:fixed;bottom:26px;left:calc(50% + var(--sidebar-width)/2);transform:translate(-50%,10px);color:#fff;background:#3e3e3e;padding:13px 21px;z-index:1000;opacity:0;pointer-events:none;transition:.2s;border-radius:7px;max-width:calc(100vw - 32px);text-align:center}.toast.show{transform:translate(-50%,0);opacity:1}
@media(max-width:1250px){.workspace{padding:26px}.studio-layout{gap:23px;grid-template-columns:minmax(0,1fr) 300px}.settings-panel{padding:22px 20px 28px;height:calc(100svh - 100px);top:26px}.upload-area{height:calc(100svh - 52px)}.preview-column.has-files .upload-area{height:calc(100svh - 148px)}.upload-actions{gap:17px}.choose-button{gap:12px;padding:0 15px}.settings-heading{padding-bottom:22px}.setting-field{margin-bottom:25px}.preview-file-meta{flex-direction:column;gap:6px;align-items:flex-start}}
@media(max-width:950px){.sidebar{transform:translateX(-100%);transition:transform .22s}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.main-shell>.mobile-menu{display:grid;position:relative;margin:16px 0 -4px 21px;color:#777}.sidebar-shade.show{display:block;position:fixed;inset:0;background:#19191955;backdrop-filter:blur(2px);z-index:25}.workspace{padding-top:20px}.settings-panel{top:20px;height:calc(100svh - 136px);min-height:560px}.upload-area{height:calc(100svh - 88px);min-height:650px}.preview-column.has-files .upload-area{height:calc(100svh - 184px);min-height:554px}.toast{left:50%}}
@media(max-width:760px){.workspace,.library-view{padding:20px}.studio-layout{grid-template-columns:1fr;gap:30px}.upload-area,.preview-column.has-files .upload-area{height:58svh;min-height:390px;max-height:600px}.settings-panel{position:static;height:auto;min-height:0;padding:22px 20px 26px}.settings-heading{padding-bottom:21px}.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:23px 22px;padding-top:24px}.setting-field{margin:0}.setting-field:first-child{grid-column:1/-1}.parameter-summary{grid-column:1/-1;margin-top:0}.settings-actions{padding-top:22px}.preview-file-meta{left:18px;top:17px}.uploaded-preview{padding:60px 18px 78px}.preview-bottom-meta{left:18px;right:18px;gap:6px 14px}.library-toolbar{gap:18px;align-items:flex-start}.library-toolbar>span{max-width:130px;line-height:1.5}.library-tabs{gap:20px}.asset-row{gap:8px;flex-wrap:wrap;padding:17px 0}.asset-open{gap:12px;flex-basis:calc(100% - 80px)}.asset-thumb{width:45px;height:45px}.asset-status{display:none}.asset-actions{gap:9px}.asset-meta{line-height:1.5}.detail-bottom{align-items:stretch;flex-direction:column}.detail-bottom .black-button{width:100%}.modal{padding:40px 25px 27px}.toast{width:max-content;max-width:calc(100vw - 32px);line-height:1.5}}
@media(max-width:450px){.main-shell>.mobile-menu{margin-left:12px}.workspace,.library-view{padding:16px}.settings-fields{grid-template-columns:1fr;gap:24px}.setting-field:first-child,.parameter-summary{grid-column:auto}.upload-actions{gap:17px}.upload-glyph{width:70px;height:70px;margin-bottom:25px}.upload-empty>p{margin-bottom:21px}.preview-thumbnail,.add-thumbnail{width:59px;height:59px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* White workspace with a full photo frame and a separate settings outline. */
body,.main-shell,.workspace,.settings-panel,.library-view{background:#fff}
.upload-area.dragover:after{content:none}
.credit-estimate{padding:20px 0 18px;border-top:0}
.credit-estimate-row{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#777}
.credit-estimate-row strong{font-weight:500;color:#333;font-variant-numeric:tabular-nums}


/* Both images share one fitted canvas; the slider reveals the original on the left. */
.preview-media-space{position:absolute;inset:66px 22px 58px;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
.photo-stage{position:relative;flex:none;isolation:isolate;--split:50%}
.photo-stage>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.photo-stage.is-comparison .comparison-before{clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.photo-stage.is-comparison .comparison-after{clip-path:inset(0 0 0 var(--split))}
.comparison-pill{position:absolute;top:16px;padding:7px 15px;border:1px solid #ffffff80;border-radius:100px;background:#fffffff0;color:#444;box-shadow:0 2px 10px #0000000d;backdrop-filter:blur(10px);line-height:1.4;z-index:3;pointer-events:none;white-space:nowrap}
.before-pill{left:16px}.after-pill{right:16px}
.comparison-divider{position:absolute;left:var(--split);top:0;bottom:0;width:1px;background:#fff;box-shadow:0 0 3px #0005;transform:translateX(-50%);pointer-events:none;z-index:2}
.comparison-handle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;border:1px solid #ddd;background:#fffffff5;box-shadow:0 2px 12px #0002;display:grid;place-items:center;color:#666}
.comparison-handle svg{width:22px;height:22px;stroke-width:1.4}
.comparison-slider{position:absolute;left:-22px;top:0;width:calc(100% + 44px);height:100%;padding:0;margin:0;opacity:0;cursor:ew-resize;appearance:none;-webkit-appearance:none;z-index:4;touch-action:pan-y}
.comparison-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:44px;height:44px}
.comparison-slider::-moz-range-thumb{width:44px;height:44px;border:0}
.photo-stage:has(.comparison-slider:focus-visible) .comparison-handle{outline:2px solid #333;outline-offset:3px}
@media(max-width:760px){.preview-media-space{inset:60px 18px 78px}.comparison-pill{top:12px;padding:6px 12px}.before-pill{left:12px}.after-pill{right:12px}.comparison-handle{width:36px;height:36px}}

.photo-download{position:absolute;right:16px;bottom:16px;z-index:5;display:flex;align-items:center;gap:7px;height:36px;padding:0 14px;border:1px solid #ffffff80;border-radius:100px;background:#fffffff0;color:#444;box-shadow:0 2px 10px #0000000d;backdrop-filter:blur(10px);transition:background .2s}
.photo-download svg{width:16px;height:16px}.photo-download:hover{background:#fff}.photo-download:disabled{opacity:.5}
@media(max-width:760px){.photo-download{right:12px;bottom:12px;height:34px;padding:0 12px}}

/* A softer, more legible visual system. */
body{line-height:1.55}
h1,h2{font-size:20px;font-weight:600;letter-spacing:.2px}
svg{stroke-width:1.7}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #626262;outline-offset:4px}
.sidebar{background:#242424;padding-top:38px}



.navigation{gap:10px;margin-top:48px}
.nav-link{height:58px;border-radius:18px;color:#bcbcbc;gap:13px;padding:0 16px}
.nav-link svg{width:21px;height:21px}
.nav-link.active{background:#f7f7f4;color:#303030;font-weight:600}
.nav-link:hover:not(.active){background:#343434}
#libraryCount{color:#777}
.sidebar-bottom{padding:32px 14px 0}
.credit-balance{color:#b5b5b5;margin-bottom:14px}
.recharge-link{color:#eee;padding-bottom:25px}
.sidebar-login{color:#e1e1e1;padding-top:23px;gap:10px}
.sidebar-login>svg:first-child{color:#bcbcbc;width:20px;height:20px}
.upload-area{border:1.5px solid var(--outline);border-radius:var(--radius-panel);transition:border-color .2s,background .2s}
.upload-area.dragover{border-color:#666;background:#f7f7f5}
.settings-panel{border:1.5px solid #e0e0dd;border-radius:var(--radius-panel);padding:28px 24px 32px;box-shadow:0 5px 22px #24242404}
.settings-heading{padding:0 0 18px}
.settings-fields{padding-top:24px}
.setting-field{margin-bottom:25px}
.field-label{font-weight:500;color:#555;margin-bottom:14px}




.parameter-summary th,.parameter-summary td{padding:14px 0;color:#717171}
.parameter-summary td{font-weight:500;color:#4f4f4f}
.parameter-summary tr:first-child th,.parameter-summary tr:first-child td{padding-top:15px}
.start-button,.choose-button,.black-button{height:54px;border-radius:18px;background:#333;font-weight:500}
.start-button{gap:14px;padding:0 20px}
.start-button svg,.choose-button svg{width:19px;height:19px}
.start-button:disabled{background:#ecece9;color:#8a8a86}
.start-button:not(:disabled):hover,.choose-button:hover,.black-button:not(:disabled):hover{background:#454545}
.credit-estimate{padding:20px 0 20px}
.credit-estimate-row{color:#666;line-height:1.55}
.credit-estimate-row strong{font-size:16px;font-weight:600;color:#333}
.media-summary{color:#767676;font-size:15px}
.upload-glyph{width:88px;height:88px;padding:16px;background:var(--surface-soft);border:1.5px solid #e7e7e3;border-radius:28px;stroke:#8d8d88;stroke-width:1.8;margin-bottom:24px}
.upload-glyph .glyph-center{stroke:#555;stroke-width:1.8}
.upload-empty>p{font-size:20px;font-weight:500;color:#454545;letter-spacing:0;margin-bottom:24px}
.upload-actions{gap:14px;flex-wrap:wrap;padding:0 20px}
.choose-button{gap:17px;padding:0 24px}
.upload-actions>.text-button{height:54px;padding:0 20px;border-radius:18px;background:var(--surface-soft);color:#60605d;gap:9px}
.upload-actions>.text-button:hover{background:#eaeae6;color:#333}
.upload-actions>.text-button svg{width:19px;height:19px}

.text-button{color:#707070}
.text-button svg{width:18px;height:18px}
.uploaded-preview{border-radius:26px;padding:74px 24px 74px}
.preview-media-space{inset:74px 24px 74px}
.preview-file-meta{top:24px;left:24px;right:24px;font-size:15px;color:#717171}
.preview-bottom-meta{bottom:24px;left:24px;right:24px;gap:8px 16px;font-size:15px;color:#737373}
.photo-stage>img{border-radius:18px}
.comparison-pill{top:16px;padding:8px 16px;border:1px solid #dfdfdb;background:#fffffff5;color:#454545;font-size:15px;font-weight:500;box-shadow:0 3px 12px #00000012}
.comparison-divider{width:2px}
.comparison-handle{width:48px;height:48px;border:1.5px solid #ddddd9;box-shadow:0 3px 14px #0002;color:#555}
.comparison-handle svg{width:25px;height:25px;stroke-width:1.6}
.comparison-slider{left:-26px;width:calc(100% + 52px)}
.comparison-slider::-webkit-slider-thumb{width:52px;height:52px}
.comparison-slider::-moz-range-thumb{width:52px;height:52px}
.photo-download{height:44px;padding:0 17px;border:1px solid #dfdfdb;font-size:15px;font-weight:500;background:#fffffff5;box-shadow:0 3px 12px #00000012}
.photo-download svg{width:18px;height:18px}
.preview-strip{gap:12px;margin-top:18px;padding:0 2px 4px}
.preview-thumbnail,.add-thumbnail{width:72px;height:72px;padding:5px;border:1.5px solid #ddddd9;border-radius:18px;background:#fafaf8;color:#777}
.preview-thumbnail img{border-radius:10px}
.preview-thumbnail.active{border-color:#555;box-shadow:none;background:#fff}
.add-thumbnail svg{width:24px;height:24px}
.library-toolbar>span,.asset-meta,.asset-status{font-size:15px;color:#777}
.library-tabs button{color:#777}
.library-tabs button.active{color:#333;font-weight:500}
.asset-thumb{width:76px;height:62px}
.asset-thumb img,.asset-thumb video{border-radius:12px}
.asset-name{color:#444}
.asset-actions button{width:40px;height:40px;border-radius:13px}
.asset-actions button:hover{background:var(--surface-soft)}
.asset-actions svg{width:19px;height:19px}
.empty-library p{color:#777}
.modal{border:1.5px solid #e0e0dd;border-radius:28px;color:#555;padding:44px 30px 30px}
.modal label{color:#6d6d6d}
.modal input{height:52px;border:1.5px solid #e0e0dd;border-radius:16px;padding:0 15px}
.modal input::placeholder{color:#858581}
.modal-close{top:12px;right:12px;border-radius:14px}
.icon-button{width:42px;height:42px}
.icon-button svg{width:20px;height:20px}
.detail-media{border-radius:18px}
.detail-dimensions,.muted{color:#777}
.toast{border-radius:18px;padding:15px 22px;font-size:15px;background:#3b3b3b}
@media(max-width:1250px){.settings-panel{padding:25px 20px 30px}.settings-heading{padding-bottom:18px}}
@media(max-width:950px){.main-shell>.mobile-menu{margin-top:12px;margin-bottom:0;border-radius:14px;background:var(--surface-soft);color:#555}}
@media(max-width:760px){
  .studio-layout{gap:26px}
  .upload-area,.preview-column.has-files .upload-area{min-height:430px}
  .settings-panel{padding:25px 22px 28px}
  .settings-fields{padding-top:20px;gap:22px}
  .settings-actions{padding-top:26px}
  .preview-file-meta{top:22px;left:18px;right:18px}
  .preview-media-space{inset:68px 18px 94px}
  .preview-bottom-meta{bottom:22px;left:18px;right:18px;gap:8px 14px}
  .comparison-pill{top:12px;padding:7px 13px;font-size:15px}
  .comparison-handle{width:44px;height:44px}
  .photo-download{right:12px;bottom:12px;height:42px;padding:0 15px}
  .preview-thumbnail,.add-thumbnail{width:68px;height:68px}
  .modal{padding:44px 24px 26px}
}
@media(max-width:450px){
  .upload-actions{gap:12px;padding:0 12px}
  .choose-button{padding:0 18px;gap:12px}
  .upload-actions>.text-button{padding:0 15px;gap:7px}
  .upload-empty>p{font-size:19px}
  .upload-glyph{width:82px;height:82px;padding:15px}
  .settings-panel{padding:24px 20px 26px}
}

/* Frosted glass: translucent surfaces, restrained light and soft elevation. */
:root{--glass-fill:rgba(255,255,255,.62);--glass-rim:rgba(255,255,255,.86);--glass-shadow:0 12px 42px rgba(42,50,70,.065),0 2px 8px rgba(42,50,70,.025),inset 0 1px 0 rgba(255,255,255,.96),inset 0 0 0 1px rgba(255,255,255,.35)}
.main-shell{background-color:#fff;background-image:radial-gradient(ellipse at 13% 16%,rgba(217,226,238,.52),transparent 56%),radial-gradient(ellipse at 90% 82%,rgba(232,227,240,.48),transparent 55%);background-attachment:fixed}
.workspace,.library-view{background:transparent}
.sidebar{background:linear-gradient(155deg,#2b2c2f 0%,#232427 65%,#202123 100%)}
.nav-link.active{background:linear-gradient(150deg,rgba(255,255,255,.97),rgba(255,255,255,.84));box-shadow:inset 0 1px 0 #fff,0 5px 16px #00000012}
.upload-area,.settings-panel{border:1px solid var(--glass-rim);background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(255,255,255,.38));box-shadow:var(--glass-shadow);-webkit-backdrop-filter:blur(32px) saturate(125%);backdrop-filter:blur(32px) saturate(125%)}
.settings-panel{background:linear-gradient(150deg,rgba(255,255,255,.84),rgba(255,255,255,.54))}
.upload-area.dragover{background:rgba(255,255,255,.8);border-color:rgba(110,120,140,.32);box-shadow:0 12px 42px rgba(42,50,70,.09),inset 0 0 0 1px rgba(110,120,140,.16)}
.upload-glyph,.upload-actions>.text-button,.add-thumbnail,.preview-thumbnail,.main-shell>.mobile-menu{border:1px solid rgba(255,255,255,.88);background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(255,255,255,.38));box-shadow:0 4px 14px rgba(45,54,72,.055),inset 0 1px 0 #fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.upload-actions>.text-button:hover,.add-thumbnail:hover{background:rgba(255,255,255,.88)}
.preview-thumbnail.active{border-color:rgba(80,88,104,.42);background:rgba(255,255,255,.84);box-shadow:0 3px 14px rgba(45,54,72,.08),inset 0 1px 0 #fff}




.start-button,.choose-button,.black-button{background:linear-gradient(155deg,#45474d,#303238);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 5px 14px rgba(39,42,52,.1)}
.start-button:not(:disabled):hover,.choose-button:hover,.black-button:not(:disabled):hover{background:linear-gradient(155deg,#52545b,#3b3d44)}
.start-button:disabled,.black-button:disabled{background:rgba(119,127,141,.1);color:#8b8e95;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.comparison-pill,.photo-download,.comparison-handle{border:1px solid rgba(255,255,255,.88);background:linear-gradient(150deg,rgba(255,255,255,.85),rgba(255,255,255,.57));color:#36383e;box-shadow:0 4px 16px rgba(20,25,40,.11),inset 0 1px 0 rgba(255,255,255,.95);-webkit-backdrop-filter:blur(24px) saturate(145%);backdrop-filter:blur(24px) saturate(145%)}
.photo-download:hover{background:rgba(255,255,255,.9)}
.comparison-divider{background:rgba(255,255,255,.82);box-shadow:0 0 3px rgba(20,25,40,.2)}
.modal{border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.88);box-shadow:0 18px 70px rgba(35,40,55,.15),inset 0 1px 0 #fff;-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px)}
.modal input{border:1px solid rgba(150,155,165,.22);background:rgba(255,255,255,.62)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.upload-area,.settings-panel,.modal{background:rgba(255,255,255,.96)}.comparison-pill,.photo-download,.comparison-handle{background:rgba(255,255,255,.94)}}
@media(prefers-reduced-transparency:reduce){.main-shell{background:#fff}.upload-area,.settings-panel,.modal,.comparison-pill,.photo-download,.comparison-handle{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}

/* The two work panes share a baseline; recent uploads live in the row below. */
.studio-layout{--studio-panel-height:max(560px,calc(100svh - 180px));row-gap:18px}
.preview-column{grid-column:1;grid-row:1}
.upload-area,.preview-column.has-files .upload-area,.settings-panel{height:var(--studio-panel-height);min-height:0}
.settings-panel{grid-column:2;grid-row:1;position:relative;top:auto}
.preview-strip{grid-column:1/-1;grid-row:2;margin:0;min-height:88px;padding:5px 3px 7px;gap:12px;scrollbar-width:thin;scrollbar-color:#c9ccd355 transparent}
.preview-thumbnail,.add-thumbnail{position:relative;width:76px;height:76px;min-width:76px;border-radius:18px}
.preview-thumbnail img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.preview-thumbnail:disabled{cursor:default;opacity:.65}
.preview-thumbnail{cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.preview-thumbnail img{pointer-events:none;-webkit-user-drag:none}
.preview-strip.is-sorting,.preview-strip.is-sorting .preview-thumbnail{cursor:grabbing}
.preview-strip .preview-thumbnail.is-sorting{opacity:.22;background:rgba(130,140,160,.1);box-shadow:inset 0 0 0 1px rgba(110,120,140,.16)}
.floating-thumbnail{position:fixed;z-index:1000;margin:0;min-width:0;pointer-events:none;cursor:grabbing;transform:scale(1.08) rotate(-3deg);box-shadow:0 12px 26px rgba(35,45,65,.2),0 2px 5px rgba(35,45,65,.1);background:rgba(255,255,255,.9)}
.thumbnail-complete{position:absolute;right:4px;bottom:4px;width:20px;height:20px;display:grid;place-items:center;border:1px solid #ffffffdd;border-radius:50%;color:#41464e;background:#ffffffe6;box-shadow:0 2px 5px #0001;pointer-events:none}
.thumbnail-complete svg{width:13px;height:13px;stroke-width:2}
@media(max-width:1250px){.studio-layout{--studio-panel-height:max(530px,calc(100svh - 168px))}}
@media(min-width:761px) and (max-width:950px){.studio-layout{--studio-panel-height:max(500px,calc(100svh - 212px))}}
@media(max-width:760px){
  .studio-layout{row-gap:22px}
  .preview-column{grid-column:1;grid-row:1}
  .upload-area,.preview-column.has-files .upload-area{height:58svh;min-height:430px;max-height:600px}
  .preview-strip{grid-column:1;grid-row:2;min-height:80px;gap:10px;padding-top:3px;padding-bottom:5px}
  .preview-thumbnail,.add-thumbnail{width:68px;height:68px;min-width:68px}
  .settings-panel{grid-column:1;grid-row:3;height:auto;min-height:0}
}

/* Four physical-feeling detents on a draggable glass rail. */
.scale-control{position:relative;height:66px;padding:6px;border-radius:23px;background:rgba(104,115,133,.08);box-shadow:inset 0 1px 3px rgba(50,60,78,.055),inset 0 0 0 1px rgba(255,255,255,.8);touch-action:pan-y;user-select:none;-webkit-user-select:none;--stop:0}
.scale-slider-track{position:relative;height:100%;pointer-events:none}
.scale-selection{position:absolute;inset:0 auto 0 0;width:25%;transform:translateX(calc(var(--stop) * 100% + var(--pull,0px)));transition:transform 110ms cubic-bezier(.7,0,.2,1);will-change:transform}
.scale-selection-glass{display:block;width:100%;height:100%;border-radius:18px;background:linear-gradient(150deg,#fff,rgba(255,255,255,.76));box-shadow:0 3px 11px rgba(40,47,63,.11),inset 0 1px 0 #fff;transform-origin:center}
.scale-stops{position:absolute;inset:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.scale-stop{display:grid;place-items:center;line-height:1;color:#747983;transition:color .15s;font-size:16px;font-weight:500}

.scale-stop.active{color:#30323a;font-weight:600}

.scale-slider{position:absolute;left:calc(12.5% - 17.5px);top:0;width:calc(75% + 35px);height:100%;margin:0;padding:0;opacity:0;appearance:none;-webkit-appearance:none;cursor:grab;touch-action:pan-y}
.scale-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:44px;height:52px}
.scale-slider::-moz-range-thumb{width:44px;height:52px;border:0}
.scale-control.is-dragging .scale-slider{cursor:grabbing}
.scale-control.is-dragging .scale-selection-glass{box-shadow:0 4px 14px rgba(40,47,63,.15),inset 0 1px 0 #fff}
.scale-control:has(.scale-slider:focus-visible){outline:2px solid #707681;outline-offset:4px}
.scale-control.is-disabled{opacity:.55}
.scale-control.is-disabled .scale-slider{cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.scale-selection,.scale-stop{transition:none!important}}

.scale-control.is-dragging{box-shadow:inset 0 2px 5px rgba(50,60,78,.09),inset 0 0 0 1px rgba(255,255,255,.85)}
.scale-control.is-dragging .scale-selection{transition:transform 65ms ease-out}
.scale-control.is-snapping .scale-selection{transition:transform 110ms cubic-bezier(.72,0,.18,1) 32ms}
.scale-control.is-dragging .scale-selection-glass{box-shadow:0 6px 16px rgba(40,47,63,.19),inset 0 1px 0 #fff}
.scale-control:has(.scale-slider:focus-visible){outline:2px solid #707681;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.scale-control .scale-selection{transition:none!important}}

/* File-drag affordance is confined to the workspace, outside the navigation. */
.file-drop-overlay{position:fixed;inset:0 0 0 var(--sidebar-width);z-index:40;display:grid;place-items:center;background:rgba(31,35,43,.66);color:#fff;-webkit-backdrop-filter:blur(10px) saturate(85%);backdrop-filter:blur(10px) saturate(85%);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,visibility .16s ease}
.file-drop-overlay.is-visible{opacity:1;visibility:visible}
.file-drop-frame{position:absolute;inset:28px;pointer-events:none}
.drop-corner{position:absolute;width:76px;height:76px;border:solid rgba(255,255,255,.94);border-width:0;pointer-events:none}
.corner-tl{top:0;left:0;border-width:6px 0 0 6px;border-top-left-radius:30px}
.corner-tr{top:0;right:0;border-width:6px 6px 0 0;border-top-right-radius:30px}
.corner-bl{bottom:0;left:0;border-width:0 0 6px 6px;border-bottom-left-radius:30px}
.corner-br{bottom:0;right:0;border-width:0 6px 6px 0;border-bottom-right-radius:30px}
.file-drop-message{display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center;max-width:calc(100% - 48px)}
.file-drop-icon{display:grid;place-items:center;width:76px;height:76px;border:1px solid #ffffff66;border-radius:25px;background:#ffffff16;box-shadow:inset 0 1px 0 #ffffff33}
.file-drop-icon svg{width:32px;height:32px;stroke-width:1.7}
.file-drop-message p{font-size:24px;font-weight:500;letter-spacing:.5px;line-height:1.5;text-shadow:0 2px 12px #0002}
@media(max-width:950px){.file-drop-overlay{left:0}.sidebar.open~.main-shell .file-drop-overlay{left:min(var(--sidebar-width),100vw)}}
@media(max-width:760px){.file-drop-frame{inset:20px}.drop-corner{width:52px;height:52px}.corner-tl{border-width:4px 0 0 4px;border-top-left-radius:22px}.corner-tr{border-width:4px 4px 0 0;border-top-right-radius:22px}.corner-bl{border-width:0 0 4px 4px;border-bottom-left-radius:22px}.corner-br{border-width:0 4px 4px 0;border-bottom-right-radius:22px}.file-drop-icon{width:66px;height:66px;border-radius:22px}.file-drop-message p{font-size:21px}}
@media(prefers-reduced-motion:reduce){.file-drop-overlay{transition:none}}

/* Independent history drawer floats above the unchanged workspace. */
.history-open{flex:none;align-self:center;display:flex;align-items:center;justify-content:center;gap:9px;min-width:132px;height:54px;margin-left:4px;padding:0 17px;border:1px solid #ffffffd9;border-radius:19px;background:linear-gradient(145deg,#ffffffdd,#ffffff77);box-shadow:0 4px 14px #2d36480e;color:#5f6670;white-space:nowrap}
.history-open:hover,.history-open[aria-expanded=true]{background:#ffffffed;color:#303742;box-shadow:0 5px 18px #2d364815}
.history-shade{position:fixed;inset:0 0 0 var(--sidebar-width);z-index:40;background:rgba(40,48,65,.13);animation:history-shade-reveal .25s ease-out}
.history-panel{position:fixed;z-index:45;top:0;right:0;bottom:0;width:380px;max-width:100vw;height:auto;min-width:0;display:flex;flex-direction:column;padding:28px 24px;border:0;border-left:1px solid #ffffffdf;border-radius:0;background:linear-gradient(145deg,#fffffff5,#ffffffe0);box-shadow:-16px 0 60px #2a324226,inset 0 1px 0 #fff;-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);animation:history-reveal .32s cubic-bezier(.22,.8,.25,1)}
.dragging-history .history-shade{pointer-events:none;background:rgba(40,48,65,.04)}
.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px}
.history-heading h2{font-size:20px;font-weight:600}
.history-heading .icon-button{width:36px;height:36px;border-radius:50%;background:#69778a0a;color:#777f88}
.history-tabs{display:flex;flex:none;gap:4px;padding:5px;margin-bottom:24px;border-radius:17px;background:#707d900c;box-shadow:inset 0 1px 3px #30384905}
.history-tabs button{flex:1;height:42px;border-radius:13px;color:#8b9098;transition:background .18s,color .18s,box-shadow .18s}
.history-tabs button[aria-selected=true]{background:#fffffff2;color:#343b46;box-shadow:0 2px 8px #3038490c;font-weight:500}
.history-grid{display:flex;flex-direction:column;gap:28px;min-height:0;overflow-y:auto;padding:2px 2px 12px;scrollbar-width:thin}
.history-day{flex:none;min-width:0}
.history-date{margin:0 0 13px;font-size:15px;line-height:1.5;font-weight:500;color:#69717b}
.history-day-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
.history-item{display:flex;flex-direction:column;text-align:left;min-width:0;padding:0;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.history-thumb{position:relative;display:block;flex-shrink:0;aspect-ratio:1;width:100%;padding:5px;overflow:hidden;border:1px solid #ffffffdd;border-radius:20px;background:#f0f1f466;box-shadow:0 3px 12px #2d364809;transition:transform .18s}
.history-thumb img{position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);display:block;object-fit:cover;border-radius:15px;pointer-events:none;-webkit-user-drag:none}
.history-item:hover .history-thumb{transform:translateY(-2px)}
.history-item.is-dragging{opacity:.32;cursor:grabbing}
.history-name{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;margin:9px 0 4px}
.history-meta{font-size:13px;color:#92969e;font-variant-numeric:tabular-nums}
.history-empty{margin:auto;text-align:center;color:#92969e}
.upload-area.history-drop-target:after{content:'松开以放大';position:absolute;inset:12px;z-index:10;display:grid;place-items:center;border:1.5px solid #aab2be80;border-radius:20px;color:#454d5a;background:#ffffffa8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);pointer-events:none;font-size:18px}
@keyframes history-reveal{from{opacity:.6;transform:translateX(calc(100% + 16px))}to{opacity:1;transform:translateX(0)}}
@keyframes history-shade-reveal{from{opacity:0}to{opacity:1}}
@media(max-width:950px){.history-shade{left:0}}
@media(max-width:760px){.history-panel{width:min(340px,86vw);padding:24px 20px}.history-heading{margin-bottom:20px}.history-grid{gap:25px}.history-day-items{gap:18px 12px}.history-name{font-size:14px}.history-meta{font-size:12px}}
@media(prefers-reduced-transparency:reduce){.history-panel{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}
.history-open{position:sticky;right:0;z-index:2;background:linear-gradient(145deg,#fffffff5,#ffffffe6);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}

/* The warehouse shares the history drawer's date groups and photo treatment. */
.library-view{max-width:1600px;padding:40px}
.library-heading{gap:20px;margin-bottom:28px}
.library-heading h1{font-size:20px;font-weight:600}
.library-heading>.text-button{height:44px;gap:10px;padding:0 16px;border-radius:15px;background:#ffffffc9;box-shadow:0 3px 12px #2d364807;color:#555e69}
.library-toolbar{border:0;margin-bottom:32px;gap:20px;align-items:center}
.library-toolbar>span{font-size:14px;color:#92969e}
.library-tabs{gap:4px;padding:5px;border-radius:17px;background:#707d900c;box-shadow:inset 0 1px 3px #30384905}
.library-tabs button{height:40px;min-width:76px;padding:0 18px;border-radius:13px;color:#8b9098}
.library-tabs button.active{background:#fffffff2;color:#343b46;box-shadow:0 2px 8px #3038490c;font-weight:500}
.library-tabs button.active:after{content:none}
.library-list{display:flex;flex-direction:column;gap:34px}
.library-day{min-width:0}
.library-day>.history-date{margin-bottom:16px}
.library-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:27px 22px}
.library-asset{position:relative;min-width:0}
.library-asset-open{display:flex;flex-direction:column;width:100%;min-width:0;padding:0;text-align:left}
.library-asset-thumb{border-radius:20px;background:#f0f1f466;transition:transform .18s,box-shadow .18s}
.library-asset-thumb img,.library-asset-thumb video{position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);max-width:none;max-height:none;display:block;object-fit:cover;border-radius:15px;pointer-events:none}
.library-asset-open>.history-name{margin-top:11px;font-size:15px;color:#454d58}
.library-asset-open>.history-meta{font-size:13px;line-height:1.6;color:#92969e}
.library-asset:hover .library-asset-thumb{box-shadow:0 6px 20px #2d364812}
.library-asset-actions{position:absolute;top:0;left:0;right:0;aspect-ratio:1;display:flex;align-items:flex-end;justify-content:flex-end;gap:6px;padding:12px;pointer-events:none;opacity:0;transition:opacity .16s}
.library-asset-actions button{display:grid;place-items:center;width:36px;height:36px;flex:none;padding:0;border:1px solid #ffffffb3;border-radius:50%;background:#ffffffe6;color:#535c68;box-shadow:0 2px 8px #27324414;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);pointer-events:auto}
.library-asset-actions button:hover{background:#fff;color:#252c38}
.library-asset-actions svg{width:17px;height:17px}
.library-asset:hover .library-asset-actions,.library-asset:focus-within .library-asset-actions{opacity:1}
.library-complete{position:absolute;top:12px;left:12px;display:grid;place-items:center;width:24px;height:24px;border:1px solid #ffffffbb;border-radius:50%;background:#ffffffd9;color:#555f6b;box-shadow:0 2px 7px #2732440c}
.library-complete svg{width:14px;height:14px;stroke-width:2}
.library-video-icon{position:absolute;inset:0;display:grid;place-items:center;color:#fff;filter:drop-shadow(0 1px 5px #0005);pointer-events:none}
.library-video-icon svg{width:30px;height:30px}
@media(hover:none),(pointer:coarse){.library-asset-actions{opacity:1}}
@media(max-width:950px){.library-view{padding:24px}}
@media(max-width:760px){.library-view{padding:20px}.library-toolbar{margin-bottom:26px;gap:12px;flex-wrap:wrap}.library-toolbar>span{max-width:none}.library-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.library-list{gap:30px}.library-tabs button{min-width:67px;padding:0 14px}.library-asset-actions{opacity:1;padding:10px}.library-asset-actions button{width:34px;height:34px}.library-asset-open>.history-meta{font-size:12px}}
@media(max-width:450px){.library-view{padding:16px}.library-heading{gap:12px}.library-heading>.text-button{padding:0 12px}.library-complete{left:10px;top:10px}}

/* Both asset surfaces share version controls, media filters and thumbnails. */
.asset-filters{display:flex;flex-direction:column;flex:none;gap:14px;margin-bottom:26px}
.asset-filters .version-tabs{margin:0;width:100%}
.library-filters{max-width:332px;margin-bottom:30px}
.media-tabs{display:flex;align-items:center;gap:8px}
.media-tabs button{height:36px;min-width:64px;padding:0 16px;border-radius:12px;color:#92969e;font-size:15px;transition:background .18s,color .18s}
.media-tabs button[aria-selected=true]{color:#343b46;background:#707d900c;font-weight:500}
.media-tabs button:hover{color:#4b5563;background:#707d9008}
.media-tabs button[aria-selected=true]:hover{background:#707d9012}
.history-meta{line-height:1.6;overflow-wrap:anywhere}
.history-thumb video{position:absolute;inset:5px;display:block;width:calc(100% - 10px);height:calc(100% - 10px);object-fit:cover;border-radius:15px;pointer-events:none;-webkit-user-drag:none}
.floating-thumbnail video{width:100%;height:100%;object-fit:cover;border-radius:12px;pointer-events:none}
@media(max-width:760px){.asset-filters{gap:12px;margin-bottom:24px}.library-filters{max-width:100%}.media-tabs button{min-width:60px;padding:0 14px}.history-meta{font-size:12px}}

/* Clear task scope, quiet work surfaces, and detail inspection. */
.main-shell{background-image:radial-gradient(ellipse at 13% 16%,rgba(217,226,238,.22),transparent 56%),radial-gradient(ellipse at 90% 82%,rgba(232,227,240,.18),transparent 55%)}
.upload-area,.settings-panel{background:#fff;border:1px solid #e9ebef;box-shadow:0 7px 28px #26354a06;backdrop-filter:none;-webkit-backdrop-filter:none}
.settings-heading{gap:14px;padding-bottom:18px}
.batch-select{flex:none;padding:7px 10px;border-radius:11px;background:#6f7d8d09;color:#757e89;font-size:14px;line-height:1.5}
.batch-select[aria-pressed=true]{background:#343c49;color:#fff}
.batch-select:disabled{opacity:.6}
.settings-actions{margin-top:auto;padding-top:28px}
.settings-actions .credit-estimate{padding-top:0}
.scale-stop.active{font-weight:600;color:#2e3540}
.recent-tile{position:relative;width:76px;height:76px;flex:none;border-radius:18px}
.preview-thumbnail.active{border-color:#555f6d;box-shadow:0 0 0 1px #555f6d,0 3px 12px #2d36480a;background:#fff}
.recent-tile.is-selected .preview-thumbnail{box-shadow:0 0 0 1.5px #414b5c;background:#fff}
.thumbnail-select{position:absolute;z-index:3;top:5px;right:5px;width:21px;height:21px;margin:0;accent-color:#354151;cursor:pointer;filter:drop-shadow(0 1px 3px #0002)}
.history-tile{position:relative;min-width:0}
.history-tile .history-item{width:100%}
.history-tile .thumbnail-select{top:11px;right:11px;width:23px;height:23px}
.history-tile.is-selected .history-thumb{box-shadow:0 0 0 1.5px #414b5c}
.task-status{position:absolute;right:4px;bottom:4px;z-index:2;pointer-events:none}
.task-status .thumbnail-complete{position:static}
.thumbnail-progress{display:grid;place-items:center;width:24px;height:24px;border:1px solid #ffffffbd;border-radius:50%;background:#ffffffed;box-shadow:0 1px 5px #26354a16}
.thumbnail-progress svg{width:21px;height:21px;transform:rotate(-90deg);stroke-width:2}
.progress-track{stroke:#dfe3e9}
.progress-value{stroke:#414c5d;stroke-dasharray:var(--progress) 100;transition:stroke-dasharray .2s}
.thumbnail-retry{display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid #ffffffdd;border-radius:50%;color:#76574f;background:#fff8f3;box-shadow:0 1px 5px #26354a16;pointer-events:auto}
.thumbnail-retry svg{width:15px;height:15px}
.photo-stage{overflow:hidden;border-radius:18px;background:#f4f5f7;touch-action:pan-y}
.comparison-layer{position:absolute;inset:0;overflow:hidden}
.comparison-layer img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;transform:translate(var(--pan-x,0px),var(--pan-y,0px)) scale(var(--image-zoom,1));transform-origin:center;user-select:none;-webkit-user-drag:none;pointer-events:none}
.photo-stage.is-zoomed{cursor:grab;touch-action:none}
.photo-stage.is-panning{cursor:grabbing}
.comparison-slider{left:calc(var(--split) - 26px);top:calc(50% - 26px);width:52px;height:52px;touch-action:none;cursor:ew-resize}
.photo-tools{position:absolute;left:16px;bottom:16px;z-index:5;display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #ffffffc9;border-radius:100px;background:linear-gradient(150deg,#ffffffda,#ffffffaf);box-shadow:0 3px 12px #1419280e;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);cursor:default}
.photo-tools button{height:30px;min-width:48px;padding:0 10px;border-radius:100px;color:#6b7481;font-size:14px}
.photo-tools button[aria-pressed=true]{background:#fff;color:#303b49;box-shadow:0 1px 4px #27324410;font-weight:500}
.zoom-level{padding:0 9px;color:#6b7481;font-size:13px;font-variant-numeric:tabular-nums}
.detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.detail-upscale{height:44px;padding:0 15px;border-radius:14px;color:#687383;background:#6f7d8d0a;font-size:15px}
.dragging-history .history-shade{background:transparent;transition:background .12s}
@media(max-width:760px){
 .recent-tile{width:68px;height:68px}
 .settings-actions{margin-top:28px}
 .photo-tools{left:12px;bottom:12px;padding:3px;gap:1px}
 .photo-tools button{height:28px;min-width:42px;padding:0 8px;font-size:13px}
 .photo-download{gap:5px;padding:0 11px;height:36px}
 .photo-tools .zoom-level{display:none}
 .dragging-history .history-panel{animation:none;transform:translateX(calc(100% - 64px));transition:transform .18s ease-out}
 .history-panel{transition:transform .18s ease-out}
 .detail-actions{width:100%;gap:10px}
 .detail-actions .black-button{width:auto;flex:1}
}
.dragging-history .history-panel{pointer-events:none}
.comparison-slider{left:clamp(0px,calc(var(--split) - 26px),calc(100% - 52px))}
.history-task-status{left:11px;top:11px;right:auto;bottom:auto}
.thumbnail-select,.history-tile .thumbnail-select{appearance:none;-webkit-appearance:none;width:24px;height:24px;border:1.5px solid #b0b7c2;border-radius:50%;background:#fffffff2;box-shadow:0 1px 4px #26354a0c;filter:none}
.thumbnail-select:checked{border-color:#354151;background:#354151}
.thumbnail-select:checked:after{content:'';position:absolute;width:6px;height:10px;left:7px;top:3px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
@media(max-width:760px){.thumbnail-select,.history-tile .thumbnail-select{width:26px;height:26px}.thumbnail-select:checked:after{left:8px;top:4px}}

/* A more restrained scale: modest corners, smaller type, unchanged workspace geometry. */
:root{font-size:12px;--sidebar-width:240px;--radius-panel:16px;--radius-control:10px}
h1,h2,.history-heading h2,.library-heading h1{font-size:14px;font-weight:500}


.nav-link{height:40px;border-radius:10px;gap:11px;padding:0 14px}
.nav-link.active{font-weight:500}
.nav-link svg{width:16px;height:16px}
.start-button,.choose-button,.black-button{height:38px;border-radius:10px}
.start-button svg,.choose-button svg{width:15px;height:15px}
.upload-actions>.text-button{height:38px;border-radius:10px;padding:0 16px}
.upload-actions>.text-button svg{width:15px;height:15px}
.upload-glyph{width:56px;height:56px;padding:12px;border-radius:14px;margin-bottom:18px}
.upload-empty>p{font-size:14px;font-weight:400;margin-bottom:20px}
.credit-estimate-row strong{font-size:12px;font-weight:500}
.field-label{font-weight:400}
.batch-select{border-radius:8px;font-size:12px}
.scale-control{height:42px;padding:4px;border-radius:12px}
.scale-selection-glass{border-radius:9px}
.scale-stop{font-size:12px}
.scale-stop.active{font-weight:500}
.uploaded-preview{border-radius:18px}
.photo-stage,.photo-stage>img,.detail-media{border-radius:12px}
.preview-file-meta,.preview-bottom-meta,.media-summary{font-size:12px}
.preview-thumbnail,.add-thumbnail,.recent-tile{border-radius:12px}
.preview-thumbnail img,.floating-thumbnail video{border-radius:8px}
.history-open{height:38px;min-width:100px;border-radius:10px;padding:0 14px}
.history-tabs,.library-tabs{border-radius:12px}
.history-tabs button,.library-tabs button{border-radius:9px}
.media-tabs button{font-size:12px;border-radius:9px}
.history-thumb,.library-asset-thumb{border-radius:14px}
.history-thumb img,.history-thumb video,.library-asset-thumb img,.library-asset-thumb video{border-radius:10px}
.history-name,.library-asset-open>.history-name,.history-date{font-size:12px}
.library-heading>.text-button{border-radius:10px}
.comparison-pill,.photo-download{font-size:12px}
.modal{border-radius:20px}
.modal input{height:42px;border-radius:12px}
.toast,.detail-upscale{border-radius:12px;font-size:12px}
@media(max-width:450px){.upload-glyph{width:52px;height:52px;padding:11px}.upload-empty>p{font-size:14px}}

.sidebar{padding:32px 18px 22px}

.navigation{margin-top:40px;gap:8px}
.sidebar-bottom{padding:24px 12px 0}
.choose-button{padding:0 20px;gap:14px}
.upload-actions{gap:12px}
.preview-thumbnail,.add-thumbnail,.recent-tile{width:56px;height:56px;min-width:56px;border-radius:10px}
.preview-strip{min-height:68px;gap:10px}
.add-thumbnail svg{width:18px;height:18px}
.settings-fields{padding-top:20px}
.field-label{margin-bottom:12px}
.setting-field{margin-bottom:20px}
@media(min-width:951px){.workspace{padding:28px}.studio-layout{column-gap:24px;grid-template-columns:minmax(0,1fr) minmax(290px,28%)}}
@media(pointer:coarse){.nav-link{min-height:48px}}

/* Keep the 12px system consistent across controls and both asset views. */
svg{width:16px;height:16px}
.history-tabs button,.library-tabs button{height:36px}
.library-tabs button{min-width:64px;padding:0 14px}
.history-meta,.library-asset-open>.history-meta,.library-toolbar>span{font-size:12px}
.photo-download{height:36px;padding:0 12px}
.photo-download svg{width:15px;height:15px}
.comparison-pill{padding:6px 12px}
.photo-tools button,.zoom-level{font-size:12px}
.detail-upscale{height:38px}
.library-heading>.text-button{height:38px;padding:0 13px}
@media(pointer:coarse){
 .start-button,.choose-button,.black-button,.upload-actions>.text-button,.history-open,.detail-upscale,.library-heading>.text-button{min-height:44px}
 .history-tabs button,.library-tabs button,.media-tabs button{min-height:44px}
}

/* The same weighted rail on version and media filters, in both asset surfaces. */
.asset-filters .asset-detent{
 position:relative;display:grid;grid-template-columns:repeat(var(--segments),minmax(0,1fr));
 gap:0;width:100%;padding:4px;border-radius:12px;isolation:isolate;
 background:rgba(104,115,133,.08);
 box-shadow:inset 0 1px 3px rgba(50,60,78,.055),inset 0 0 0 1px rgba(255,255,255,.8);
 touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;
}
.asset-detent-thumb{
 position:absolute;z-index:0;left:4px;top:4px;bottom:4px;
 width:calc((100% - 8px)/var(--segments));
 transform:translateX(calc(var(--stop,0)*100% + var(--pull,0px)));
 transition:transform 110ms cubic-bezier(.7,0,.2,1);pointer-events:none;will-change:transform;
}
.asset-detent-glass{
 display:block;width:100%;height:100%;border-radius:9px;
 background:linear-gradient(150deg,#fff,rgba(255,255,255,.76));
 box-shadow:0 3px 11px rgba(40,47,63,.11),inset 0 1px 0 #fff;transform-origin:center;
}
.asset-filters .asset-detent button{
 position:relative;z-index:1;display:grid;place-items:center;min-width:0;height:34px;
 padding:0 10px;border-radius:9px;background:transparent;box-shadow:none;
 color:#747983;font-size:12px;font-weight:400;line-height:1;cursor:grab;
 transition:color .15s;
}
.asset-filters .asset-detent button[aria-selected=true]{color:#2e3540;background:transparent;box-shadow:none;font-weight:500}
.asset-filters .asset-detent button:hover{background:transparent;color:#414b5a}
.asset-filters .asset-detent.is-dragging,.asset-filters .asset-detent.is-dragging button{cursor:grabbing}
.asset-detent.is-dragging{box-shadow:inset 0 2px 5px rgba(50,60,78,.09),inset 0 0 0 1px rgba(255,255,255,.85)}
.asset-detent.is-dragging .asset-detent-thumb{transition:transform 65ms ease-out}
.asset-detent.is-snapping .asset-detent-thumb{transition:transform 110ms cubic-bezier(.72,0,.18,1) 32ms}
.asset-detent.is-dragging .asset-detent-glass{box-shadow:0 6px 16px rgba(40,47,63,.19),inset 0 1px 0 #fff}
@media(pointer:coarse){.asset-filters .asset-detent button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.asset-detent-thumb,.asset-filters .asset-detent button{transition:none!important}}

/* Account surfaces: one alignment grid and a restrained 8px spacing rhythm. */
.auth-modal{width:360px;max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);overflow-y:auto;scrollbar-width:thin;padding:32px 28px 26px;border-radius:16px;background:#fff;border:1px solid #e8ebef;box-shadow:0 20px 64px #17223420;backdrop-filter:none;-webkit-backdrop-filter:none;color:#35404d}
.auth-modal::backdrop{background:#20263033;backdrop-filter:blur(4px)}
.auth-brand{width:160px;max-width:100%;margin-bottom:24px}

.auth-modal h2{margin:0 0 24px;font-size:16px;font-weight:500;line-height:1.5;color:#303742}
.auth-modal .modal-close{top:12px;right:12px;width:28px;height:28px;border-radius:8px;color:#a0a7b1}
.auth-modal .modal-close svg{width:15px;height:15px}
.auth-modal .modal-close:hover{background:#f3f5f7;color:#586473}
.auth-tabs{position:relative;display:grid;grid-template-columns:1fr 1fr;padding:4px;margin-bottom:24px;border-radius:10px;background:#f0f2f5;box-shadow:inset 0 1px 2px #323c4e07;--auth-stop:0}
.auth-tab-thumb{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/2);border-radius:7px;background:#fff;box-shadow:0 2px 7px #282f3f16;transform:translateX(calc(var(--auth-stop)*100%));transition:transform 180ms cubic-bezier(.7,0,.2,1)}
.auth-tabs button{position:relative;z-index:1;height:32px;padding:0 8px;border-radius:7px;font-size:12px;font-weight:400;color:#89929e}
.auth-tabs button[aria-selected=true]{color:#35404d;font-weight:500}
.auth-field{margin-bottom:20px}
.auth-modal label{display:block;margin-bottom:8px;font-size:12px;line-height:1.5;color:#737e8b}
.auth-modal input{display:block;width:100%;height:40px;margin:0;padding:0 12px;border:1px solid #e0e5eb;border-radius:8px;background:#fafbfc;color:#35404d;font-size:12px;box-shadow:none}
.auth-modal input::placeholder{color:#a3abb5}
.auth-modal input:focus-visible{outline:2px solid #8995a340;outline-offset:1px;border-color:#8995a3;background:#fff}
.auth-modal input[aria-invalid=true]{border-color:#b77b70}
.auth-modal button:focus-visible{outline:2px solid #8995a36b;outline-offset:2px}
.auth-phone-input{display:flex;align-items:center;position:relative}
.auth-phone-input>span{position:absolute;left:12px;color:#737e8b;font-variant-numeric:tabular-nums;pointer-events:none}
.auth-modal .auth-phone-input input{padding-left:48px}
.auth-modal .black-button{height:40px;padding:0 16px;gap:10px;border-radius:8px;font-size:12px;font-weight:500;box-shadow:inset 0 1px 0 #ffffff1a}
.auth-modal .black-button svg{width:14px;height:14px}
.auth-link{font-size:12px;font-weight:400;color:#89929e;padding:0;line-height:1.5}
.auth-link:hover{color:#35404d}
.auth-help-entry{display:flex;justify-content:center;margin-top:20px;padding:0;border:0}
.auth-back{display:inline-flex;align-items:center;margin-bottom:16px}
.auth-caption{margin:12px 0 0;font-size:12px;color:#949da9;line-height:1.6}
.auth-modal .auth-error{margin:8px 0 0;font-size:12px;line-height:1.5;color:#a86457}
.auth-modal .auth-status{margin:16px 0 0;padding:10px 12px;border-radius:8px;background:#f5f6f8;color:#7a8593;font-size:12px;line-height:1.6}
.auth-qr-placeholder{width:160px;aspect-ratio:1;margin:0 auto 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px solid #e5e9ee;border-radius:10px;background:#fafbfc;color:#a0a8b4}
.auth-qr-placeholder svg{width:40px;height:40px;stroke-width:1.4}
.auth-qr-placeholder span{font-size:12px}
.auth-qr-placeholder.has-wechat-frame,
.auth-qr-placeholder.is-wechat-loading {
  width: 240px;
  max-width: 100%;
  height: 192px;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  background: #fff;
}
.auth-qr-placeholder.is-wechat-loading {position:relative}
.auth-qr-placeholder.is-wechat-loading::before {
  content:"";
  position:absolute;
  inset:12px 36px;
  border-radius:12px;
  background:linear-gradient(110deg,#f0f2f5 25%,#fafbfc 42%,#f0f2f5 60%);
  background-size:250% 100%;
  animation:wechat-qr-shimmer 1.4s ease-in-out infinite;
}
.auth-qr-placeholder.is-wechat-loading iframe {visibility:hidden}
@keyframes wechat-qr-shimmer {
  from {background-position:150% 0}
  to {background-position:-100% 0}
}
@media (prefers-reduced-motion:reduce) {
  .auth-qr-placeholder.is-wechat-loading::before {animation:none}
}
.auth-qr-placeholder.has-wechat-frame iframe {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 192px;
  border: 0;
  flex-shrink: 0;
}
#authWechatPanel.wechat-confirming .auth-wechat-caption,
#authWechatPanel.wechat-confirming .auth-qr-refresh {
  visibility: hidden;
}
.auth-wechat-caption{text-align:center;font-size:12px;line-height:1.6;color:#89929e}
.auth-qr-refresh{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px auto 0}
.auth-qr-refresh svg{width:13px;height:13px}
.auth-help-topic{padding:12px 0;border-bottom:1px solid #edf0f4;color:#596675}
.auth-help-topic summary{cursor:pointer;font-size:12px;font-weight:500;line-height:1.6}
.auth-help-topic p{margin:12px 0;font-size:12px;color:#89929e;line-height:1.8}
.auth-help-methods{display:flex;gap:20px}
.auth-recover-entry{margin-top:24px}
.auth-recovery-intro{margin-bottom:20px;font-size:12px;line-height:1.7;color:#89929e}
.auth-optional{float:right;font-weight:400;color:#a3abb5}
.auth-recovery-note{margin:0 0 20px}
.auth-code-phone{margin:0 0 24px;color:#89929e;font-size:12px;letter-spacing:.4px;font-variant-numeric:tabular-nums}
.auth-otp{position:relative;width:100%;margin:0}
.auth-otp-boxes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.auth-otp-boxes span{display:grid;place-items:center;aspect-ratio:1;min-width:0;border:1px solid #e0e5eb;border-radius:7px;background:#fafbfc;color:#35404d;font-size:18px;font-weight:500;font-variant-numeric:tabular-nums;transition:border-color .15s,box-shadow .15s}
.auth-otp-boxes .is-filled{background:#fff}
.auth-otp:focus-within .is-current{border-color:#8995a3;box-shadow:0 0 0 2px #8995a31a;background:#fff}
.auth-otp:has(input[aria-invalid=true]) .auth-otp-boxes span{border-color:#b77b70}
.auth-modal .auth-otp input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:transparent;caret-color:transparent;box-shadow:none;font-size:16px;letter-spacing:0;opacity:1;cursor:text}
.auth-modal .auth-otp input:focus-visible{outline:none;background:transparent}
.auth-modal .auth-otp input::selection{background:transparent;color:transparent}
.auth-code-submit{margin-top:24px}
.auth-code-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
@media(max-width:450px){.auth-modal{padding:28px 24px 24px}}
@media(max-width:360px){.auth-modal{padding-left:20px;padding-right:20px}.auth-otp-boxes{gap:6px}}
@media(pointer:coarse){.auth-modal input,.auth-modal .black-button,.auth-tabs button{min-height:44px}.auth-help-entry .auth-link,.auth-help-methods .auth-link,.auth-code-actions .auth-link{min-height:32px;display:inline-flex;align-items:center}}

/* Login methods share the same drag resistance and detents as the workspace rails. */
#loginModal .auth-help-entry{border:0;box-shadow:none;background:none;padding:0}
#loginModal .auth-help-entry::before,#loginModal .auth-help-entry::after{content:none}
#loginModal .auth-help-entry button{text-decoration:none;border:0;box-shadow:none}
.auth-tabs{touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.auth-tabs button{cursor:grab}
.auth-tab-thumb{background:transparent;box-shadow:none;pointer-events:none;transform:translateX(calc(var(--auth-stop)*100% + var(--auth-pull,0px)));transition:transform 110ms cubic-bezier(.7,0,.2,1)}
.auth-tab-glass{display:block;width:100%;height:100%;border-radius:7px;background:linear-gradient(150deg,#fff,#ffffffc2);box-shadow:0 3px 11px #282f3f1c,inset 0 1px 0 #fff;transform-origin:center}
.auth-tabs.is-dragging,.auth-tabs.is-dragging button{cursor:grabbing}
.auth-tabs.is-dragging{box-shadow:inset 0 2px 5px #323c4e17,inset 0 0 0 1px #ffffffd9}
.auth-tabs.is-dragging .auth-tab-thumb{transition:transform 65ms ease-out}
.auth-tabs.is-snapping .auth-tab-thumb{transition:transform 110ms cubic-bezier(.72,0,.18,1) 32ms}
.auth-tabs.is-dragging .auth-tab-glass{box-shadow:0 6px 16px #282f3f30,inset 0 1px 0 #fff}
@media(prefers-reduced-motion:reduce){.auth-tab-thumb{transition:none!important}}

/* Separate login trouble, account recovery, and authenticated binding management. */
.sidebar-account{display:flex;align-items:center;gap:8px;border-top:1px solid #393939;padding-top:22px}
.sidebar-account .sidebar-login{flex:1;min-width:0;padding:0;border:0}
.sidebar-account .sidebar-login>svg:last-child{display:none}
.sidebar-security{flex:none;width:28px;height:28px;border-radius:7px;color:#a6aab1}
.sidebar-security:hover{color:#eee;background:#ffffff0d}
.sidebar-security svg{width:15px;height:15px}
.auth-section-intro{margin:0 0 20px;color:#929ba7;font-size:12px;line-height:1.7}
.auth-help-list{display:flex;flex-direction:column;gap:0}
.auth-help-list .auth-help-topic{padding:16px 0;border-bottom:1px solid #edf0f4}
.auth-help-topic summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none}
.auth-help-topic summary::-webkit-details-marker{display:none}
.auth-help-topic summary svg,.auth-help-row>svg{width:13px;height:13px;flex:none;color:#a0a8b3}
.auth-help-topic[open] summary svg{transform:rotate(90deg)}
.auth-help-topic summary>span,.auth-help-row>span,.security-row>span:first-child{min-width:0;font-size:12px;font-weight:500;color:#4d5968}
.auth-help-topic summary small,.auth-help-row small,.security-row small{display:block;font-size:12px;font-weight:400;line-height:1.7;color:#929ba7;margin-top:5px}
.auth-help-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px;width:100%;padding:16px 0;text-align:left;border-bottom:1px solid #edf0f4}
.auth-help-row:hover>span{color:#273343}
.auth-help-row:hover>svg{color:#606d7d}
.auth-recovery-callout{margin-top:24px}
.auth-recovery-callout h3{margin:0 0 8px;font-size:12px;font-weight:500;color:#4d5968}
.auth-recovery-callout p{margin:0 0 20px;font-size:12px;line-height:1.7;color:#929ba7}
.auth-modal textarea{display:block;width:100%;resize:vertical;min-height:82px;max-height:180px;padding:10px 12px;background:#fafbfc;border:1px solid #e0e5eb;border-radius:8px;font-size:12px;color:#35404d;line-height:1.7}
.auth-modal textarea::placeholder{color:#a3abb5}
.auth-modal textarea:focus-visible{outline:2px solid #8995a340;outline-offset:1px;border-color:#8995a3;background:#fff}
.security-modal{width:400px}
.security-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:18px 0;border-bottom:1px solid #edf0f4;text-align:left}
.security-row:first-child{padding-top:0}
.security-action{display:flex;align-items:center;gap:6px;flex:none;font-size:12px;font-weight:400;color:#7d8896}
.security-action svg{width:12px;height:12px}
.security-row:hover .security-action{color:#35404d}
.security-login{margin-top:24px}
.security-steps{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:12px;color:#a0a8b4}
.security-steps .active{color:#4d5968;font-weight:500}
.security-steps svg{width:12px;height:12px;color:#b1b8c1}
.security-email-form{margin-top:24px}
.security-email-form .auth-field{margin-bottom:12px}
.security-secondary{height:36px;width:100%;padding:0 14px;border-radius:8px;background:#eff2f6;color:#687587;font-size:12px}
.security-secondary:hover{background:#e8edf3}
.security-binding-note{margin-top:20px}
.credits-security{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:20px;font-size:12px;line-height:1.6;color:#929ba7}
@media(pointer:coarse){.sidebar-security{width:40px;height:40px}.security-row,.auth-help-row{min-height:68px}.security-secondary{min-height:44px}}

.auth-code-phone{overflow-wrap:anywhere}

/* Help is scanned first; instructions and optional appeal fields are disclosed on demand. */
.auth-modal h2{font-weight:600;color:#29313d}
.auth-modal .auth-back{margin-bottom:24px;color:#9099a5}
.auth-group-title{margin:0 0 12px;font-size:12px;font-weight:400;letter-spacing:.2px;color:#a0a8b3}
.auth-help-group+.auth-help-group{margin-top:32px}
.auth-help-list .auth-help-topic{padding:0;border:0}
.auth-help-topic summary{min-height:48px;padding:12px 0;border-radius:6px}
.auth-help-topic summary>span{font-size:13px;font-weight:500;color:#3e4a59}
.auth-help-topic summary:hover>span{color:#1e2c3d}
.auth-help-content{padding:0 0 18px}
.auth-help-content ul{list-style:none;margin:0;padding:0 0 0 12px;border-left:2px solid #edf0f4}
.auth-help-content li{margin:0 0 7px;font-size:12px;line-height:1.7;color:#8993a0}
.auth-help-content li:last-child{margin-bottom:0}
.auth-help-content .auth-help-methods{margin-top:16px;justify-content:space-between;gap:16px}
.auth-help-content .auth-link{color:#647386}
.auth-help-recovery .auth-help-row{min-height:56px;padding:8px 0 0;border:0}
.auth-help-recovery .auth-help-row>span{font-size:13px;font-weight:500;color:#3e4a59}
.auth-help-recovery .auth-help-row small{margin-top:7px;color:#98a1ad}
.auth-appeal-required .auth-group-title{margin-bottom:20px}
.auth-appeal-required .auth-field{margin-bottom:20px}
.auth-appeal-required .auth-field:last-child{margin-bottom:0}
.auth-appeal-required label{color:#596777;font-weight:500}
.auth-appeal-extra{margin-top:28px}
.auth-appeal-extra summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:36px;list-style:none;cursor:pointer;font-size:12px;font-weight:500;color:#647386}
.auth-appeal-extra summary::-webkit-details-marker{display:none}
.auth-extra-label{display:flex;align-items:center;gap:8px;font-weight:400;color:#a0a8b3}
.auth-extra-label svg{width:12px;height:12px}
.auth-appeal-extra[open] summary svg{transform:rotate(90deg)}
.auth-appeal-extra-fields{padding-top:20px}
.auth-appeal-extra-fields .auth-field:last-child{margin-bottom:0}
.auth-appeal-submit{margin-top:24px}
.auth-appeal-submit .auth-caption{margin-top:12px;text-align:center;font-size:12px;color:#a0a8b3}
#authRecoveryOptions .auth-help-row{padding:18px 0;border:0}
#authRecoveryOptions .auth-help-row>span{font-size:13px;color:#3e4a59}
#authRecoveryOptions .auth-caption{margin-top:24px}

/* A single account menu replaces the separate footer lock shortcut. */
.sidebar-account{position:relative;display:block}
.sidebar-account .sidebar-login{display:flex;width:100%;height:36px;gap:10px;border-radius:8px;text-align:left}
.sidebar-account .sidebar-login:hover{color:#fff}
.account-menu-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#ffffff0a;color:#bfc4cc;flex:none}
.account-menu-avatar svg{width:17px;height:17px}
.sidebar-account .sidebar-login>svg.account-menu-chevron{display:block;margin-left:auto;width:12px;height:12px;transform:rotate(-90deg);transition:transform .18s}
.sidebar-account .sidebar-login[aria-expanded=true]>svg.account-menu-chevron{transform:rotate(90deg)}
.account-menu{position:absolute;z-index:70;bottom:calc(100% + 10px);left:-10px;right:-10px;padding:6px;border:1px solid #e8ebef;border-radius:11px;background:#fffffff7;box-shadow:0 12px 36px #0003,0 2px 8px #00000012;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:#515c6b}
.account-menu [role=menuitem]{display:flex;align-items:center;gap:11px;width:100%;height:38px;padding:0 11px;border-radius:7px;text-align:left;font-size:12px;line-height:1.5}
.account-menu [role=menuitem] svg{width:15px;height:15px;color:#8993a0}
.account-menu [role=menuitem]:hover,.account-menu [role=menuitem]:focus-visible{background:#edf0f5;color:#303d4e;outline:none}
.account-menu [role=menuitem]:focus-visible{box-shadow:inset 0 0 0 1px #8995a34d}
.profile-modal{width:380px}
.account-draft-modal{width:360px;max-width:calc(100vw - 32px);padding:28px;border:1px solid #e6e8ec;border-radius:18px;background:#fff;box-shadow:0 24px 70px #1b202626}
.account-draft-modal h2{margin:0;color:#343940;font-size:18px;font-weight:600}
.account-draft-modal p{margin:12px 0 28px;color:#8b94a0;font-size:12px;line-height:1.7}
.account-draft-actions{display:flex;justify-content:flex-end;gap:10px}
.account-draft-actions button{height:38px;min-width:92px;padding:0 18px;border-radius:9px;background:#f0f2f5;color:#6f7b8b;font-size:12px;font-weight:500}
.account-draft-actions button:last-child{background:#363b43;color:#fff}
.account-draft-actions button:hover{filter:brightness(.97)}

.profile-avatar-row{display:flex;align-items:center;gap:16px;margin:0 0 24px}
.profile-avatar{position:relative;display:grid;place-items:center;width:56px;height:56px;flex:none;overflow:hidden;border:1px solid #e4e8ee;border-radius:14px;background:#f4f6f8;color:#a3adba}
.profile-avatar>svg{width:24px;height:24px}
.profile-avatar>img{display:block;width:100%;height:100%;object-fit:cover}
.profile-avatar-actions{display:flex;align-items:center;gap:16px}
.profile-avatar-actions .auth-link{color:#7a8796}
.profile-account-id{display:flex;justify-content:space-between;gap:16px;margin:0 0 8px;font-size:12px;color:#9aa3af}
.profile-account-id>span:first-child{color:#737e8b}
.profile-contact-list{margin:8px 0 0}
.profile-contact-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:60px;padding:12px 0;text-align:left}
.profile-contact-row>span:first-child{font-size:12px;font-weight:500;color:#596777}
.profile-contact-row small{display:block;margin-top:4px;color:#a0a8b3;font-size:12px;font-weight:400}
.profile-contact-row>span:last-child{display:flex;align-items:center;gap:6px;color:#8b96a4;font-size:12px}
.profile-contact-row svg{width:12px;height:12px}
.profile-form-actions{display:flex;gap:10px;margin-top:24px}
.profile-form-actions>.black-button{flex:1;width:auto}
.profile-cancel{height:40px;min-width:72px;border-radius:8px;background:#f1f3f6;font-size:12px;color:#83909f}
.profile-cancel:hover{background:#e9edf2}
@media(pointer:coarse){.sidebar-account .sidebar-login{min-height:44px}.account-menu [role=menuitem]{height:44px}.profile-cancel{min-height:44px}}

/* Account settings are routed, full workspace pages; login alone stays a dialog. */
.account-page{min-height:100svh;padding:40px 48px 64px;background:#fff}
.account-page-inner{width:100%;max-width:1120px;margin:0 auto}
.account-page-tabs{display:flex;align-items:center;gap:12px;margin:0 0 40px}
.account-page-tabs button{height:36px;padding:0 14px;border-radius:8px;color:#8c96a4;font-size:12px}
.account-page-tabs button[aria-current=page]{background:#f0f3f6;color:#3e4b5c;font-weight:500}
.account-page-tabs button:hover{color:#3e4b5c;background:#f5f7f9}
.account-pane.auth-modal{position:static;display:block;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;backdrop-filter:none;-webkit-backdrop-filter:none}
.account-pane h1{margin:0 0 32px;font-size:18px;font-weight:500;line-height:1.5;color:#303b4b}
#profileForm{width:100%;max-width:480px}
#securityOverview{width:100%;max-width:600px}
#securityBinding,#securityStatus{width:100%;max-width:480px}
#creditsView{max-width:520px}
.account-pane .profile-avatar-row{margin-bottom:32px}
.account-pane .profile-account-id{margin-top:24px}
.account-pane .profile-form-actions{margin-top:32px}
.account-pane .profile-contact-row{min-height:64px}
.account-pane .security-row{padding:20px 0}
.account-pane .security-row:first-child{padding-top:0}
#creditsView .balance-row{border:0;padding:0 0 28px;margin-bottom:0;align-items:center;color:#8c96a4}
#creditsView .balance-row strong{font-size:28px;font-weight:500;color:#3e4b5c}
#accountMenuLabel{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:950px){.account-page{padding:28px 28px 48px;min-height:calc(100svh - 60px)}}
@media(max-width:600px){.account-page{padding:24px 20px 40px}.account-page-tabs{gap:6px;margin-bottom:32px}.account-page-tabs button{padding:0 10px}.account-pane h1{font-size:16px;margin-bottom:28px}}
@media(pointer:coarse){.account-page-tabs button{min-height:44px}}

/* Bound details stay visible; editing expands directly beneath each row. */
.security-bindings{width:100%;max-width:680px}
.security-binding-row{border-bottom:1px solid #eef1f4}
.security-binding-row:last-child{border-bottom:0}
#securityView .security-row{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:24px;min-height:78px;padding:18px 0;border:0}
.security-bound-value{font-size:12px;font-weight:400;color:#8b96a4;overflow-wrap:anywhere}
.security-inline-action{min-width:56px;height:32px;padding:0 12px;border-radius:7px;background:#f1f4f7;color:#647386;font-size:12px}
.security-inline-action:hover,.security-inline-action[aria-expanded=true]{background:#e9eef4;color:#3f5066}
.security-inline-editor{width:100%;max-width:440px;padding:0 0 26px}
.security-input-action{display:flex;align-items:center;position:relative}
.account-pane .security-input-action input{padding-right:110px}
.security-input-action>button{position:absolute;top:4px;bottom:4px;right:4px;padding:0 12px;border-radius:6px;background:#edf1f6;color:#66768a;font-size:12px}
.security-input-action>button:hover{background:#e4eaf2;color:#3f5066}
.security-verify{max-width:320px;margin-top:22px}
.security-verify>label{margin-bottom:12px}
.security-confirm{margin-top:20px}
.security-wechat-qr{margin:0;width:160px}
.security-qr-refresh{display:flex;align-items:center;gap:7px;margin-top:12px}
.security-qr-refresh svg{width:13px;height:13px}
@media(max-width:600px){#securityView .security-row{grid-template-columns:88px minmax(0,1fr) auto;gap:12px}.security-inline-action{min-width:48px;padding:0 10px}.security-inline-editor{max-width:none}.security-verify{max-width:320px}}
@media(pointer:coarse){.security-inline-action{min-height:44px}}

/* Images use four scale detents; videos use two output-resolution detents. */
.scale-selection{width:calc(100% / var(--stop-count,4))}
.scale-stops{grid-template-columns:repeat(var(--stop-count,4),minmax(0,1fr))}
.scale-slider{left:0;width:100%}

/* Quiet asset grids; names appear only in the opened viewer. */
.history-item>.history-meta,.library-asset-open>.history-meta{display:block;margin-top:9px}
#detailModal.is-comparison-viewer{position:fixed;inset:0;width:100vw;height:100svh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#050506;color:#d5dae2;box-shadow:none;overflow:hidden;backdrop-filter:none;-webkit-backdrop-filter:none}
#detailModal.is-comparison-viewer::backdrop{background:#050506;backdrop-filter:none}
.is-comparison-viewer #detailContent{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}
.is-comparison-viewer>.modal-close{position:absolute;z-index:20;top:16px;right:14px;width:32px;height:32px;border-radius:8px;background:#ffffff0d;color:#a9b2bf}
.is-comparison-viewer>.modal-close:hover{background:#ffffff1a;color:#fff}
.is-comparison-viewer>.modal-close svg{width:17px;height:17px}
.detail-viewer-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(110px,1fr);align-items:center;gap:24px;flex:none;min-height:64px;padding:12px 64px 12px 20px;background:#08090c}
.detail-viewer-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;color:#a5aebb}
.detail-viewer-upscale{justify-self:end;min-height:32px;padding:0 13px;border-radius:7px;background:#ffffff0d;color:#c9d0da;font-size:12px}
.detail-viewer-upscale:hover{background:#ffffff1a}
.detail-zoom-tools{display:flex;align-items:center;justify-content:center;gap:5px;padding:3px;border-radius:9px;background:#ffffff08}
.detail-zoom-tools button{height:28px;min-width:32px;padding:0 9px;border-radius:6px;color:#959fae;font-size:12px}
.detail-zoom-tools button[aria-pressed=true]{background:#ffffff14;color:#edf1f7}
.detail-zoom-tools button:hover{background:#ffffff12;color:#fff}
#detailZoomValue{display:block;min-width:42px;text-align:center;color:#aeb7c4;font-size:12px;font-variant-numeric:tabular-nums}
.detail-compare{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;flex:1;min-height:0;min-width:0;padding:0 12px 12px;background:#050506}
.detail-compare:focus-visible{outline:none}
.detail-compare.is-single{grid-template-columns:minmax(0,1fr)}
.detail-compare-pane{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#050506}
.detail-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#050506;touch-action:none;user-select:none;-webkit-user-select:none;overscroll-behavior:contain}
.detail-image-layer{position:absolute;left:50%;top:50%;transform-origin:center;will-change:transform;pointer-events:none}
.detail-image-layer img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none;pointer-events:none}
.detail-pane-label{position:absolute;left:12px;top:12px;z-index:2;padding:6px 11px;border-radius:7px;background:#12161bd9;color:#c4ccd8;font-size:12px;line-height:1.5;pointer-events:none;backdrop-filter:blur(12px)}
.detail-panel-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;flex:none;padding:6px 8px 0;color:#768291;font-size:12px;font-variant-numeric:tabular-nums}
.detail-panel-meta>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detail-icon-button{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:7px;background:#ffffff08;color:#929ead}
.detail-icon-button:hover{background:#ffffff17;color:#fff}
.detail-icon-button svg{width:16px;height:16px}
.detail-missing{position:absolute;inset:0;display:grid;place-items:center;color:#515a68;font-size:12px;pointer-events:none}
.detail-compare.is-zoomed .detail-stage{cursor:grab}
.detail-compare.is-dragging .detail-stage{cursor:grabbing}
@media(max-width:760px){
 .detail-viewer-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding-left:14px}
 .detail-viewer-name{grid-column:1;grid-row:1}
 .detail-viewer-upscale{grid-column:2;grid-row:1}
 .detail-zoom-tools{grid-column:1/-1;grid-row:2;justify-self:center}
 .detail-compare{gap:6px;padding:0 6px 6px}
 .detail-pane-label{left:7px;top:7px;padding:5px 8px}
 .detail-panel-meta{padding-left:3px;padding-right:3px;gap:4px}
}
@media(pointer:coarse){.detail-zoom-tools button,.detail-viewer-upscale{min-height:36px}.detail-icon-button{width:36px;height:36px}}

/* Click or tap the black space to leave the full-screen photo comparison. */
#detailModal.is-comparison-viewer>.modal-close{display:none}
.photo-stage:not(.is-zoomed){cursor:zoom-in}
.photo-stage:focus-visible{outline:2px solid #9a9fa84d;outline-offset:4px}
.is-comparison-viewer .detail-viewer-toolbar{padding-right:20px}
@media(max-width:760px){.is-comparison-viewer .detail-viewer-toolbar{padding-right:14px}}

/* Unified tactile rails: press, resist, follow, then settle into the next detent. */
.scale-control .scale-selection,
.asset-filters .asset-detent .asset-detent-thumb,
.auth-tabs .auth-tab-thumb{
 transition:transform 280ms cubic-bezier(.22,1.15,.38,1);
}
.scale-control.is-dragging .scale-selection,
.asset-filters .asset-detent.is-dragging .asset-detent-thumb,
.auth-tabs.is-dragging .auth-tab-thumb{
 transition:transform 145ms cubic-bezier(.18,.65,.3,1);
}
.scale-control.is-snapping .scale-selection,
.asset-filters .asset-detent.is-snapping .asset-detent-thumb,
.auth-tabs.is-snapping .auth-tab-thumb{
 transition:transform 210ms cubic-bezier(.62,0,.2,1.12) 26ms;
}
.scale-selection-glass,.asset-detent-glass,.auth-tab-glass{
 transform:translateY(0) scale(1);
 transition:transform 260ms cubic-bezier(.2,1.35,.4,1),box-shadow 180ms ease,filter 150ms ease;
}
.scale-control.is-dragging .scale-selection-glass,
.asset-detent.is-dragging .asset-detent-glass,
.auth-tabs.is-dragging .auth-tab-glass{
 transform:translateY(1px) scale(.98,.95) rotate(var(--rail-lean,0deg));
 filter:brightness(.98);
 box-shadow:0 1px 4px #282f3f22,inset 0 1px 2px #ffffffdd,inset 0 -1px 2px #282f3f0d;
 transition:transform 145ms ease-out,box-shadow 130ms ease,filter 130ms ease;
}
.comparison-handle{
 transition:transform 240ms cubic-bezier(.2,1.35,.4,1),box-shadow 140ms ease,filter 140ms ease;
}
.photo-stage.is-adjusting .comparison-handle{
 transform:translate(-50%,-50%) scale(.92);
 filter:brightness(.96);
 box-shadow:0 1px 5px #0003,inset 0 1px 3px #ffffffb3;
}
@media(prefers-reduced-motion:reduce){
 .scale-control .scale-selection,.asset-filters .asset-detent .asset-detent-thumb,.auth-tabs .auth-tab-thumb,
 .scale-selection-glass,.asset-detent-glass,.auth-tab-glass,.comparison-handle{transition:none!important}
 .scale-control.is-dragging .scale-selection-glass,.asset-detent.is-dragging .asset-detent-glass,
 .auth-tabs.is-dragging .auth-tab-glass{transform:none}
}

/* Rail focus stays on the selected label, without an outer dark frame. */
#scaleControl,#scaleControl:has(.scale-slider:focus-visible),
#scaleControl .scale-slider:focus-visible,
.asset-filters .asset-detent,.asset-filters .asset-detent button:focus-visible,
.auth-modal .auth-tabs,.auth-modal .auth-tabs button:focus-visible,
.photo-stage .comparison-slider:focus-visible,
.photo-stage:has(.comparison-slider:focus-visible) .comparison-handle{
 outline:none;border:0;
}
#scaleControl:has(.scale-slider:focus-visible) .scale-stop.active,
.asset-filters .asset-detent button:focus-visible,
.auth-modal .auth-tabs button:focus-visible{
 color:#303640;font-weight:600;
}

/* A quiet, full-page wallet. Money and credits stay separate in the hierarchy. */
#creditsView{max-width:none;color:#41464f;--wallet-line:#edf0f3}
.wallet-page-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:38px;gap:20px}
.account-pane .wallet-page-heading h1{margin:0 0 8px;font-size:20px;font-weight:500;color:#282d34}
.wallet-page-heading p{font-size:12px;color:#9299a3;line-height:1.5}
.wallet-preview-label{display:inline-flex;align-items:center;flex:none;font-size:11px;font-weight:400;line-height:1.4;color:#9a9fa8;background:#f6f7f8;border-radius:5px;padding:5px 8px}
.wallet-overview{display:flex;align-items:center;gap:60px;padding-bottom:32px;margin-bottom:36px;border-bottom:1px solid var(--wallet-line)}
.wallet-available>span{display:block;color:#9299a3;margin-bottom:10px}
.wallet-available>div{display:flex;align-items:baseline;gap:10px;min-width:150px}
#creditsView .wallet-available strong{font-size:36px;line-height:1.15;font-weight:500;letter-spacing:-1px;color:#2d333b;font-variant-numeric:tabular-nums}
.wallet-available>div>span{font-size:12px;color:#9299a3}
.wallet-breakdown{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:48px;margin:0;padding:0}
.wallet-breakdown dt{color:#9299a3;font-size:12px;margin:0 0 14px}
.wallet-breakdown dd{margin:0;color:#4a515b;font-size:18px;font-weight:400;font-variant-numeric:tabular-nums}
.wallet-purchase-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:38px;align-items:start;margin-bottom:48px}
.wallet-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
#creditsView .wallet-section-heading h2{font-size:14px;font-weight:500;line-height:1.5;color:#353b44;margin:0}
.wallet-section-heading>span{font-size:11px;color:#9a9fa8}
.wallet-package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.wallet-package-grid button{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;height:92px;padding:16px;border:1px solid #e8ebef;border-radius:12px;background:#fff;text-align:left;transition:background 150ms,border-color 150ms,transform 150ms}
.wallet-package-grid button strong{font-size:18px;font-weight:500;color:#414650;line-height:1.2;letter-spacing:-.3px}
.wallet-package-grid button span{font-size:11px;color:#9a9fa8;white-space:nowrap;line-height:1.4}
.wallet-package-grid button[aria-checked=true]{border-color:#626a75;background:#f8f9fa}
.wallet-package-grid button[aria-checked=true] strong{color:#252b34}
.wallet-package-grid button>svg{position:absolute;top:10px;right:9px;width:12px;height:12px;stroke-width:2;color:#626a75}
.wallet-package-grid button:hover{background:#f8f9fa}
.wallet-package-grid button:active{transform:scale(.98)}
.wallet-package-grid button:focus-visible{outline:2px solid #9a9fa84d;outline-offset:3px}
.wallet-caption{margin-top:18px;color:#a1a7af;font-size:11px;line-height:1.7}
.wallet-return{display:inline-flex;align-items:center;gap:14px;color:#5d6570;font-size:12px;padding:0;margin-top:22px}
.wallet-return svg{width:14px;height:14px}
.wallet-checkout{padding:24px;background:#f7f8fa;border-radius:16px}
.wallet-eyebrow{display:block;font-size:11px;color:#9299a3;margin-bottom:10px}
.wallet-purchase-total{display:flex;gap:8px;align-items:baseline;margin-bottom:24px}
.wallet-purchase-total strong{font-size:30px;line-height:1.2;letter-spacing:-.8px;font-weight:500;font-variant-numeric:tabular-nums;color:#2c333c}
.wallet-purchase-total>span{font-size:11px;color:#9299a3}
.wallet-pay-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;color:#9299a3;font-size:12px}
.wallet-pay-row strong{font-size:16px;color:#454d58;font-weight:500}
#creditsView .wallet-pay-button{height:40px;border-radius:9px;font-size:12px;gap:0;background:#33373d}
.wallet-payment-note{margin-top:13px;font-size:11px;color:#a1a7af;line-height:1.8}
.wallet-payment-status{display:flex;align-items:center;flex-direction:column;gap:10px;text-align:center;padding:22px 0 8px;color:#707987}
.wallet-payment-mark{width:48px;height:48px;display:grid;place-items:center;background:#fff;border-radius:12px;color:#9da5b0}
.wallet-payment-mark svg{width:22px;height:22px}
.wallet-payment-status strong{font-size:12px;font-weight:500}
.wallet-payment-status p{font-size:11px;line-height:1.8;color:#9a9fa8}
.wallet-topup-advice{font-size:11px;line-height:1.8;color:#846c49;margin-top:12px}
.wallet-records{margin:0 0 32px}
.wallet-record-filter select{border:0;background:#f6f7f8;border-radius:7px;color:#8f98a4;font-size:11px;height:30px;padding:0 24px 0 10px;cursor:pointer;max-width:140px}
.wallet-ledger-head,.wallet-ledger-row{display:grid;grid-template-columns:145px minmax(0,1fr) 110px 78px;gap:20px;align-items:center}
.wallet-ledger-head{padding:0 0 12px;color:#a1a7af;font-size:11px;border-bottom:1px solid var(--wallet-line)}
.wallet-ledger-head>span:nth-last-child(-n+2),.wallet-ledger-row>span:nth-last-child(-n+2){text-align:right;font-variant-numeric:tabular-nums}
.wallet-ledger-row{min-height:74px;border-bottom:1px solid var(--wallet-line);font-size:12px;color:#727c89}
.wallet-ledger-row>div{display:flex;flex-direction:column;gap:6px}
.wallet-ledger-row strong{font-size:12px;font-weight:400;color:#4b5563;line-height:1.5}
.wallet-ledger-row time{font-size:10px;color:#a5acb5;line-height:1.5}
.wallet-ledger-detail{font-size:11px;line-height:1.8;min-width:0;overflow-wrap:anywhere}
.wallet-ledger-detail small{display:block;font-size:10px;color:#a5acb5}
.wallet-ledger-amount{font-size:11px;color:#707987}
.wallet-ledger-amount.is-positive{color:#536e62}
.wallet-records-empty{text-align:center;color:#a1a7af;padding:32px 0;font-size:12px}
.wallet-rules{border:0;margin-top:22px}
.wallet-rules>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;color:#939ca8;cursor:pointer;font-size:12px;padding:4px 0}
.wallet-rules>summary::-webkit-details-marker{display:none}
.wallet-rules>summary svg{width:12px;height:12px;transition:transform .2s}
.wallet-rules[open]>summary svg{transform:rotate(90deg)}
.wallet-rules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;padding-top:24px}
.wallet-rules h3{font-size:12px;font-weight:500;color:#596371;margin:0 0 12px}
.wallet-rules p{font-size:11px;color:#99a1ac;line-height:1.9;margin:0 0 10px}
.wallet-inline-link{font-size:11px;color:#737f90;padding:0;line-height:1.8}
.credit-estimate-note{margin-top:9px;font-size:10px;line-height:1.7;color:#9ca4af}
.scale-stop.is-unavailable{opacity:.35;text-decoration:line-through;text-decoration-thickness:1px}
.quote-modal{width:440px;max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);overflow:auto;padding:30px;border-radius:16px;border:1px solid #e8ebef;color:#49525f;background:#fff}
.quote-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px;padding-right:8px}
.quote-heading h2{font-size:16px;font-weight:500;color:#303943;margin:0}
.quote-heading .wallet-preview-label{font-size:10px;margin-right:4px}
.quote-modal>.modal-close{top:8px;right:6px;width:22px;height:22px}
.quote-modal>.modal-close svg{width:13px;height:13px}
.quote-media-list{max-height:230px;overflow:auto;margin-bottom:22px}
.quote-media-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f0f2f5}
.quote-media-icon{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;flex:none;color:#929ba8;background:#f6f7f9}
.quote-media-icon svg{width:16px;height:16px}
.quote-media-row>div{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.quote-media-row>div strong{font-size:11px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5d6878}
.quote-media-row>div span{font-size:10px;color:#a1a8b2;line-height:1.5}
.quote-media-row>strong{font-size:12px;white-space:nowrap;font-weight:500;color:#4f5967}
.quote-totals{display:flex;flex-direction:column;gap:15px;font-size:12px}
.quote-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;color:#939ca8}
.quote-totals>div>strong{font-size:22px;font-weight:500;color:#323d4b;letter-spacing:-.5px}
.quote-totals>div>span:last-child{color:#637082}
.quote-source{font-size:10px;color:#a1a8b2;line-height:1.8;margin:18px 0 0}
.quote-shortage{font-size:11px;line-height:1.8;color:#89704d;margin:18px 0 0}
.quote-service-note{font-size:10px;color:#a9afb7;line-height:1.7;margin:18px 0 20px}
.quote-modal .black-button{height:40px;border-radius:9px;font-size:12px}
@media(max-width:1180px){.wallet-purchase-layout{grid-template-columns:minmax(0,1fr) 240px;gap:24px}.wallet-package-grid{gap:10px}.wallet-package-grid button{padding:12px;height:84px}.wallet-package-grid button strong{font-size:16px}.wallet-checkout{padding:20px}.wallet-breakdown{gap:30px}}
@media(max-width:950px){.wallet-overview{gap:40px}.wallet-purchase-layout{grid-template-columns:minmax(0,1fr) 250px}.wallet-rules-grid{gap:24px}}
@media(max-width:780px){.wallet-purchase-layout{grid-template-columns:1fr;gap:24px}.wallet-checkout{display:grid;grid-template-columns:1fr 1fr;column-gap:28px}.wallet-checkout .wallet-eyebrow{grid-column:1}.wallet-purchase-total{grid-column:1;margin:0}.wallet-pay-row{grid-column:2;grid-row:1 / span 2;margin:0;justify-content:flex-end;gap:16px}.wallet-pay-button{grid-column:2;grid-row:3}.wallet-payment-note{grid-column:1;grid-row:3;margin:0;max-width:220px}.wallet-payment-status,.wallet-topup-advice{grid-column:1 / -1}.wallet-overview{justify-content:space-between;gap:20px}.wallet-breakdown{gap:24px;grid-template-columns:repeat(3,minmax(65px,1fr))}.wallet-ledger-head,.wallet-ledger-row{grid-template-columns:100px minmax(0,1fr) 85px 58px;gap:12px}}
@media(max-width:520px){.wallet-page-heading{margin-bottom:28px}.wallet-overview{align-items:flex-start;flex-direction:column;gap:26px;margin-bottom:28px;padding-bottom:28px}.wallet-breakdown{width:100%;gap:18px}.wallet-breakdown dt{margin-bottom:8px;font-size:11px}.wallet-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wallet-package-grid button{height:80px;padding:16px}.wallet-section-heading{gap:10px}.wallet-section-heading>span{font-size:10px}.wallet-checkout{display:block;padding:22px}.wallet-purchase-total{margin:0 0 20px}.wallet-pay-row{justify-content:space-between;margin-bottom:20px}.wallet-payment-note{margin-top:12px;max-width:none}.wallet-rules-grid{grid-template-columns:1fr;gap:18px}.wallet-ledger-head,.wallet-ledger-row{grid-template-columns:100px minmax(0,1fr) 78px;gap:10px}.wallet-ledger-head>span:last-child,.wallet-ledger-row>span:last-child{display:none}.wallet-ledger-row>span:nth-last-child(2){text-align:right}.wallet-ledger-detail{font-size:10px}.wallet-record-filter select{font-size:10px}.quote-modal{padding:28px 22px}.wallet-purchase-layout{margin-bottom:36px}}
@media(pointer:coarse){.wallet-pay-button,.wallet-record-filter select,.wallet-return,.wallet-inline-link,.wallet-rules>summary{min-height:44px}}
@media(prefers-reduced-motion:reduce){.wallet-package-grid button,.wallet-rules>summary svg{transition:none}.wallet-package-grid button:active{transform:none}}

/* Credits overview: one balance band, one quiet chart, then the detailed ledger. */
#walletDashboard .wallet-page-heading{align-items:center;margin-bottom:26px}
#walletDashboard .wallet-page-heading h1{margin:0;font-size:18px;color:#292b30}
.wallet-balance-banner{display:flex;align-items:center;justify-content:space-between;gap:30px;background:#f5f5f6;border-radius:16px;padding:28px 30px;margin-bottom:40px}
.wallet-balance-main>span{font-size:12px;color:#929297}
.wallet-balance-main>div{margin:15px 0 12px;line-height:1}
#creditsView .wallet-balance-main strong{font-size:38px;line-height:1;font-weight:500;letter-spacing:-1px;color:#282a2e;font-variant-numeric:tabular-nums}
.wallet-balance-main p{display:flex;align-items:center;gap:6px;font-size:10px;color:#a4a4a9;line-height:1.5}
.wallet-balance-main p>span{font-variant-numeric:tabular-nums;color:#818187}
.wallet-balance-main p>i{margin:0 5px;font-style:normal;color:#c4c4c8}
.wallet-recharge-entry{display:flex;align-items:center;justify-content:center;height:46px;padding:0 26px;border:0;border-radius:12px;background:#dedee0;color:#303136;font-size:13px;font-weight:600;letter-spacing:.02em;white-space:nowrap;transition:background .15s,transform .15s}
.wallet-recharge-entry:hover{background:#d5d5d8}
.wallet-recharge-entry:active{background:#cdcdcf;transform:translateY(1px) scale(.98)}
.wallet-usage{margin-bottom:38px}
#creditsView .wallet-usage-heading{margin-bottom:22px}
#walletDashboard .wallet-section-heading h2{color:#36383e}
.wallet-usage-filters{display:flex;gap:8px;align-items:center}
.wallet-usage-filters label,.wallet-record-filter{margin:0!important;display:block!important}
.wallet-usage-filters select,.wallet-record-filter select{height:30px;background:#f5f5f6;border:0;border-radius:7px;padding:0 24px 0 10px;font-size:11px;color:#8b8b93;cursor:pointer;max-width:142px}
.wallet-usage-metrics{display:flex;gap:54px;align-items:baseline;margin:0 0 22px;padding:0 2px}
.wallet-usage-metrics>div{display:flex;align-items:baseline;gap:14px}
.wallet-usage-metrics>div>span{font-size:11px;color:#9b9ba3}
.wallet-usage-metrics strong{font-size:22px;line-height:1.4;font-weight:500;letter-spacing:-.5px;color:#47474f;font-variant-numeric:tabular-nums}
.wallet-chart{position:relative;background:#f6f6f7;border-radius:16px;padding:28px 24px 18px}
.wallet-chart-area{display:flex;height:194px;gap:12px}
.wallet-chart-y{width:28px;flex:none;display:flex;flex-direction:column;justify-content:space-between;font-size:10px;line-height:1;color:#b2b2b8;text-align:right;transform:translateY(-4px)}
.wallet-chart-grid{position:relative;min-width:0;flex:1;background:repeating-linear-gradient(to top,#e9e9ec 0,#e9e9ec 1px,transparent 1px,transparent 25%)}
.wallet-chart-columns{position:absolute;inset:0 2px;display:grid;grid-template-columns:repeat(var(--days,30),minmax(0,1fr));gap:clamp(1px,.4vw,7px);align-items:end}
.wallet-day-column{position:relative;display:flex;align-items:flex-end;justify-content:center;min-width:0;height:100%;padding:0;border:0;outline:none!important;background:transparent}
.wallet-day-bar{display:flex;flex-direction:column-reverse;width:100%;max-width:40px;border-radius:4px 4px 0 0;overflow:hidden;opacity:.88;transition:opacity .15s,filter .15s;min-height:0}
.wallet-day-bar>i{display:block;width:100%;flex:none;min-height:0}
.usage-image,.legend-image{background:#5a5d66}
.usage-video,.legend-video{background:#aeb1ba}
.usage-other,.legend-other{background:#cfd1d8}
.wallet-day-column:hover .wallet-day-bar,.wallet-day-column:focus-visible .wallet-day-bar,.wallet-day-column.is-selected .wallet-day-bar{opacity:1;filter:brightness(.88)}
.wallet-day-column.is-muted .wallet-day-bar{opacity:.27}
.wallet-day-tooltip{position:absolute;bottom:calc(100% + 12px);left:50%;z-index:2;display:flex;flex-direction:column;gap:6px;min-width:104px;max-width:150px;padding:11px 12px;border:1px solid #ededf0;border-radius:9px;background:#fff;box-shadow:0 5px 20px #30313a0b;transform:translate(-50%,4px);opacity:0;visibility:hidden;pointer-events:none;text-align:left;transition:opacity .12s,transform .12s;color:#686974}
.wallet-day-tooltip strong{font-size:10px;font-weight:400;color:#a0a0a8}
.wallet-day-tooltip>span{font-size:12px;white-space:nowrap}
.wallet-day-tooltip small{font-size:10px;font-weight:400;color:#a0a0a8}
.wallet-day-column:hover .wallet-day-tooltip,.wallet-day-column:focus-visible .wallet-day-tooltip{opacity:1;visibility:visible;transform:translate(-50%,0)}
.wallet-day-column:first-child .wallet-day-tooltip{left:0;transform:translate(0,4px)}
.wallet-day-column:last-child .wallet-day-tooltip{left:auto;right:0;transform:translate(0,4px)}
.wallet-day-column:first-child:hover .wallet-day-tooltip,.wallet-day-column:first-child:focus-visible .wallet-day-tooltip,.wallet-day-column:last-child:hover .wallet-day-tooltip,.wallet-day-column:last-child:focus-visible .wallet-day-tooltip{transform:translate(0,0)}
.wallet-chart-empty{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#b7b7be;font-size:11px}
.wallet-chart-dates{position:relative;height:26px;margin-left:40px;margin-top:10px;color:#b0b0b7;font-size:10px;line-height:1.5}
.wallet-chart-dates>span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.wallet-chart-dates>span.is-first{transform:none}
.wallet-chart-dates>span.is-last{transform:translateX(-100%)}
.wallet-chart-legend{display:flex;gap:20px;align-items:center;padding-left:40px;margin-top:0;font-size:10px;color:#9999a3}
.wallet-chart-legend>span{display:flex;gap:7px;align-items:center}
.wallet-chart-legend i{display:block;width:6px;height:6px;border-radius:50%}
#walletDashboard .wallet-records{margin-bottom:0}
#walletDashboard .wallet-section-heading{margin-bottom:18px}
.wallet-record-title{display:flex;gap:14px;align-items:center;min-width:0}
.wallet-day-filter{border-radius:5px;background:#f3f3f5;color:#9a9aa2;font-size:10px;line-height:1.5;padding:4px 7px;white-space:nowrap}
.wallet-table-scroll{width:100%;overflow-x:auto;border-radius:12px}
.wallet-history-table{width:100%;min-width:580px;border-collapse:collapse;text-align:left;table-layout:fixed;font-size:11px;color:#92929a}
.wallet-history-table th{height:42px;background:#f5f5f6;font-weight:400;color:#9c9ca4;padding:0 18px;font-size:10px;white-space:nowrap}
.wallet-history-table th:first-child{width:170px}
.wallet-history-table th:nth-child(2){width:80px}
.wallet-history-table th:nth-last-child(2){width:100px;text-align:right}
.wallet-history-table th:last-child{width:100px;text-align:right}
.wallet-history-table td{height:52px;border-bottom:1px solid #f1f1f3;padding:12px 18px;line-height:1.7;overflow-wrap:anywhere}
.wallet-history-table td:first-child{color:#9e9ea6;font-size:10px;white-space:nowrap}
.wallet-history-table td:nth-child(3){color:#878791}
.wallet-history-table td:nth-last-child(-n+2){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.wallet-history-table .wallet-table-amount{color:#5f606a}
.wallet-record-status{display:inline-block;line-height:1.5;background:#f2f2f4;border-radius:4px;padding:3px 7px;font-size:10px;color:#8b8b96}
.wallet-back{display:inline-flex;align-items:center;font-size:11px;color:#a0a0aa;padding:0;margin:0 0 26px;line-height:1.6}
#walletRechargePanel .wallet-page-heading{align-items:center;margin-bottom:30px}
#walletRechargePanel .wallet-page-heading h2{font-size:18px;font-weight:500;color:#30323a;margin:0}
#walletRechargePanel .wallet-purchase-layout{margin-bottom:30px}
@media(max-width:780px){.wallet-balance-banner{padding:26px;margin-bottom:34px}.wallet-chart{padding:24px 18px 16px}.wallet-chart-area{height:180px}.wallet-usage-metrics{gap:34px}.wallet-history-table th,.wallet-history-table td{padding-left:14px;padding-right:14px}}
@media(max-width:520px){#walletDashboard .wallet-page-heading{margin-bottom:22px}.wallet-balance-banner{padding:22px;gap:14px;border-radius:13px}.wallet-balance-main p{gap:4px;font-size:9px}.wallet-balance-main p>i{margin:0 2px}.wallet-recharge-entry{height:44px;font-size:12px;padding:0 20px;border-radius:11px}#creditsView .wallet-balance-main strong{font-size:32px}.wallet-usage-filters{gap:6px}.wallet-usage-filters select{font-size:10px;padding-left:8px;padding-right:18px;max-width:100px;height:28px}.wallet-usage-metrics{gap:26px;margin-bottom:18px}.wallet-usage-metrics>div{gap:9px}.wallet-usage-metrics strong{font-size:19px}.wallet-usage-metrics>div>span{font-size:10px}.wallet-chart{padding:22px 12px 14px;border-radius:13px}.wallet-chart-area{height:162px;gap:8px}.wallet-chart-y{width:23px;font-size:9px}.wallet-chart-dates{margin-left:31px;font-size:9px;height:22px}.wallet-chart-legend{padding-left:31px;font-size:9px;gap:14px}.wallet-record-title{gap:6px;flex-wrap:wrap}.wallet-day-filter{font-size:9px;padding:3px 5px}.wallet-day-tooltip{min-width:90px}.wallet-day-tooltip>span{font-size:11px}.wallet-table-scroll{border-radius:9px}}
@media(pointer:coarse){.wallet-recharge-entry,.wallet-back,.wallet-usage-filters select,.wallet-day-filter{min-height:44px}}
@media(prefers-reduced-motion:reduce){.wallet-recharge-entry,.wallet-day-bar,.wallet-day-tooltip{transition:none}.wallet-recharge-entry:active{transform:none}}

/* Wallet filters share the physical rail surface; custom dates open a range calendar. */
.wallet-balance-main>div{margin-bottom:0}
.wallet-usage-filters.asset-filters{flex-direction:row;align-items:center;gap:12px;margin:0;flex-wrap:wrap;justify-content:flex-end}
.asset-filters .wallet-filter-rail.wallet-kind-rail{width:180px}
.asset-filters .wallet-filter-rail.wallet-period-rail{width:280px}
.asset-filters .wallet-filter-rail button{font-size:11px;padding:0 8px;height:30px;line-height:1;white-space:nowrap}
.wallet-calendar-anchor{position:relative;z-index:15}
.wallet-custom-range{font-size:10px;color:#a2a2ab;text-align:right;line-height:1.5;margin:-10px 0 20px}
.usage-total{background:#646670}
.wallet-chart{padding-bottom:8px}
.wallet-calendar{position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:560px;padding:20px;background:#fffffff5;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid #eceef1;border-radius:14px;box-shadow:0 12px 40px #272a351c;max-height:70svh;overflow:auto;color:#626671}
.wallet-calendar.opens-up{top:auto;bottom:calc(100% + 10px)}
.wallet-calendar-navigation{position:absolute;inset:15px 15px auto;display:flex;justify-content:space-between;pointer-events:none}
.wallet-calendar-navigation>button{width:30px;height:30px;display:grid;place-items:center;pointer-events:auto;color:#a1a6b0;border-radius:6px}
.wallet-calendar-navigation>button:first-child svg{transform:rotate(180deg)}
.wallet-calendar-navigation svg{width:12px;height:12px}
.wallet-calendar-navigation>button:disabled{opacity:.25}
.wallet-calendar-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.wallet-calendar-month>h3{font-size:12px;font-weight:500;text-align:center;line-height:20px;margin:0 22px 18px;color:#565b66}
.wallet-calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;text-align:center;font-size:10px;color:#b1b5bc;line-height:1.5;margin-bottom:8px}
.wallet-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px 0;grid-auto-rows:30px}
.wallet-calendar-days>button{position:relative;display:grid;place-items:center;min-width:0;padding:0;border:0;border-radius:0;font-size:11px;color:#757b87;line-height:1;font-variant-numeric:tabular-nums}
.wallet-calendar-days>button:disabled{color:#d2d5da;cursor:default}
.wallet-calendar-days>button.is-range{background:#f0f1f4;color:#747b88}
.wallet-calendar-days>button.is-range-start{border-top-left-radius:7px;border-bottom-left-radius:7px}
.wallet-calendar-days>button.is-range-end{border-top-right-radius:7px;border-bottom-right-radius:7px}
.wallet-calendar-days>button.is-endpoint{background:#4b4f59;color:#fff;border-radius:7px}
.wallet-calendar-days>button.is-today:not(.is-endpoint)::after{content:'';position:absolute;bottom:3px;left:calc(50% - 1px);width:2px;height:2px;background:#939aa7;border-radius:50%}
.wallet-calendar-days>button:not(:disabled):not(.is-endpoint):hover{background:#e7e9ee;border-radius:6px}
.wallet-calendar button:focus-visible{outline:none;box-shadow:inset 0 0 0 1px #aeb5c2}
.wallet-calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid #f1f2f4}
.wallet-calendar-footer>span{font-size:10px;line-height:1.6;color:#a7adb7;font-variant-numeric:tabular-nums}
.wallet-calendar-footer>div{display:flex;gap:8px;flex-shrink:0}
.wallet-calendar-footer button{height:30px;padding:0 12px;border-radius:6px;font-size:11px;color:#969ca8}
.wallet-calendar-footer button:last-child{background:#515662;color:#fff}
.wallet-calendar-footer button:last-child:disabled{background:#f0f1f4;color:#b2b7c0}
@media(max-width:1050px){.wallet-usage-heading{align-items:flex-start}.wallet-usage-heading>h2{padding-top:10px}.wallet-usage-filters.asset-filters{gap:10px}.asset-filters .wallet-filter-rail.wallet-kind-rail{width:158px}.asset-filters .wallet-filter-rail.wallet-period-rail{width:252px}}
@media(max-width:700px){.wallet-usage-heading{flex-direction:column;gap:18px}.wallet-usage-heading>h2{padding-top:0}.wallet-usage-filters.asset-filters{width:100%;justify-content:flex-start;gap:10px}.wallet-calendar-anchor{flex:1;min-width:240px}.asset-filters .wallet-filter-rail.wallet-period-rail{width:100%}.wallet-custom-range{text-align:left;margin-top:-5px}.wallet-calendar{max-width:calc(100vw - 40px)}}
@media(max-width:600px){.wallet-calendar{width:min(560px,calc(100vw - 40px));padding:18px}.wallet-calendar-months{grid-template-columns:1fr;gap:24px}.wallet-calendar-month>h3{margin-bottom:14px}.wallet-calendar-days{grid-auto-rows:34px}.wallet-calendar-week{font-size:10px}.wallet-calendar-days>button{font-size:12px}.wallet-calendar-footer{gap:10px;position:sticky;bottom:-18px;background:#fff;padding-bottom:4px}.wallet-calendar-footer>span{font-size:9px}.wallet-calendar-navigation{top:12px;left:13px;right:13px}.wallet-calendar-month:nth-child(2)>h3{margin-left:0;margin-right:0}.wallet-calendar-anchor{min-width:0;flex:1 1 100%}.asset-filters .wallet-filter-rail.wallet-kind-rail{width:174px}}
@media(pointer:coarse){.asset-filters .wallet-filter-rail button{min-height:40px}.wallet-calendar-days{grid-auto-rows:40px}.wallet-calendar-footer button{min-height:40px}.wallet-calendar-navigation>button{height:36px;width:36px}}

/* Three compact Chinese totals, followed by the same weighted record rail. */
.wallet-usage-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px;padding:0;align-items:stretch}
.wallet-usage-metrics>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;min-height:94px;padding:19px 22px;border-radius:13px;background:#f5f5f6}
.wallet-usage-metrics>div>span{font-size:11px;line-height:1.5;color:#91929b}
.wallet-usage-metrics strong{font-size:25px;font-weight:500;line-height:1.1;color:#41434c;letter-spacing:-.6px}
.wallet-record-filters.asset-filters{display:block;margin:0;min-width:0;flex:0 1 590px}
.asset-filters .wallet-filter-rail.wallet-record-rail{width:100%}
.asset-filters .wallet-record-rail button{padding:0 5px;font-size:11px}
.wallet-tab-short{display:none}
@media(max-width:850px){#walletDashboard .wallet-records .wallet-section-heading{flex-direction:column;align-items:stretch;gap:16px}.wallet-record-filters.asset-filters{flex:none;width:100%}.wallet-usage-metrics>div{padding:17px 18px;min-height:88px}.wallet-usage-metrics strong{font-size:23px}}
@media(max-width:600px){.wallet-usage-metrics{gap:8px;margin-bottom:16px}.wallet-usage-metrics>div{min-height:82px;gap:11px;padding:14px 12px;border-radius:10px}.wallet-usage-metrics>div>span{font-size:10px}.wallet-usage-metrics strong{font-size:22px}.asset-filters .wallet-record-rail button{padding:0 2px;font-size:10px}.asset-filters .wallet-record-rail .wallet-tab-full{display:none}.asset-filters .wallet-record-rail .wallet-tab-short{display:block}}

/* Restrained color identifies media usage and completed settlement. */
.usage-image{background:#3c83b5}
.usage-video{background:#8b78c9}
.usage-other{background:#a9b3c1}
.wallet-day-bar{opacity:.95}
.wallet-day-tooltip .wallet-tooltip-breakdown{display:flex;align-items:center;gap:6px;font-size:10px;color:#969eaa;white-space:nowrap}
.wallet-tooltip-breakdown>i{width:6px;height:6px;border-radius:2px;flex:none}
.wallet-tooltip-breakdown>b{margin-left:auto;font-size:10px;font-weight:400;color:#747f90;font-variant-numeric:tabular-nums}
.wallet-record-status{background:#258355;color:#fff;border-radius:4px;padding:3px 8px;line-height:1.5}
.wallet-history-table{min-width:780px}
.wallet-history-table th:first-child{width:164px}
.wallet-history-table th:nth-child(2){width:58px}
.wallet-history-table th:nth-child(4){width:76px;text-align:right}
.wallet-history-table th:nth-child(5){width:82px;text-align:center}
.wallet-history-table th:last-child{width:172px;text-align:left}
.wallet-history-table td:nth-child(4){text-align:right}
.wallet-history-table td:nth-child(5){text-align:center}
.wallet-history-table td:last-child{text-align:left;font-size:10px;color:#9e9ea6;white-space:nowrap}
.wallet-process-id{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 7px;border-radius:5px;background:#f1f3f6;color:#788393;font-size:10px;line-height:1.5;vertical-align:middle;transition:background .15s,color .15s}
.wallet-process-id>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px}
.wallet-process-id>svg{width:10px;height:10px;opacity:.45;flex:none}
.wallet-process-id:hover,.wallet-process-id:focus-visible{background:#e9eef5;color:#59758f}
.wallet-process-id:hover>svg,.wallet-process-id:focus-visible>svg{opacity:.85}
@media(pointer:coarse){.wallet-process-id{min-height:36px}.wallet-process-id>svg{opacity:.7}}
@media(prefers-reduced-motion:reduce){.wallet-process-id{transition:none}}

/* Recharge: clear amount hierarchy and a reserved provider QR area. */
.recharge-modal{width:820px;max-width:calc(100vw - 40px);max-height:calc(100svh - 48px);padding:34px 36px 36px;border:1px solid #e9ebef;border-radius:20px;background:#fff;color:#555d69;box-shadow:0 24px 80px #20263226;overflow:auto}
.recharge-modal::backdrop{background:#1b223b33;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.recharge-modal>.modal-close{top:13px;right:13px;width:26px;height:26px;color:#a7adb8}
.recharge-modal>.modal-close svg{width:14px;height:14px}
.recharge-modal #walletRechargePanel .wallet-page-heading{align-items:center;margin:0 18px 30px 0;gap:20px}
.recharge-modal #walletRechargePanel .wallet-page-heading h2{margin:0;font-size:19px;line-height:1.5;font-weight:500;color:#303641}
.recharge-modal .wallet-page-heading .wallet-preview-label{padding:0;background:none;font-size:11px;color:#9198a3;white-space:nowrap}
.recharge-modal #walletRechargePanel .wallet-purchase-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:stretch;margin:0}
.recharge-modal .wallet-packages{display:flex;flex-direction:column;min-width:0}
.recharge-modal .wallet-section-heading{margin-bottom:14px}
.recharge-modal .wallet-section-heading h2{margin:0;font-size:12px;color:#89919e;font-weight:400}
.recharge-modal .wallet-package-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:12px;flex:1}
.recharge-modal .wallet-package-grid button{height:auto;min-height:100px;padding:20px 10px;border-radius:12px;align-items:center;justify-content:center;gap:10px;text-align:center;background:#fff;border-color:#e8eaee}
.recharge-modal .wallet-package-grid button strong{font-size:20px;letter-spacing:-.04em;font-weight:500;color:#3a424e}
.recharge-modal .wallet-package-grid button span{font-size:11px;color:#929aa6}
.recharge-modal .wallet-package-grid button:hover{background:#f8f9fa;border-color:#c8cdd5}
.recharge-modal .wallet-package-grid button[aria-checked=true]{border-color:#525d6c;background:#f4f6f8}
.recharge-modal .wallet-package-grid button[aria-checked=true] strong{color:#29313c}
.recharge-modal .wallet-package-grid button>svg{width:15px;height:15px;top:8px;right:8px;padding:3px;border-radius:50%;background:#414b59;color:#fff;stroke-width:2}
.recharge-modal .wallet-eyebrow{margin:0 0 12px;font-size:12px;line-height:1.5;color:#8d96a3}
.recharge-modal .wallet-payment-column{display:flex;flex-direction:column;gap:20px;min-width:0}
.recharge-modal .wallet-payment-methods{display:block;width:100%;margin:0;min-width:0}
.recharge-modal .wallet-payment-methods>.wallet-eyebrow{display:block;margin-bottom:14px}
.recharge-modal .wallet-payment-methods .asset-detent{border-radius:11px}
.recharge-modal .wallet-payment-methods button{display:flex;align-items:center;justify-content:center;gap:8px;height:40px;font-size:12px;padding:0 8px;white-space:nowrap}
.payment-dot{width:6px;height:6px;border-radius:50%;flex:none}
.payment-dot.alipay{background:#1677ff}.payment-dot.wechat{background:#20a467}
.recharge-modal .wallet-checkout{display:flex;flex:1;flex-direction:column;align-items:center;padding:24px;border:0;border-radius:16px;background:#f6f7f9}
.recharge-modal .wallet-pay-row{grid-area:auto;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;font-size:12px;line-height:1.5;color:#7e8794}
.recharge-modal .wallet-pay-row strong{font-size:40px;font-weight:600;line-height:1.15;letter-spacing:-.04em;color:#252d38;font-variant-numeric:tabular-nums}
.recharge-modal .wallet-arrival{display:flex;align-items:baseline;justify-content:center;gap:10px;margin-top:14px;font-size:12px;color:#7b8593}
.recharge-modal .wallet-purchase-total{grid-area:auto;margin:0;display:flex;align-items:baseline;gap:4px}
.recharge-modal .wallet-purchase-total strong{font-size:28px;line-height:1.2;letter-spacing:-.025em;font-weight:600;color:#354252}
.recharge-modal .wallet-purchase-total>span{font-size:12px;margin:0;color:#6f7a89}
.recharge-modal .wallet-qr-reservation{margin:20px 0;text-align:center}
.recharge-modal .wallet-qr-placeholder{width:164px;aspect-ratio:1;background:#fff;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#a0a8b3}
.recharge-modal .wallet-qr-placeholder svg{width:48px;height:48px;stroke-width:1.5;color:#bec4cd}
.recharge-modal .wallet-qr-placeholder span{font-size:11px}
.recharge-modal .wallet-qr-reservation p{margin:12px 0 0;font-size:11px;line-height:1.5;color:#687484}
.recharge-modal .wallet-pay-button{grid-area:auto;width:100%;height:44px;min-height:44px;border-radius:10px;background:#343c47;font-size:12px;box-shadow:0 3px 8px #26313d12}
.recharge-modal .wallet-pay-button:hover{background:#454f5d}
.recharge-modal .wallet-payment-status,.recharge-modal .wallet-topup-advice{margin:16px 0 0;width:100%}
.recharge-modal .wallet-payment-status{padding:0;font-size:11px}
.recharge-modal .wallet-payment-status .wallet-payment-mark{display:none}
.recharge-modal .wallet-payment-status>strong{font-size:12px}
.recharge-modal .wallet-return{font-size:11px;margin-top:18px}
@media(max-width:700px){
 .recharge-modal{width:540px;padding:30px}
 .recharge-modal #walletRechargePanel .wallet-purchase-layout{grid-template-columns:1fr;gap:26px}
 .recharge-modal .wallet-package-grid button{height:84px;min-height:84px}
 .recharge-modal .wallet-checkout{padding:26px 24px}
}
@media(max-width:520px){
 .recharge-modal{max-width:calc(100vw - 24px);max-height:calc(100svh - 24px);padding:28px 22px;border-radius:16px}
 .recharge-modal #walletRechargePanel .wallet-page-heading{margin-bottom:24px;gap:10px}
 .recharge-modal #walletRechargePanel .wallet-page-heading h2{font-size:17px}
 .recharge-modal .wallet-page-heading .wallet-preview-label{font-size:10px}
 .recharge-modal .wallet-package-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .recharge-modal .wallet-package-grid button{height:82px;min-height:82px;gap:8px}
 .recharge-modal .wallet-package-grid button strong{font-size:18px}
 .recharge-modal .wallet-checkout{display:flex;padding:24px 20px}
 .recharge-modal .wallet-pay-row strong{font-size:38px}
 .recharge-modal .wallet-qr-reservation{margin:20px 0}
 .recharge-modal .wallet-pay-button{margin-top:0}
}
@media(pointer:coarse){.recharge-modal .wallet-payment-methods button{min-height:40px}.recharge-modal .wallet-return{min-height:44px}}

/* Unified account settings: each binding appears once. */
.account-section-title{font-size:13px;font-weight:600;color:#3b4350;margin:28px 0 20px}
.account-security-section{margin-top:40px;padding-top:8px;border-top:1px solid #eceef2}
.account-security-section .security-bindings{margin-top:0}

/* Compact actions aligned with account settings. */
.account-pane .profile-form-actions{justify-content:flex-end;align-items:center;gap:10px;margin-top:26px}
.account-pane .profile-form-actions>button{height:38px;min-width:84px;padding:0 20px;border:0;border-radius:10px;font-size:12px;font-weight:500;transition:background .15s,transform .15s}
.account-pane .profile-form-actions>.black-button{flex:0 0 auto;width:auto;min-width:112px;background:#363c45;box-shadow:inset 0 1px 0 #ffffff14}
.account-pane .profile-form-actions>.black-button:hover{background:#454c56}
.account-pane .profile-form-actions>.profile-cancel{background:#f0f1f3;color:#68717f}
.account-pane .profile-form-actions>.profile-cancel:hover{background:#e6e8ec}
.account-pane .profile-form-actions>button:active{transform:translateY(1px) scale(.98)}
@media(pointer:coarse){.account-pane .profile-form-actions>button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.account-pane .profile-form-actions>button{transition:none}.account-pane .profile-form-actions>button:active{transform:none}}


/* A compact lifecycle record and its linked work. */
.wallet-task-open{max-width:100%;padding:4px 0;text-align:left;color:#626e7e;font-size:11px;line-height:1.6;white-space:normal}
.wallet-task-open:hover{color:#2f3d4f}
.wallet-record-note{display:block;font-size:10px;font-weight:400;color:#8c96a3;margin-top:5px;white-space:nowrap}
.wallet-record-status.is-processing{background:#b37d2b;color:#fff}.wallet-record-status.is-refunded{background:#e8edf1;color:#657485}
.wallet-task-modal{width:440px;padding:32px;border-radius:16px}
.wallet-task-modal h2{font-size:17px;margin:0 0 26px;color:#343d49}
.wallet-task-summary{display:grid;gap:20px;margin:0 0 24px}
.wallet-task-summary>div{display:flex;justify-content:space-between;gap:20px;align-items:baseline}
.wallet-task-summary dt{font-size:12px;color:#9099a6;flex:none}
.wallet-task-summary dd{margin:0;text-align:right;font-size:12px;color:#4a5768;overflow-wrap:anywhere}
.wallet-task-description{font-size:12px;line-height:1.8;color:#8994a3;margin:16px 0}
.wallet-task-modal .black-button{height:40px;border-radius:10px;margin-top:24px}

/* Warehouse typography, alignment and rhythm. */
#libraryView{max-width:1240px;padding:42px 36px 64px}
#libraryView .library-heading{align-items:center;gap:24px;margin-bottom:26px}
#libraryView .library-heading h1{margin:0;font-size:20px;line-height:1.4;font-weight:600;letter-spacing:.025em;color:#323b47}
#libraryView .library-heading>.text-button{height:36px;padding:0 13px;gap:9px;font-size:12px;font-weight:400;color:#6e7988;background:#ffffffb3;border-radius:10px;box-shadow:none}
#libraryView .library-heading>.text-button:hover{background:#f2f4f7;color:#394759}
#libraryView .library-filters{display:flex;flex-direction:row;align-items:center;gap:12px;max-width:none;margin:0 0 34px}
#libraryView .library-filters .version-tabs{width:260px;flex:0 0 260px}
#libraryView .library-filters .media-tabs{width:222px;flex:0 0 222px}
#libraryView .library-filters .asset-detent button{height:32px;padding:0 10px;font-size:12px}
#libraryView .library-list{gap:38px}
#libraryView .library-day>.history-date{margin:0 0 14px;font-size:12px;font-weight:500;line-height:1.5;letter-spacing:.035em;color:#7a8594}
#libraryView .library-photo-grid{grid-template-columns:repeat(auto-fill,minmax(184px,1fr));gap:28px 20px}
#libraryView .library-asset-thumb{border:0;padding:0;border-radius:12px;background:#f1f3f6;box-shadow:none}
#libraryView .library-asset-thumb img,#libraryView .library-asset-thumb video{inset:0;width:100%;height:100%;border-radius:inherit}
#libraryView .library-asset:hover .library-asset-thumb{transform:translateY(-1px);box-shadow:0 5px 16px #2635480c}
#libraryView .library-asset-open>.history-meta{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%;margin-top:10px;line-height:1.5;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
#libraryView .asset-grid-dimensions{font-size:11px;letter-spacing:.015em;color:#7c8796}
#libraryView .asset-grid-size{flex:none;font-size:10px;letter-spacing:.015em;color:#a1a9b5}
#libraryView .library-asset-actions{padding:10px}
#libraryView .library-asset-actions button{width:30px;height:30px}
#libraryView .library-asset-actions svg{width:14px;height:14px}
#libraryView .empty-library{min-height:340px}
@media(max-width:1100px){#libraryView{padding:34px 28px 52px}#libraryView .library-photo-grid{gap:26px 18px}}
@media(max-width:760px){
 #libraryView{padding:28px 22px 44px}
 #libraryView .library-heading h1{font-size:18px}
 #libraryView .library-filters{margin-bottom:28px;gap:10px}
 #libraryView .library-filters .version-tabs{width:240px;flex-basis:240px}
 #libraryView .library-filters .media-tabs{width:210px;flex-basis:210px}
 #libraryView .library-photo-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:24px 16px}
 #libraryView .library-list{gap:32px}
}
@media(max-width:560px){
 #libraryView{padding:24px 18px 40px}
 #libraryView .library-heading{margin-bottom:22px;gap:16px}
 #libraryView .library-filters{gap:10px;flex-wrap:wrap;margin-bottom:28px}
 #libraryView .library-filters .version-tabs{width:100%;flex:1 1 100%}
 #libraryView .library-filters .media-tabs{width:100%;flex:1 1 100%}
 #libraryView .library-filters .asset-detent button{font-size:11px}
 #libraryView .library-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
 #libraryView .library-day>.history-date{font-size:11px;margin-bottom:12px}
 #libraryView .library-asset-open>.history-meta{gap:5px;margin-top:8px}
 #libraryView .asset-grid-dimensions{font-size:10px;letter-spacing:0}
 #libraryView .asset-grid-size{font-size:10px;letter-spacing:0}
}
@media(max-width:400px){#libraryView .library-asset-open>.history-meta{flex-wrap:wrap;row-gap:2px}#libraryView .asset-grid-size{margin-left:auto}}
@media(pointer:coarse){#libraryView .library-heading>.text-button{min-height:44px}#libraryView .library-filters .asset-detent button{min-height:40px}#libraryView .library-asset-actions button{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){#libraryView .library-asset:hover .library-asset-thumb{transform:none}}

.local-data-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 32px 0;padding:12px 16px;border-radius:12px;background:#f1f3f6;color:#667281;font-size:12px;line-height:1.6}
.local-data-notice>button{flex:none;padding:6px 14px;border-radius:8px;background:#fff;color:#354252;font-weight:500;box-shadow:0 2px 7px #26354809}
@media(max-width:760px){.local-data-notice{margin:14px 18px 0;gap:12px}}

/* The history drawer follows the warehouse's type and thumbnail rhythm. */
#historyPanel{width:400px;max-width:100vw;padding:28px 24px 24px}
#historyPanel .history-heading{align-items:center;gap:16px;margin-bottom:22px}
#historyPanel .history-heading h2{margin:0;font-size:18px;line-height:1.4;font-weight:600;letter-spacing:.025em;color:#323b47}
#historyPanel .history-heading .icon-button{width:30px;height:30px;flex:none;border-radius:9px;background:#7482940a;color:#8b96a5}
#historyPanel .history-filters{gap:10px;margin:0 0 28px}
#historyPanel .history-filters .asset-detent button{height:32px;font-size:12px;padding:0 10px}
#historyPanel .history-grid{gap:30px;padding:0 0 12px;scrollbar-gutter:stable}
#historyPanel .history-date{margin:0 0 12px;font-size:12px;font-weight:500;line-height:1.5;letter-spacing:.035em;color:#7a8594}
#historyPanel .history-day-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
#historyPanel .history-thumb{padding:0;border:0;border-radius:12px;background:#f1f3f6;box-shadow:none}
#historyPanel .history-thumb img,#historyPanel .history-thumb video{inset:0;width:100%;height:100%;border-radius:inherit}
#historyPanel .history-item:hover .history-thumb{transform:translateY(-1px);box-shadow:0 5px 16px #2635480c}
#historyPanel .history-item>.history-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 6px;width:100%;margin-top:9px;line-height:1.5;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
#historyPanel .asset-grid-dimensions{font-size:11px;letter-spacing:.015em;color:#7c8796}
#historyPanel .asset-grid-size{flex:none;margin-left:auto;font-size:10px;letter-spacing:.015em;color:#a1a9b5}
#historyPanel .history-empty{font-size:12px;line-height:1.6;color:#959fad}
@media(max-width:760px){
 #historyPanel{width:min(360px,94vw);padding:26px 20px 22px}
 #historyPanel .history-heading{margin-bottom:20px}
 #historyPanel .history-filters{margin-bottom:24px}
 #historyPanel .history-grid{gap:28px}
 #historyPanel .history-day-items{gap:22px 12px}
}
@media(max-width:400px){
 #historyPanel .history-item>.history-meta{flex-wrap:wrap;row-gap:2px}
 #historyPanel .asset-grid-dimensions{font-size:10px;letter-spacing:0}
 #historyPanel .asset-grid-size{margin-left:auto;letter-spacing:0}
}
@media(pointer:coarse){#historyPanel .history-filters .asset-detent button{min-height:40px}#historyPanel .history-heading .icon-button{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){#historyPanel .history-item:hover .history-thumb{transform:none}}

/* Appeal status stays inside the existing account help panel. */
.appeal-receipts{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.appeal-receipts-heading,.appeal-receipt-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.appeal-receipts-heading{margin-bottom:16px}
.appeal-receipts-heading h3{margin:0;font-size:14px;font-weight:600}
.appeal-receipts ol{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.appeal-receipt{padding:16px;border-radius:14px;background:var(--surface-soft)}
.appeal-receipt-row{font-size:13px}
.appeal-receipt-row strong{font-weight:500}
.appeal-receipt-row time{font-size:12px;color:var(--muted)}
.appeal-receipt code{display:block;margin-top:8px;font-family:inherit;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.appeal-receipt-reply{margin:14px 0 0;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.appeal-receipts-actions{display:flex;align-items:center;gap:16px}
.appeal-receipts.is-composing{padding-bottom:18px;margin-bottom:20px}

/* User login: a roomier card with a clear reading order. Scoped away from account pages. */
#loginModal{width:480px;max-width:calc(100vw - 40px);max-height:calc(100svh - 40px);padding:44px 44px 40px;border-radius:24px}
#loginModal .auth-brand{width:208px;max-width:calc(100% - 40px);margin:0 0 28px;line-height:0}
#loginModal #authTitle{margin:0 0 28px;font-size:24px;line-height:1.35;font-weight:600;letter-spacing:.01em;color:#29313d}
#loginModal .modal-close{top:16px;right:16px;width:32px;height:32px;border-radius:10px}
#loginModal .modal-close svg{width:16px;height:16px}
#loginModal .auth-tabs{margin:0 0 32px;padding:4px;border-radius:12px}
#loginModal .auth-tabs button{height:40px;padding:0 12px;font-size:14px;line-height:1.4}
#loginModal .auth-tab-thumb,#loginModal .auth-tab-glass{border-radius:9px}
#loginModal .auth-field{margin-bottom:24px}
#loginModal .auth-field>label{margin-bottom:10px;font-size:14px;line-height:1.5;color:#6e7988}
#loginModal .auth-field input{height:52px;padding:0 16px;border-radius:12px;font-size:16px;line-height:1.5}
#loginModal .auth-phone-input>span{left:16px;font-size:16px;color:#748091}
#loginModal .auth-phone-input input{padding-left:60px}
#loginModal .black-button{height:52px;padding:0 20px;border-radius:12px;font-size:15px;font-weight:600;line-height:1.4}
#loginModal .auth-link{font-size:13px;line-height:1.6}
#loginModal .auth-help-entry{margin-top:24px}
#loginModal .auth-code-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;margin-bottom:28px}
#loginModal .auth-code-phone{margin:0;font-size:16px;font-weight:500;line-height:1.6;letter-spacing:.025em;color:#586575}
#loginModal .auth-code-heading .auth-back{margin:0;flex:none;color:#8591a1}
#loginModal .auth-otp-boxes{gap:10px}
#loginModal .auth-otp-boxes span{height:60px;aspect-ratio:auto;border-radius:12px;font-size:24px}
#loginModal .auth-code-submit{margin-top:28px}
#loginModal .auth-code-actions{gap:12px;margin-top:20px;flex-wrap:wrap}
#loginModal .auth-code-actions .auth-link{padding:4px 0}
#loginModal .auth-error{margin-top:10px;font-size:13px;line-height:1.6}
#loginModal .auth-status{margin-top:24px;padding:12px 14px;font-size:13px;line-height:1.7;border-radius:12px}
#loginModal .auth-qr-placeholder{margin-bottom:16px;border-radius:14px}
#loginModal .auth-qr-placeholder:not(.has-wechat-frame):not(.is-wechat-loading){width:184px}
#loginModal .auth-wechat-caption{font-size:13px;line-height:1.7}
#loginModal .auth-qr-refresh{margin-top:16px}
#loginModal textarea{padding:12px 16px;border-radius:12px;font-size:14px;line-height:1.7}
@media(max-width:520px){
 #loginModal{max-width:calc(100vw - 32px);max-height:calc(100svh - 32px);padding:32px 28px 30px;border-radius:20px}
 #loginModal .auth-brand{width:192px;margin-bottom:24px}
 #loginModal #authTitle{font-size:22px;margin-bottom:24px}
 #loginModal .auth-tabs{margin-bottom:28px}
 #loginModal .auth-otp-boxes{gap:8px}
 #loginModal .auth-otp-boxes span{height:54px;border-radius:10px;font-size:22px}
 #loginModal .auth-code-phone{font-size:15px}
}
@media(max-width:360px){
 #loginModal{max-width:calc(100vw - 24px);padding:30px 24px 28px}
 #loginModal .auth-otp-boxes{gap:6px}
 #loginModal .auth-code-actions{gap:8px}
 #loginModal .auth-code-actions .auth-link{font-size:12px}
}







/* Spacious white showcase. The existing dark sidebar retains its appearance. */
body.showcase-mode,body.showcase-mode .main-shell{background:#fff}
body.showcase-mode .sidebar{background:#141516;border-right:1px solid #ffffff0a}
body.showcase-mode .nav-link.active{background:#292b2d;color:#fff;box-shadow:none}
body.showcase-mode .nav-link:hover:not(.active){background:#202224}
.showcase-view{background:#fff;color:#1d1d1f;min-height:100svh;overflow:hidden;font-family:"PingFang SC","PingFang TC",sans-serif;font-synthesis:weight}
.showcase-inner{max-width:1500px;margin:0 auto;padding:0 clamp(36px,5.5vw,100px)}
.showcase-story{padding-top:148px}.showcase-story:first-child{padding-top:80px}
.showcase-story-copy{text-align:center;max-width:1080px;margin:0 auto 62px}
.showcase-brand-mark{display:flex;justify-content:center;margin-bottom:24px}.showcase-brand-mark img{display:block;width:48px;height:48px;object-fit:contain}
.showcase-view .showcase-story-copy h1,.showcase-view .showcase-story-copy h2{font-size:clamp(40px,4.2vw,64px);font-weight:800;font-synthesis:weight;-webkit-text-stroke:.014em currentColor;paint-order:stroke fill;line-height:1.14;letter-spacing:-.045em;color:#1d1d1f;margin:0;text-wrap:balance}
.showcase-story:not(:first-child) .showcase-story-copy h2{font-size:clamp(36px,3.7vw,58px)}
.showcase-story-copy p.showcase-description{font-size:clamp(17px,1.5vw,22px);font-weight:500;line-height:1.5;letter-spacing:-.025em;color:#9f9fa4;margin:26px auto 0;max-width:770px;text-wrap:balance}
.showcase-story:first-child .showcase-description{color:#9f9fa4}
.showcase-cta{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:0 23px;margin-top:31px;background:#1d1d1f;color:#fff;border-radius:100px;font-size:14px;font-weight:500;line-height:1.25;transition:background .18s,transform .18s}
.showcase-cta:hover{background:#343437;transform:translateY(-1px)}.showcase-cta svg{width:16px;height:16px;stroke-width:1.6}
.showcase-stage{--compare-split:50%;--scene-zoom:1;--scene-x:0px;--scene-y:0px;--showcase-aspect:16/9;position:relative;isolation:isolate;aspect-ratio:var(--showcase-aspect);background:#f5f5f7;border-radius:20px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:ew-resize}
.showcase-stage.is-zoomed{cursor:grab}.showcase-stage.is-zoomed.is-dragging{cursor:grabbing}
.showcase-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.showcase-before{clip-path:inset(0 calc(100% - var(--compare-split)) 0 0)}.showcase-after{clip-path:inset(0 0 0 var(--compare-split))}
.showcase-scene{position:absolute;inset:0;transform:translate(var(--scene-x),var(--scene-y)) scale(var(--scene-zoom));transform-origin:center;will-change:transform}
.showcase-placeholder{position:absolute;inset:0;display:grid;place-content:center;background:#f2f2f4;text-align:center;gap:13px}.showcase-after .showcase-placeholder{background:#f7f7f8}
.showcase-registration{position:absolute;inset:14%;pointer-events:none}.showcase-registration span{position:absolute;width:23px;height:23px;border:solid #d9d9dd}
.showcase-registration span:nth-child(1){left:0;top:0;border-width:1px 0 0 1px}.showcase-registration span:nth-child(2){right:0;top:0;border-width:1px 1px 0 0}.showcase-registration span:nth-child(3){right:0;bottom:0;border-width:0 1px 1px 0}.showcase-registration span:nth-child(4){left:0;bottom:0;border-width:0 0 1px 1px}
.showcase-scene>img{position:absolute;inset:0;width:100%;height:100%;display:none;object-fit:contain;-webkit-user-drag:none}
.showcase-stage.has-images .showcase-scene>img{display:block}.showcase-stage.has-images .showcase-placeholder,.showcase-stage.has-images .showcase-material-note{display:none}
.showcase-image-label{position:absolute;top:24px;z-index:2;padding:7px 13px;background:#ffffffd9;backdrop-filter:blur(8px);color:#515154;border-radius:100px;font-size:12px;line-height:1.5;pointer-events:none}.showcase-label-before{left:24px}.showcase-label-after{right:24px}
.showcase-divider{position:absolute;top:0;bottom:0;left:var(--compare-split);width:1px;transform:translateX(-50%);background:#a6a6ac99;z-index:2;pointer-events:none}
.showcase-handle{position:absolute;left:clamp(24px,var(--compare-split),calc(100% - 24px));top:50%;transform:translate(-50%,-50%);width:48px;height:48px;display:grid;place-items:center;background:#fff;color:#5c5c61;border-radius:50%;box-shadow:0 2px 12px #00000014,0 0 0 1px #00000005;z-index:3;cursor:ew-resize;touch-action:none;transition:box-shadow .18s}
.showcase-handle svg{width:27px;height:20px;stroke-width:1.3}.showcase-handle:active{box-shadow:0 1px 7px #0000001f,0 0 0 7px #ffffff66}
.showcase-material-note{position:absolute;bottom:23px;left:0;right:0;text-align:center;color:#a1a1a6;font-size:11px;line-height:1.5;pointer-events:none}
.showcase-comparison-footer{display:flex;align-items:center;justify-content:flex-end;gap:24px;padding:17px 3px 0}.showcase-comparison-footer p{font-size:11px;line-height:1.6;color:#86868b}.showcase-comparison-footer p span{padding:0 6px;color:#c0c0c4}
.showcase-zoom-controls{display:flex;align-items:center;gap:3px;background:#f5f5f7;border-radius:100px;padding:3px;font-size:12px;color:#6e6e73;font-variant-numeric:tabular-nums;flex-shrink:0}
.showcase-zoom-controls button{height:30px;min-width:30px;border-radius:50%;transition:background .15s,color .15s;line-height:1}.showcase-zoom-controls button:hover{background:#e8e8ed;color:#1d1d1f}.showcase-zoom-controls button:disabled{opacity:.3;background:none;cursor:default}.showcase-zoom-controls output{width:44px;text-align:center}.showcase-zoom-controls [data-compare-reset]{margin-left:5px;padding:0 13px;border-radius:100px;font-size:11px}
.showcase-view :is(button,[tabindex],a):focus-visible{outline:2px solid #515154;outline-offset:4px}
.showcase-footer{display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin-top:80px;padding:32px 0 50px;border:0}
.showcase-footer-logo{display:block;width:220px;height:auto;max-width:100%}.showcase-footer a{font-size:14px;line-height:1.6;color:#86868b;text-decoration:none}.showcase-footer a:hover{color:#1d1d1f}
@media(min-width:1800px){.showcase-story:first-child{padding-top:96px}.showcase-story{padding-top:176px}.showcase-story-copy{margin-bottom:74px}}
@media(max-width:1100px){.showcase-inner{padding:0 6%}.showcase-story:first-child{padding-top:68px}.showcase-story{padding-top:118px}.showcase-story-copy{margin-bottom:48px}.showcase-view .showcase-story-copy h1{font-size:clamp(36px,4.5vw,52px)}.showcase-story:not(:first-child) .showcase-story-copy h2{font-size:clamp(34px,4vw,46px)}.showcase-story-copy p.showcase-description{font-size:18px;max-width:600px}.showcase-footer{margin-top:80px}}
@media(max-width:760px){.showcase-inner{padding:0 6%}.showcase-story:first-child{padding-top:80px}.showcase-story{padding-top:96px}.showcase-brand-mark{margin-bottom:20px}.showcase-brand-mark img{width:42px;height:42px}.showcase-view .showcase-story-copy h1{font-size:clamp(32px,7.4vw,46px);line-height:1.2;letter-spacing:-.04em}.showcase-story:not(:first-child) .showcase-story-copy h2{font-size:clamp(30px,7.3vw,42px);line-height:1.2}.showcase-story-copy p.showcase-description{font-size:16px;line-height:1.55;margin-top:21px;max-width:400px}.showcase-cta{min-height:42px;font-size:13px;margin-top:25px}.showcase-story-copy{margin-bottom:38px}.showcase-stage{aspect-ratio:4/3;border-radius:15px}.showcase-stage.has-images{aspect-ratio:var(--showcase-aspect)}.showcase-image-label{top:14px;font-size:10px;padding:5px 10px}.showcase-label-before{left:14px}.showcase-label-after{right:14px}.showcase-handle{width:44px;height:44px}.showcase-material-note{font-size:10px;bottom:16px}.showcase-comparison-footer{flex-direction:column;align-items:flex-start;gap:12px;padding-top:13px}.showcase-comparison-footer p{font-size:10px}.showcase-zoom-controls{align-self:flex-end}.showcase-footer{margin-top:65px;padding:28px 0 40px;gap:18px}.showcase-footer-logo{width:196px}.showcase-footer a{font-size:13px}}
@media(prefers-reduced-motion:reduce){.showcase-cta,.showcase-handle,.showcase-zoom-controls button{transition:none}.showcase-cta:hover{transform:none}}

.showcase-end-action{display:flex;justify-content:center;padding-top:84px}.showcase-end-action .showcase-cta{margin-top:0;min-height:48px;padding:0 30px}
@media(max-width:760px){.showcase-end-action{padding-top:64px}}

/* Approved PingFang B layout. */
.showcase-story{container-type:inline-size}
.showcase-view .showcase-story:first-child .showcase-story-copy h1{line-height:1.38}
.showcase-story:first-child .showcase-description{margin-top:34px}
.showcase-story:first-child .showcase-story-copy{margin-bottom:66px}
.showcase-view #showcaseTitle3{white-space:nowrap;font-size:min(clamp(30px,3.7vw,58px),10.5cqi)}
@media(max-width:760px){.showcase-story:first-child .showcase-story-copy{margin-bottom:42px}.showcase-story:first-child .showcase-description{margin-top:28px}}

/* Image loading status stays separate from comparison gestures. */
.showcase-image-retry{display:none;position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);min-height:44px;padding:0 20px;border-radius:100px;background:#fff;color:#666;font-size:13px;box-shadow:0 2px 12px #00000012}
.showcase-stage.is-error .showcase-image-retry{display:block}.showcase-stage.is-error .showcase-material-note{display:none}

.showcase-stage.has-images:not(.is-zoomed){cursor:zoom-in}

.showcase-photo-open{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;border:0;background:transparent;cursor:inherit}.showcase-photo-open:focus-visible{outline-offset:-6px!important}
