@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#e9eaf4;background:#080911;font-size:13px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 60% 35% at 48% -18%,#232147 0%,transparent 100%),radial-gradient(ellipse 32% 25% at 100% 110%,#18142b,transparent),#0b0c14}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}.hidden{display:none!important}.grain{position:fixed;inset:0;pointer-events:none;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E")}.app-shell{display:flex;min-height:100vh}.glass{background:linear-gradient(145deg,rgba(31,32,48,.85),rgba(20,21,34,.92));border:1px solid rgba(210,204,255,.085);box-shadow:0 22px 80px rgba(0,0,0,.22)}.sidebar{width:236px;flex-shrink:0;padding:27px 14px 15px;border-right:1px solid #262535;background:#101119;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.brand{color:#f5f5ff;text-decoration:none;display:flex;align-items:center;gap:11px;padding:0 12px 24px}.brand-icon,.logo-mark{background:linear-gradient(145deg,#9d84ff,#6158d9);border:1px solid #a49bff66;box-shadow:0 6px 24px #614cba33;border-radius:13px;color:white;font-weight:800;font-size:22px;width:38px;height:38px;display:grid;place-items:center;letter-spacing:-2px}.brand-icon span,.logo-mark span{color:#e6daff}.brand b{font-size:15px;letter-spacing:-.5px}.brand small{display:block;color:#81859b;font-size:9px;letter-spacing:1.55px;margin-top:5px}.sidebar-sep{height:1px;background:#2b2b37;margin:0 12px 24px}.nav-caption{font-weight:700;letter-spacing:1.5px;color:#656a82;font-size:9px;padding:0 14px 11px}.side-link{width:100%;border:0;border-radius:10px;background:transparent;text-align:left;color:#9295aa;display:flex;align-items:center;padding:13px 12px;gap:12px;margin:2px 0;font-weight:600;transition:.2s}.side-link:not(.disabled):hover{color:white;background:#242338}.side-link.active{background:linear-gradient(90deg,#53488466,#2a263d88);color:#ebddff;box-shadow:inset 2px 0 #ac90ff}.side-link.disabled{cursor:default;opacity:.52}.s-icon{font-size:19px;width:24px;text-align:center;line-height:1}.nav-dot{width:5px;height:5px;border-radius:50%;background:#b5a3ff;margin-left:auto}.soon{font-size:9px;margin-left:auto;color:#7c7795}.sidebar-bottom{margin-top:auto}.server-pill{font-size:10px;color:#a2a5b2;padding:13px 11px;border:1px solid #272836;border-radius:10px;margin-bottom:15px}.server-pill span,.top-status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#75dab0;margin-right:8px;box-shadow:0 0 12px #75dab077}.profile{display:flex;align-items:center;gap:9px;padding:10px 4px;border-top:1px solid #2b2b39}.avatar{width:34px;height:34px;border-radius:10px;background:#3d345f;color:#d4c7ff;display:grid;place-items:center;font-weight:800}.profile div:nth-child(2){flex:1}.profile strong{display:block;font-size:11px}.profile small{display:block;color:#797d90;font-size:10px;margin-top:3px}.profile button{border:0;background:transparent;color:#9898ab;font-size:19px}.main{flex:1;min-width:0}.topbar{height:72px;border-bottom:1px solid rgba(208,203,255,.06);padding:0 38px;display:flex;align-items:center;justify-content:space-between}.crumb{color:#74788d;font-size:11px}.crumb span{color:#4c5065;padding:0 12px}.crumb b{color:#d7d6e9}.top-right{display:flex;align-items:center;gap:16px}.kbd{border:1px solid #333246;color:#6f7185;border-radius:6px;padding:6px 10px;font-size:10px}.top-status{color:#7f9e93;font-size:10px}.workspace{max-width:1780px;margin:0 auto;padding:31px 36px 60px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:12px}.eyebrow{font-weight:700;font-size:9px;letter-spacing:2px;color:#8885a7}.purple{color:#a998ff}.heading h1{font-size:31px;letter-spacing:-1.6px;margin:9px 0 8px;font-weight:700}.title-spark{color:#927cf7;font-size:19px}.heading p{margin:0;color:#8e91a5;font-size:12px}.heading-actions{display:flex;gap:9px;align-items:center}.primary,.subtle,.outline,.ghost-btn{border-radius:10px;padding:11px 15px;font-weight:650;white-space:nowrap;transition:.15s}.primary{background:linear-gradient(110deg,#a28bf3,#7966db);border:1px solid #b49eff;color:#171222;box-shadow:0 6px 25px #695ad129}.primary:hover{filter:brightness(1.09)}.subtle{background:#1a1b28;color:#aaaac3;border:1px solid #303043}.subtle:hover,.outline:hover,.ghost-btn:hover{border-color:#7969a4;color:white}.module-tabs{display:flex;gap:5px;background:#161722;padding:5px;width:max-content;border-radius:13px;border:1px solid #29283a;margin-bottom:20px;max-width:100%}.module-tab{padding:10px 16px;border:0;background:transparent;border-radius:9px;color:#85899f;font-size:12px;font-weight:600}.module-tab span{font-weight:800;color:#686d81;margin-right:8px;font-size:10px}.module-tab.active{background:#302a46;color:#e7d9ff;box-shadow:inset 0 0 0 1px #574b78}.module-tab.active span{color:#a594ff}.workbench{display:grid;grid-template-columns:minmax(380px,37%) minmax(0,63%);gap:18px;align-items:start}.editor-panel,.preview-panel{border-radius:16px;overflow:hidden}.panel-title{height:61px;padding:0 21px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #313041}.panel-title>div{display:flex;align-items:center;gap:10px}.panel-title strong{font-size:12px}.panel-pictogram{width:29px;height:29px;display:grid;place-items:center;border:1px solid #554a7c;border-radius:8px;color:#a79af0;background:#342a52;font-size:22px}.muted{color:#6c7187}.tiny{font-size:8px;letter-spacing:.5px}.panel-body{padding:22px 22px 26px;display:flex;flex-direction:column;gap:16px}.block-head{display:flex;gap:9px;align-items:center;margin-bottom:0}.block-head b{font-size:12px}.number{height:22px;width:25px;background:#352b53;color:#a894fc;border-radius:6px;display:grid;place-items:center;font-size:9px;font-weight:800}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>label,.fields-2 label{font-size:11px;font-weight:600;color:#b5b5ca}.field input,.field select,.fields-2 input,.fields-2 select,.add-group-row input,.inline-tag select,textarea{outline:none;width:100%;border-radius:9px;background:#141521;border:1px solid #393748;color:#e4e3f4;padding:11px 12px;min-height:39px;min-width:0;transition:.2s}.field input:focus,.field select:focus,.fields-2 input:focus,.fields-2 select:focus,textarea:focus{border-color:#9c83f9;box-shadow:0 0 0 3px #8f7adc1e}select{color-scheme:dark}input::placeholder,textarea::placeholder{color:#6a6d80}.field-note,.hint{color:#707388;font-size:10px;margin:0;line-height:1.55}.fields-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fields-2>.field{min-width:0}.count{padding:3px 7px;font-size:9px;color:#b9a6ff;background:#312847;border-radius:6px}.group-choices{display:flex;flex-wrap:wrap;gap:7px}.group-chip{padding:8px 10px;border:1px solid #3b3a4d;border-radius:8px;color:#aaaac0;background:#1a1a29;font-size:11px}.group-chip.selected{background:#41365d;color:#e4d9ff;border-color:#8975ce}.add-group-row{display:flex;gap:8px}.square-button{border:1px solid #6557a2;color:#d5c4fc;background:#292443;min-width:40px;border-radius:8px;font-size:21px}.divider{height:1px;background:#343143;margin:8px 0}.inline-tag{font-size:11px;color:#a5a6bb;display:flex;align-items:center;gap:12px}.inline-tag select{width:auto;flex:1;min-width:0}.import-buttons{display:flex;gap:8px;flex-wrap:wrap}.ghost-btn{background:#211e30;border:1px solid #403953;color:#bfb6db;font-size:11px;padding:10px 12px;display:inline-flex;align-items:center;justify-content:center}.upload-btn{cursor:pointer}textarea{resize:vertical;line-height:1.5}.small{padding:8px 12px;font-size:11px;margin-top:8px}#paste-area{background:#161622;border:1px solid #333041;padding:10px;border-radius:10px}#paste-area .hint{margin-top:8px}.students-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#858ca4;font-size:10px}.student-actions{display:flex;gap:8px}.student-actions button{border:0;background:transparent;color:#af9bf6;font-size:10px}.student-list{display:flex;flex-direction:column;gap:7px;max-height:410px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4b4264 transparent}.student-card{border:1px solid #333448;background:#1b1c2b;border-radius:10px;padding:10px;display:flex;gap:9px;align-items:flex-start}.student-num{color:#696f87;font-size:10px;width:20px;padding-top:9px;flex-shrink:0}.student-card-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px}.student-card input{font-size:11px;padding:8px 9px;min-height:0;border:1px solid #38384c;background:#171722;border-radius:7px;color:#eeeef6;width:100%}.student-card .topic{font-size:10px;color:#a3a2b8}.pass-toggle{display:flex;align-items:center;gap:4px;font-size:10px;color:#a3a4b9;white-space:nowrap}.pass-toggle input{accent-color:#a790f9;width:17px;height:17px}.remove-student{border:0;background:transparent;color:#777487;font-size:18px;padding:4px}.remove-student:hover{color:#ff9da5}.add-student{background:transparent;border:1px dashed #514b69;color:#b9a8f8;border-radius:9px;padding:10px;font-size:11px}.checkline{display:flex;gap:10px;align-items:center;color:#b7b5c9;font-size:11px}.checkline input{accent-color:#a58af9}.option-segments{display:flex;background:#151521;border:1px solid #393747;border-radius:9px;padding:3px}.option-segments button{flex:1;background:transparent;color:#8c8ca5;border:0;border-radius:6px;padding:9px 4px;font-size:10px}.option-segments button.active{background:#413358;color:#e7dafa}.info-note{border:1px solid #483e5b;border-radius:10px;padding:13px;color:#b3a8d0;background:#272237;line-height:1.6}.preview-panel{position:sticky;top:20px}.preview-top{height:64px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #313044}.preview-title{display:flex;align-items:center;gap:11px}.preview-title strong{display:block;font-size:12px}.preview-title span{display:block;color:#8588a0;font-size:10px;margin-top:4px}.preview-icon{width:36px;height:36px;border:1px solid #4d456c;background:#302844;display:grid;place-items:center;border-radius:10px;color:#c6b5ff;font-size:18px}.preview-actions{display:flex;align-items:center;gap:10px}.ready-status{background:#273a33;color:#8cc6ac;border-radius:7px;padding:6px 8px;font-size:10px}.ready-status.loading{color:#b2a4da;background:#342c45}.ready-status.error{color:#eeaaa8;background:#432929}.preview-actions button{background:#242437;border:1px solid #39394d;color:#aaa4c3;border-radius:7px;font-size:17px;width:30px;height:30px}.paper-background{height:min(71vh,840px);min-height:520px;background:radial-gradient(ellipse at 50% 30%,#373848,#24252e 70%);padding:22px;position:relative}.pdf-frame{width:100%;height:100%;background:white;border:1px solid #41414a;border-radius:4px;box-shadow:0 15px 48px #0a0a1460}.preview-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#b9b3ca}.paper-outline{font-size:75px;color:#766e91}.preview-placeholder h3{margin:10px 0 0}.preview-placeholder p{color:#858197}.preview-footer{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #383648}.footer-copy strong{font-size:11px;display:block}.footer-copy span{font-size:10px;color:#777d90;display:block;margin-top:3px}.download-actions{display:flex;gap:6px}.download-actions button{padding:9px 11px;font-size:10px}.outline{border:1px solid #524b67;background:#292538;color:#d9caee}.bottom-hint{display:flex;align-items:center;gap:11px;color:#777a90;margin:18px 3px;font-size:10px;line-height:1.6}.bottom-hint span{color:#a58cfb;font-size:18px}.toast{position:fixed;right:28px;bottom:28px;background:#29283b;border:1px solid #6c5996;color:#f4edff;padding:14px 18px;border-radius:12px;box-shadow:0 20px 60px #0009;opacity:0;transform:translateY(15px);transition:.22s;pointer-events:none;max-width:440px;z-index:15}.toast.visible{opacity:1;transform:translateY(0)}.modal{position:fixed;inset:0;z-index:10;display:grid;place-items:center}.modal-backdrop{position:absolute;inset:0;background:#05050cbb;backdrop-filter:blur(7px)}.modal-card{z-index:1;border-radius:18px;padding:23px;width:min(550px,93vw);max-height:80vh;overflow:auto}.modal-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.modal-heading h2{margin:8px 0}.modal-heading button{background:transparent;color:#c4bdd0;border:0;font-size:19px}.draft-list{display:flex;flex-direction:column;gap:10px}.draft-item{padding:14px;border-radius:10px;text-align:left;border:1px solid #3b384d;color:#ddd5ef;background:#1f1e2f}.draft-item strong{display:block;margin-bottom:6px}.draft-item span{color:#9593ad;font-size:10px}.login-screen{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 8%,#28213f,transparent 58%),#0c0d16}.login-card{width:min(430px,100%);padding:33px;border-radius:22px}.logo-mark{height:52px;width:52px;border-radius:15px;margin-bottom:24px;font-size:28px}.login-card h1{font-size:36px;letter-spacing:-1.6px;line-height:1.1;margin:16px 0}.login-card p{color:#9999af;line-height:1.7;margin-bottom:22px}.login-card label{display:block;font-size:11px;color:#c9c4db;margin:14px 0}.login-card input{width:100%;margin-top:7px;background:#151522;border:1px solid #474058;border-radius:10px;color:white;padding:12px;outline:none}.login-card .full{width:100%;display:flex;justify-content:space-between;margin-top:21px;padding:15px}.login-error{color:#ff9baf;font-size:11px}.login-card small{display:block;text-align:center;color:#77778e;margin-top:20px}
@media(max-width:1280px){.sidebar{width:212px}.workspace{padding:26px 22px}.topbar{padding:0 24px}.workbench{grid-template-columns:minmax(340px,42%) minmax(0,58%)}.preview-footer{flex-direction:column;align-items:stretch}.download-actions{width:100%}.download-actions button{flex:1}.paper-background{padding:12px}}
@media(max-width:980px){.sidebar{display:none}.topbar{height:58px}.heading{align-items:flex-start}.heading-actions{margin-top:5px}.workbench{grid-template-columns:1fr}.preview-panel{position:static}.paper-background{height:75vh}.module-tabs{width:100%}.module-tab{flex:1}.editor-panel{max-width:none}}
@media(max-width:640px){.topbar{padding:0 17px}.top-right{display:none}.workspace{padding:23px 13px}.heading{flex-direction:column}.heading h1{font-size:26px}.heading-actions{width:100%}.heading-actions button{flex:1}.module-tabs{overflow:auto}.module-tab{font-size:10px;padding:11px 9px;white-space:nowrap}.workbench{gap:14px}.panel-body{padding:17px 15px}.panel-title{padding:0 15px}.panel-title .tiny{display:none}.paper-background{height:570px;min-height:360px;padding:6px}.preview-top{padding:0 10px}.preview-title span{font-size:9px}.top-status{display:none}}
/* Guided five-step navigation */
.welcome-screen{min-height:100vh;position:fixed;inset:0;z-index:25;display:grid;place-items:center;text-align:center;padding:24px;background:radial-gradient(ellipse at 50% 35%,#302553 0%,#10111e 50%,#080a13 100%)}
.welcome-inner{max-width:680px}.official-seal{width:112px;height:112px;margin:0 auto 36px;border:3px solid #a0b2df;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 8px #c9cced18,0 12px 70px #5441b750;color:#d8e8ff;background:radial-gradient(circle at 30% 20%,#384b82,#152143);font-size:24px;font-weight:800;letter-spacing:1px}.welcome-inner h1{font-size:clamp(36px,7vw,76px);line-height:1.07;letter-spacing:-3px;margin:15px auto 17px;max-width:600px}.welcome-inner h1 em{font-style:normal;color:#b2a0fa}.welcome-inner p{color:#a9aabe;max-width:525px;line-height:1.8;margin:0 auto 30px;font-size:15px}.hero-btn{padding:18px 28px;font-size:16px;min-width:230px;display:flex;justify-content:space-between;gap:25px;margin:0 auto}.welcome-note{color:#63667f;font-size:11px;margin-top:60px}.step-title{font-size:clamp(30px,4vw,45px);margin:13px 0 10px;letter-spacing:-1.8px}.step-description{font-size:13px;color:#9497ae;max-width:690px;line-height:1.8;margin:0 0 28px}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:18px;margin:30px 0}.choice-card{min-height:220px;position:relative;padding:28px;border-radius:21px;text-align:left;display:flex;flex-direction:column;align-items:start;gap:13px;color:#eeeaf8;transition:transform .15s,border-color .15s}.choice-card:not(.upcoming):hover{transform:translateY(-3px);border-color:#8e79ca}.choice-symbol{font-size:33px;color:#b1a0f0}.choice-card b{font-size:19px}.choice-card small{font-size:12px;color:#9899af;line-height:1.5}.choice-arrow{position:absolute;right:23px;top:25px;color:#aa9eea;font-size:20px}.upcoming{opacity:.55}.backlink{border:0;background:transparent;color:#a998ea;padding:5px 0 16px;font-size:12px}.step-toolbar{display:flex;gap:12px;justify-content:space-between;align-items:stretch;flex-wrap:wrap;margin-bottom:20px}.step-toolbar>input,.step-toolbar .add-group-row input{background:#1b1d2c;border:1px solid #3c3d52;border-radius:9px;color:#fff;min-height:44px;padding:10px 14px}.step-toolbar>input{flex:1;min-width:210px}.step-toolbar .add-group-row{flex:1;min-width:250px;justify-content:end}.step-toolbar .add-group-row input{flex:1;max-width:220px}.step-toolbar .add-group-row button{border-radius:9px;padding:0 15px}.group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px;margin:23px 0 28px}.group-tile{border:1px solid #3b3b51;background:#1b1d2c;color:#dedce8;padding:21px 15px;border-radius:14px;text-align:left;display:flex;flex-direction:column;gap:10px}.group-tile>span{color:#7b7d96}.group-tile b{font-size:15px}.group-tile.selected{background:linear-gradient(135deg,#4d3b7f,#2e2851);border-color:#b2a3ff}.group-tile.selected>span{color:#cfbcff}.step-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:22px;border-top:1px solid #323043;padding-top:24px;color:#9295aa;font-size:12px}.step-footer button{border-radius:9px;padding:12px 20px}.source-panel{max-width:750px;padding:26px;border-radius:18px;display:flex;flex-direction:column;gap:16px}.source-small{font-size:12px;color:#9898b5;line-height:1.65}.source-panel .field{max-width:100%}.source-panel select{width:100%;background:#141521;border:1px solid #464055;border-radius:9px;color:#e7e6f2;padding:13px}.topic-create{display:flex;flex-direction:column;gap:13px;padding:14px;border:1px solid #4f4667;border-radius:10px}.source-panel .ghost-btn{width:max-content;max-width:100%}.minilink{border:0;background:transparent;color:#a895ec;align-self:flex-start;padding:0;font-size:12px}.edit-backline{display:flex;align-items:center;justify-content:space-between;gap:8px}.selected-source{color:#8889a6;font-size:11px;max-width:60%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.users-list{margin-top:20px;display:flex;flex-direction:column;gap:10px}.user-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #343449}.user-row button{padding:6px 10px;border:1px solid #713f53;border-radius:8px;background:#2d1c2d;color:#ffb2b9}
@media(max-width:680px){.choice-grid{grid-template-columns:1fr}.choice-card{min-height:145px}.welcome-inner h1{letter-spacing:-1.6px}.step-footer{flex-wrap:wrap}.step-footer button{width:100%}.step-toolbar .add-group-row input{max-width:none}.source-panel{padding:17px}.official-seal{width:90px;height:90px}}

/* Word template review workflow */
.bell-button{border:1px solid #3b3552;background:#201c32;color:#d3c5ff;border-radius:10px;padding:8px 10px;position:relative;font-size:17px}
.unread-counter{background:#8e72f2;color:#160f29;border-radius:30px;font-size:10px;padding:2px 6px;font-weight:800;margin-left:3px}
.notification-panel{position:absolute;right:130px;top:63px;z-index:20;width:min(380px,90vw);max-height:65vh;overflow:auto;background:#202033;border:1px solid #60527e;border-radius:14px;padding:16px;box-shadow:0 18px 60px #0009}
.notification-panel>strong{display:block;margin-bottom:12px}
.notification-item{display:block;width:100%;padding:12px;margin:6px 0;text-align:left;border:1px solid #424055;border-radius:9px;color:#dedbf4;background:#29263d;white-space:normal}
.notification-item.read{opacity:.55}
.notification-item small{display:block;color:#a0a0bd;margin-top:5px}
.template-upload{padding:18px;border-radius:17px;display:flex;align-items:end;gap:13px;flex-wrap:wrap;margin:20px 0}
.template-upload>.field{flex:1;min-width:220px}.template-upload input{padding:10px}.template-upload .hint{width:100%}
.template-workspace{display:grid;grid-template-columns:minmax(260px,36%) minmax(0,64%);gap:16px;align-items:start}
.template-list-card,.template-inspector{border-radius:15px;padding:17px;min-width:0}
.template-bar{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:16px}
.template-bar select{background:#181725;color:#dedbf0;border:1px solid #4e456b;border-radius:8px;padding:8px;max-width:180px}
.template-list{display:flex;flex-direction:column;gap:8px;max-height:65vh;overflow:auto}
.template-item{padding:12px;text-align:left;border:1px solid #3b394f;background:#222234;color:#e8e4f6;border-radius:10px;display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere}
.template-item.selected{border-color:#a18ae9;background:#322b4d}
.template-item small{color:#aaa6be}.template-status{font-size:10px;color:#b3a9e4}
.template-inspector h3{margin:0 0 13px}.template-inspector h4{font-size:13px;color:#eee6ff;margin:18px 0 8px}
.template-detail{font-size:11px;color:#a7a3bd;line-height:1.7;margin-bottom:15px}
.template-field-row{display:grid;grid-template-columns:1fr 1.1fr auto;gap:7px;margin-bottom:7px}
.template-field-row input{width:100%;min-width:0;background:#161623;border:1px solid #40394e;border-radius:8px;color:#eee;padding:9px}
.template-field-row button{border:1px solid #5b3e58;background:#332334;color:#ffb8c4;border-radius:7px}
.template-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.template-actions button,.template-actions a{font-size:11px;text-decoration:none;display:inline-block}
.template-preview{width:100%;height:550px;background:white;border:1px solid #494159;border-radius:8px;margin-top:10px}
.template-inspector .field{margin:12px 0}
@media(max-width:900px){.template-workspace{grid-template-columns:1fr}.template-list{max-height:300px}.notification-panel{right:12px;top:55px}}

.mobile-menu-button{display:none;background:#252039;color:#c9b6ff;border:1px solid #4c405d;border-radius:9px;padding:7px 10px;font-size:17px;margin-right:12px}
@media(max-width:980px){.mobile-menu-button{display:block}.sidebar.mobile-visible{display:flex;position:fixed;top:0;left:0;height:100vh;width:min(310px,85vw);z-index:100;box-shadow:15px 0 75px #000c;overflow-y:auto}}

/* Validation and preview for every group, not only the first */
.order-check{margin:10px 16px;padding:12px;border:1px solid #9f7848;background:#362c24;border-radius:9px;color:#f3d5aa;font-size:11px;line-height:1.6}
.order-check p{margin:3px 0 8px}
.order-check p:last-child{margin-bottom:0}
.preview-group-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:8px 16px 0;color:#c8bfdf;font-size:11px}
.preview-group-row select{background:#262437;border:1px solid #59516f;border-radius:8px;color:#fff;padding:8px;max-width:65%;min-width:0}
