/* Classeto 8: management interface only. Teacher palettes live in public-polish.css. */
html.classeto-panel-page {--classeto-blue:#2855c9;--classeto-blue-hover:#2147aa;--cl-radius:18px}
html.classeto-panel-page:not([data-theme="light"]) {--bg:#080808;--panel:#121315;--panel2:#191b20;--line:#2b2e35;--ink:#f5f7fc;--muted:#a8b0bf;--cl-focus:#91b7ff;--cl-tint:#162342;--cl-status:#b8d1ff}
html.classeto-panel-page[data-theme="light"] {--bg:#f6f8fc;--panel:#fff;--panel2:#f0f3f9;--line:#dce2ec;--ink:#18243b;--muted:#59677c;--cl-focus:#2855c9;--cl-tint:#eaf0ff;--cl-status:#254fae}
.classeto-panel-page body {background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
.classeto-panel-page :is(button,a,input,textarea,select):focus-visible {outline:none!important;outline-offset:0}
.classeto-panel-page :is(.content,.panel,.listrow,.cp-admin-card,.field,.form-grid,.workspace-tabs,.help-inbox) {min-width:0}
.classeto-panel-page .content {padding-top:28px}
.classeto-panel-page :is(.panel,.auth-card) {border-radius:var(--cl-radius);border-color:var(--line)}
.classeto-panel-page .section-head {flex-wrap:wrap;align-items:center;gap:12px}
.classeto-panel-page :is(.page-intro,.workspace-hero,.admin-welcome) {gap:20px}
.classeto-panel-page .page-intro p {max-width:760px;line-height:1.95}
.classeto-panel-page :is(.nav a,.workspace-tabs a,.btn,.preview-switcher button) {min-height:42px}
.classeto-panel-page :is(.btn,.nav a,.workspace-tabs a) svg {display:block;flex:none;vertical-align:middle}
.classeto-panel-page .cl-icon {stroke-width:1.8;shape-rendering:geometricPrecision}
.classeto-panel-page .nav a {padding:11px 13px;gap:12px}
.classeto-panel-page .nav a svg {width:20px;height:20px}
.classeto-panel-page .sidebar .brand {padding-inline:10px}
.classeto-panel-page .sidebar .side-foot {border-color:var(--line);border-radius:14px}
.classeto-panel-page :is(.tile-icon,.contact-admin-icon,.contact-heading-icon,.upload-zone-icon) {display:grid;place-items:center;flex:none;line-height:0}
.classeto-panel-page :is(.tile-icon,.contact-admin-icon,.contact-heading-icon) svg {width:21px;height:21px;display:block}
.classeto-panel-page .panel.stat {display:grid;grid-template-columns:minmax(0,1fr) 30px;align-content:start;column-gap:12px;row-gap:8px;min-height:146px;padding:21px}
.classeto-panel-page .panel.stat .stat-icon {position:static!important;inset:auto!important;grid-column:2;grid-row:1;width:28px!important;height:28px!important;align-self:center;background:transparent!important}
.classeto-panel-page .panel.stat .stat-icon svg {width:23px!important;height:23px!important}
.classeto-panel-page .panel.stat p {grid-column:1;grid-row:1;margin:0;line-height:1.8;color:var(--muted)}
.classeto-panel-page .panel.stat .number {grid-column:1/-1;grid-row:2;font-size:clamp(1.4rem,2vw,1.8rem);line-height:1.65;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.classeto-panel-page .panel.stat .soft-badge {grid-column:1/-1;grid-row:3;color:var(--muted);font-size:.73rem;line-height:1.8}
.classeto-panel-page :is(.hint,.field small,.meta small,.auth-attribution) {line-height:1.9}
.classeto-panel-page :is(.field input,.field select,.field textarea,.cp-admin-field input,.cp-admin-field select) {border-radius:11px;min-width:0}
.classeto-panel-page .field :is(input:not([type="checkbox"]):not([type="color"]):not([type="file"])),.classeto-panel-page .field select {min-height:46px}
.classeto-panel-page .field label {line-height:1.8}
.classeto-panel-page .field input[type="color"] {width:48px;min-width:48px;height:42px;padding:4px;cursor:pointer}
.classeto-panel-page .color-control {align-items:center;gap:12px}
.classeto-panel-page :is(.workspace-tabs,.preview-switcher) {gap:8px}
.classeto-panel-page .workspace-tabs a {align-items:center}
.classeto-panel-page :is(.url-box,.live-preview-address,.cp-admin-primary small,.cp-admin-site-link) {overflow-wrap:anywhere}
.classeto-panel-page .cl-directory-search {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:18px}
.classeto-panel-page .cl-directory-search input {width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);padding:12px 15px;min-height:46px}
.classeto-panel-page .cl-directory-search output {font-size:.8rem;color:var(--muted)}
.classeto-panel-page [hidden] {display:none!important}
.classeto-panel-page .cl-search-empty {padding:26px;text-align:center;border:1px dashed var(--line);border-radius:16px;color:var(--muted)}
.classeto-panel-page .upload-feedback {line-height:1.8;overflow-wrap:anywhere}
.classeto-panel-page .upload-feedback[data-error="true"] {color:var(--red)!important}
.classeto-panel-page button[aria-busy="true"] {cursor:progress;opacity:.7}
.classeto-panel-page .tablewrap {max-width:100%;scrollbar-width:thin;overscroll-behavior-inline:contain}
.classeto-panel-page .table :is(td,th) {vertical-align:middle}
.classeto-panel-page .table td {line-height:1.85}
.classeto-panel-page .cl-account-delete {border:1px solid #7b3445!important;background:#1c1217!important;color:#f7e8ed}
.classeto-panel-page[data-theme="light"] .cl-account-delete {border-color:#efbec8!important;background:#fff7f8!important;color:#672d3b}
.classeto-panel-page[data-theme="light"] .cl-account-delete :is(p,label,h2) {color:#672d3b!important}
.classeto-panel-page[data-theme="light"] .cl-account-delete .eyebrow {color:#9d304e!important}
.classeto-panel-page .help-search input {color:var(--ink)}
.classeto-panel-page :is(.help-send,.help-filters button.active,.help-close) {background:var(--classeto-blue);color:#fff;border-color:var(--classeto-blue)}
.classeto-panel-page .help-ticket.selected {background:var(--cl-tint);border-color:var(--line)}
.classeto-panel-page :is(.help-search,.help-count,.help-ticket-avatar,.help-agent-icon) {background:var(--panel2);color:var(--cl-status);border-color:var(--line)}
.classeto-panel-page .chat-message .bubble {max-width:min(100%,620px);overflow-wrap:anywhere}
.classeto-panel-page .chat-message.teacher-msg .bubble {background:var(--cl-tint);border-color:var(--line);color:var(--ink)}
.classeto-panel-page .finance-track i,.classeto-panel-page .analytics-bar-track span {background:var(--classeto-blue)}
.classeto-panel-page[data-theme="light"] :is(.auth-art,.auth-mini) {background:linear-gradient(140deg,#e8efff,#f8faff)!important;color:#20345e;border-color:#c4d2f2!important}
.classeto-panel-page[data-theme="light"] .auth-art :is(h1,p,.hero-accent) {color:#20345e}
.classeto-panel-page[data-theme="light"] :is(.demo-note,.category-admin-pill,.help-filters button) {background:#f0f4fc;color:#385173;border-color:#d5dfef}
.classeto-panel-page[data-theme="light"] .help-filters button.active {background:var(--classeto-blue);color:#fff}
.classeto-panel-page[data-theme="light"] .cp-admin-foot.blocked {background:#fff5e9;color:#795325}
@media(max-width:1100px) {
 .classeto-panel-page .g4 {grid-template-columns:repeat(2,minmax(0,1fr))}
 .classeto-panel-page .cp-admin-top {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .classeto-panel-page .cp-admin-controls {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px) {
 .classeto-panel-page .content {padding:22px 16px 32px}
 .classeto-panel-page :is(.page-intro,.workspace-hero,.admin-welcome,.cp-payment-admin-tip) {align-items:stretch;flex-direction:column}
 .classeto-panel-page .page-intro>div {min-width:0}
 .classeto-panel-page .panel {padding:19px}
 .classeto-panel-page .workspace-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
 .classeto-panel-page .workspace-tabs a {justify-content:center;white-space:normal;text-align:center;font-size:.8rem;gap:7px}
 .classeto-panel-page :is(.btn,.help-send,.preview-switcher button,.cl-directory-search input) {min-height:44px}
 .classeto-panel-page .helpdesk-layout {grid-template-columns:minmax(0,1fr)}
 .classeto-panel-page .help-inbox {max-height:480px}
 .classeto-panel-page .studio-grid {grid-template-columns:minmax(0,1fr)}
 .classeto-panel-page .studio-preview-column {position:static}
 .classeto-panel-page .studio-savebar {flex-wrap:wrap;gap:12px}
 .classeto-panel-page .studio-savebar .btn {white-space:normal}
}
@media(max-width:600px) {
 .classeto-panel-page .form-grid {grid-template-columns:minmax(0,1fr)}
 .classeto-panel-page .panel.stat {padding:16px;min-height:142px;column-gap:6px}
 .classeto-panel-page .panel.stat .stat-icon {width:23px!important;height:23px!important}
 .classeto-panel-page .panel.stat p {font-size:.75rem}
 .classeto-panel-page :is(.cp-admin-controls,.cp-admin-top) {grid-template-columns:minmax(0,1fr)}
 .classeto-panel-page .cl-directory-search {grid-template-columns:minmax(0,1fr);gap:6px}
 .classeto-panel-page .cl-responsive-table {display:block;width:100%}
 .classeto-panel-page .cl-responsive-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .classeto-panel-page .cl-responsive-table tbody {display:grid;gap:12px}
 .classeto-panel-page .cl-responsive-table tr {display:grid;min-width:0;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
 .classeto-panel-page .cl-responsive-table td {display:grid;grid-template-columns:minmax(68px,27%) minmax(0,1fr);gap:12px;padding:10px 0!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
 .classeto-panel-page .cl-responsive-table td::before {content:attr(data-label);color:var(--muted);font-size:.76rem;font-weight:500;direction:rtl}
 .classeto-panel-page .cl-responsive-table td[colspan] {display:block;text-align:center}
 .classeto-panel-page .cl-responsive-table td[colspan]::before {content:none}
 .classeto-panel-page .cl-responsive-table td:last-child {border-bottom:0}
 .classeto-panel-page .cl-responsive-table td>.flex {gap:8px;justify-content:flex-start}
 .classeto-panel-page .help-summary {grid-template-columns:minmax(0,1fr);gap:10px}
 .classeto-panel-page .auth-form {padding:24px 14px}
 .classeto-panel-page .auth-card {padding:23px 19px}
}
@media(prefers-reduced-motion:reduce) {
 html.classeto-panel-page {scroll-behavior:auto}
 .classeto-panel-page * {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Account data and the quota meter must remain legible on a white admin card. */
.classeto-panel-page .cp-admin-field :is(input:not([type="checkbox"]),select) {background:var(--panel);color:var(--ink)!important;border:1px solid var(--line);min-height:44px}
.classeto-panel-page[data-theme="light"] .cl-storage-head b {color:var(--ink)}
.classeto-panel-page[data-theme="light"] .cl-storage-track {background:#e4e9f2}

/* v8.2 — single ticket border, no outline, Telegram-style composer. */
html.classeto-panel-page body :is(*,:focus,:focus-visible,:focus-within) {
 outline:none!important;
 outline-offset:0!important;
}
html.classeto-panel-page[data-theme] body :is(.app-shell,.auth-wrap) :is(*:focus,*:focus-visible,*:focus-within) {
 outline:none!important;
 box-shadow:none!important;
}
html.classeto-panel-page .help-main .help-composer :is(.help-input-row,input[name="subject"]) {
 border:1px solid var(--line)!important;
 outline:none!important;
 box-shadow:none!important;
 transition:border-color .15s ease;
}
html.classeto-panel-page .help-main .help-composer :is(.help-input-row:focus-within,input[name="subject"]:focus) {
 border-color:var(--cl-focus)!important;
 outline:none!important;
 box-shadow:none!important;
}
html.classeto-panel-page .help-main .help-input-row textarea,
html.classeto-panel-page .help-main .help-input-row textarea:is(:focus,:focus-visible) {
 border:0!important;
 outline:none!important;
 box-shadow:none!important;
}
html.classeto-panel-page .help-main .help-input-row {
 display:flex;
 align-items:center;
 gap:10px;
 padding:8px;
}
html.classeto-panel-page .help-main .help-input-row textarea {
 flex:1 1 0;
 min-width:0;
 min-height:60px;
 max-height:220px;
 margin:0;
 padding:12px;
 border-radius:0!important;
 color:var(--ink);
}
html.classeto-panel-page .help-main .help-send {
 display:grid;
 place-items:center;
 align-self:center;
 flex:0 0 48px;
 width:48px;
 height:48px;
 min-height:48px;
 padding:0;
 margin:0;
 border:0;
 border-radius:50%;
 color:#fff;
 line-height:0;
 box-shadow:none;
}
html.classeto-panel-page .help-main .help-send svg {
 display:block;
 width:25px;
 height:25px;
 margin:0;
 padding:0;
 transform:none;
 flex:none;
}

/* Admin ticket status controls: one readable row with separate touch targets. */
.classeto-panel-page .help-admin-layout .help-composer-foot {
 flex-wrap:wrap;
 align-items:center;
 gap:12px 16px;
}
.classeto-panel-page .help-admin-layout .help-status-form {
 display:flex;
 align-items:center;
 gap:10px;
 flex:0 1 auto;
 min-width:0;
 max-width:100%;
 margin:0;
}
.classeto-panel-page .help-admin-layout .help-status-select {
 min-height:42px;
 min-width:140px;
 max-width:100%;
 padding:8px 12px;
 border:1px solid var(--line);
 border-radius:12px;
 background:var(--panel2);
 color:var(--ink);
 font:inherit;
 font-size:.8rem;
}
.classeto-panel-page .help-admin-layout .help-status-select:focus {border-color:var(--cl-focus)!important}
.classeto-panel-page .help-admin-layout .help-status-submit {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:7px;
 min-height:42px;
 padding:8px 14px;
 border:1px solid var(--classeto-blue);
 border-radius:12px;
 background:var(--classeto-blue);
 color:#fff;
 font-size:.8rem;
 font-weight:600;
 white-space:nowrap;
}
@media(max-width:480px) {
 .classeto-panel-page .help-admin-layout .help-status-form {flex:1 1 100%}
 .classeto-panel-page .help-admin-layout .help-status-select {flex:1 1 0;min-width:0}
 .classeto-panel-page .help-admin-layout .help-status-submit {flex:none}
}

/* Keep the white wordmark on dark panels; use solid black on light panels. */
html.classeto-panel-page[data-theme="light"] .app-shell .brand-wordmark {filter:brightness(0)}

/* Small native disclosure beside content-slug labels; no modal or extra script. */
.classeto-panel-page .cl-slug-help {min-width:0;max-width:100%}
.classeto-panel-page .cl-slug-help summary {display:flex;align-items:center;gap:8px;min-height:32px;list-style:none;cursor:pointer;width:fit-content;max-width:100%}
.classeto-panel-page .cl-slug-help summary::-webkit-details-marker {display:none}
.classeto-panel-page .cl-slug-help summary label {font-size:.83rem;font-weight:700;cursor:pointer}
.classeto-panel-page .cl-help-mark {display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid var(--line);border-radius:50%;color:var(--cl-focus);font-size:15px;font-weight:600}
.classeto-panel-page .cl-slug-help[open] .cl-help-mark {background:var(--cl-tint);border-color:var(--cl-focus)}
.classeto-panel-page .cl-slug-help-body {margin-top:9px;padding:12px 14px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;font-size:13px;line-height:2;color:var(--muted);overflow-wrap:anywhere}
.classeto-panel-page .cl-slug-help-body p {margin:0 0 8px}
.classeto-panel-page .cl-slug-help-body p:last-child {margin-bottom:0}
.classeto-panel-page .cl-slug-examples {display:grid;gap:6px;margin-block:10px;color:var(--ink)}
.classeto-panel-page .cl-slug-examples bdi {display:inline-block;padding:2px 7px;border-radius:6px;background:var(--cl-tint);overflow-wrap:anywhere;max-width:100%}
.classeto-panel-page .cl-blog-categories > .cl-slug-help {margin-block:12px}
.classeto-panel-page .cl-slug-help .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}

/* Analytics panels stay in the document flow and use the management blue. */
.classeto-panel-page .cl-analytics,
.classeto-panel-page .cl-analytics :is(.panel,.grid,.analytics-breakdown,.analytics-break-row,.analytics-bars) {min-width:0;max-width:100%;box-sizing:border-box}
.classeto-panel-page .cl-analytics .page-intro {flex-wrap:wrap;align-items:flex-start}
.classeto-panel-page .cl-analytics .analytics-notice {background:var(--cl-tint);border-color:var(--line);color:var(--ink);align-items:flex-start}
.classeto-panel-page .cl-analytics .analytics-notice svg {color:var(--cl-focus);margin-top:3px}
.classeto-panel-page .cl-analytics .analytics-selected {background:var(--cl-tint)!important;border-color:var(--cl-focus)!important;color:var(--cl-focus)!important}
.classeto-panel-page .cl-analytics .analytics-bars {width:100%;gap:5px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:8px}
.classeto-panel-page .cl-analytics .analytics-day {flex:1 0 32px;min-width:32px}
.classeto-panel-page .cl-analytics .analytics-day small {visibility:visible;font-size:11px}
.classeto-panel-page .cl-analytics .analytics-value {font-size:12px}
.classeto-panel-page .cl-analytics .analytics-bar-track,
.classeto-panel-page .cl-analytics .analytics-meter {background:var(--cl-tint)}
.classeto-panel-page .cl-analytics .analytics-bar-track span,
.classeto-panel-page .cl-analytics .analytics-meter i {background:var(--classeto-blue)}
.classeto-panel-page .cl-analytics .analytics-break-row {color:var(--ink);grid-template-columns:minmax(0,1fr) minmax(70px,1.5fr) 36px}
.classeto-panel-page .cl-analytics .analytics-break-row > span {min-width:0;overflow-wrap:anywhere}
.classeto-panel-page .cl-analytics .analytics-break-row strong {color:var(--cl-focus);min-width:0}
.classeto-panel-page .cl-chart-scroll-hint {display:none;color:var(--muted);font-size:12px;margin-top:8px}
@media(max-width:1150px) {
 .classeto-panel-page .cl-analytics .analytics-bottom {grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:650px) {
 .classeto-panel-page .cl-analytics .page-intro > .flex {display:grid;grid-template-columns:1fr 1fr;width:100%;gap:10px}
 .classeto-panel-page .cl-analytics .page-intro > .flex a {width:100%;min-height:42px}
 .classeto-panel-page .cl-analytics .panel {padding:18px 15px}
 .classeto-panel-page .cl-analytics .analytics-bars {gap:4px}
 .classeto-panel-page .cl-analytics .analytics-break-row {grid-template-columns:minmax(0,1fr) auto;gap:7px 12px}
 .classeto-panel-page .cl-analytics .analytics-break-row > span {grid-column:1;grid-row:1}
 .classeto-panel-page .cl-analytics .analytics-break-row > strong {grid-column:2;grid-row:1;justify-self:end}
 .classeto-panel-page .cl-analytics .analytics-meter {grid-column:1/-1;grid-row:2;width:100%}
 .classeto-panel-page .cl-chart-scroll-hint {display:block}
}
/* Actual remaining trial/subscription time, adjacent to the site-preview action. */
.classeto-panel-page .top-actions .cl-access-badge {
 display:inline-flex;align-items:center;justify-content:center;min-height:36px;
 padding:5px 12px;border:1px solid #2855c9;border-radius:12px;
 color:#a9c1ff;background:rgba(40,85,201,.10);font-size:.78rem;font-weight:600;
 line-height:1.7;white-space:nowrap;text-decoration:none;flex-shrink:0;
}
.classeto-panel-page[data-theme="light"] .top-actions .cl-access-badge {color:#234bb5;background:#f0f4ff}
.classeto-panel-page .top-actions .cl-access-badge--renew,
.classeto-panel-page[data-theme="light"] .top-actions .cl-access-badge--renew {color:#fff;background:#2855c9}
.classeto-panel-page .top-actions .cl-access-badge:focus-visible {border-color:#81a4ff;box-shadow:0 0 0 2px rgba(40,85,201,.20)}
@media(max-width:480px) {
 .classeto-panel-page .top-actions .cl-access-badge {padding:5px 9px;font-size:.72rem}
}
