:root{color-scheme:light;--bg:#f7f8fa;--surface:#fff;--text:#202a36;--muted:#76808d;--line:#e5e9ef;--accent:#4169e1;--danger:#b93838;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--text);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:42px;padding:10px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font-size:14px;font-weight:600;cursor:pointer;text-decoration:none;transition:background .15s}button:hover,.button:hover{background:#f0f3f8;border-color:#cbd3df}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent)!important;color:#fff!important;border-color:var(--accent)!important}.primary:hover{background:#3155c4!important}.quiet{border-color:transparent;background:transparent;color:var(--muted)}.danger{color:var(--danger);border-color:#efcccc}.link{display:inline;padding:0;min-height:0;border:0;background:none;color:var(--accent)}:focus-visible{outline:3px solid #a6b9f3;outline-offset:3px}[hidden]{display:none!important}.muted{color:var(--muted);font-size:14px;line-height:1.65}h1,h2,p{margin:0}h1{font-size:32px;line-height:1.25;letter-spacing:-1.1px;font-weight:650}h2{font-size:17px;letter-spacing:-.3px;font-weight:600}.brand{display:inline-flex;gap:10px;align-items:center;text-decoration:none;color:var(--accent);font-size:27px;font-weight:650;letter-spacing:-1.2px}.brand span{color:var(--text)}.brand b{color:var(--accent)}.boot{min-height:100dvh;display:grid;place-items:center;color:var(--muted)}.auth{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:36px 20px}.auth-card{width:100%;max-width:390px}.auth-card>.brand{margin-bottom:40px}.auth-card h1{font-size:38px}.auth-card>.muted{margin-top:16px;margin-bottom:32px;max-width:340px}.auth label{display:block;font-size:13px;font-weight:600;margin-bottom:9px}.auth input{width:100%;min-height:48px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:12px 14px;color:var(--text);margin-bottom:21px;font-size:16px}.password-field{position:relative}.password-field input{padding-right:95px}.password-field button{position:absolute;top:4px;right:4px;border:0;background:transparent;color:var(--muted);font-size:12px}.full{width:100%;min-height:48px}.auth-switch{text-align:center;font-size:14px;color:var(--muted);margin-top:24px}.auth-note{text-align:center;color:var(--muted);font-size:12px;margin-top:38px}.error{color:var(--danger);font-size:13px;line-height:1.5;margin-bottom:16px}.header{max-width:1104px;margin:auto;min-height:96px;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.header-right{display:flex;align-items:center;gap:24px}.connection{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.connection i{width:6px;height:6px;border-radius:50%;background:#aeb6c2}.connection.online i{background:#47a980}details{position:relative;font-size:13px}summary{cursor:pointer;list-style:none;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}summary::-webkit-details-marker{display:none}summary:after{content:'⌄';margin-left:12px;color:var(--muted)}.account-menu{position:absolute;right:0;top:48px;width:230px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;z-index:10;box-shadow:0 8px 30px #25334b0d;display:grid;gap:12px}.account-menu span{overflow-wrap:anywhere;color:var(--muted);font-size:12px}.workspace{max-width:1000px;margin:35px auto 0;padding:0 24px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;color:var(--muted);margin-bottom:12px}.intro .muted{margin-top:10px}.intro label{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.intro select{max-width:180px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:8px;color:var(--text)}.clipboard{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 2px 5px #25334b02}.clipboard-top{display:flex;justify-content:space-between;align-items:center;padding:19px 24px 0;font-size:13px;font-weight:600}.save-status{font-size:12px;color:var(--muted);font-weight:400}.save-status.failed{color:var(--danger)}textarea{display:block;resize:vertical;width:100%;min-height:255px;padding:24px;border:0;background:transparent;color:var(--text);font-size:16px;line-height:1.7}textarea::placeholder{color:#a1a9b4}textarea:focus-visible{outline:none;box-shadow:inset 3px 0 #a6b9f3}.clipboard-bottom{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:14px 20px;gap:12px}.clipboard-bottom>.muted{font-size:12px}.text-actions{display:flex;gap:8px}.files-section{margin-top:32px}.files-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.files-heading p{font-size:12px;margin-top:5px}.count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;margin-left:5px;border-radius:6px;background:#e9edf3;color:var(--muted);font-size:11px}.empty-files{min-height:156px;border:1px dashed #d8dfe8;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:13px}.empty-files .muted{font-size:12px;color:#929aa6}.empty-icon{font-size:24px;color:#a0aab9;margin-bottom:3px}.files-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.file-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.file-visual{display:flex;width:100%;height:130px;border:0;border-radius:0;padding:0;background:#f0f3f7}.file-visual img{display:block;width:100%;height:100%;object-fit:cover}.file-stub{font-size:12px;letter-spacing:1px;color:var(--muted);font-weight:650}.file-info{padding:14px}.file-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-size{font-size:11px;color:var(--muted);margin-top:5px}.file-actions{display:flex;justify-content:space-between;align-items:center;margin-top:13px;gap:8px}.file-actions .button{font-size:12px;padding:7px 10px;min-height:36px}.file-actions button{color:var(--muted);font-size:18px;min-height:36px;padding:6px 10px;border:0;background:transparent}.upload-row{padding:14px 16px;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:12px;overflow-wrap:anywhere}.upload-row progress{width:100%;height:4px;display:block;margin-top:10px;accent-color:var(--accent)}.upload-row.failed{color:var(--danger)}.upload-row button{margin-left:10px}.drop-overlay{position:fixed;inset:12px;border:2px dashed var(--accent);border-radius:20px;background:#eef3ffed;z-index:100;display:grid;place-items:center;pointer-events:none}.drop-overlay>div{text-align:center;font-size:26px;font-weight:600}.drop-overlay span{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:12px}dialog{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:16px;padding:24px;max-width:calc(100vw - 32px)}dialog::backdrop{background:#17253660;backdrop-filter:blur(3px)}.preview{width:700px}.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px;overflow-wrap:anywhere;margin-bottom:16px}.preview-heading button{border:0}.preview img{max-width:100%;max-height:65dvh;display:block;margin:auto}.preview>.button{margin-top:20px}.confirm{width:390px}.confirm p{margin-top:12px;overflow-wrap:anywhere}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--text);color:white;border-radius:10px;padding:13px 20px;max-width:calc(100vw - 32px);font-size:13px;z-index:200;text-align:center}
@media(max-width:640px){.header{min-height:80px;padding:20px}.header-right{gap:12px}.connection{font-size:11px}summary{max-width:110px;padding:9px}.workspace{margin-top:20px;padding:0 18px}h1{font-size:27px}.intro{flex-direction:column;align-items:flex-start;margin-bottom:24px}.intro .muted{font-size:13px}.clipboard-top{padding:17px 18px 0}textarea{padding:20px 18px;min-height:235px}.clipboard-bottom{padding:12px}.text-actions{gap:2px}.text-actions button{padding:10px 12px}.files-heading{align-items:flex-start;flex-direction:column;gap:12px}.files-heading button{width:100%}.files-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.file-visual{height:110px}.file-info{padding:11px}.file-actions{gap:2px}.file-actions .button{font-size:11px;padding:7px}.auth-card>.brand{margin-bottom:32px}.auth-card h1{font-size:34px}footer{font-size:10px}.brand{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:380px){#connectionText{display:none}.files-grid{grid-template-columns:1fr}.file-visual{height:150px}summary{max-width:100px}.clipboard-bottom>.muted{font-size:10px}}
.brand img{flex-shrink:0}.view-nav{display:flex;gap:4px;margin:0 0 24px;border-bottom:1px solid var(--line)}.view-nav button{border:0;background:none;border-radius:0;color:var(--muted);padding:12px 17px;border-bottom:2px solid transparent}.view-nav button.selected{color:var(--accent);border-bottom-color:var(--accent)}.tab-area{display:flex;align-items:flex-start;gap:8px;margin-bottom:14px}.tabs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;overflow:visible;padding:3px;flex:1;min-width:0}.tab-pill{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface);flex-shrink:0;max-width:220px}.tab-pill.active{border-color:#b9c9f5;background:#edf2ff}.tab-pill button{border:0;background:transparent;min-height:39px;padding:8px 12px}.tab-pill button[role=tab]{display:block;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px}.tab-pill .tab-close{padding:8px 9px;font-size:17px;color:var(--muted);min-width:32px}.tab-pill.active button[role=tab]{color:var(--accent)}.new-tab{font-size:21px;min-width:42px;padding:6px;flex-shrink:0;margin-top:3px}.clipboard-title{display:flex;align-items:center;gap:7px;min-width:0}.clipboard-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.clipboard-title button{min-height:28px;padding:3px 7px;font-size:17px}.clipboard-top{padding-top:14px}.file-origin{display:block;font-size:11px;font-weight:400;color:var(--accent);border:0;background:transparent;padding:0;min-height:26px;margin-top:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trash-section>.muted{margin-top:8px;margin-bottom:24px}.trash-items{display:grid;gap:10px}.trash-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.trash-row>div{min-width:0}.trash-row .trash-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}.trash-row .muted{font-size:12px;margin-top:5px}.trash-row button{flex-shrink:0;font-size:12px}.confirm label{display:block;margin-top:20px;font-size:13px}.confirm input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;margin-top:8px;font-size:16px}.view-nav button{flex:1}.trash-items .error{margin:0;padding:16px}.tabs:focus-within{outline-offset:3px}
@media(max-width:640px){.view-nav{margin-bottom:18px}.view-nav button{font-size:13px;padding:11px 10px}.header-right{gap:10px}.header .brand{font-size:21px;gap:5px}.header .brand img{width:26px;height:26px}#connectionText{display:none}.clipboard-title>span{max-width:160px}.trash-row{gap:12px;padding:13px;align-items:flex-start}.trash-row button{font-size:11px;padding:8px;min-height:38px}}
.trash-snippet{white-space:pre-wrap;overflow-wrap:anywhere;max-width:600px}.file-actions button,.tab-close{min-width:36px}button:hover.file-origin{background:transparent;text-decoration:underline}

.workspace{padding-bottom:36px}

/* Optional editors share one resizable work surface. */
.editor-size{height:285px;min-height:140px;overflow:hidden}
.editor-size textarea{height:100%;min-height:0;resize:none}
.editor-surface{height:100%;overflow:auto}
.editor-surface[data-mode=rich]{padding:20px 24px;font-size:16px;line-height:1.7}
.editor-surface .tiptap{min-height:100%;outline:none;overflow-wrap:anywhere}
.editor-surface .tiptap p{margin:0 0 10px}
.editor-surface .tiptap h2,.editor-surface .tiptap h3{margin:14px 0 8px;line-height:1.4}
.editor-surface .tiptap blockquote{margin:12px 0;border-left:3px solid var(--line);padding-left:14px;color:var(--muted)}
.editor-surface .tiptap pre{background:#f0f3f7;padding:12px;border-radius:8px;overflow:auto}
.editor-surface .tiptap li p{margin:0}
.rich-toolbar{display:flex;flex-wrap:wrap;gap:3px;padding:10px 20px 0}
.rich-toolbar button{font-size:13px;min-height:32px;padding:5px 9px;border-color:transparent;background:transparent}
.rich-toolbar button[aria-pressed=true]{background:#edf2ff;color:var(--accent)}
.resize-editor{height:12px;display:flex;align-items:center;justify-content:center;cursor:ns-resize;touch-action:none;background:var(--surface)}
.resize-editor span{width:30px;height:3px;background:#d5dce6;border-radius:3px}
.resize-editor:hover span,.resize-editor:focus-visible span{background:var(--accent)}
.trash-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.trash-heading button{font-size:12px}
.confirm select{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;margin-top:8px;background:var(--surface);color:var(--text);font-size:14px}
@media(max-width:640px){
 .header{min-height:54px;padding:10px 16px}.header .brand{font-size:22px}.header-right{gap:8px}summary{min-height:32px;padding:7px 9px}
 .workspace{margin-top:0;padding:0 12px 24px}.intro{display:none}
 .view-nav{margin-bottom:8px}.view-nav button{padding:9px 8px;font-size:12px}
 .tab-area{margin-bottom:8px;gap:5px;align-items:center}.tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;flex:1}
 .tab-pill button{min-height:34px;padding:6px 10px}.tab-pill button[role=tab]{max-width:145px;font-size:13px}.tab-pill .tab-close{padding:5px 7px}
 .new-tab{margin-top:0;min-height:36px;min-width:36px;padding:4px;font-size:20px}
 .clipboard{border-radius:12px}.clipboard-top{padding:10px 14px 0;min-height:40px}.clipboard-title>span{max-width:150px}
 .save-status{font-size:10px}.editor-size{height:max(240px,calc(100svh - 260px))!important;max-height:none}
 .clipboard:has(.rich-toolbar:not([hidden])) .editor-size{height:max(240px,calc(100svh - 300px))!important}
 .editor-size textarea{padding:14px;font-size:16px}.editor-surface[data-mode=rich]{padding:14px}
 .rich-toolbar{padding:6px 10px 0;gap:1px}.rich-toolbar button{padding:5px 7px}
 .resize-editor{display:none}.clipboard-bottom{padding:9px 10px}.text-actions button{min-height:36px;padding:8px 10px;font-size:12px}
 .files-section{margin-top:20px}.files-heading{margin-bottom:12px}.empty-files{min-height:100px}.files-heading p{font-size:11px}
 .trash-heading{gap:8px}.trash-heading button{padding:8px;font-size:11px}
}
.empty-upload{width:100%;background:transparent;font-weight:400;white-space:normal;padding:16px}.empty-upload:not(:disabled):hover{border-color:var(--accent);background:#eef3ff}.empty-upload:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.empty-upload:not(:disabled):hover .empty-icon{color:var(--accent)}

.empty-upload.has-files{width:64px;min-height:64px;margin-top:14px;padding:12px;border-radius:12px}.empty-upload.has-files>span:not(.empty-icon){display:none}.empty-upload.has-files .empty-icon{margin:0}
.image-editor{width:1000px;max-height:calc(100dvh - 32px);overflow:auto;padding:20px}.image-editor-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.image-editor-top>div{min-width:0}.image-editor-top .muted{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70vw;margin-top:5px}.image-editor-top>button{border:0;padding:6px 10px}.image-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.image-tools button{font-size:12px;padding:8px 11px;min-height:36px}.image-tools button[aria-pressed=true]{color:var(--accent);background:#edf2ff;border-color:#b9c9f5}.image-tools input[type=color]{width:36px;height:36px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer}.image-text-field{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:12px}.image-text-field input{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-size:16px}.image-instructions{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;margin:6px 0}.image-instructions .muted{font-size:12px}.image-instructions button{font-size:12px;padding:7px 10px;min-height:32px}.image-stage{display:flex;align-items:center;justify-content:center;min-height:100px;padding:16px;background-color:#f1f3f7;background-image:linear-gradient(45deg,#e7eaf0 25%,transparent 25%),linear-gradient(-45deg,#e7eaf0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7eaf0 75%),linear-gradient(-45deg,transparent 75%,#e7eaf0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.image-stage canvas{display:block;width:auto;height:auto;max-width:100%;max-height:55dvh;touch-action:none;cursor:crosshair}.image-editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.image-editor-bottom>.muted{font-size:11px;white-space:nowrap}.image-editor-bottom>div{display:flex;gap:8px}.image-editor-bottom button{font-size:12px;padding:9px 12px;min-height:38px}.image-format-note{font-size:11px;margin-top:10px}.preview>#previewEdit{margin:20px 8px 0 0}.file-actions .image-edit{color:var(--accent);font-size:17px;padding:5px 8px}
@media(max-width:640px){.image-editor{padding:14px;max-width:calc(100vw - 16px);width:100%;max-height:calc(100dvh - 16px)}.image-editor-top{margin-bottom:10px}.image-tools{gap:4px}.image-tools button{padding:7px 8px}.image-stage{padding:8px}.image-stage canvas{max-height:43dvh}.image-editor-bottom{align-items:stretch;flex-direction:column;gap:8px}.image-editor-bottom>div{gap:5px}.image-editor-bottom button{flex:1;font-size:11px;padding:9px 6px}.file-actions .button{padding:7px 6px}}
.file-visual{position:relative}.heic-pending{opacity:0}.heic-status{font-size:11px;color:var(--muted);padding:14px;text-align:center}.file-visual .heic-status{position:absolute;inset:0;display:grid;place-items:center}#previewBody .heic-status{display:block;min-height:120px;line-height:120px}

.image-selection{display:flex;gap:12px;align-items:center;margin-top:10px;font-size:12px}.image-selection input{width:72px;padding:6px;border:1px solid var(--line);border-radius:6px;font:inherit}.image-selection button{font-size:12px;padding:6px 10px}

/* A fixed inspector and viewport keep the picture still while editing. */
.image-properties{display:flex;align-items:center;gap:10px;margin-top:10px;min-height:38px}.image-properties .image-text-field{flex:1;min-width:0;margin:0}.image-properties .image-text-field>span{display:none}.image-properties .image-text-field input{width:100%;padding:8px;font-size:14px}.image-properties .image-selection{flex:none;gap:6px;margin:0}.image-selection label{display:flex;align-items:center;gap:5px}.image-selection #imageSizeLabel{display:none}.image-selection input{width:58px;height:35px}.image-selection button{height:35px}.image-properties input:disabled{opacity:.5;background:#f7f8fa}.image-instructions{height:38px;min-height:38px;overflow:hidden}.image-instructions .muted{line-height:16px}.image-instructions button{flex:none}.image-stage{position:relative;display:block;height:min(55dvh,520px);min-height:160px;padding:0;touch-action:none}.image-stage canvas{position:absolute;max-width:none;max-height:none;transform-origin:0 0}.image-zoom{position:absolute;bottom:10px;right:10px;display:flex;align-items:center;gap:2px;padding:3px;background:#ffffffed;border:1px solid #dce2ec;border-radius:10px;box-shadow:0 3px 14px #17253615;touch-action:manipulation}.image-zoom button{border:0;background:transparent;padding:5px 8px;min-height:30px;font-size:13px}.image-zoom #imageZoomReset{min-width:63px;font-size:11px;font-variant-numeric:tabular-nums}.image-zoom button[aria-pressed=true]{background:#edf2ff;color:var(--accent)}.image-color-control{position:relative}.image-tools .image-color-toggle{width:36px;height:36px;padding:7px}.image-color-toggle span{display:block;width:20px;height:20px;border-radius:50%;background:var(--chosen-color,#ef4444);border:1px solid #0002}.image-color-panel{position:absolute;top:43px;left:0;z-index:5;width:244px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 36px #17253625}.image-swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin-bottom:12px}.image-tools .image-swatches button{padding:0;min-height:0;width:22px;height:22px;border-radius:50%;background:var(--swatch);border:1px solid #0002}.image-swatches button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.image-color-area{position:relative;height:112px;border-radius:8px;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--hue,#f00);touch-action:none;cursor:crosshair}.image-color-area span{position:absolute;width:12px;height:12px;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #0005;transform:translate(-50%,-50%);pointer-events:none}.image-hue{display:block;width:100%;height:12px;margin:14px 0;appearance:none;border:0;border-radius:10px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);cursor:pointer}.image-hue::-webkit-slider-thumb{appearance:none;width:17px;height:17px;border:2px solid white;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #0004}.image-hex-label{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.image-hex-label input{width:100%;padding:7px 9px;border:1px solid var(--line);border-radius:7px;font:12px ui-monospace,monospace}
@media(max-width:640px){.image-stage{height:43dvh;min-height:150px}.image-stage canvas{max-height:none}.image-properties{gap:6px}.image-selection input{width:49px}.image-color-panel{left:auto;right:-70px}.image-zoom{bottom:7px;right:7px}.image-instructions{height:42px;min-height:42px}}

@media(max-width:640px){.image-color-panel{left:0;right:auto}}

.image-context-menu{position:fixed;z-index:10;width:240px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 32px #17253625}.image-context-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:9px 10px;border:0;border-radius:7px;background:transparent;text-align:left;font-size:12px}.image-context-menu button:hover:enabled,.image-context-menu button:focus-visible{background:#edf2ff;outline:none;color:var(--accent)}.image-context-menu button span{color:var(--muted);font-size:10px}.image-context-menu hr{border:0;border-top:1px solid var(--line);margin:4px 6px}.image-context-menu .image-clear-all{color:#dc3545}

.image-tool-icon{width:16px;height:16px;flex:none;vertical-align:middle}.image-tools button[data-image-tool]{display:inline-flex;align-items:center;justify-content:center;gap:6px}

.header,.workspace{width:94%;max-width:none;padding-left:0;padding-right:0}.workspace{margin-top:8px}.files-grid{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))}.preview{max-height:calc(100dvh - 32px);overflow:auto}.preview.preview-pdf{width:min(1100px,94vw)}.pdf-toolbar{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}.pdf-toolbar input{width:54px;text-align:center;border:1px solid var(--line);border-radius:7px;padding:7px;font:inherit}.pdf-toolbar button{min-height:34px;padding:5px 10px}.pdf-pages{font-size:12px;white-space:nowrap}.pdf-surface{overflow:auto;max-height:65dvh;background:#eef1f5;border:1px solid var(--line);border-radius:8px;padding:12px}.pdf-surface canvas{display:block;max-width:100%;height:auto;margin:auto;background:white;box-shadow:0 2px 10px #17253618}.pdf-message{padding:35px 14px;text-align:center;font-size:13px;color:var(--muted)}.file-name{cursor:text}.file-name:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:640px){.header,.workspace{width:calc(100% - 24px)}.header{padding-top:10px;padding-bottom:10px}.workspace{margin-top:0;padding-bottom:24px}.files-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview.preview-pdf{padding:14px;max-width:calc(100vw - 16px)}.pdf-toolbar{gap:5px}.pdf-surface{padding:5px}.pdf-toolbar button{padding:5px 8px}}@media(max-width:380px){.files-grid{grid-template-columns:1fr}}

.save-status{display:inline-flex;align-items:center;gap:6px;min-height:25px;padding:3px 8px;border-radius:20px;transition:color .2s,background .2s;line-height:1.35;font-size:11px;font-weight:500}.save-indicator{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:none;border-radius:50%}.save-indicator svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.save-status[data-state=saved]{color:#27835d;background:#edf7f1}.save-status[data-state=saved] .save-indicator{background:#d8efe2}.save-status[data-state=saving]{color:#917337;background:#faf5e9}.save-status[data-state=saving] circle,.save-status[data-state=loading] circle{stroke-dasharray:25 13;animation:save-spin 1s linear infinite;transform-origin:center}.save-status[data-state=failed]{color:#b93838;background:#fff0ed}.save-status[data-state=failed] .save-indicator{background:#f9dfdb}.save-status.save-confirmed{animation:save-settle .85s ease-out}.save-confirmed .save-indicator path{stroke-dasharray:16;stroke-dashoffset:0;animation:save-check .35s ease-out}.save-label{overflow-wrap:anywhere}@keyframes save-spin{to{transform:rotate(360deg)}}@keyframes save-check{from{stroke-dashoffset:16}to{stroke-dashoffset:0}}@keyframes save-settle{0%{background:#d7efdf;box-shadow:0 0 0 0 #47a98020}60%{box-shadow:0 0 0 4px #47a98000}100%{background:#edf7f1;box-shadow:0 0 0 0 transparent}}@media(prefers-reduced-motion:reduce){.save-status,.save-status svg,.save-status path,.save-status circle{animation:none!important;transition:none!important}}@media(max-width:640px){.save-status{font-size:10px;padding:3px 6px;gap:4px}.save-status[data-state=failed]{max-width:60%;font-size:10px}.save-indicator,.save-indicator svg{width:16px;height:16px}}

.header,.workspace{width:90%;max-width:1360px}.view-nav{width:fit-content;max-width:100%;gap:2px;padding:4px;margin-bottom:18px;border:1px solid var(--line);border-radius:11px;background:#eef1f5}.view-nav button{flex:0 0 auto;min-width:100px;min-height:36px;padding:8px 16px;border:0;border-radius:7px;font-size:13px}.view-nav button.selected{background:var(--surface);color:var(--accent);box-shadow:0 1px 4px #17253612}.view-nav button:not(.selected):hover{background:#e4e9f0}@media(max-width:640px){.header,.workspace{width:calc(100% - 24px)}.view-nav{width:100%;margin-bottom:10px}.view-nav button{flex:1;min-width:0;padding:8px 7px;font-size:12px}}

@media(hover:hover) and (pointer:fine){.file-name,#activeName{cursor:text;text-decoration-color:transparent;text-underline-offset:4px;text-decoration-thickness:1px}.file-name:hover,.tab-pill button[role=tab]:hover,#activeName:hover{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#9aa7ba}.file-name:hover,#activeName:hover{color:var(--accent)}}

.inline-name-input{display:block;min-width:0;max-width:100%;min-height:30px;padding:3px 6px;border:1px solid #b9c9f5;border-radius:6px;background:#fff;color:var(--text);font:inherit;line-height:1.35;box-shadow:0 0 0 2px #4169e112;outline:none}.file-info>.inline-name-input{font-size:13px;font-weight:600;margin:-4px 0;min-height:26px}.tab-pill>.inline-name-input{font-size:13px;min-height:40px;max-width:240px}.clipboard-title>.inline-name-input{font-size:13px}.inline-name-input[aria-invalid=true]{border-color:var(--danger)}.inline-name-input.inline-saving{opacity:.65}@media(max-width:640px){.inline-name-input{font-size:16px}.tab-pill>.inline-name-input{font-size:16px;min-height:34px;max-width:170px}.file-info>.inline-name-input{font-size:16px}}

.trash-info{flex:1}.trash-thumbnail{width:36px;height:36px;flex:0 0 36px;align-self:center;overflow:hidden;border-radius:6px;background:#eef1f5}.trash-thumbnail img{display:block;width:36px;height:36px;object-fit:cover}.trash-thumbnail .heic-status{display:none}
.file-info>.inline-name-input{padding:0;border:0;margin:0;min-height:0;border-radius:0;line-height:normal;font-size:13px;font-weight:600;box-shadow:none;outline:2px solid #b9c9f5;outline-offset:3px}

.tab-pill button[role=tab]{cursor:pointer}.inline-name-input{cursor:text}



.inline-editor-choice,.inline-editor-language select{font:inherit;font-size:12px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:7px;min-height:28px;padding:3px 6px;max-width:145px;cursor:pointer}.inline-editor-choice{flex:none}.inline-editor-choice:hover,.inline-editor-language select:hover{color:var(--accent);border-color:#b9c9f5}.inline-editor-language{display:flex;align-items:center;gap:8px;margin:10px 24px 0;font-size:12px;color:var(--muted)}.inline-editor-language select{max-width:200px}@media(max-width:640px){.clipboard-title>span{max-width:90px}.inline-editor-choice{max-width:125px;font-size:11px}.inline-editor-language{margin:8px 14px 0}.inline-editor-language select{font-size:16px}}

.text-export{font:inherit;font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:7px;background:var(--surface);max-width:115px;min-height:32px;padding:5px 7px;cursor:pointer}.text-export:disabled{opacity:.45;cursor:default}#textExportPrint{display:none}@media(max-width:640px){.clipboard-bottom{flex-wrap:wrap;gap:8px}.text-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.text-export{font-size:11px;max-width:105px}.text-actions button{font-size:12px;padding:8px}.clipboard-bottom>.muted{font-size:11px}}
@media print{@page{size:A4;margin:18mm}body.clp-printing{background:#fff;color:#202a36}body.clp-printing>:not(#textExportPrint){display:none!important}body.clp-printing #textExportPrint{display:block!important;font:12pt/1.55 Inter,"Segoe UI",system-ui,sans-serif;overflow-wrap:anywhere}#textExportPrint p{margin:0 0 .85em}#textExportPrint h1,#textExportPrint h2,#textExportPrint h3{margin:.8em 0 .35em;break-after:avoid}#textExportPrint h1{font-size:24pt}#textExportPrint h2{font-size:19pt}#textExportPrint h3{font-size:15pt}#textExportPrint pre,#textExportPrint code{font-family:Consolas,"Courier New",monospace;font-size:10pt}#textExportPrint pre,#textExportPrint .export-plain{white-space:pre-wrap;tab-size:4;overflow-wrap:anywhere}#textExportPrint blockquote{border-left:3px solid #cbd3df;margin:1em 0;padding-left:1em}#textExportPrint ul,#textExportPrint ol{padding-left:1.5em}#textExportPrint li{break-inside:avoid}#textExportPrint li p{margin:0}#textExportPrint a{color:inherit}#textExportPrint hr{border:0;border-top:1px solid #cbd3df;margin:1em 0}}
