/* V18: V14 visual language on the server-backed interface.
 * Presentation only: no legacy account/data scripts are loaded.
 * White surfaces remain solid #FFFFFF.
 */
:root {
  color-scheme: light;
  --ink: #193927; --forest: #0f4925; --green: #1f6a3d; --green-dark: #174d2d;
  --muted: #687d70; --soft: #f7f9f7; --line: #e1e8e2; --white: #FFFFFF; --yellow: #f8d020;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--soft);
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--soft); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: var(--green); }
svg { display: block; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #35815a; outline-offset: 3px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.035em; }
h1, h2, h3, h4, .c-heading > div, .c-page-intro > div, .c-quiz-heading > div { min-width: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 23px; font-weight: 720; line-height: 1.3; margin-bottom: 12px; }
h3 { font-size: 18px; font-weight: 720; line-height: 1.4; margin-bottom: 8px; }
p { margin-bottom: 14px; }
small, .c-muted, .muted { color: var(--muted); }
.shell { width: min(1150px, calc(100% - 34px)); margin-inline: auto; }
.site-header { min-height: 83px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; }
.brand img { width: 47px; height: 47px; flex: 0 0 47px; object-fit: contain; }
.brand > span { min-width: 0; }
.brand strong { display: block; color: #193927; font-size: 20px; line-height: 1.2; font-weight: 770; letter-spacing: -.8px; }
.brand small { display: block; margin-top: 3px; color: #769183; font-size: 9px; font-weight: 700; letter-spacing: .035em; }
.c-sidebar-credit { display: none; }
.c-side { display: flex; gap: 7px; margin-left: auto; }
.c-side button { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 12px 14px; background: transparent; color: #466250; text-align: left; font-size: 13px; font-weight: 650; }
.c-side button.active, .c-side button[aria-current="page"] { background: #e9f5ec; color: #23643c; }
.c-side button:hover { background: #ecf5ee; }
.c-side svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#app { min-width: 0; min-height: calc(100vh - 190px); }
.c-topbar { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 12px 16px; margin-top: 22px; border: 1px solid #e3eae4; border-radius: 12px; background: #FFFFFF; color: #7b8d81; font-size: 12px; }
.c-topbar > span { min-width: 0; }
.c-crumb-divider { display: inline-block; margin-inline: 9px; color: #b3c2b5; }
.c-topbar > div { min-width: 0; margin-left: auto; color: #3f5b49; text-align: right; overflow-wrap: anywhere; }
.c-topbar small { display: block; margin-top: 3px; font-size: 11px; color: #7c8c80; }
.c-topbar > .c-button { flex-shrink: 0; min-height: 40px; padding: 8px 0 8px 13px; background: transparent; border: 0; font-size: 12px; }
.c-workspace { min-width: 0; padding-top: 25px; padding-bottom: 24px; }
.c-eyebrow { display: block; margin-bottom: 9px; color: #2c8553; font-size: 11px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.c-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px 28px; border: 1px solid #e0e8e2; border-radius: 17px; background: #FFFFFF; margin-bottom: 15px; }
.c-heading h1 { margin: 4px 0 7px; font-size: clamp(24px, 3vw, 31px); }
.c-heading p { color: #718779; font-size: 12px; margin-bottom: 0; }
.c-heading .c-eyebrow { margin-bottom: 0; }
.c-heading > .c-group-picker { flex: 0 0 min(310px, 39%); margin: 0; }
.c-heading > .c-button { flex-shrink: 0; }
.c-page-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #0f4925; color: #FFFFFF; min-height: 148px; border: 1px solid #0f4925; border-radius: 16px; padding: 27px 29px; margin-bottom: 22px; }
.c-page-intro h1 { margin-bottom: 9px; color: #FFFFFF; font-size: clamp(26px, 3vw, 34px); }
.c-page-intro p { color: #e0ede3; font-size: 14px; margin-bottom: 0; }
.c-page-intro .c-eyebrow { color: #f8d020; }
.c-welcome-chip { flex-shrink: 0; padding: 10px 14px; border: 1px solid #4e8961; border-radius: 12px; background: #1c6036; color: #f7e8ae; font-size: 12px; font-weight: 700; white-space: nowrap; }
.c-card { min-width: 0; padding: 23px; margin-bottom: 18px; border: 1px solid #e0e8e1; border-radius: 15px; background: #FFFFFF; box-shadow: 0 4px 14px rgba(21, 65, 37, .03); }
.c-button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 11px 14px; border: 1px solid #d9e4db; border-radius: 10px; background: #FFFFFF; color: #244b31; font-size: 13px; font-weight: 720; text-decoration: none; text-align: center; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.c-button:hover:not(:disabled), .button:hover:not(:disabled) { background: #ecf5ee; }
.c-button.primary, .button-primary { background: #f8d020; color: #173d21; border-color: #e6bd0b; }
.c-button.primary:hover:not(:disabled), .button-primary:hover:not(:disabled) { background: #ffda38; }
.c-button.selected { background: #ebf5ee; color: #155d32; border-color: #b4d5c0; }
.button-full { width: 100%; }
.c-workspace > .c-button:first-child, .c-login-info > .c-button, .c-result-shell > .c-button:first-child { min-height: 38px; margin: 0 0 16px; padding: 6px 0; border: 0; background: transparent; color: #426b4f; font-size: 12px; }
.c-tabs { display: flex; gap: 8px; margin: 2px 0 22px; padding: 15px 0 12px; border-bottom: 1px solid #e4ece7; overflow-x: auto; scrollbar-width: thin; }
.c-tabs button { flex-shrink: 0; min-height: 44px; padding: 11px 17px; border: 1px solid #dce9df; border-radius: 10px; background: #FFFFFF; color: #647e6d; font-size: 13px; font-weight: 680; white-space: nowrap; }
.c-tabs button.active { background: #16532f; border-color: #16532f; color: #FFFFFF; }
.c-tabs button:not(.active):hover { background: #edf6ef; }
.c-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 6px 0 20px; }
.c-stats .c-card { display: flex; flex-direction: column-reverse; justify-content: flex-end; margin: 0; padding: 20px; border-color: #e0e9e2; border-radius: 13px; box-shadow: none; }
.c-stats dt { color: #718678; font-size: 12px; }
.c-stats dd { margin: 0 0 3px; color: #1c5f39; font-size: 30px; line-height: 1.2; font-weight: 790; font-variant-numeric: tabular-nums; }
.c-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.c-shortcut { display: grid; grid-template-columns: 39px 1fr 22px; grid-template-rows: auto auto; align-items: center; gap: 5px 12px; padding: 22px; text-align: left; border: 1px solid #dce7df; border-radius: 15px; background: #FFFFFF; color: #234b34; }
.c-shortcut:hover { border-color: #84ae91; }
.c-shortcut .c-entry-icon { grid-row: 1 / 3; width: 39px; height: 39px; margin: 0; border-radius: 10px; }
.c-shortcut-icon { display: grid; place-items: center; grid-row: 1 / 3; width: 39px; height: 39px; border-radius: 10px; background: #ebf5ed; color: #236c3c; }
.c-shortcut-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-shortcut.c-card { margin-bottom: 0; }
.c-shortcut strong { font-size: 16px; }
.c-shortcut small { font-size: 12px; color: #788e7e; }
.c-shortcut-arrow { grid-column: 3; grid-row: 1 / 3; justify-self: end; font-size: 19px; }
.c-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.c-row h2, .c-row p { margin-bottom: 0; }
.c-row > div { min-width: 0; }
.c-row > .c-button { flex-shrink: 0; }
.c-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-field { display: grid; gap: 7px; font-size: 12px; color: #416550; font-weight: 730; margin-bottom: 18px; min-width: 0; }
.c-field input, .c-field textarea, .c-field select, .c-group-picker select, .c-search input, .c-statements select {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cfddd2; border-radius: 10px; background: #FFFFFF; color: #234b33; font-size: 13px; font-weight: 400;
}
.c-field textarea { resize: vertical; line-height: 1.65; }
.c-field input:focus, .c-field select:focus, .c-field textarea:focus, .c-group-picker select:focus, .c-search input:focus { border-color: #55a775; box-shadow: 0 0 0 3px #e2f4e8; }
.c-field input[type="file"] { max-width: 100%; }
.c-grid { display: grid; gap: 18px; min-width: 0; }
.c-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-group-picker { display: grid; gap: 7px; max-width: 430px; margin: 14px 0 18px; color: #6c8272; font-size: 12px; }
.c-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: 20px 0 15px; }
.c-filters .c-button { font-size: 12px; font-weight: 600; }
.c-filters small { margin-left: 5px; padding: 1px 5px; border-radius: 5px; background: #f7faf8; color: #537660; font-size: 11px; font-variant-numeric: tabular-nums; }
.c-search { display: flex; gap: 9px; margin-bottom: 18px; max-width: 100%; }
.c-search input { flex: 1; }
.c-package-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid #e9f0eb; }
.c-package-row:last-child { border-bottom: 0; }
.c-package-row > div:first-child { min-width: 0; flex: 1; }
.c-package-row h3 { overflow-wrap: anywhere; color: #36583f; font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 4px; }
.c-package-row p { margin-bottom: 0; font-size: 12px; line-height: 1.6; color: #7a8f80; }
.c-package-row .c-actions { justify-content: flex-end; }
.c-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: #6e8174; font-size: 12px; }
.c-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid #e5ece7; border-radius: 9px; scrollbar-width: thin; }
table { width: 100%; min-width: 490px; border-collapse: collapse; text-align: left; color: #4b6353; font-size: 12px; line-height: 1.6; }
th { padding: 13px 12px; background: #eaf4ed; color: #466b52; font-size: 11px; font-weight: 550; }
td { padding: 14px 12px; border-top: 1px solid #edf2ee; vertical-align: middle; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-left: 15px; }
th:last-child, td:last-child { padding-right: 15px; }
tbody tr:hover { background: #fbfdfb; }
td code { font-family: inherit; }
td .c-button { min-height: 36px; padding: 7px 11px; font-size: 11px; }
.c-server-note { margin: 15px 0 22px; color: #7e9083; font-size: 11px; line-height: 1.6; }
.c-notice, .notice { border: 1px solid #c8dfd1; border-radius: 12px; padding: 15px 17px; margin: 15px 0; background: #edf6ef; color: #416550; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.c-notice.error, .warning-notice { color: #9e302f; background: #fff4f2; border-color: #efc8c2; white-space: pre-wrap; }
.c-topbar + .c-notice { margin-top: 16px; }
.c-empty { padding: 28px 10px; margin: 0; text-align: center; color: #7e9283; font-size: 13px; }
.c-catalog { border-radius: 11px; padding: 13px 16px; }
.c-catalog summary { min-height: 18px; cursor: pointer; color: #36583f; font-size: 13px; font-weight: 600; }
.c-catalog summary span { margin-left: 6px; padding: 1px 6px; background: #edf6ef; border-radius: 5px; color: #537660; font-size: 11px; font-weight: 500; }
.c-catalog[open] summary { margin-bottom: 16px; }
.c-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.c-chips span { max-width: 100%; border: 1px solid #e0e9e3; border-radius: 6px; padding: 6px 9px; color: #55705e; font-size: 12px; overflow-wrap: anywhere; }
.c-inline { display: flex; align-items: flex-end; gap: 9px; max-width: 550px; }
.c-inline .c-field { flex: 1; margin: 0; }
.c-archive { padding: 15px; margin-top: 20px; border: 1px dashed #b9cbbf; border-radius: 8px; color: #687d70; font-size: 12px; }
.c-archive summary { cursor: pointer; }
.c-archive p { margin: 12px 0 0; }

/* Welcome: one primary choice, then two login cards, as in V14. */
body[data-view="welcome"] { min-height: 100vh; background: linear-gradient(180deg, #ecf7ee 0%, #f8fbf8 48%, #FFFFFF 100%); }
body[data-view="welcome"] .site-header.shell,
body[data-view="welcome"] #app.shell,
body[data-view="welcome"] .site-footer.shell { width: min(780px, calc(100% - 34px)); max-width: 780px; margin-inline: auto; }
body[data-view="welcome"] .site-header { padding-top: 18px; }
body[data-view="welcome"] .c-side, body[data-view="welcome"] .c-topbar, body[data-view="welcome"] .c-sidebar-credit { display: none; }
body[data-view="welcome"] #app { min-height: 0; }
body[data-view="welcome"] .c-workspace { padding: 0; }
.c-welcome { padding-top: 55px; }
.c-welcome > .c-eyebrow { margin: 0 0 15px; text-align: center; color: #2b7a49; }
.c-welcome > h1 { margin: 0 20px 15px; color: #193927; font-size: clamp(32px, 5vw, 42px); line-height: 1.16; letter-spacing: -1.45px; font-weight: 760; text-align: center; }
.c-welcome > p { max-width: 560px; margin: 0 auto; color: #6b7e70; line-height: 1.7; font-size: 14px; text-align: center; }
.welcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 0 10px; margin-top: 32px; }
.c-choice { display: flex; flex-direction: column; align-items: flex-start; min-height: 183px; margin: 0; padding: 24px; border: 1px solid #e0e8e1; border-radius: 17px; background: #FFFFFF; color: inherit; text-align: left; box-shadow: 0 5px 18px rgba(21, 65, 37, .045); transition: box-shadow .16s, border-color .16s, transform .16s; }
.c-choice:hover { transform: translateY(-3px); border-color: #c7ddcc; box-shadow: 0 10px 25px rgba(21, 65, 37, .09); }
.c-entry-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 17px; background: #ecf5ee; color: #236c3c; border-radius: 12px; }
.c-entry-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-choice h2, .c-choice h3 { margin: 0 0 7px; color: #173f29; font-size: 18px; line-height: 1.3; font-weight: 750; }
.c-choice p { margin: 0 0 15px; color: #758779; font-size: 12px; line-height: 1.7; }
.c-entry-bottom { margin-top: auto; color: #286b40; font-size: 12px; font-weight: 750; }
.c-choice:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 60px 1fr auto; grid-template-rows: auto auto; align-content: center; align-items: center; gap: 4px 15px; min-height: 188px; padding: 28px; }
.c-choice:first-child .c-entry-icon { grid-column: 1; grid-row: 1 / 3; margin: 0; width: 54px; height: 54px; }
.c-choice:first-child h2, .c-choice:first-child h3, .c-choice:first-child p { grid-column: 2; margin: 0; }
.c-choice:first-child h2, .c-choice:first-child h3 { font-size: 22px; }
.c-choice:first-child .c-entry-bottom { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; padding: 12px 18px; border: 1px solid #e6bd0b; border-radius: 10px; background: #f8d020; color: #173d21; font-size: 13px; }
.c-welcome > p.c-muted { margin-top: 18px; font-size: 11px; }

/* The original category and cascading-filter layout. */
.c-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.c-category-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 197px; padding: 22px; margin-bottom: 0; border: 1px solid #e0e8e1; border-radius: 15px; background: #FFFFFF; text-align: left; box-shadow: 0 4px 14px rgba(21, 65, 37, .035); }
.c-category-card:hover { border-color: #99caa9; box-shadow: 0 10px 22px rgba(45, 88, 59, .08); }
.c-category-card h2, .c-category-card h3 { margin: 3px 0 -5px; color: #193927; font-size: 18px; }
.c-category-card p { margin: 0; color: #748578; font-size: 12px; line-height: 1.65; }
.c-category-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e9f4ec; color: #246b3d; }
.c-category-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-category-arrow { margin-top: auto; color: #24663c; font-size: 12px; font-weight: 750; }
.c-filter-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 15px; padding: 18px; margin: 25px 0 22px; border: 1px solid #e0e8e1; border-radius: 15px; background: #FFFFFF; }
.c-filter-panel .c-field { margin: 0; }
.c-section-heading { margin: 25px 0 21px; }
.c-section-heading h2 { margin-bottom: 8px; }
.c-section-heading p { margin-bottom: 0; font-size: 14px; }
.c-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.c-catalog-package { display: flex; flex-direction: column; gap: 12px; min-height: 210px; margin-bottom: 0; }
.c-catalog-package h3 { color: #173c29; font-size: 20px; margin-bottom: 0; }
.c-catalog-package p { color: #748578; font-size: 12px; margin-bottom: 0; }
.c-catalog-package .c-eyebrow { margin-bottom: 0; font-size: 10px; }
.c-catalog-package .c-row { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed #dce7df; }
.c-package-grid > .c-empty { grid-column: 1 / -1; }

/* Login, forms, modals and supported question types. */
.c-login { max-width: 560px; margin: 28px auto 0; padding: 32px; box-shadow: 0 13px 28px rgba(21, 65, 37, .05); }
.c-login h1 { font-size: 27px; }
.c-login p { color: #687d70; font-size: 13px; }
.c-login .google-auth-button { margin-top: 23px; min-height: 48px; }
.c-login-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; min-height: 490px; }
.c-login-wrap .c-login, .c-login-panel { width: 100%; margin: 0; padding: 30px; border: 1px solid #e0e8e1; border-radius: 15px; background: #FFFFFF; box-shadow: 0 4px 14px rgba(21, 65, 37, .03); }
.c-login-info h1 { max-width: 480px; font-size: clamp(28px, 3vw, 37px); }
.c-login-info > p { color: #7a8c80; font-size: 14px; line-height: 1.85; }
.c-login-benefit { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #557761; font-size: 13px; }
.c-login-benefit > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #e9f5ec; color: #23643c; }
.c-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 48, 29, .48); }
.c-dialog { width: 100%; max-width: 660px; max-height: 90vh; overflow-y: auto; padding: 26px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 28px 70px rgba(15, 48, 29, .22); }
.c-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.c-dialog > header h2 { margin: 0; min-width: 0; font-size: 25px; }
.c-dialog > header > .c-button { flex-shrink: 0; white-space: nowrap; }
.c-dialog-error { color: #a62f2d; white-space: pre-wrap; margin: 15px 0 0; font-size: 13px; }
.c-dialog-error:empty { display: none; }
.c-dialog details { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #dde9e0; border-radius: 11px; }
.c-dialog details > summary { cursor: pointer; color: #326545; font-size: 12px; font-weight: 720; }
.c-dialog details[open] > summary { margin-bottom: 16px; }
.c-credential { display: grid; grid-template-columns: 110px 1fr; gap: 13px; padding: 20px; border-radius: 12px; background: #edf6ef; font-size: 15px; }
.c-credential dt { color: #687d70; }
.c-credential dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.c-question-collapse { padding: 17px 0; border-bottom: 1px solid var(--line); }
.c-question-collapse summary { cursor: pointer; font-size: 14px; overflow-wrap: anywhere; }
.c-question-detail { padding: 17px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-question-detail h3 { font-size: 18px; }
.c-question-detail p { white-space: pre-wrap; }
.c-question-detail li { margin: 9px 0; }
.c-stimulus { padding: 19px; margin: 20px 0; border: 1px solid #e0e8e1; border-radius: 15px; background: #FFFFFF; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-stimulus img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; margin: 15px auto; background: #FFFFFF; }
.c-explanation { padding: 14px; background: #edf6ef; border-radius: 10px; }
.c-steps { display: grid; gap: 10px; padding-left: 23px; font-size: 13px; }
.c-import-summary { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.c-errors { max-height: 330px; overflow: auto; overflow-wrap: anywhere; color: #963c2f; font-size: 13px; }
.c-quiz-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 22px; }
.c-quiz-heading h1 { margin-bottom: 8px; font-size: 28px; }
.c-timer { padding: 10px 16px; border: 1px solid #dde7df; border-radius: 11px; background: #FFFFFF; color: #185b32; font-size: 23px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-timer-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.c-timer-wrap > small { color: #839588; font-size: 10px; font-weight: 750; letter-spacing: .06em; }
.c-quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.c-quiz-sidebar { padding: 23px; border: 1px solid #e0e8e1; border-radius: 15px; background: #FFFFFF; box-shadow: 0 4px 14px rgba(21, 65, 37, .03); }
.c-quiz-sidebar h2, .c-quiz-sidebar h3 { margin-bottom: 7px; font-size: 16px; }
.c-quiz-sidebar p { color: #839588; font-size: 11px; line-height: 1.65; }
.c-quiz-sidebar > .c-button { width: 100%; }
.c-progress-track { flex: 1; min-width: 80px; max-width: 240px; height: 7px; border-radius: 5px; overflow: hidden; background: #e8f1eb; margin: 0; }
.c-progress-track span { display: block; height: 100%; background: #1f7a45; border-radius: inherit; }
.c-question-text { margin: 28px 0 20px; color: #193927; font-size: 21px; font-weight: 710; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-options { display: grid; gap: 12px; margin-bottom: 24px; }
.c-options label { display: flex; align-items: flex-start; gap: 14px; padding: 15px; border: 1px solid #dbe5dd; border-radius: 10px; background: #FFFFFF; color: #345e40; cursor: pointer; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-options label:has(input:checked) { background: #e9f5ed; border-color: #448d5c; color: #194a2d; }
.c-options label:has(input:disabled) { cursor: not-allowed; }
.c-options label > span { min-width: 0; }
.c-options input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: #1f6a3d; }
.c-statements { display: grid; gap: 12px; margin: 20px 0; }
.c-statements label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 35%); align-items: center; gap: 18px; padding: 12px 14px; border: 1px solid #dfeae1; border-radius: 14px; background: #FFFFFF; }
.c-statements span { white-space: pre-wrap; overflow-wrap: anywhere; }
.c-quiz-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.c-save-state { font-size: 12px; color: #687d70; }
.c-number-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-height: 290px; overflow-y: auto; padding: 6px; margin: 15px -6px; scrollbar-width: thin; }
.c-number-button, .c-number-grid button { width: 100%; min-height: 36px; aspect-ratio: 1; border: 1px solid #d9e7dd; border-radius: 10px; background: #f4f7f4; color: #758579; font-size: 12px; font-weight: 750; }
.c-number-grid button.answered { background: #edf6ef; color: #22673d; border-color: #acd7bb; }
.c-number-grid button.active { background: #145632; border-color: #145632; color: #FFFFFF; }
.c-result-shell { max-width: 830px; margin: 32px auto 0; }
.c-result-panel { padding: 39px; text-align: center; }
.c-result-panel h1 { margin-bottom: 5px; font-size: 32px; }
.c-result-panel .c-actions { justify-content: center; margin-top: 25px; }
.c-score { font-size: 68px; color: #1f6a3d; font-weight: 750; line-height: 1.4; }
.c-score-ring { position: relative; display: grid; place-items: center; width: 135px; height: 135px; margin: 20px auto 18px; border-radius: 50%; background: conic-gradient(#38a366 var(--degree, 0deg), #e8f3ec 0); }
.c-score-ring::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #FFFFFF; }
.c-score-ring strong { position: relative; z-index: 1; color: #267c4b; font-size: 39px; font-weight: 750; letter-spacing: -1px; }
.c-result-answer { padding: 16px; margin-bottom: 24px; border: 1px solid #e0e8e1; border-radius: 15px; background: #FFFFFF; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.c-result-answer.correct { border-color: #d3e8d9; background: #f5faf6; }
.c-result-answer.incorrect { border-color: #efd8d3; background: #fff6f4; }
.c-result-answer p { margin: 10px 0; }
.site-footer { display: flex; justify-content: center; align-items: center; gap: 7px 22px; flex-wrap: wrap; text-align: center; padding: 28px 0 35px; margin-top: 24px; border-top: 1px solid #e8eee9; color: #819388; font-size: 11px; }
.site-footer strong { color: #1e633b; }
body[data-view="welcome"] .site-footer { margin-top: 38px; border-top: 0; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 24px; transform: translate(-50%, 25px); padding: 12px 19px; max-width: calc(100% - 32px); border-radius: 12px; background: #174c2c; color: #FFFFFF; box-shadow: 0 12px 28px rgba(21, 71, 41, .23); font-size: 12px; font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.c-busy, .c-busy .c-button { cursor: progress; }

/* Administrator retains the compact original owner layout. */
body[data-role="owner"].cloud-staff { background: #f6f9f6; }
body[data-role="owner"].cloud-staff .c-side button { font-weight: 550; }
body[data-role="owner"].cloud-staff .c-topbar { min-height: 72px; margin-top: 0; padding: 14px 16px; border: 0; border-bottom: 1px solid #e6ece7; border-radius: 0; }
body[data-role="owner"].cloud-staff .c-workspace { padding-top: 30px; }
body[data-role="owner"].cloud-staff .c-heading { display: block; padding: 0; margin-bottom: 20px; border: 0; border-radius: 0; background: transparent; }
body[data-role="owner"].cloud-staff .c-heading h1 { margin: 0 0 10px; color: #284c35; font-size: 28px; font-weight: 550; line-height: 1.25; }
body[data-role="owner"].cloud-staff .c-heading .c-eyebrow { margin-bottom: 9px; color: #3d7453; font-size: 11px; font-weight: 600; letter-spacing: .09em; }
body[data-role="owner"].cloud-staff .c-heading p { color: #6c8072; font-size: 14px; line-height: 1.65; }
body[data-role="owner"].cloud-staff .c-heading .c-button { margin-top: 16px; border-color: #bdcec1; color: #375741; }
.c-admin-identity { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: #577660; font-size: 12px; overflow-wrap: anywhere; }
.c-admin-identity svg { width: 15px; height: 15px; flex: 0 0 15px; color: #348157; stroke: currentColor; fill: none; stroke-width: 1.6; }
body[data-role="owner"].cloud-staff .c-button { border-radius: 9px; font-weight: 550; }
body[data-role="owner"].cloud-staff .c-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; padding: 6px; margin: 0 0 16px; border: 1px solid #dfeae2; border-radius: 12px; background: #e8f3eb; }
body[data-role="owner"].cloud-staff .c-tabs button { min-height: 43px; padding: 11px 10px; border: 1px solid transparent; border-radius: 9px; color: #58715f; background: transparent; font-size: 12px; font-weight: 400; }
body[data-role="owner"].cloud-staff .c-tabs button.active { border-color: #bdd3c4; background: #FFFFFF; color: #285a3a; box-shadow: 0 2px 6px rgba(42, 77, 54, .06); }
body[data-role="owner"].cloud-staff .c-tabs button:not(.active):hover { background: #f4faf6; color: #23593a; }
body[data-role="owner"].cloud-staff .c-stats { margin: 0 0 17px; }
body[data-role="owner"].cloud-staff .c-stats .c-card { display: block; padding: 22px 20px 20px; border-color: #dfe8e1; box-shadow: 0 5px 14px rgba(27, 64, 39, .025); }
body[data-role="owner"].cloud-staff .c-stats dt { color: #7c8d80; font-size: 12px; line-height: 1.5; }
body[data-role="owner"].cloud-staff .c-stats dd { margin: 12px 0 0; color: #2a6541; font-size: 29px; line-height: 1.1; font-weight: 550; }
body[data-role="owner"].cloud-staff .c-card { padding: 22px; border-color: #dfe8e1; border-radius: 14px; box-shadow: 0 5px 16px rgba(27, 64, 39, .025); }
body[data-role="owner"].cloud-staff .c-card h2 { color: #2e4c39; font-size: 18px; line-height: 1.4; font-weight: 550; letter-spacing: -.015em; }
body[data-role="owner"].cloud-staff .c-card p { font-size: 13px; }
body[data-role="owner"].cloud-staff .site-footer { display: none; }
.c-stat-time { font-size: 25px !important; white-space: nowrap; }
.c-stat-time small { font-size: 12px; font-weight: 500; }
.c-page-counts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.c-page-counts > div { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid #e3ece5; border-radius: 10px; background: #f7faf8; }
.c-page-counts > div span { min-width: 0; font-size: 13px; color: #526e5b; }
.c-page-counts > div strong { font-size: 19px; color: #215d37; font-variant-numeric: tabular-nums; }
.c-range-actions { display: inline-flex; gap: 6px; }
.c-range-actions .c-button { min-height: 37px; padding: 7px 13px; }
.c-range-actions [aria-pressed="true"] { background: #e6f3e9; color: #16532f; border-color: #a5cbb0; }
.c-visits-chart { display: flex; align-items: stretch; gap: 5px; min-height: 194px; padding: 8px 0 0; overflow-x: auto; }
.c-visit-day { display: flex; flex: 1 0 23px; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; min-width: 0; }
.c-visit-value { color: #2f6641; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-visit-track { display: flex; width: 100%; height: 132px; justify-content: flex-end; align-items: flex-end; border-bottom: 1px solid #b7d4be; }
.c-visit-track > span { width: 100%; max-width: 42px; min-height: 0; border-radius: 4px 4px 0 0; background: #3a9a5a; }
.c-visit-day small { font-size: 10px; white-space: nowrap; color: #637b6c; }

@media (min-width: 901px) {
  body:not([data-view="welcome"]) .site-header.shell { position: fixed; z-index: 3; inset: 0 auto 0 0; width: 212px; max-width: none; height: 100vh; margin: 0; padding: 27px 16px 20px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 32px; background: #FFFFFF; border-right: 1px solid #e4ebe5; }
  body:not([data-view="welcome"]) .site-header .brand { align-self: flex-start; }
  body:not([data-view="welcome"]) .brand img { width: 39px; height: 39px; flex-basis: 39px; }
  body:not([data-view="welcome"]) .brand strong { font-size: 17px; }
  body:not([data-view="welcome"]) .brand small { font-size: 8px; }
  body:not([data-view="welcome"]) .c-side { display: flex; flex-direction: column; align-items: stretch; gap: 7px; margin: 0; }
  body:not([data-view="welcome"]) .c-side button { width: 100%; }
  body:not([data-view="welcome"]) .c-sidebar-credit { display: block; margin-top: auto; padding: 18px 10px 0; border-top: 1px solid #e6ece7; font-size: 11px; color: #78897e; }
  body:not([data-view="welcome"]) #app.shell,
  body:not([data-view="welcome"]) .site-footer.shell { width: min(1150px, calc(100% - 276px)); max-width: 1150px; margin-left: 244px; margin-right: 32px; }
  body:not([data-view="welcome"]) #app.shell { min-height: calc(100vh - 155px); }
  body[data-role="owner"].cloud-staff .c-topbar { margin-inline: -32px; padding-inline: 32px; }
  body[data-role="owner"].cloud-staff .site-header.shell { padding-top: 25px; }
  body[data-role="owner"].cloud-staff .c-side button { padding: 12px 13px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .c-package-row { align-items: flex-start; flex-direction: column; }
  .c-package-row .c-actions { justify-content: flex-start; }
  .c-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header.shell, body:not([data-view="welcome"]) .site-header.shell { position: static; width: min(780px, calc(100% - 34px)); max-width: 780px; min-height: 0; padding: 13px 0; margin-inline: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; background: transparent; border: 0; }
  body:not([data-view="welcome"]) #app.shell, body:not([data-view="welcome"]) .site-footer.shell { width: min(780px, calc(100% - 34px)); max-width: 780px; margin-inline: auto; }
  .c-side { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  .c-side button { padding: 9px 10px; }
  .c-sidebar-credit { display: none; }
  .c-topbar { margin-top: 8px; }
  body[data-role="owner"].cloud-staff .c-topbar { min-height: 62px; padding: 12px 0; gap: 12px; }
  body[data-role="owner"].cloud-staff .c-workspace { padding-top: 24px; }
  body[data-role="owner"].cloud-staff .c-card { padding: 20px; }
}
@media (max-width: 800px) {
  .c-heading { align-items: stretch; flex-direction: column; padding: 22px; }
  .c-heading > .c-group-picker { flex: auto; max-width: none; width: 100%; }
  .c-heading > .c-button { align-self: flex-start; }
  .c-package-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .c-package-row .c-actions { justify-content: flex-start; }
}
@media (max-width: 740px) {
  body[data-view="welcome"] .site-header { padding-top: 6px; }
  .brand img { width: 40px; height: 40px; flex-basis: 40px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 8px; }
  .c-side { flex-basis: 100%; width: 100%; margin-left: 0; }
  .c-welcome { padding-top: 35px; }
  .c-welcome > h1 { font-size: 33px; margin-inline: 10px; }
  .c-welcome > p { font-size: 13px; }
  .welcome-grid { gap: 12px; margin-top: 26px; }
  .c-choice { min-height: 172px; padding: 20px; }
  .c-choice .c-entry-icon { width: 41px; height: 41px; margin-bottom: 10px; }
  .c-choice h2, .c-choice h3 { font-size: 16px; }
  .c-choice p { font-size: 11px; line-height: 1.55; }
  .c-choice .c-entry-bottom { margin-top: 14px; }
  .c-choice:first-child { min-height: 177px; grid-template-columns: 52px 1fr; grid-template-rows: auto auto auto; padding: 22px; gap: 7px 12px; }
  .c-choice:first-child .c-entry-icon { grid-column: 1; grid-row: 1 / 3; width: 46px; height: 46px; margin: 0; }
  .c-choice:first-child h2, .c-choice:first-child h3, .c-choice:first-child p { grid-column: 2; }
  .c-choice:first-child h2, .c-choice:first-child h3 { font-size: 19px; }
  .c-choice:first-child .c-entry-bottom { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; text-align: center; margin-top: 9px; }
  .c-login-wrap { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding-top: 12px; }
  .c-login { margin: 20px auto; padding: 24px; }
  .c-login-wrap .c-login, .c-login-panel { padding: 24px; }
  .c-grid.two, .c-filter-panel { grid-template-columns: 1fr; }
  .c-grid.two { gap: 0; }
  .c-category-grid { grid-template-columns: 1fr; }
  .c-package-grid { grid-template-columns: 1fr; }
  .c-category-card { min-height: 150px; }
  .c-row { align-items: flex-start; flex-wrap: wrap; }
  .c-row > .c-actions { width: 100%; }
  .c-quiz-heading { flex-wrap: wrap; }
  .c-quiz-heading h1 { font-size: 24px; }
  .c-quiz-layout { grid-template-columns: 1fr; }
  .c-quiz-sidebar { order: -1; padding: 18px; }
  .c-number-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); max-height: 272px; margin-block: 12px; }
  .c-number-grid button { min-height: 44px; }
  .c-question-text { font-size: 19px; }
  .c-statements label { grid-template-columns: 1fr; gap: 8px; }
  .c-page-intro { flex-direction: column; align-items: flex-start; min-height: 130px; padding: 22px; }
  .c-page-intro h1 { font-size: 27px; }
  .c-page-intro p { font-size: 12px; }
  .c-result-panel { padding: 25px; }
  .c-score-ring { width: 120px; height: 120px; }
  .site-footer { gap: 7px; flex-direction: column; padding-bottom: 28px; }
  .c-field input, .c-field textarea, .c-field select, .c-search input { font-size: 16px; }
}
@media (max-width: 600px) {
  .c-topbar { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .c-topbar > span { flex-basis: 100%; font-size: 11px; }
  .c-topbar > div { margin-left: 0; text-align: left; flex: 1; font-size: 11px; }
  .c-topbar > .c-button { min-height: 44px; padding: 10px 6px; }
  .c-topbar > div:empty, .c-topbar > span:empty { display: none; }
  .c-card { padding: 18px; }
  .c-group-picker { max-width: none; }
  .c-group-picker select { font-size: 14px; }
  .c-inline { flex-direction: column; align-items: stretch; }
  .c-overlay { padding: 14px; }
  .c-dialog { padding: 20px; max-height: 94vh; border-radius: 18px; }
  .c-dialog > header { gap: 10px; }
  .c-dialog > header h2 { font-size: 22px; }
  .c-credential { grid-template-columns: 85px 1fr; padding: 15px; font-size: 14px; }
  .c-pagination { justify-content: space-between; gap: 8px; }
  .c-pagination span { text-align: center; font-size: 11px; }
  .c-pagination .c-button { padding-inline: 10px; font-size: 11px; }
  td .c-button { min-height: 44px; }
  body[data-role="owner"].cloud-staff .c-topbar { padding: 12px 14px; }
  body[data-role="owner"].cloud-staff .c-heading h1 { font-size: 27px; }
  body[data-role="owner"].cloud-staff .c-heading p { font-size: 13px; }
  body[data-role="owner"].cloud-staff .c-tabs { display: flex; gap: 4px; padding: 5px; }
  body[data-role="owner"].cloud-staff .c-tabs button { min-width: 76px; min-height: 44px; padding: 10px 14px; }
  body[data-role="owner"].cloud-staff .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  body[data-role="owner"].cloud-staff .c-stats .c-card { padding: 18px 15px; }
  body[data-role="owner"].cloud-staff .c-stats dt { font-size: 11px; }
  body[data-role="owner"].cloud-staff .c-stats dd { margin-top: 10px; font-size: 27px; }
  body[data-role="owner"].cloud-staff .c-card { padding: 17px; border-radius: 12px; }
  .c-admin-identity, .c-server-note { font-size: 11px; }
  .c-page-counts { grid-template-columns: 1fr; gap: 7px; }
  .c-page-counts > div { padding: 10px 12px; }
  .c-visits-chart:has(.c-visit-day:nth-child(30)) .c-visit-day { flex: 0 0 23px; }
  .c-stat-time { font-size: 21px !important; }
}
@media (max-width: 550px) {
  .c-tabs { padding-top: 12px; gap: 6px; }
  .c-tabs button { padding: 10px 12px; font-size: 11px; }
  .c-shortcuts { grid-template-columns: 1fr; }
  .c-stats .c-card { padding: 15px 12px; }
  .c-stats dd { font-size: 25px; }
  .c-stats dt { font-size: 10px; }
}
@media (max-width: 480px) {
  .c-choice:not(:first-child) { min-height: 194px; padding: 17px; }
  .c-choice:not(:first-child) .c-entry-icon { width: 39px; height: 39px; }
  .c-choice:not(:first-child) h2, .c-choice:not(:first-child) h3 { font-size: 15px; }
  .c-choice:not(:first-child) p { font-size: 10.5px; }
  .c-choice:not(:first-child) .c-entry-bottom { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Public portal navigation is distinct from internal Ruang Latih navigation. */
.c-portal-nav{margin-left:auto}.c-portal-nav button{border:1px solid #dce8df;background:#FFFFFF;border-radius:9px;padding:10px 16px;color:#23643c;font-size:13px;font-weight:650}.c-portal-nav button:hover{background:#ecf5ee}

@media(max-width:360px){.site-header{gap:12px}.c-portal-nav button{padding:9px 11px}}
