/* Semzen — Relation. Local fonts and original brand assets. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 900;font-display:swap;src:url('/ui/brand/54dbf8a8d65e.woff2') format('woff2')}
@font-face{font-family:Caveat;font-style:normal;font-weight:400;font-display:swap;src:url('/ui/brand/39ec0d5613d8.woff2') format('woff2')}
:root{font-family:'DM Sans',sans-serif;--accent:#137ffc;--ink:#222e36;--muted:#53626a;--line:#e0e2dc;background:#faf8f1;color:var(--ink);color-scheme:light}
button,input,select{font-family:inherit}
.brand{gap:18px;letter-spacing:0}.brand img{width:132px;height:auto;display:block}.brand span:last-child{font-size:13px;border-color:#d2d7d5;padding-left:18px}
.primary,.secondary,.quiet{border-radius:30px;min-height:46px;font-size:14px;padding:12px 20px;gap:12px;font-weight:600}
.primary{background:#086cdb;border-color:#086cdb;color:#fff;box-shadow:0 2px 3px #175b9810}.primary:hover{background:#075fbe;border-color:#075fbe}
.secondary{background:white;border-color:#d8dedf}.secondary:hover,.quiet:hover{background:#edf3fb}
.primary svg{margin-left:8px}.primary:has(svg){justify-content:space-between}
.quiet{font-weight:500}.subtle{font-size:15px;line-height:1.7}.blue{color:#137ffc}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #137ffc80;outline-offset:4px}
input:focus{border-color:#137ffc;outline:3px solid #137ffc18}input{height:54px;border-radius:14px;border-color:#ccd6d8;font-size:16px;padding:0 17px}
.field label{font-size:14px}.field{gap:10px;margin:24px 0 18px}
.eyebrow{font-family:Caveat,cursive;font-size:24px;letter-spacing:0;text-transform:none;font-weight:400;color:#37433f;display:inline-block;position:relative;padding-bottom:8px}
.eyebrow:after{content:'';position:absolute;bottom:0;left:0;right:0;border-bottom:1px solid #a2978077;border-radius:50%;height:5px;transform:rotate(-1deg)}
.login-layout{max-width:1600px;grid-template-columns:1.05fr 1fr;min-height:100svh;padding:28px;gap:28px}
.story{border:1px solid #e5e2d8;border-radius:28px;background:#f2efe5;padding:20px 38px 16px;overflow:hidden;position:relative}
.story .brand{background:none;padding:0}.story-main{padding:45px 0 28px;margin:auto 0}
.story h1{font-size:clamp(43px,4.8vw,68px);font-weight:600;line-height:1.02;letter-spacing:-.055em;margin:22px 0 20px}
.story h1 em{font-family:inherit;font-style:normal;font-weight:600;color:#137ffc}
.lead{font-size:17px;line-height:1.65;color:#425660;max-width:380px;margin-bottom:0}
.illustration-paper{position:relative;background:#fffefa;border:1px solid #e2dfd3;border-radius:20px;box-shadow:0 8px 18px #383a2b06;transform:rotate(-2deg);margin:34px 0 10px;padding:20px 17px 0;max-width:450px}
.art-caption{font:23px Caveat,cursive;color:#086cdb;display:block;margin:0 0 2px 6px}.flow-art{margin:0;width:100%;display:block}
.story-footer{font-size:12px;margin:10px 0 0;color:#626a67}
.login-side{background:none;padding:40px 28px}.login-card{max-width:390px}
.tag{border:0;background:#eaf0e2;color:#42583b;font-size:12px;letter-spacing:0;text-transform:none;padding:8px 12px;display:inline-flex;gap:7px;align-items:center}
.private-dot{height:6px;width:6px;border-radius:50%;background:#6e895a}
.login-card h2{font-size:38px;line-height:1.13;font-weight:600;letter-spacing:-.045em;margin:24px 0 15px}
.login-card .subtle{margin-bottom:30px;max-width:340px}.login-card .primary{min-height:52px;padding:14px 23px}.login-card .secondary{min-height:52px;background:#fff}
.divider{margin:25px 0;font-size:13px;color:#65757a}.login-note{font-size:13px;line-height:1.7;color:#62717a;margin-top:24px}
.topbar{height:84px;background:#faf8f1;padding:0 max(32px,calc((100vw - 1160px)/2));border-color:#e7e7de}
.top-actions{gap:5px}.avatar{background:#e3edfb;color:#2266b6;width:36px;height:36px;font-size:14px}
.workspace{max-width:1224px;padding:42px 32px 45px}.page-heading{margin-bottom:30px;align-items:center}.page-heading h1{font-size:44px;font-weight:600;letter-spacing:-.045em;margin:14px 0 13px}.page-heading .eyebrow{font-size:23px}.page-heading .primary{flex-shrink:0}.page-heading .primary span{font-size:22px;font-weight:400;line-height:1}
.current{border-radius:24px;border-color:#deded4;grid-template-columns:1.35fr 1fr;box-shadow:0 4px 8px #243c4803,0 18px 35px -25px #243c4820}
.preview{background:#edf2e5;position:relative;padding:45px 28px 25px;min-height:310px;border-color:#e2e6da}
.preview-label{position:absolute;top:14px;left:26px;font:21px Caveat,cursive;color:#4a6244}
.preview img{border-radius:8px;max-height:265px;filter:drop-shadow(0 5px 7px #30423115)}
.current-copy{padding:32px}.current-copy h2{font-size:27px;line-height:1.2;font-weight:600;margin:18px 0 12px}.current-copy .primary{margin-top:10px}.current-copy .quiet{font-size:13px;padding:14px 0 0;min-height:40px;border-radius:4px}.current-copy .quiet:hover{background:none;color:#086cdb;text-decoration:underline}
.status{font-size:12px;color:#50713f}.status:before{background:#7b9b67}.section-head{margin:34px 0 19px}.section-head h2{font-size:21px;font-weight:600;letter-spacing:-.025em}
.archive-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0}.archive-row{background:#fff;border:1px solid #e0e2dc;border-radius:18px;padding:21px;align-items:flex-start;flex-direction:column;gap:20px;transition:border-color .15s,box-shadow .15s}.archive-row:hover{border-color:#a9c8ea;box-shadow:0 5px 16px #263a4e06}
.archive-info{align-items:flex-start;gap:13px}.paper-icon{width:45px;height:49px;background:#eaf1fc;border:0;border-radius:12px;color:#286ebb;transform:rotate(-4deg)}.archive-row:nth-child(3n+2) .paper-icon{background:#edf2e5;color:#617d4d;transform:rotate(3deg)}.archive-row:nth-child(3n) .paper-icon{background:#f2ebdf;color:#8d7652;transform:rotate(-2deg)}
.archive-info h3{font-size:15px;line-height:1.4;font-weight:600;margin:0 0 9px}.archive-info p{font-size:12px;line-height:1.5}.archive-row .secondary{min-height:40px;padding:8px 14px;font-size:13px;align-self:flex-end;margin-top:auto}.archive-row .secondary svg{width:15px;height:15px}
.switch{font-size:12px;line-height:1.4}.switch input{accent-color:#137ffc}.footer-note{font-size:12px;line-height:1.6;margin-top:25px;color:#637079}.empty{grid-column:1/-1}
.modal{background:#faf8f1;border-radius:24px}.modal .primary{justify-content:center}.message{background:#eaf2ff;border-radius:12px}.message.error{background:#fae9e2}
@media(min-width:801px) and (max-height:800px){.story-main{padding:28px 0 20px}.story h1{font-size:55px}.illustration-paper{margin-top:25px;max-width:390px}.flow-art{max-height:170px}.story-footer{font-size:11px}.login-layout{padding:20px;gap:20px}}
@media(max-width:1000px) and (min-width:801px){.story{padding:20px 26px}.login-side{padding:30px 20px}.story h1{font-size:48px}.brand{gap:12px}.brand span:last-child{padding-left:12px}.archive-list{gap:12px}.archive-row{padding:17px}.current-copy{padding:25px}}
@media(max-width:800px){.login-layout{padding:0;display:block}.login-side{padding:28px 24px 40px;align-items:flex-start;background:#faf8f1;min-height:100svh}.mobile-brand{display:flex;margin-bottom:43px}.brand img{width:120px}.login-card{max-width:440px}.login-card h2{font-size:36px;margin-top:22px}.login-card .subtle{margin-bottom:27px}.topbar{padding:0 20px;height:72px}.workspace{padding:28px 20px 35px}.page-heading{gap:20px;margin-bottom:25px;align-items:flex-start}.page-heading h1{font-size:35px;max-width:480px}.page-heading .subtle{max-width:420px}.page-heading .eyebrow{font-size:22px}.current{grid-template-columns:1fr;border-radius:20px}.preview{min-height:210px;max-height:none;padding:48px 22px 22px}.preview img{max-height:220px}.current-copy{padding:25px}.current-copy h2{font-size:26px}.current-copy .primary{margin-top:20px}.section-head{flex-direction:column;gap:15px;align-items:flex-start}.switch{max-width:none;font-size:12px}.archive-list{grid-template-columns:1fr 1fr}.archive-row{padding:19px}.footer-note{margin-top:22px}}
@media(max-width:520px){.archive-list{grid-template-columns:1fr}.archive-row{flex-direction:row;align-items:center;gap:12px}.archive-info{gap:12px}.archive-info h3{font-size:14px}.paper-icon{width:37px;height:44px}.archive-row .secondary{align-self:center;font-size:0;padding:10px;min-width:40px}.archive-row .secondary svg{width:17px;height:17px}.top-actions .quiet{font-size:13px;padding:10px}.brand span:last-child{font-size:12px}.current-copy .subtle{font-size:14px}.section-head h2{font-size:20px}}
/* Saved diagrams: chronological list with actual scene thumbnails. */
.archive-order{font-size:12px;color:var(--muted);margin:7px 0 0}
.archive-list{display:flex;flex-direction:column;gap:10px}
.archive-row{flex-direction:row;align-items:center;padding:14px 20px;gap:24px;border-radius:16px}
.archive-info{align-items:center;gap:22px;flex:1}
.archive-info h3{font-size:16px;margin-bottom:7px}
.archive-row .secondary{align-self:center;margin:0;flex-shrink:0}
.archive-thumbnail{width:148px;height:94px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:1px solid #e7e9e4;border-radius:9px;background:#fff;overflow:hidden;color:#69757a;font-size:11px;text-align:center;padding:5px}
.archive-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:800px){.archive-row{padding:12px;gap:12px}.archive-info{gap:14px}.archive-thumbnail{width:110px;height:76px}.archive-info h3{font-size:14px}}
@media(max-width:520px){.archive-row{padding:10px;gap:8px}.archive-info{gap:10px}.archive-thumbnail{width:82px;height:64px}.archive-info h3{font-size:13px;line-height:1.45}.archive-info p{font-size:11px}.archive-row .secondary{min-width:34px;padding:8px;gap:0}.archive-order{font-size:11px}}

