:root{
  --paper:#fffdf5;--paper-deep:#fff9e9;--ink:#29252b;--muted:#77717a;--line:#e8e0d8;
  --lav:#d8acff;--lav-pale:#f4e4ff;--lav-soft:#ead2ff;--lime:#f1ffbf;--mint:#d7ffc7;
  --cream:#fffcd7;--ivory:#ffffed;--butter:#fff8be;--plum:#68427f;--green:#466b45;
  --shadow:0 12px 35px rgba(65,48,67,.07);--radius:18px;--radius-sm:12px;
  font-family:var(--brand-font-body,Inter),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}html{background:#f8f5ef}body{margin:0;color:var(--ink);background:#f8f5ef;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(104,66,127,.28);outline-offset:2px}button:disabled{opacity:.55;cursor:not-allowed}
[hidden]{display:none!important}.app-shell{min-height:100vh;display:grid;grid-template-columns:256px minmax(0,1fr)}
.sidebar{background:#fbf8f1;border-right:1px solid #e9e2d8;padding:25px 16px 16px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;overflow-y:auto}
.brand-lockup{display:flex;align-items:center;gap:11px;padding:0 10px 20px}.brand-symbol{width:38px;height:38px;border-radius:13px;background:var(--lav);display:grid;place-items:center;color:var(--plum);font-size:24px;box-shadow:3px 3px 0 #c8a0e8;transform:rotate(-3deg)}.brand-title{font-family:Georgia,serif;font-size:18px;font-weight:700;letter-spacing:-.35px}.brand-subtitle{font-size:11px;color:var(--muted);margin-top:2px;letter-spacing:.04em}.workspace-chip{font-size:11px;color:#5e6e52;background:#f0f6e5;border:1px solid #e1ebd0;border-radius:30px;padding:8px 10px;margin:0 6px 22px;display:flex;gap:8px;align-items:center}.status-dot{width:7px;height:7px;border-radius:100%;background:#6c9b51;box-shadow:0 0 0 3px #deedce}.nav-groups{display:flex;flex-direction:column;gap:4px}.nav-label{font-size:9px;letter-spacing:.15em;color:#9b9399;font-weight:800;padding:0 12px 7px}.nav-label-spaced{margin-top:18px}.nav-item{border:0;background:transparent;color:#5b555d;display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 12px;border-radius:11px;font-size:13px;transition:background .16s,color .16s}.nav-item:hover{background:#f2ecf4;color:var(--plum)}.nav-item.active{background:#efe1f8;color:#57366d;font-weight:700;box-shadow:inset 3px 0 0 var(--plum)}.nav-icon{font-size:17px;line-height:1;width:18px;text-align:center;color:#8c7198}.sidebar-bottom{margin-top:auto;padding-top:18px}.sidebar-tip{padding:13px 13px 12px;border-radius:13px;background:var(--cream);border:1px solid #f0e7bb;position:relative;margin-bottom:12px}.tip-spark{position:absolute;right:12px;top:8px;color:#a18b37}.sidebar-tip p{font-size:11px;line-height:1.55;color:#645d4d;margin:0;padding-right:14px}.sidebar-tip strong{color:#423c31}.sidebar-foot{font-size:10px;color:#98919a;padding:12px 10px 0;display:flex;gap:7px;align-items:center}.lock-mini{color:#72935e}
.main-area{min-width:0;display:flex;flex-direction:column;min-height:100vh}.topbar{height:88px;border-bottom:1px solid #ece5dc;background:rgba(255,253,248,.88);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,55px);position:sticky;top:0;z-index:5;backdrop-filter:blur(12px)}.topbar-title .eyebrow{margin-bottom:3px}.topbar h1{font-family:Georgia,serif;font-size:25px;letter-spacing:-.55px;margin:0;font-weight:600}.eyebrow{font-size:9px;letter-spacing:.15em;font-weight:800;color:#9b829f}.topbar-actions{display:flex;align-items:center;gap:12px}.search-box{height:39px;width:min(250px,27vw);display:flex;align-items:center;gap:9px;padding:0 12px;background:#fff;border:1px solid #e9e1e8;border-radius:11px;color:#a095a2}.search-box input{border:0;outline:0;width:100%;min-width:0;color:var(--ink);font-size:12px;background:transparent}.button{border:1px solid transparent;border-radius:10px;padding:10px 14px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:transform .15s,background .15s,border .15s}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--plum);color:white;box-shadow:0 4px 10px rgba(104,66,127,.16)}.button-primary:hover{background:#543469}.button-soft{background:#f1e4f8;color:var(--plum);border-color:#e9d8f2}.button-quiet{background:#fff;color:#655d65;border-color:#e7dfe7}.button-danger{background:#fff1ef;color:#9a4439;border-color:#f1d6d1}.button-small{padding:7px 10px;font-size:11px}.button-wide{width:100%}.text-button{border:0;background:transparent;color:var(--plum);font-size:12px;font-weight:700;padding:10px 0}.icon-button{width:34px;height:34px;border:1px solid #e9e1e8;background:#fff;border-radius:10px;color:#766c78;font-size:18px;display:grid;place-items:center}.mobile-only{display:none}
.view-content{width:min(1320px,100%);padding:29px clamp(20px,4vw,55px) 45px;margin:0 auto;flex:1}.app-footer{border-top:1px solid #ece5dc;color:#9b949b;font-size:10px;display:flex;justify-content:space-between;gap:16px;padding:15px clamp(20px,4vw,55px)}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:1px 0 23px}.page-intro h2{font-family:Georgia,serif;font-size:clamp(23px,3vw,31px);font-weight:500;letter-spacing:-.7px;margin:7px 0 7px}.page-intro p{color:var(--muted);font-size:12px;line-height:1.65;max-width:690px;margin:0}.page-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:26px 0 13px}.section-heading h3{font-family:Georgia,serif;font-size:18px;font-weight:500;margin:0}.section-heading p{font-size:11px;color:var(--muted);margin:4px 0 0}.muted{color:var(--muted)}.micro{font-size:10px;line-height:1.5}.small{font-size:11px}.eyebrow-inline{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#9d879f;font-weight:800}
.hero-panel{position:relative;overflow:hidden;padding:27px 30px;border-radius:19px;background:linear-gradient(120deg,#f2e2ff 0%,#fbf0ff 58%,#f6ffe7 100%);border:1px solid #ead9f2;box-shadow:var(--shadow);margin-bottom:20px}.hero-panel:after{content:"";position:absolute;right:8%;top:-50px;width:210px;height:210px;border:1.5px dashed rgba(104,66,127,.2);border-radius:44% 56% 53% 47%;transform:rotate(24deg)}.hero-panel:before{content:"";position:absolute;right:13%;top:9px;width:110px;height:110px;border:1px solid rgba(104,66,127,.17);border-radius:50%;transform:rotate(-18deg)}.hero-panel .eyebrow{color:#836294}.hero-panel h2{font-family:Georgia,serif;font-weight:500;font-size:clamp(24px,3vw,34px);letter-spacing:-.7px;max-width:590px;margin:9px 0 8px}.hero-panel p{font-size:12px;line-height:1.65;color:#625769;max-width:610px;margin:0}.hero-panel .hero-actions{display:flex;gap:9px;margin-top:18px;flex-wrap:wrap;position:relative;z-index:1}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.stat-card{padding:15px 17px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.78)}.stat-card .stat-label{font-size:10px;color:#837b84}.stat-card .stat-value{font-family:Georgia,serif;font-size:27px;margin-top:7px;line-height:1}.stat-card .stat-note{font-size:10px;color:#9a929b;margin-top:7px}.stat-card:nth-child(2){background:#f7effd}.stat-card:nth-child(3){background:#f6faec}.stat-card:nth-child(4){background:#fffbed}.grid-two{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:16px}.paper-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 5px 18px rgba(65,48,67,.035)}.panel-card{padding:18px}.panel-card h3{font-family:Georgia,serif;font-size:18px;font-weight:500;margin:0 0 5px}.panel-card>p{font-size:11px;color:var(--muted);line-height:1.6;margin:0 0 14px}.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quick-action{background:#fff;border:1px solid #eae3eb;padding:12px;border-radius:12px;display:flex;align-items:center;gap:10px;text-align:left;color:var(--ink)}.quick-action:hover{border-color:#d7b9e8;background:#fcf8ff}.quick-icon{height:32px;width:32px;border-radius:10px;background:#f0e3f8;color:var(--plum);display:grid;place-items:center;font-size:17px;flex:none}.quick-action strong{font-size:11px;display:block}.quick-action small{font-size:9px;color:#958d96;display:block;margin-top:3px}.pipeline{display:flex;flex-direction:column;gap:10px}.pipeline-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f0eae3}.pipeline-row:last-child{border-bottom:0}.pipeline-mark{width:28px;height:28px;border-radius:9px;background:#f4e9fb;color:var(--plum);display:grid;place-items:center;flex:none}.pipeline-copy{min-width:0;flex:1}.pipeline-copy strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pipeline-copy small{font-size:9px;color:#938b94}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:30px;padding:5px 8px;font-size:9px;font-weight:700;white-space:nowrap;background:#f2edf2;color:#756a78}.pill.draft{background:#f2eef3;color:#746b76}.pill.review{background:#fff4d6;color:#846b28}.pill.approved{background:#edf6e5;color:#547440}.pill.published{background:#eaf4ef;color:#45735a}.pill.needs{background:#fff0ed;color:#a04e42}.pill.verified{background:#edf6e5;color:#547440}
.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.item-card{padding:16px;min-width:0;display:flex;flex-direction:column;gap:10px;transition:transform .15s,border .15s}.item-card:hover{transform:translateY(-2px);border-color:#d7c4df}.item-card .card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.item-kind{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#968b96;font-weight:800}.item-card h3{font-family:Georgia,serif;font-size:18px;font-weight:500;line-height:1.25;margin:0}.item-card p{font-size:11px;color:#79727b;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-meta{display:flex;gap:6px;flex-wrap:wrap}.tag{background:#f7f2f7;color:#796e7b;font-size:9px;padding:4px 7px;border-radius:6px}.card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto;padding-top:4px}.empty-state{padding:28px 20px;text-align:center;border:1px dashed #dcd1dd;border-radius:15px;background:rgba(255,255,255,.5)}.empty-symbol{font-size:25px;color:#a783b8}.empty-state h3{font-family:Georgia,serif;font-weight:500;font-size:18px;margin:8px 0 5px}.empty-state p{max-width:430px;margin:0 auto 13px;color:var(--muted);font-size:11px;line-height:1.6}.list-table{width:100%;border-collapse:collapse}.list-table th{text-align:left;font-size:9px;letter-spacing:.1em;color:#988f98;font-weight:800;text-transform:uppercase;padding:10px 11px;border-bottom:1px solid var(--line)}.list-table td{padding:12px 11px;border-bottom:1px solid #f0ebe6;font-size:11px;vertical-align:middle}.list-table tr:last-child td{border-bottom:0}.table-title{font-weight:700;color:#413a43}.table-sub{display:block;color:#9b939c;font-size:9px;margin-top:3px}.table-wrap{overflow-x:auto}.callout{border-left:3px solid #b68bcc;background:#f7effb;padding:12px 14px;border-radius:0 10px 10px 0;font-size:11px;color:#67576e;line-height:1.6}.callout.warning{border-color:#c6a344;background:#fff9e8;color:#786533}.callout.good{border-color:#8eae70;background:#f3f8ed;color:#5a7048}.content-detail{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px}.detail-main{padding:20px}.detail-main h2{font-family:Georgia,serif;font-weight:500;font-size:25px;margin:6px 0 12px}.detail-section{padding:15px 0;border-top:1px solid #eee8e1}.detail-section:first-of-type{border-top:0}.detail-section h4{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#96859b;margin:0 0 7px}.detail-section p{font-size:12px;white-space:pre-wrap;line-height:1.75;color:#58515a;margin:0}.detail-side{padding:17px;height:max-content}.detail-side h3{font-family:Georgia,serif;font-weight:500;font-size:17px;margin:0 0 12px}.side-row{padding:9px 0;border-top:1px solid #eee8e1}.side-row span{display:block;color:#988f98;font-size:9px;margin-bottom:4px}.side-row strong{font-size:11px;font-weight:600}.module-block{padding:14px 15px;border:1px solid #e9e1e8;border-radius:13px;margin:10px 0;background:#fff}.module-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.module-head h4{font-family:Georgia,serif;font-size:17px;font-weight:500;margin:0}.lesson-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #f0eaf0;padding:10px 2px;margin-top:10px}.lesson-row:first-of-type{margin-top:13px}.lesson-copy strong{font-size:11px;display:block}.lesson-copy small{color:#958d95;font-size:9px}.lesson-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.form-field label{font-size:10px;color:#625a65;font-weight:700}.form-field input,.form-field textarea,.form-field select,.stack-form input,.dialog-fields input,.dialog-fields textarea,.dialog-fields select{width:100%;border:1px solid #e5dce5;border-radius:9px;background:#fffefa;padding:10px 11px;font-size:12px;color:var(--ink)}.form-field textarea,.dialog-fields textarea{resize:vertical;min-height:90px;line-height:1.55}.form-field input::placeholder,.form-field textarea::placeholder{color:#b3abb4}.hint{font-size:9px;color:#9b939b;line-height:1.5}.filter-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.filter-chip{border:1px solid #e7dfe7;border-radius:25px;background:#fff;color:#776e78;padding:7px 10px;font-size:10px}.filter-chip.active{background:#f0e3f8;border-color:#e1cbe9;color:#603d73;font-weight:700}.search-results-head{display:flex;justify-content:space-between;align-items:center;margin:10px 0 15px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.settings-card{padding:18px}.settings-card h3{font-family:Georgia,serif;font-size:18px;font-weight:500;margin:0 0 7px}.settings-card p{font-size:11px;color:var(--muted);line-height:1.6}.setting-line{padding:10px 0;border-top:1px solid #eee8e1;display:flex;align-items:center;justify-content:space-between;gap:10px}.setting-line strong{font-size:11px;display:block}.setting-line small{font-size:9px;color:#958e96;display:block;margin-top:3px}.swatch-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.swatch{height:35px;width:35px;border-radius:10px;border:1px solid rgba(0,0,0,.07);position:relative}.swatch span{position:absolute;top:39px;left:0;font-size:8px;color:#8d858d;white-space:nowrap}.swatch-row{padding-bottom:18px}.tag-list{display:flex;gap:6px;flex-wrap:wrap}.divider{height:1px;background:#eee8e1;margin:14px 0}
.gate{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 15% 15%,#f4e4ff 0,transparent 32%),radial-gradient(circle at 85% 85%,#f1ffbf 0,transparent 28%),#f8f5ef}.gate-card{width:min(430px,100%);padding:32px 34px;box-shadow:0 18px 55px rgba(60,45,65,.1);border-radius:21px;background:#fffdf7}.gate-mark{width:46px;height:46px;border-radius:15px;background:var(--lav);display:grid;place-items:center;font-size:27px;color:var(--plum);margin-bottom:17px;box-shadow:3px 3px 0 #c8a0e8}.gate-card h1{font-family:Georgia,serif;font-size:29px;font-weight:500;letter-spacing:-.7px;margin:7px 0}.gate-card>p{font-size:12px;line-height:1.6}.stack-form{margin-top:20px}.stack-form label,.gate-card label:not(.file-pick){font-size:10px;font-weight:700;display:block;margin:12px 0 6px;color:#5c535f}.stack-form input{padding:12px}.gate-note{font-size:10px;color:#716a72;background:#f7f3e9;border-radius:10px;padding:11px 12px;line-height:1.55;margin-top:17px}.gate-note strong{color:#4f4850}.form-error{color:#a7443a;font-size:10px;min-height:15px;margin:5px 0}.file-pick{display:block;border:1px dashed #cbb8d4;padding:12px;border-radius:10px;font-size:11px;color:var(--plum);margin-top:10px;cursor:pointer}.file-pick input{display:block;margin-top:8px;font-size:10px}.editor-dialog,.prompt-dialog{border:1px solid #e6dce8;border-radius:19px;padding:0;width:min(650px,calc(100% - 28px));max-height:min(88vh,850px);box-shadow:0 25px 80px rgba(32,20,36,.25);background:#fffdf8;color:var(--ink)}.prompt-dialog{width:min(760px,calc(100% - 28px));padding:22px}.editor-dialog::backdrop,.prompt-dialog::backdrop{background:rgba(39,30,42,.4);backdrop-filter:blur(3px)}.editor-dialog form{padding:22px}.dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.dialog-top h2{font-family:Georgia,serif;font-size:23px;font-weight:500;margin:5px 0 0}.dialog-fields{max-height:58vh;overflow:auto;padding-right:4px}.dialog-fields .field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dialog-fields .form-field{margin-bottom:11px}.dialog-fields .full{grid-column:1/-1}.dialog-fields .form-field textarea{min-height:82px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.prompt-dialog textarea{width:100%;border:1px solid #e5dce5;border-radius:11px;padding:13px;font-size:11px;line-height:1.6;background:#fffefb;resize:vertical;color:#49424c}.toast{position:fixed;bottom:22px;right:22px;background:#3f3545;color:white;padding:11px 15px;border-radius:11px;font-size:11px;box-shadow:0 8px 25px rgba(0,0,0,.18);opacity:0;transform:translateY(10px);pointer-events:none;transition:.22s;z-index:20;max-width:min(380px,calc(100vw - 40px))}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1050px){.app-shell{grid-template-columns:225px minmax(0,1fr)}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-detail{grid-template-columns:minmax(0,1fr) 230px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;z-index:15;left:0;top:0;bottom:0;height:100dvh;width:275px;transform:translateX(-105%);transition:transform .22s;box-shadow:12px 0 35px rgba(0,0,0,.08)}.sidebar.open{transform:translateX(0)}.main-area{min-height:100vh}.topbar{height:75px;padding:0 16px;gap:10px}.mobile-only{display:grid}.topbar-title{flex:1}.topbar h1{font-size:21px}.topbar-title .eyebrow{font-size:8px}.topbar-actions{gap:6px}.search-box{width:38px;padding:0 10px}.search-box:focus-within{width:min(190px,42vw)}.search-box input{min-width:0}.search-box input::placeholder{color:transparent}.search-box:focus-within input::placeholder{color:#b3abb4}.button-quiet span{display:none}.view-content{padding:22px 15px 34px}.page-intro{align-items:flex-start;flex-direction:column}.page-actions{justify-content:flex-start}.hero-panel{padding:22px}.hero-panel:before,.hero-panel:after{opacity:.5;right:-35px}.grid-two,.content-detail,.settings-grid{grid-template-columns:1fr}.detail-side{order:-1}.app-footer{padding:13px 16px;flex-direction:column;gap:5px}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-fields{grid-template-columns:1fr}}
@media(max-width:480px){.item-grid{grid-template-columns:1fr}.stats-grid{gap:8px}.stat-card{padding:12px}.quick-actions{grid-template-columns:1fr}.hero-panel h2{font-size:25px}.dialog-fields .field-row{grid-template-columns:1fr}.dialog-fields .field-row .full{grid-column:auto}.gate-card{padding:26px 22px}.page-intro h2{font-size:26px}.table-wrap{margin:0 -5px}.list-table th,.list-table td{padding:10px 7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Product roadmap and creator workspace additions */
.compact-stats{margin:12px 0 18px}.roadmap-group{margin:22px 0}.roadmap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.roadmap-card{padding:16px;display:flex;flex-direction:column;gap:10px}.roadmap-card h3{font-family:Georgia,serif;font-size:18px;font-weight:500;line-height:1.25;margin:0}.roadmap-card>p{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.roadmap-meta{display:grid;gap:9px;border-top:1px solid #eee8e1;padding-top:10px}.roadmap-meta div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px}.roadmap-meta span{font-size:9px;color:#9a909a;text-transform:uppercase;letter-spacing:.07em}.roadmap-meta strong{font-size:10px;font-weight:600;color:#59515d;line-height:1.5}.priority-tag{font-size:10px;font-weight:800;letter-spacing:.08em;padding:6px 9px;border-radius:999px;background:#f5eff7;color:#735184}.priority-tag.p1{background:#f1e5f8;color:#67447c}.priority-tag.p2{background:#f5f4e9;color:#7b7041}.priority-tag.p3{background:#edf2e9;color:#55704b}.roadmap-principles{padding:18px;margin-top:18px}.roadmap-principles h3{font-family:Georgia,serif;font-size:18px;font-weight:500;margin:0 0 14px}.principle-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.principle-grid>div{padding:11px;border-radius:10px;background:#faf7f1;border:1px solid #eee7dd}.principle-grid strong{font-size:11px;color:#514950}.principle-grid p{font-size:10px;line-height:1.55;color:#827983;margin:6px 0 0}.strategy-shortcuts{margin-top:16px}.shortcut-card{padding:17px;text-align:left;display:flex;flex-direction:column;gap:7px;cursor:pointer;color:var(--ink);background:rgba(255,255,255,.75);border:1px solid var(--line);border-radius:14px}.shortcut-card strong{font-family:Georgia,serif;font-size:18px;font-weight:500}.shortcut-card small{font-size:10px;line-height:1.55;color:var(--muted)}
/* White-label brand profile controls and live preview */
.brand-manager{padding:22px;margin-bottom:18px}.brand-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}.brand-manager-head h3,.brand-section h4{font-family:var(--brand-font-heading,Georgia),serif;font-weight:500;margin:0 0 6px}.brand-manager-head p{font-size:11px;color:var(--muted);line-height:1.6;margin:0}.brand-profile-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.brand-profile-actions select{min-width:160px}.brand-preview{display:flex;align-items:center;gap:16px;padding:18px 20px;margin:18px 0;border:1px solid color-mix(in srgb,var(--preview-primary),white 75%);border-radius:15px;background:linear-gradient(115deg,var(--preview-bg),var(--preview-secondary));color:var(--preview-text)}.brand-preview-mark{width:54px;height:54px;border-radius:14px;background:var(--preview-primary);color:white;display:grid;place-items:center;font-size:27px;overflow:hidden;flex:none}.brand-preview-mark img{width:100%;height:100%;object-fit:contain;background:white}.brand-preview h3{font-family:var(--brand-font-heading,Georgia),serif;font-size:22px;font-weight:500;margin:3px 0}.brand-preview p{font-size:11px;margin:0;opacity:.75}.preview-chip{margin-left:auto;padding:7px 10px;border-radius:9px;background:var(--preview-accent);color:var(--preview-text);font-size:10px}.brand-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.brand-section{padding:17px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.55);min-width:0}.brand-section h4{font-size:17px}.brand-section .form-field{margin:12px 0}.brand-section input,.brand-section textarea,.brand-section select{width:100%}.color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px}.color-control{display:flex;gap:7px;align-items:center}.color-control input[type=color]{width:43px;height:37px;padding:3px;flex:none}.color-control input[type=text]{min-width:0}.logo-current{display:flex;align-items:center;gap:12px;margin-top:10px}.logo-current img{width:65px;height:55px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:white}.brand-save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:17px;margin-top:17px;border-top:1px solid var(--line)}.brand-save-row p{margin:4px 0 0}.brand-templates{grid-column:1/-1}body[data-brand-theme="clean"] .paper-card{box-shadow:none;border-radius:10px}body[data-brand-theme="clean"] .hero-panel{background:var(--paper);border-radius:10px}body[data-brand-theme="bold"] .topbar,body[data-brand-theme="bold"] .sidebar{border-color:var(--plum)}body[data-brand-theme="bold"] .nav-item.active{background:var(--plum);color:#fff}body[data-brand-theme="bold"] .nav-item.active .nav-icon{color:#fff}h1,h2,h3,h4,.brand-title,.hero-panel h2,.page-intro h2{font-family:var(--brand-font-heading,Georgia),serif}
@media(max-width:800px){.brand-editor-grid{grid-template-columns:1fr}.brand-templates{grid-column:auto}.brand-manager-head{display:block}.brand-profile-actions{margin-top:12px}.brand-preview{align-items:flex-start}.preview-chip{display:none}.brand-save-row{align-items:flex-start;flex-direction:column}}


/* Optional Islamic design collection: seven editable brand presets. */
.islamic-theme-library{padding:22px;margin-bottom:18px}
.theme-library-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.theme-library-heading h3{font-family:var(--brand-font-heading,Georgia),serif;font-size:21px;font-weight:500;margin:5px 0 6px}
.theme-library-heading p{max-width:800px;font-size:11px;line-height:1.65;color:var(--muted);margin:0}
.theme-count{flex:none;border:1px solid var(--line);border-radius:999px;padding:7px 11px;font-size:10px;color:var(--muted);background:var(--paper)}
.theme-safeguard-note{margin:15px 0;padding:11px 13px;border-left:3px solid #b99a59;border-radius:0 9px 9px 0;background:#faf6ec;color:#665c48;font-size:10px;line-height:1.6}
.islamic-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:15px}
.islamic-theme-card{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--paper);min-width:0;display:flex;flex-direction:column}
.islamic-theme-card.is-applied{border-color:var(--plum);box-shadow:0 0 0 2px color-mix(in srgb,var(--plum),transparent 82%)}
.theme-card-preview{height:105px;padding:17px 18px;position:relative;overflow:hidden;background:linear-gradient(125deg,var(--theme-paper),var(--theme-secondary));color:var(--theme-text);border-bottom:1px solid rgba(0,0,0,.06)}
.theme-preview-rule{height:4px;width:36%;border-radius:4px;background:var(--theme-primary);box-shadow:0 8px 0 color-mix(in srgb,var(--theme-accent),transparent 24%)}
.theme-preview-heading{font-family:Georgia,serif;font-size:28px;font-weight:600;position:absolute;left:18px;bottom:10px;color:var(--theme-primary)}
.theme-preview-line{position:absolute;left:62px;bottom:22px;width:34%;height:5px;border-radius:5px;background:var(--theme-surface);box-shadow:0 10px 0 color-mix(in srgb,var(--theme-text),transparent 85%)}
.theme-preview-chip{position:absolute;right:12px;bottom:12px;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 8px;border-radius:6px;background:var(--theme-primary);color:#fff;font-size:8px;letter-spacing:.02em}
.theme-card-content{padding:13px;display:flex;flex-direction:column;gap:8px;flex:1}
.theme-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.theme-card-title-row h4{font-family:var(--brand-font-heading,Georgia),serif;font-size:15px;font-weight:500;line-height:1.25;margin:0;color:var(--ink)}
.theme-card-content p{font-size:10px;line-height:1.55;color:var(--muted);margin:0;min-height:47px}
.theme-applied-label{font-size:8px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:var(--green);white-space:nowrap;padding-top:2px}
.theme-swatches{display:flex;gap:4px;align-items:center;margin:2px 0 4px}
.theme-swatch{width:20px;height:20px;border-radius:6px;border:1px solid rgba(0,0,0,.08);display:inline-block;flex:none}
.theme-card-content .button{align-self:flex-start;margin-top:auto}
@media(max-width:1000px){.islamic-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.islamic-theme-grid{grid-template-columns:1fr}.theme-card-content p{min-height:0}.islamic-theme-library{padding:16px}}

.theme-card-preview::after{content:"";position:absolute;right:7%;top:8px;width:92px;height:82px;opacity:.2;pointer-events:none}
.theme-card-preview[data-preset="manuscript-heritage"]::after{border-left:1px solid var(--theme-primary);background:repeating-linear-gradient(to bottom,transparent 0 12px,var(--theme-primary) 12.5px 13.5px);}
.theme-card-preview[data-preset="geometric-contemporary"]::after{background:repeating-conic-gradient(from 22.5deg,var(--theme-primary) 0 8deg,transparent 8deg 45deg);background-size:34px 34px;border:1px solid var(--theme-primary);transform:rotate(45deg) scale(.8)}
.theme-card-preview[data-preset="andalusian-architectural"]::after{background:linear-gradient(45deg,transparent 43%,var(--theme-primary) 44% 46%,transparent 47%),linear-gradient(-45deg,transparent 43%,var(--theme-accent) 44% 46%,transparent 47%);background-size:30px 30px;border:1px solid color-mix(in srgb,var(--theme-primary),transparent 45%)}
.theme-card-preview[data-preset="botanical-garden"]::after{background:radial-gradient(ellipse at 25% 55%,transparent 24%,var(--theme-primary) 25% 27%,transparent 29%),radial-gradient(ellipse at 70% 28%,transparent 24%,var(--theme-secondary) 25% 27%,transparent 29%),linear-gradient(65deg,transparent 48%,var(--theme-primary) 49% 50%,transparent 51%);background-size:52px 52px,60px 60px,100% 100%}
.theme-card-preview[data-preset="geometry-minimal-luxury"]::after{border:1px solid var(--theme-accent);border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 8px,var(--theme-accent) 8.5px 9.5px,transparent 10px 17px)}
.theme-card-preview[data-preset="ottoman-iznik"]::after{background:radial-gradient(circle at 50% 50%,var(--theme-accent) 0 5px,transparent 5.5px),radial-gradient(circle at 50% 0%,var(--theme-secondary) 0 7px,transparent 7.5px),radial-gradient(circle at 50% 100%,var(--theme-secondary) 0 7px,transparent 7.5px),radial-gradient(circle at 0% 50%,var(--theme-secondary) 0 7px,transparent 7.5px),radial-gradient(circle at 100% 50%,var(--theme-secondary) 0 7px,transparent 7.5px);background-size:38px 38px;}
.theme-card-preview[data-preset="modern-islamic-editorial"]::after{width:108px;background:linear-gradient(90deg,var(--theme-primary) 1px,transparent 1px) 0 0/26px 100%,linear-gradient(var(--theme-accent) 1px,transparent 1px) 0 0/100% 20px;}

/* Save / export controls */
.save-status{font-size:10px;color:#617653;white-space:nowrap;padding:6px 8px;border-radius:20px;background:#f0f6e8;border:1px solid #e2ebd8}
.save-status[data-state="saving"]{color:#80672d;background:#fff8df;border-color:#efe3b8}
.save-status[data-state="local"]{color:#8a6427;background:#fff6df;border-color:#eddfb5}
.save-status[data-state="error"]{color:#9c4238;background:#fff0ed;border-color:#f0d4cf}
@media(max-width:980px){.topbar-actions{gap:7px}.save-status{display:none}.topbar-actions .button-small{padding:7px 9px}}
@media print{
  body,.main-area,.view-content{background:#fff!important;color:#111!important}
  .sidebar,.topbar,.app-footer,.page-actions,.card-actions,.filter-row,.dialog-actions,.toast,.save-status{display:none!important}
  .app-shell{display:block!important;min-height:0!important}
  .main-area{display:block!important;min-height:0!important}
  .view-content{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
  .paper-card,.item-card,.module-block{box-shadow:none!important;break-inside:avoid;border-color:#ddd!important}
  a{color:#111!important;text-decoration:none!important}
}

/* Recovery, history and batch export controls */
.recovery-card{margin:14px 0}.recovery-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line,#e7dfd4)}.recovery-row>div:first-child{min-width:0}.recovery-row strong{display:block;font-size:.94rem}.recovery-row small{display:block;color:var(--muted);font-size:.78rem;margin-top:3px}.recovery-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.recovery-card .setting-line{align-items:center}.recovery-card .file-pick{display:inline-flex;margin-top:10px}.warning-text{color:#9a572b}.save-status[data-state="error"]{color:#a33}.save-status[data-state="saving"]{color:#956a28}
@media(max-width:700px){.recovery-row{align-items:flex-start;flex-direction:column}.recovery-actions{justify-content:flex-start}.recovery-card .page-actions{flex-wrap:wrap}.topbar-actions .save-status{display:none}}

.media-thumb{width:100%;max-height:250px;object-fit:cover;border-radius:12px;background:#f3eee6}.media-library-grid{align-items:start}.video-choice{display:flex;flex-direction:column;gap:8px;cursor:pointer}.video-choice input{align-self:start}.video-choice .media-thumb{max-height:180px}.gate-note{line-height:1.55}.item-grid ol{line-height:1.75}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media(max-width:700px){.form-grid{grid-template-columns:1fr}}
