:root { color-scheme: light; --ink: #101b30; --blue: #1857e6; --paper: #f5f8fd; --line: #d7e1ee; --muted: #5b6c84; --success: #146c4b; --error: #a52828; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; font-size: 16px; }
a { color: var(--blue); }
button, input, textarea, select { font: inherit; }
.shell { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.header h1, .card h1 { margin: .55rem 0; font-size: clamp(1.85rem, 4vw, 2.55rem); letter-spacing: -.02em; }
.header p, .card p, .aside-note { color: var(--muted); line-height: 1.65; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.button { display: inline-block; border: 0; border-radius: .65rem; background: var(--blue); color: #fff; padding: .82rem 1.1rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.secondary { background: #e0ebff; color: #1648b6; }
.button.danger { background: #fff; color: var(--error); border: 1px solid #e4bcbc; }
.button:disabled { opacity: .55; cursor: default; }
.status { min-height: 3.2rem; padding: 1rem 0; }
.message { border-radius: .65rem; padding: .85rem 1rem; line-height: 1.5; }
.message.success { background: #dff5ea; color: var(--success); }
.message.error { background: #fde8e8; color: var(--error); }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
.sidebar { position: sticky; top: 1rem; }
.sidebar nav { display: grid; gap: .3rem; }
.sidebar nav a { border-radius: .5rem; padding: .72rem .8rem; color: var(--ink); text-decoration: none; }
.sidebar nav a:hover, .sidebar nav a.current { background: #e0ebff; color: #1648b6; font-weight: 700; }
.sidebar select, .sidebar label { display: none; }
.aside-note { padding: .8rem; font-size: .9rem; }
.fields, .card { min-width: 0; border: 1px solid var(--line); border-radius: 1rem; background: #fff; padding: clamp(1rem, 3vw, 2rem); }
.section-gap { height: 1rem; }
.fields h2 { margin: 0 0 1.5rem; font-size: 1.55rem; }
.field { margin-bottom: 1.6rem; }
.field label, .form-row label { display: block; margin-bottom: .48rem; font-size: .92rem; font-weight: 700; line-height: 1.5; }
.field textarea, .form-row input { width: 100%; border: 1px solid #a7b8cf; border-radius: .55rem; background: #fff; color: var(--ink); padding: .78rem; line-height: 1.6; }
.field textarea { resize: vertical; min-height: 5.2rem; }
.field small { display: block; margin-top: .35rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row.full { grid-column: 1 / -1; }
.card { max-width: 760px; margin: 6vh auto; }
.card .actions { margin-top: 1.5rem; }
.hint { border-left: 4px solid #75b7e5; background: #edf7ff; padding: .8rem 1rem; line-height: 1.6; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 760px) { .header { align-items: flex-start; flex-direction: column; }.layout { grid-template-columns: 1fr; }.sidebar { position: static; }.sidebar nav { display: none; }.sidebar label, .sidebar select { display: block; }.sidebar select { width: 100%; margin-top: .45rem; padding: .75rem; border: 1px solid #a7b8cf; border-radius: .55rem; background: #fff; }.form-grid { grid-template-columns: 1fr; }.form-row.full { grid-column: auto; } }

[hidden] { display: none !important; }
.section-help { margin: -0.5rem 0 1.5rem; color: var(--muted); line-height: 1.65; }
.repeatable-list { display: grid; gap: 1rem; }
.repeatable-item { border: 1px solid var(--line); border-radius: .8rem; background: #f8fbff; padding: 1rem; }
.repeatable-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.repeatable-heading h3 { margin: 0; font-size: 1.05rem; }
.item-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.repeatable-item .field:last-child { margin-bottom: 0; }
.repeatable-list.compact .field textarea { min-height: 4.2rem; }
.add-button { margin-top: 1rem; }
.remove-button { border: 1px solid #e4bcbc; border-radius: .5rem; background: #fff; color: var(--error); padding: .5rem .7rem; cursor: pointer; font-weight: 700; }
.move-button { border: 1px solid #b8c9df; border-radius: .5rem; background: #fff; color: #1648b6; padding: .5rem .7rem; cursor: pointer; font-weight: 700; }
.move-button:disabled { opacity: .4; cursor: default; }
.field input:not([type="color"]), .field select { width: 100%; border: 1px solid #a7b8cf; border-radius: .55rem; background: #fff; color: var(--ink); padding: .78rem; line-height: 1.4; }
.appearance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.appearance-card { min-width: 0; border: 1px solid var(--line); border-radius: .8rem; background: #f8fbff; padding: 1rem; }
.appearance-card legend { padding: 0 .35rem; font-weight: 800; }
.appearance-card .field { margin-bottom: 1rem; }
.color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.color-fields .field:last-child { grid-column: 1 / -1; margin-bottom: 0; }
.field input[type="color"] { width: 100%; min-height: 3rem; border: 1px solid #a7b8cf; border-radius: .55rem; background: #fff; padding: .25rem; cursor: pointer; }
.subheading { margin: 2rem 0 1rem; font-size: 1.2rem; }
.button-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 620px) { .appearance-grid, .button-color-grid { grid-template-columns: 1fr; }.repeatable-heading { align-items: flex-start; flex-direction: column; }.item-actions { justify-content: flex-start; } }
.statistics { margin-bottom: 2rem; }
.statistics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.statistics-grid dt { color: var(--muted); line-height: 1.5; }
.statistics-grid dd { margin: .5rem 0 0; font-size: 2rem; font-weight: 700; }
@media (max-width: 640px) { .statistics-grid { grid-template-columns: 1fr; } }