/* Read-only enlarged snapshot viewer. */
.archive-thumbnail{cursor:zoom-in;transition:border-color .15s,box-shadow .15s}
.archive-thumbnail:hover{border-color:#137ffc;box-shadow:0 0 0 2px #137ffc22}
.archive-thumbnail:focus-visible{outline:3px solid #137ffc;outline-offset:3px}
.diagram-preview{width:min(1440px,calc(100vw - 48px));height:calc(100dvh - 48px);max-width:none;max-height:none;padding:22px;border:1px solid #deded4;border-radius:22px;background:#faf8f1;color:#222e36;box-shadow:0 20px 80px #0003}
.diagram-preview[open]{display:flex;flex-direction:column;gap:18px}
.diagram-preview::backdrop{background:#17252bcc;backdrop-filter:blur(3px)}
.diagram-preview-header{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-shrink:0}
.diagram-preview-header h2{font-size:20px;line-height:1.3;margin:0 0 6px;overflow-wrap:anywhere}
.diagram-preview-header p{font-size:12px;color:var(--muted);margin:0}
.diagram-preview-actions{display:flex;gap:8px;flex-shrink:0}
.diagram-preview-stage{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;overflow:auto;background:#fff;border:1px solid #e7e9e4;border-radius:12px;padding:12px}
.diagram-preview-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.diagram-preview-stage.actual-size{display:block}
.diagram-preview-stage.actual-size img{max-width:none;max-height:none;margin:auto}
@media(max-width:600px){.diagram-preview{width:calc(100vw - 20px);height:calc(100dvh - 20px);padding:14px;border-radius:16px}.diagram-preview-header{align-items:flex-start;flex-direction:column;gap:12px}.diagram-preview-header h2{font-size:16px}.diagram-preview-actions{width:100%;justify-content:flex-end}.diagram-preview-actions button{font-size:12px;padding:8px 12px;min-height:38px}.diagram-preview-stage{padding:4px}}

/* Document actions remain readable and reachable on narrow screens. */
.document-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.document-secondary-actions{display:flex;gap:2px}
.document-secondary-actions .quiet{font-size:12px;padding:8px;min-height:36px}
.danger-text{color:#9b392a}.danger-text:hover{background:#f9eae4}
.primary.danger-button{background:#a13e2d;border-color:#a13e2d}.primary.danger-button:hover{background:#853022}
@media(max-width:520px){.archive-row{flex-wrap:wrap}.archive-info{flex-basis:100%}.document-actions{width:100%;flex-direction:row;align-items:center;justify-content:space-between}.archive-row .document-actions .secondary{font-size:12px;padding:8px 12px;gap:8px}.document-secondary-actions .quiet{min-height:44px}}

.page-heading .new-document-icon{width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border-radius:50%}
.document-secondary-actions .document-icon{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}
.document-icon:hover{background:#edf2f7}.document-icon.danger-text:hover{background:#f9eae4}

.share-document-title{font-weight:600;overflow-wrap:anywhere}.share-modes{border:0;padding:0;margin:20px 0;display:grid;gap:10px}.share-modes legend{font-size:13px;font-weight:600;margin-bottom:10px}.share-modes label{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:#fff}.share-modes label:has(input:checked){border-color:#1478df;background:#eef5ff}.share-modes input{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:#0874dc}.share-modes strong,.share-modes small{display:block}.share-modes strong{font-size:14px}.share-modes small{font-size:12px;color:var(--muted);margin-top:4px}#share-link{font-size:12px}
