:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f8fafc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at top,#fff 0,#f8fafc 45%,#eef2f7);min-height:100vh}button,input{font:inherit}.page-shell{max-width:1180px;margin:0 auto;padding:40px 24px 72px}.topbar,.section-heading,.preview-main,.header-actions,.card-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar{margin-bottom:28px}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:800;color:#64748b;margin:0 0 7px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,5vw,3.3rem);line-height:1;margin-bottom:0;letter-spacing:-.04em}h2{font-size:1.25rem;margin-bottom:0}h3{font-size:1.08rem;margin:0}.create-card,.access-card,.preview-card,.empty,.login-card{background:#ffffffeb;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 12px 36px #0f172a0f}.create-card,.access-card{padding:24px;margin-bottom:32px}.access-help{color:#64748b;line-height:1.55;margin:18px 0 0}.access-help code{color:#334155}.token-box{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px;border:1px solid #dbe3ec;border-radius:12px;background:#f8fafc}.token-box>div{min-width:0;display:grid;gap:6px}.token-box span,.token-box small{color:#64748b;font-size:.78rem}.token-box code{display:block;overflow-wrap:anywhere;font-size:.78rem}.create-grid{display:grid;grid-template-columns:1fr 170px;gap:18px;margin-top:22px}.create-grid label{display:flex;flex-direction:column;gap:8px;font-size:.86rem;font-weight:700}.create-grid label span{font-weight:500;color:#94a3b8;margin-left:6px}.source-field{grid-column:1/3}.create-grid input{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:12px 14px;background:#fff;outline:none}.create-grid input:focus{border-color:#0f172a;box-shadow:0 0 0 3px #0f172a14}.button{border:1px solid transparent;border-radius:11px;padding:10px 14px;font-weight:750;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#0f172a}.button:disabled{opacity:.5;cursor:not-allowed}.button.primary{background:#0f172a;color:#fff}.button.ghost{border-color:#dbe3ec}.button.danger{border-color:#fecaca;color:#b91c1c;background:#fff}.button.wide{width:100%;padding:13px 16px}.submit{grid-column:2;justify-self:stretch}.segmented{background:#f1f5f9;padding:4px;border-radius:12px;display:flex}.segmented button{border:0;background:transparent;border-radius:9px;padding:8px 13px;color:#64748b;cursor:pointer}.segmented .active{background:#fff;color:#0f172a;box-shadow:0 1px 4px #0f172a1a}.list-section{margin-top:18px}.cards{display:grid;gap:14px;margin-top:16px}.preview-card{padding:20px}.preview-title{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:10px}.preview-title code{font-size:.72rem;color:#94a3b8;overflow:hidden;text-overflow:ellipsis}.status{font-size:.68rem;font-weight:850;letter-spacing:.06em;border-radius:999px;padding:5px 8px;background:#ecfdf5;color:#047857}.open-link{font-weight:750;color:#0f172a;text-decoration:none}.meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0;padding:16px 0;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}.meta-grid div{display:flex;flex-direction:column;gap:4px}.meta-grid span{font-size:.72rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em}.meta-grid strong{font-size:.88rem}.card-actions{justify-content:flex-end}.upload-button{position:relative;overflow:hidden}.upload-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.empty{padding:42px;text-align:center;margin-top:16px}.empty p{margin:8px 0 0;color:#64748b}.alert{display:flex;justify-content:space-between;gap:20px;padding:12px 16px;border:1px solid #fecaca;background:#fff1f2;color:#991b1b;border-radius:12px;margin-bottom:18px}.alert button{border:0;background:transparent;color:inherit;font-size:1.2rem;cursor:pointer}.login-shell,.center{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{max-width:520px;padding:38px}.login-card h1{font-size:2.65rem;margin-bottom:18px}.login-card>p:not(.eyebrow){color:#64748b;line-height:1.6;margin-bottom:24px}.brand-mark{width:48px;height:48px;border-radius:14px;background:#0f172a;color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:24px}.spinner{width:32px;height:32px;border:3px solid #cbd5e1;border-top-color:#0f172a;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:720px){.page-shell{padding:24px 16px 52px}.topbar{align-items:flex-start}.header-actions{flex-direction:column;align-items:stretch}.create-grid{grid-template-columns:1fr}.source-field,.submit{grid-column:1}.preview-main{align-items:flex-start}.preview-title{grid-template-columns:auto 1fr}.preview-title code{grid-column:1/3}.meta-grid{grid-template-columns:1fr 1fr}.card-actions{display:grid;grid-template-columns:1fr 1fr}.card-actions .danger{grid-column:1/3}.access-card .section-heading,.token-box{align-items:stretch;flex-direction:column}.login-card{padding:28px}.login-card h1{font-size:2.15rem}}.login-actions{display:flex;flex-direction:column;gap:14px}.login-actions .button{min-height:48px}.identity-list{display:grid;gap:12px;margin:18px 0}.identity-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #e2e8f0;border-radius:12px}.identity-item p{color:#64748b;font-size:.86rem;margin:6px 0 0;overflow-wrap:anywhere}.identity-item button{flex-shrink:0}@media(max-width:520px){.identity-item{align-items:stretch;flex-direction:column}.identity-item button{align-self:flex-start}}.merge-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.merge-stats>div{padding:16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.merge-stats p{margin:8px 0 0;color:#64748b;font-size:.9rem}@media(max-width:600px){.merge-stats{grid-template-columns:1fr}}.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border:1px solid #e2e8f0;border-radius:20px;background:#fff}.dashboard-hero h2{margin:0 0 8px}.dashboard-hero p:last-child{margin:0;color:#64748b}.dashboard-hero .button{white-space:nowrap}.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 32px}.dashboard-stats>div{display:grid;gap:6px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:15px 18px}.dashboard-stats strong{font-size:1.6rem}.dashboard-stats span{font-size:.82rem;color:#64748b}.dialog-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;overflow-y:auto;background:#0f172a8c;padding:16px}.dialog-panel{width:min(100%,650px);max-height:calc(100vh - 32px);overflow-y:auto}.dialog-panel .create-card{margin:0}.dialog-panel .segmented{margin:18px 0}.secondary-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;border-top:1px solid #eef2f7;padding-top:14px;margin-top:14px}.settings-content{max-width:850px;margin:0 auto}@media(max-width:720px){.dashboard-hero{align-items:stretch;flex-direction:column;padding:18px}.dashboard-hero .button{width:100%}.dashboard-stats{gap:8px}.dashboard-stats>div{padding:12px}.dashboard-stats strong{font-size:1.35rem}.secondary-actions{justify-content:stretch}.secondary-actions .button{flex:1 1 140px}.list-section>.section-heading{align-items:flex-start;flex-direction:column}.list-section .segmented{max-width:100%;overflow-x:auto}.dialog-panel .create-card{padding:20px}}.dialog-panel .create-card{background:#fff;box-shadow:0 24px 64px #0f172a40}.access-help,.access-help code,.settings-content{overflow-wrap:anywhere;min-width:0}.topbar{flex-wrap:wrap}@media(max-width:720px){.topbar{gap:14px}.topbar>.header-actions{flex-direction:row;flex-wrap:wrap;width:100%}.topbar>.header-actions .button{min-height:42px}}.preview-toolbar{display:flex;justify-content:flex-end;margin:0 0 16px}.preview-search{width:min(100%,390px)}.preview-search input{width:100%;border:1px solid #cbd5e1;border-radius:11px;background:#fff;padding:12px 14px;outline:none}.preview-search input:focus{border-color:#0f172a;box-shadow:0 0 0 3px #0f172a14}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:720px){.preview-search{width:100%}.preview-toolbar{justify-content:stretch}}
