:root{--bg:#f8fafd;--surface:#fff;--text:#1f1f1f;--muted:#5f6368;--line:#e0e3e7;--blue:#0b57d0;--blue-light:#d3e3fd;--green:#137333;--red:#b3261e;--shadow:0 2px 6px rgba(31,31,31,.06),0 8px 24px rgba(31,31,31,.03)}*{box-sizing:border-box}html{font-family:Roboto,"Segoe UI",Arial,sans-serif}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:256px;flex:none;padding:24px 12px 16px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 16px;color:#202124;font-size:21px;font-weight:700;letter-spacing:-.5px}.brand:hover{text-decoration:none}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:.2px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:var(--blue);color:#fff;border-radius:12px;font-size:22px}.main-nav{display:grid;gap:4px;margin-top:42px}.nav-link{display:flex;align-items:center;gap:16px;padding:11px 18px;border-radius:0 24px 24px 0;color:#3c4043;font-weight:500}.nav-link:hover{background:#f1f3f4;text-decoration:none}.nav-link.active{background:var(--blue-light);color:#174ea6}.nav-icon{width:20px;text-align:center;font-size:20px;line-height:1}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 5px 2px;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e8def8;color:#6750a4;font-weight:700}.account-name{min-width:0;flex:1;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-name small{display:block;color:var(--muted);font-weight:400;overflow:hidden;text-overflow:ellipsis}.icon-button{border:0;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}.content-shell{min-width:0;flex:1}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px}.desktop-crumb{color:var(--muted);font-size:13px}.desktop-crumb span{margin:0 9px;color:#adb2b8}.topbar-tag{color:var(--muted);font-size:12px}.mobile-brand{display:none}.main-content{max-width:1320px;margin:0 auto;padding:38px 42px 72px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:28px}.page-heading h1{margin:0}.page-heading p{margin:7px 0 0;color:var(--muted)}h1,h2,h3{line-height:1.25;letter-spacing:-.025em}h1{font-size:30px;font-weight:600;margin:0 0 8px}h2{font-size:20px;font-weight:600;margin:0 0 10px}h3{font-size:16px;font-weight:600}p{margin:0 0 14px}section,.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:28px;margin:0 0 20px;box-shadow:0 1px 2px rgba(60,64,67,.04)}section>p:last-child{margin-bottom:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:16px;margin-bottom:24px}.grid .card{min-height:140px;margin:0;display:flex;flex-direction:column;justify-content:space-between;color:var(--muted);font-weight:500}.grid .card h2{margin:10px 0 0;color:#202124;font-size:36px}.grid .card a{color:inherit}label{display:block;margin:0 0 18px;font-weight:500;color:#30343b}label small{display:block;font-weight:400;color:var(--muted);margin-top:2px}input:not([type=checkbox]),textarea,select{display:block;width:100%;max-width:680px;margin-top:7px;padding:12px 14px;background:#fff;color:var(--text);border:1px solid #bfc5cc;border-radius:10px;outline:0;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 2px #d3e3fd}input[type=checkbox]{width:17px;height:17px;vertical-align:middle;accent-color:var(--blue);margin-right:6px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:100px;background:var(--blue);color:#fff;padding:10px 20px;min-height:40px;font-weight:500;cursor:pointer;text-decoration:none;white-space:normal;text-align:center}button:hover,.button:hover{background:#0842a0;color:#fff;text-decoration:none;box-shadow:var(--shadow)}button:disabled{opacity:.5;cursor:not-allowed}button.danger,.button.danger{background:#fff;color:var(--red);border-color:#efc6c2}button.danger:hover{background:#fceeee}.button.secondary,button.secondary{background:#e8f0fe;color:#174ea6}.button.secondary:hover,button.secondary:hover{background:#d3e3fd}.button.text,button.text{background:transparent;color:var(--blue);padding:8px 12px}.button.text:hover,button.text:hover{background:#e8f0fe}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.muted{color:var(--muted)}.notice,.errors{padding:15px 18px;margin:0 0 20px;border-radius:12px;background:#e6f4ea;color:#137333}.errors{background:#fce8e6;color:#a50e0e}.errors ul{margin:6px 0 0}.table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:20px;margin-bottom:20px}table{width:100%;border-collapse:collapse}th,td{padding:16px 20px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}th{color:var(--muted);font-size:12px;font-weight:600;white-space:nowrap;background:#fafbff}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbff}td small{color:var(--muted)}td form{display:inline-block}td input:not([type=checkbox]){min-width:140px;margin:0 0 8px}.badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:20px;background:#e8f0fe;color:#174ea6;font-size:12px;font-weight:600;white-space:nowrap}.badge.success{background:#e6f4ea;color:#137333}.badge.warning{background:#fef7e0;color:#8b5000}.badge.neutral{background:#f1f3f4;color:#5f6368}.tabs{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:22px}.tabs a{padding:11px 15px;border-bottom:3px solid transparent;color:var(--muted);white-space:nowrap;font-weight:500}.tabs a:hover{text-decoration:none;color:var(--blue)}.tabs a.active{border-color:var(--blue);color:var(--blue)}.master-list{display:grid;gap:12px}.master-row{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.master-row[open]{box-shadow:var(--shadow)}.master-row summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,2fr) minmax(110px,1fr) 140px 24px;gap:16px;align-items:center;padding:18px 22px}.master-row summary::-webkit-details-marker{display:none}.master-row summary:hover{background:#f7faff}.master-row summary:after{content:"⌄";font-size:22px;color:var(--muted);transition:transform .15s}.master-row[open] summary:after{transform:rotate(180deg)}.master-title{font-weight:600;overflow:hidden;text-overflow:ellipsis}.master-sub{color:var(--muted);font-size:12px;margin-top:3px;overflow-wrap:anywhere}.detail-panel{padding:20px 22px 22px;border-top:1px solid var(--line);background:#fcfdff}.detail-panel p{margin-bottom:10px}.wizard-steps{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 24px}.wizard-step{background:#e9edf3;color:#45515f}.wizard-step.active{background:var(--blue-light);color:#174ea6}.wizard-panel[hidden]{display:none}.wizard-panel{animation:appear .15s ease}@keyframes appear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.form-grid input{max-width:none}.settings-intro{background:#e8f0fe;border-color:#d3e3fd}.settings-intro p{color:#45515f}.setting-status{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.code-block,code{overflow-wrap:anywhere}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto;background:#f7f9fc;border:1px solid var(--line);padding:16px;border-radius:12px}.article-preview{line-height:1.75;max-width:800px}.article-preview img{max-width:100%;height:auto}.article-preview table{display:block;overflow-x:auto}.auth-card{max-width:460px;margin:55px auto;padding:36px}.pagination{margin-top:20px}@media(max-width:1050px){.sidebar{width:214px}.main-content{padding:28px 24px}.topbar{padding:0 24px}}@media(max-width:720px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand,.sidebar-bottom{display:none}.main-nav{display:flex;overflow-x:auto;margin:0;gap:2px}.nav-link{border-radius:24px;padding:8px 12px;white-space:nowrap;gap:6px;font-size:12px}.nav-icon{font-size:15px}.topbar{height:56px;padding:0 18px}.desktop-crumb,.topbar-tag{display:none}.mobile-brand{display:block;font-weight:700;color:var(--blue);font-size:18px}.main-content{padding:24px 16px 50px}.page-heading{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.master-row summary{grid-template-columns:minmax(0,1fr) auto 20px}.master-row summary>:nth-child(2){display:none}section,.card{padding:20px}h1{font-size:26px}}
.nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}

