.demo-header {max-width:1280px;margin:auto;min-height:80px;padding:12px 24px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.demo-brand {display:flex;align-items:center;gap:8px;color:var(--ink);font-size:22px;font-weight:750;text-decoration:none;white-space:nowrap}.demo-brand small {background:var(--teal-soft);border-radius:6px;padding:3px 6px;color:var(--teal);font-size:11px}
.demo-nav {margin:0;flex:1;justify-content:center;gap:22px}.demo-nav a {text-decoration:none;color:var(--ink);padding:10px 0}.demo-nav a[aria-current] {color:var(--teal);font-weight:700;border-bottom:2px solid var(--teal)}
.demo-main {padding-top:36px}.demo-intro {display:flex;justify-content:space-between;gap:24px;align-items:center}.demo-intro h1 {font-size:34px;margin:8px 0}.demo-intro p {font-size:15px;margin:10px 0 22px;max-width:660px}
.demo-role {display:flex;padding:4px;background:#eaded4;border-radius:12px;flex-shrink:0;gap:3px}.demo-role button {background:transparent;color:var(--ink);min-height:42px;padding:8px 14px}.demo-role button[aria-pressed=true] {background:var(--surface);color:var(--teal);box-shadow:0 2px 5px #402a2610}
.demo-role-avatar {width:30px;height:30px;border-radius:50%;flex-shrink:0}.demo-profile-avatar {width:64px;height:64px;border-radius:50%;border:3px solid var(--surface);flex-shrink:0}
.demo-notice {display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--teal-soft);padding:12px 18px;border-radius:12px;font-size:14px;line-height:1.5}.demo-notice button {flex-shrink:0;min-height:38px;padding:8px 12px}
.demo-feedback {min-height:24px;margin:12px 0;color:var(--teal);font-size:14px}.demo-profile {display:flex;gap:12px;align-items:center;margin:0 0 24px}.demo-profile h2 {font-size:20px;margin:0 0 4px}.demo-section > h2 {margin-bottom:20px}
.demo-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.demo-stats article {padding:22px 24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);display:flex;flex-direction:column;gap:6px}.demo-stats .demo-balance {background:#fff2d9;border-color:#eeddb9}.demo-stats strong {font-size:38px;color:var(--berry);line-height:1.3}.demo-stats .demo-balance strong {color:#a26617}.demo-stats span {font-size:13px;color:var(--muted)}
.demo-grid {display:grid;grid-template-columns:1fr 1fr;gap:24px}.demo-grid > article {min-width:0}.demo-main h3 {margin:0 0 18px;font-size:19px}.demo-section-heading {display:flex;justify-content:space-between;align-items:baseline;gap:10px}.demo-section-heading a {font-size:13px}.demo-next {background:#eaf2ee}.demo-next p {font-size:15px}.demo-next .form-note {margin-top:20px;font-size:13px}.demo-form-row {display:grid;grid-template-columns:1fr 1fr;gap:14px}.demo-rules {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.demo-record {display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.demo-record:last-child {border-bottom:0}.demo-record strong {overflow-wrap:anywhere}.demo-record .demo-mark {display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--teal-soft);color:var(--teal);font-size:22px}.demo-coins {color:var(--teal);font-size:15px;white-space:nowrap}.demo-record small {margin-top:3px}
.demo-task-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.demo-task {background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px}.demo-task-top {display:flex;justify-content:space-between;gap:12px}.demo-task h3 {overflow-wrap:anywhere}.demo-task p {font-size:14px;margin:0 0 14px}.demo-task-actions {display:flex;gap:10px;flex-wrap:wrap}.demo-footer {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:18px;border-top:1px solid var(--line);margin-top:30px;padding:24px 0;color:var(--muted);font-size:14px}.demo-menu-toggle {display:none}.demo-skip {position:absolute;top:-100px;left:12px;z-index:100;background:white;padding:12px}.demo-skip:focus {top:12px}
@media(max-width:960px){.demo-header{gap:16px}.demo-nav{order:3;flex-basis:100%;justify-content:flex-start}.demo-signup{margin-left:auto}.demo-intro{align-items:flex-start;flex-direction:column;gap:0}.demo-role{margin-bottom:20px}}
@media(max-width:600px){.demo-header{padding:12px 16px;gap:8px}.demo-brand{font-size:19px}.demo-brand small{display:none}.demo-brand img{width:30px;height:30px}.demo-signup{font-size:11px;min-height:38px;padding:8px}.demo-menu-toggle{display:inline-flex;font-size:20px;min-height:38px;padding:6px 10px}.demo-nav{display:none;flex-direction:column;align-items:stretch;gap:0}.demo-nav.is-open{display:flex}.demo-main{padding:24px 16px}.demo-intro h1{font-size:27px}.demo-notice{align-items:flex-start;flex-direction:column;gap:10px}.demo-stats{grid-template-columns:1fr;gap:12px}.demo-stats article{padding:16px 20px}.demo-stats strong{font-size:30px}.demo-grid,.demo-task-grid{grid-template-columns:1fr;gap:0}.demo-task-grid{gap:14px}.demo-rules{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-section-heading{flex-wrap:wrap}.demo-record{gap:12px}.demo-footer{align-items:stretch;flex-direction:column}.demo-section > h2{font-size:23px}}
@media(max-width:360px){.demo-signup{display:none}.demo-menu-toggle{margin-left:auto}}
.demo-body .demo-main {padding-top:24px}
.demo-body .demo-intro h1 {font-size:28px}
.demo-body .demo-notice {font-size:13px}
.demo-body .demo-profile {margin-bottom:20px}
.demo-body .demo-stats {gap:18px;margin-bottom:18px}
.demo-body .demo-stats article {padding:18px 22px}
.demo-body .demo-stats .coin-value {font-size:inherit;color:inherit}
.demo-body .demo-stats .coin-value > span {font-size:inherit;color:inherit}
.demo-body #demo-balance .ui-icon {width:28px;height:28px}
.demo-body .demo-grid {gap:18px}
.demo-body .demo-grid > .cabinet-card {background:var(--surface);border:1px solid var(--line);padding:22px;border-radius:14px}
.demo-body .demo-grid > .demo-next {background:var(--teal-soft)}
.demo-body #demo-grades-list,.demo-body #demo-ledger {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.demo-body .demo-record {grid-template-columns:32px minmax(0,1fr) auto;gap:8px 10px;padding:12px;border:1px solid var(--line);border-radius:12px;margin:0;min-width:0}
.demo-body .demo-record > div {grid-column:2;grid-row:1;min-width:0}
.demo-body .demo-record .demo-mark {grid-column:1;grid-row:1 / 3;width:32px;height:36px;font-size:22px}
.demo-body .demo-record > .demo-coins {grid-column:2;grid-row:2;font-size:14px}
.demo-body .demo-record:has(.demo-mark) > .demo-coins {grid-column:3;grid-row:1 / 3}
.demo-body .demo-record:not(:has(.demo-mark)) {grid-template-columns:minmax(0,1fr) auto}
.demo-body .demo-record:not(:has(.demo-mark)) > div {grid-column:1;grid-row:1 / 3}
.demo-body .demo-record:not(:has(.demo-mark)) > .demo-coins {grid-column:2;grid-row:1 / 3}
.demo-body #demo-recent-grades {display:grid;gap:10px}
.demo-body .demo-record strong {font-size:14px;line-height:1.4}
.demo-body .demo-record small {font-size:11px}
.demo-body .negative {color:#a53c50}
.demo-body .demo-rule-preview {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin-bottom:18px}
.demo-body .demo-rule {display:flex;align-items:center;justify-content:center;gap:12px;padding:10px;background:var(--teal-soft);border-radius:10px;color:var(--teal)}
.demo-body .demo-rule.negative {background:#faebe6;color:#a53c50}
.demo-body .demo-rule .demo-mark {font-size:25px}
.demo-body .demo-task-filters {display:flex;gap:8px;flex-wrap:wrap;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:18px}
.demo-body .demo-task-filters button {background:transparent;border:0;color:var(--ink);min-height:44px;padding:10px 12px}
.demo-body .demo-task-filters button[aria-pressed=true] {background:var(--teal-soft);color:var(--teal)}
.demo-body .demo-task-grid {gap:18px;margin:0 0 18px}
.demo-body .demo-task {padding:18px}
.demo-body .demo-task h3 {font-size:18px;margin-bottom:10px}
.demo-body .demo-task-actions button {min-height:44px}
.demo-body .demo-empty {grid-column:1 / -1;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:14px;color:var(--muted);font-size:14px;margin:0}
.demo-body #demo-grade-preview {padding:12px;background:var(--teal-soft);color:var(--teal);border-radius:9px}
@media(max-width:900px){.demo-body #demo-grades-list,.demo-body #demo-ledger {grid-template-columns:1fr}}
@media(max-width:600px){.demo-body .demo-grid > .cabinet-card {padding:16px}.demo-body .demo-grid {gap:0}.demo-body .demo-rule-preview {grid-template-columns:1fr 1fr;padding:12px}.demo-body .demo-intro h1 {font-size:24px}.demo-body .demo-record:has(.demo-mark) > .demo-coins {grid-column:2;grid-row:2}.demo-body .demo-record > div {grid-column:2 / -1}.demo-body .demo-stats {gap:10px}.demo-body .demo-task-top {flex-wrap:wrap}.demo-body .demo-role {width:100%}.demo-body .demo-role button {flex:1}}
.demo-body .demo-task {display:grid;grid-template-columns:48px minmax(0,1fr) minmax(145px,.8fr);gap:8px 12px;align-content:start;}
.demo-body .demo-task-top {display:contents;}
.demo-body .demo-task-top .task-picture {grid-column:1;grid-row:1 / 4;width:48px;height:56px;}
.demo-body .demo-task-top h3 {grid-column:2;grid-row:1;margin:0;}
.demo-body .demo-task-top .demo-coins {grid-column:2;grid-row:2;}
.demo-body .demo-task > p {grid-column:2;grid-row:3;margin:0;}
.demo-body .demo-task > small {grid-column:2 / -1;grid-row:4;}
.demo-body .demo-task-actions {grid-column:3;grid-row:1 / 4;display:flex;flex-direction:column;gap:8px;}
.demo-body .demo-task-actions button {width:100%;padding:10px;font-size:13px;white-space:normal;}
@media(max-width:600px){.demo-body .demo-task {grid-template-columns:44px minmax(0,1fr)}.demo-body .demo-task-top .task-picture {width:44px;height:48px;grid-row:1 / 6}.demo-body .demo-task-actions {grid-column:2;grid-row:5}.demo-body .demo-task > small {grid-column:2}}
@media(min-width:1000px){.demo-body .demo-task {grid-template-columns:var(--task-art-size) minmax(0,1fr) minmax(145px,.8fr)}.demo-body .demo-task-top .task-picture {width:var(--task-art-size);height:var(--task-art-size)}}
.demo-body .demo-task-top .task-picture {height:auto;aspect-ratio:1;align-self:start;}
.demo-body .demo-task-icon-edit {grid-column:1 / -1;grid-row:6;min-width:0;max-width:none;}
