@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root{--bg:#f5f6f8;--surface:#fff;--ink:#20232b;--muted:#858b98;--line:#e9ebef;--purple:#6d5ce8;--purple-soft:#f0edff;--green:#25a879;--shadow:0 12px 35px rgba(31,36,48,.045)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans','Noto Sans SC',sans-serif;font-size:14px}button,input,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#fff;border-right:1px solid var(--line);padding:27px 19px 20px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);padding:0 8px 44px}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#252538;color:white;font-size:23px;font-weight:500}.brand strong{display:block;font-size:16px;letter-spacing:-.4px}.brand small{display:block;font-size:9px;letter-spacing:1.4px;color:#9a9eaa;margin-top:3px}.nav-label,.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#a0a4af}.nav-label{padding:0 11px 12px}.nav-item{width:100%;height:44px;border:0;background:transparent;color:#707684;text-align:left;padding:0 12px;border-radius:9px;display:flex;align-items:center;gap:12px;margin-bottom:5px;font-weight:500}.nav-item.active{background:var(--purple-soft);color:var(--purple);font-weight:600}.nav-icon{font-size:18px;width:18px;text-align:center}.nav-count{margin-left:auto;background:#e5e0ff;color:var(--purple);font-size:10px;padding:3px 7px;border-radius:10px}.sidebar-bottom{margin-top:auto}.storage-card{background:#f7f7fb;border:1px solid #efeff5;border-radius:12px;padding:15px;margin-bottom:15px}.storage-icon{font-size:22px;color:var(--purple);margin-bottom:10px}.storage-card strong{font-size:12px}.storage-card p{font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0 13px}.secure-label{font-size:9px;letter-spacing:1px;color:#969ba7}.secure-label i,.status-dot,.sync-indicator i,.live-pill i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#35bd8a;margin-right:5px}.logout-button{width:100%;border:0;background:transparent;color:#7e8491;text-align:left;padding:10px 12px}.logout-button span{font-size:17px;margin-right:9px}.main-content{margin-left:248px;min-height:100vh}.topbar{height:68px;background:rgba(255,255,255,.82);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 48px;position:sticky;top:0;z-index:4;backdrop-filter:blur(12px)}.breadcrumb{color:#8b909c;font-size:12px}.breadcrumb span{padding:0 9px;color:#c2c5cc}.breadcrumb strong{color:#414652;font-weight:600}.topbar-right{display:flex;align-items:center;gap:18px}.sync-indicator{font-size:11px;color:#7c8390}.avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#eeeaff;color:var(--purple);font-size:9px;font-weight:700}.mobile-brand{display:none}.page-wrap{max-width:1110px;margin:0 auto;padding:43px 48px 24px}.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:36px}.welcome-row h1{font-size:27px;letter-spacing:-1px;margin:10px 0 7px;font-weight:650}.welcome-row p,.section-heading p,.subsection-heading p{margin:0;color:var(--muted);font-size:12px}.date-chip{display:flex;align-items:center;gap:8px;color:#7e8490;background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-size:11px}.date-icon{font-size:15px}.section-heading,.subsection-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-heading h2{font-size:17px;margin:0 0 5px;letter-spacing:-.3px}.quiet-button,.icon-button{border:1px solid var(--line);background:#fff;border-radius:7px;color:#777e8b;padding:8px 11px;font-size:11px}.quiet-button span{font-size:14px;margin-left:7px}.clipboard-card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:19px 21px 14px}.card-topline{display:flex;align-items:center;justify-content:space-between}.card-title{display:flex;align-items:center;gap:9px;font-size:12px}.card-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;font-size:14px}.purple{background:var(--purple-soft);color:var(--purple)}.live-pill{font-size:8px;letter-spacing:.8px;color:#969ba6;background:#f6f7f9;padding:5px 7px;border-radius:5px}.live-pill i{width:5px;height:5px}.autosave{font-size:10px;color:#a1a6b0}.clipboard-card textarea{display:block;width:100%;height:190px;resize:vertical;border:0;outline:0;padding:22px 3px 13px;color:#373c47;font-size:13px;line-height:1.8;background:transparent}.clipboard-card textarea::placeholder{color:#b4b8c1}.editor-footer{border-top:1px solid #f0f1f4;padding-top:12px;display:flex;align-items:center;justify-content:space-between}.editor-hints{display:flex;gap:17px;color:#a1a6b0;font-size:10px}.editor-actions{display:flex;align-items:center;gap:14px;color:#a1a6b0;font-size:10px}.primary-button{border:0;border-radius:7px;background:var(--purple);color:#fff;padding:10px 15px;font-weight:600;font-size:11px;box-shadow:0 4px 10px rgba(109,92,232,.15)}.primary-button:hover{background:#5c4bd4}.primary-button span{margin-left:8px;font-size:14px}.small-button{padding:8px 12px}.subsection-heading{margin:31px 0 12px}.subsection-heading h3{font-size:13px;margin:0 0 4px}.subsection-heading p{font-size:10px}.icon-button{width:30px;height:30px;padding:0;font-size:18px}.history-list,.file-list{display:flex;flex-direction:column;gap:8px}.history-item,.file-item{background:#fff;border:1px solid var(--line);border-radius:9px;padding:12px 14px;display:flex;align-items:center;gap:12px}.history-symbol,.file-symbol{width:34px;height:34px;flex:none;border-radius:8px;background:#f4f2ff;color:var(--purple);display:grid;place-items:center;font-size:16px}.history-main,.file-main{min-width:0;flex:1}.history-preview,.file-name{font-size:11px;color:#454a55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.history-meta,.file-meta{font-size:10px;color:#a0a5af;margin-top:4px}.item-action{border:0;background:transparent;color:#9298a4;padding:6px;font-size:15px}.item-action:hover{color:var(--purple)}.empty-state{background:#fff;border:1px dashed #e5e7ed;border-radius:9px;text-align:center;padding:28px;color:#a0a5af;font-size:11px}.drop-zone{background:#fff;border:1px dashed #d9d7ee;border-radius:12px;text-align:center;padding:36px 20px;transition:.2s}.drop-zone.dragover{border-color:var(--purple);background:#faf9ff}.upload-symbol{width:42px;height:42px;border-radius:12px;background:var(--purple-soft);color:var(--purple);display:grid;place-items:center;font-size:24px;margin:0 auto 12px}.drop-zone h3{font-size:13px;margin:0 0 7px}.drop-zone p{font-size:11px;color:#9298a4;margin:0 0 9px}.drop-zone>span{font-size:10px;color:#b0b4bd}.text-button{border:0;background:none;color:var(--purple);padding:0;font-weight:600}.file-total{font-size:11px;color:#8e94a0}.upload-progress{background:#fff;border:1px solid var(--line);border-radius:9px;padding:13px 15px;margin-top:12px}.progress-top{display:flex;justify-content:space-between;font-size:10px;margin-bottom:9px}.progress-top span{color:var(--purple)}.progress-track{height:4px;background:#f0eff7;border-radius:5px;overflow:hidden}.progress-track i{display:block;width:0;height:100%;background:var(--purple);transition:width .2s}.file-list-heading{margin-top:28px}.file-item .file-symbol{background:#eef6ff;color:#5087c8}.file-size{font-size:10px;color:#a0a5af;margin-right:5px}.page-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:44px;padding-top:15px;color:#a8acb5;font-size:10px}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);background:#262735;color:#fff;padding:10px 16px;border-radius:8px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;z-index:20;box-shadow:0 8px 25px #15152222}.toast.show{opacity:1;transform:translate(-50%,0)}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 35%,#eeebff 0,transparent 45%),#f6f7f9}.login-card{width:min(100%,380px);background:#fff;border:1px solid #ececf2;border-radius:17px;padding:37px 38px 27px;box-shadow:0 20px 65px #27234b12}.brand-mark.large{width:46px;height:46px;font-size:28px;margin-bottom:22px}.login-card .eyebrow{font-size:9px}.login-card h1{font-size:26px;margin:7px 0 4px;letter-spacing:-1px}.login-desc{font-size:12px;margin:0 0 27px}.muted{color:var(--muted)}.field-label{display:block;font-size:11px;font-weight:600;margin:15px 0 7px}.login-card input{width:100%;height:42px;border:1px solid #e7e8ed;border-radius:7px;padding:0 12px;outline:0;font-size:12px}.login-card input:focus{border-color:#9a8df0;box-shadow:0 0 0 3px #eeeaff}.full-button{width:100%;height:42px;margin-top:13px}.error-text{font-size:11px;color:#d45b62;min-height:14px;margin:9px 0 0}.login-foot{text-align:center;color:#a1a6b0;font-size:10px;margin-top:24px}.login-foot .status-dot{width:5px;height:5px}
@media(max-width:900px){.sidebar{width:210px}.main-content{margin-left:210px}.topbar{padding:0 28px}.page-wrap{padding:35px 28px 22px}}
@media(max-width:650px){.sidebar{display:none}.main-content{margin-left:0}.topbar{height:57px;padding:0 17px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:14px}.mobile-brand .brand-mark{width:29px;height:29px;font-size:19px;border-radius:8px}.topbar-right{gap:10px}.page-wrap{padding:28px 16px 20px}.welcome-row{align-items:flex-start;margin-bottom:27px}.welcome-row h1{font-size:22px}.welcome-row p{max-width:260px;line-height:1.6}.date-chip{display:none}.section-heading h2{font-size:16px}.section-heading p{max-width:245px;line-height:1.6}.clipboard-card{padding:15px 14px 12px}.clipboard-card textarea{height:190px;padding-top:17px}.editor-hints{gap:9px}.editor-hints span:last-child{display:none}.editor-actions{gap:8px}.autosave{font-size:9px}.welcome-row .eyebrow{font-size:9px}.page-footer{margin-top:34px}.login-card{padding:31px 25px 23px}.history-item,.file-item{padding:10px}.file-size{display:none}}

.current-image{padding:5px 2px 16px}.current-image img{display:block;max-width:100%;max-height:360px;object-fit:contain;border-radius:8px;background:#f6f6f8}.current-image span{display:block;color:#969ba6;font-size:10px;margin-top:8px}


/* Mobile: keep primary workspace navigation visible at the top. */
.mobile-nav{display:none}
@media(max-width:650px){
  .topbar{height:auto;min-height:57px;padding:10px 15px 9px;flex-wrap:wrap;row-gap:9px}
  .mobile-brand{order:1}
  .topbar-right{order:2;margin-left:auto}
  .mobile-nav{order:3;display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:0 0 100%;width:100%;padding:3px;border:1px solid #ececf2;border-radius:10px;background:#f6f6fa}
  .mobile-nav .nav-item{width:100%;min-width:0;height:39px;margin:0;padding:0 10px;justify-content:center;gap:7px;border-radius:8px;font-size:12px;white-space:nowrap}
  .mobile-nav .nav-item.active{background:#fff;box-shadow:0 1px 4px rgba(31,36,48,.09)}
  .mobile-nav .nav-icon{font-size:16px;width:auto}
  .mobile-nav .nav-count{margin-left:0;padding:2px 6px}
  .page-wrap{padding-top:22px}
}