/* Typography: geometric display face with legible body copy. */
:root{--font-display:"Manrope","Segoe UI Variable Display","Segoe UI",sans-serif}
body{font-family:"Roboto","Segoe UI",Arial,sans-serif;font-size:15px}
h1,h2,h3,.brand,.mobile-brand,.master-title,.grid .card h2{font-family:var(--font-display)}
h1{font-size:32px;font-weight:800;letter-spacing:-.045em}
h2{font-weight:750;letter-spacing:-.035em}
h3{font-weight:700}
.brand{font-weight:800}
.grid .card h2{font-weight:800;letter-spacing:-.055em}
button,.button,.nav-link,.wizard-step{font-weight:600}
@media(max-width:850px){
 .grid{grid-template-columns:minmax(0,1fr)}
 .grid .card{min-height:104px}
 .main-content{width:100%}
}
@media(max-width:720px){
 body{font-size:14px}
 h1{font-size:27px}
 .main-content{padding:22px 16px 48px}
 .grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .grid .card{padding:18px 20px;min-height:92px}
 .grid .card h2{font-size:30px;margin-top:4px}
 .wizard-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .wizard-step{width:100%;justify-content:center;text-align:center}
 .page-heading .button{width:100%}
 .master-row summary{grid-template-columns:minmax(0,1fr) 20px;gap:10px;padding:16px}
 .master-row summary>:nth-child(2),.master-row summary>:nth-child(3){display:none}
 .master-title{display:block;overflow-wrap:anywhere}
 .actions{align-items:stretch}
 .actions .button,.actions form,.actions button{width:100%}
 .auth-card{margin:20px auto}
}


/* Compact app shell: use the full viewport and bottom navigation on phones/tablets. */
@media(max-width:1024px){
 .app-shell{display:block;min-height:100vh}
 .content-shell{width:100%;min-width:0;padding-bottom:76px}
 .sidebar{
  position:fixed;inset:auto 0 0 0;z-index:50;
  width:100%;height:auto;display:block;padding:6px 8px max(6px,env(safe-area-inset-bottom));
  border:0;border-top:1px solid var(--line);border-radius:0;
  box-shadow:0 -4px 18px rgba(31,31,31,.06);background:#fff
 }
 .sidebar .brand,.sidebar-bottom{display:none}
 .main-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0;overflow:visible}
 .nav-link{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:0;padding:5px 2px;
  border-radius:14px;color:#5f6368;font-size:11px;line-height:1.2;text-align:center;white-space:nowrap}
 .nav-link.active{background:#e8f0fe}
 .nav-icon{width:32px;height:28px;display:grid;place-items:center}
 .nav-icon svg{width:20px;height:20px}
 .topbar{height:58px;padding:0 22px}
 .desktop-crumb,.topbar-tag{display:none}
 .mobile-brand{display:block;color:var(--blue);font-family:var(--font-display);font-size:19px;font-weight:800}
 .main-content{width:100%;max-width:none;padding:24px 22px 40px}
}
@media(max-width:600px){
 .content-shell{padding-bottom:72px}
 .main-content{padding:20px 16px 34px}
 .nav-link{font-size:10px}
 .nav-icon{height:26px}
 .page-heading{margin-bottom:20px}
 section,.card{border-radius:16px}
}


/* The in-app panel is tablet-sized in CSS pixels but needs phone-like composition. */
@media(max-width:1024px){
 body{font-size:16px}
 .main-content{padding:24px 20px 40px}
 .page-heading{display:flex;flex-direction:column;align-items:stretch;gap:16px}
 .page-heading h1{font-size:30px}
 .page-heading>.button{align-self:flex-start}
 .form-grid{grid-template-columns:minmax(0,1fr);gap:0}
 .form-grid input,.form-grid select{max-width:none}
 label{font-size:15px}
 input:not([type=checkbox]),textarea,select{min-height:48px;font-size:16px}
 button,.button{font-size:15px;min-height:44px}
 .wizard-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .wizard-step{width:100%;justify-content:center;text-align:center}
 .master-row summary{grid-template-columns:minmax(0,1fr) 22px}
 .master-row summary>:nth-child(2),.master-row summary>:nth-child(3){display:none}
 .master-title{display:block;overflow-wrap:anywhere}
}
@media(max-width:600px){
 .main-content{padding:20px 16px 34px}
 .page-heading>.button{width:100%}
 .page-heading h1{font-size:28px}
}

