:root {
    --ink-950: #0b0f18;
    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #344054;
    --ink-600: #475467;
    --ink-500: #667085;
    --ink-400: #98a2b3;
    --ink-300: #c7cdd6;
    --ink-200: #e1e5ea;
    --ink-150: #e9ecf0;
    --ink-100: #f1f3f5;
    --ink-50: #f7f8fa;
    --paper: #ffffff;
    --canvas: #f4f5f7;
    --blue-700: #174ea6;
    --blue-600: #1769e0;
    --blue-500: #2878e8;
    --blue-100: #e8f1ff;
    --green-700: #16704a;
    --green-100: #e7f6ef;
    --amber-700: #9a5b08;
    --amber-100: #fff3d7;
    --red-700: #b42318;
    --red-100: #feeceb;
    --font-sans: "Inter", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-md: 0 10px 30px rgba(16, 24, 40, .08);
    --shadow-lg: 0 30px 80px rgba(16, 24, 40, .16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    overflow-x: clip;
    scroll-behavior: auto;
}

body {
    margin: 0;
    overflow-x: clip;
    color: var(--ink-900);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
summary,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button:not(:disabled),
summary {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

kbd {
    display: inline-flex;
    min-width: 24px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid var(--ink-200);
    border-bottom-color: var(--ink-300);
    border-radius: 5px;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--ink-200);
    color: var(--ink-600);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
}

/* Builder */

.builder-body {
    min-height: 100vh;
    background: var(--canvas);
}

.app-bar {
    height: 60px;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background: var(--paper);
}

.app-bar__inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border-radius: var(--radius-sm);
}

.brand__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--ink-950);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__copy strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.brand__copy small {
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
}

.app-bar__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-600);
    font-size: 11px;
}

.app-bar__meta span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-bar__meta strong {
    color: var(--ink-800);
    font-weight: 600;
}

.app-bar__meta i {
    width: 1px;
    height: 11px;
    background: var(--ink-200);
}

.health-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2fb277;
    box-shadow: 0 0 0 4px rgba(47, 178, 119, .12);
}

.workspace {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 24px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.page-kicker {
    margin: 0 0 4px;
    color: var(--blue-600);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
}

.page-heading h1 {
    margin: 0;
    color: var(--ink-950);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.2;
}

.page-description {
    margin: 6px 0 0;
    color: var(--ink-500);
    font-size: 12px;
}

.shortcut-hint {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 2px;
    color: var(--ink-500);
    font-size: 10px;
}

.shortcut-hint span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.builder-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 16px;
}

.settings-panel,
.run-panel {
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.panel-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ink-150);
}

.panel-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-index {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ink-950);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.panel-header p,
.modal-header p,
.run-panel__top > p {
    margin: 0;
    color: var(--ink-400);
    font-family: "Inter", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
}

.panel-header h2,
.modal-header h2 {
    margin: 2px 0 0;
    color: var(--ink-950);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.save-status {
    min-width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: var(--green-700);
    font-size: 10px;
    font-weight: 600;
}

.save-status i {
    font-style: normal;
    font-weight: 700;
}

.save-status.is-saving {
    color: var(--ink-500);
}

.settings-content {
    padding: 0 18px 16px;
}

.setting-block {
    min-width: 0;
    padding: 14px 0;
}

.setting-block + .setting-block {
    border-top: 1px solid var(--ink-150);
}

.setting-block--material {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-label > span {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--ink-100);
    color: var(--ink-600);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 700;
}

.setting-label h3 {
    margin: 0;
    color: var(--ink-900);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.setting-label p {
    margin: 2px 0 0;
    color: var(--ink-500);
    font-size: 9px;
}

.setting-label--row {
    min-height: 28px;
}

.setting-label--row .text-action {
    margin-left: auto;
}

.material-select {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    background: var(--paper);
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.material-select:hover {
    border-color: var(--ink-400);
    box-shadow: 0 4px 12px rgba(16, 24, 40, .06);
}

.material-select:active {
    transform: translateY(1px);
}

.material-select__copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.material-select__copy strong {
    overflow: hidden;
    color: var(--ink-900);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.material-select__copy small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 9px;
}

.material-select__action {
    flex: 0 0 auto;
    color: var(--blue-600);
    font-size: 10px;
    font-weight: 600;
}

.material-select__action i {
    margin-left: 4px;
    font-size: 16px;
    font-style: normal;
    vertical-align: -1px;
}

.book-cover {
    --cover-bg: #243650;
    --cover-accent: #8ab4ea;
    --cover-ink: #fff;
    position: relative;
    width: 42px;
    height: 54px;
    flex: 0 0 42px;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    padding: 6px 5px 5px;
    border: 1px solid rgba(11, 15, 24, .16);
    border-radius: 6px;
    background: var(--cover-bg);
    color: var(--cover-ink);
    contain: paint;
    font-family: "Inter", var(--font-sans);
    text-align: left;
}

.book-cover::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--cover-accent);
    content: "";
}

.book-cover small {
    overflow: hidden;
    margin-top: 1px;
    opacity: .72;
    font-size: 5px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-cover strong {
    margin-top: auto;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.book-cover i {
    align-self: flex-start;
    margin-top: 3px;
    padding: 1px 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .14);
    font-size: 5px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
}

.book-cover--selected {
    width: 36px;
    height: 46px;
    flex-basis: 36px;
}

.book-cover--recent {
    width: 27px;
    height: 34px;
    flex-basis: 27px;
    padding: 4px 3px 3px;
    border-radius: 4px;
}

.book-cover--recent small {
    display: none;
}

.book-cover--recent strong {
    font-size: 5.5px;
}

.book-cover--recent i {
    margin-top: 2px;
    padding: 0 2px;
    font-size: 4.5px;
}

.book-cover--navy { --cover-bg: #243650; --cover-accent: #8ab4ea; }
.book-cover--crimson { --cover-bg: #84263a; --cover-accent: #f2c66d; }
.book-cover--violet { --cover-bg: #65408b; --cover-accent: #d9b8f2; }
.book-cover--teal { --cover-bg: #146b6b; --cover-accent: #8dd6c8; }
.book-cover--coral { --cover-bg: #a7453f; --cover-accent: #ffc0a8; }
.book-cover--amber { --cover-bg: #9a6209; --cover-accent: #ffe19a; }
.book-cover--blue { --cover-bg: #245aa0; --cover-accent: #9fc8ff; }
.book-cover--red { --cover-bg: #a32b2b; --cover-accent: #ffd166; }
.book-cover--orange { --cover-bg: #a94f13; --cover-accent: #ffc078; }
.book-cover--burgundy { --cover-bg: #722f45; --cover-accent: #e5a8b8; }
.book-cover--slate { --cover-bg: #435064; --cover-accent: #b8c3d1; }
.book-cover--indigo { --cover-bg: #39448a; --cover-accent: #aeb8ff; }
.book-cover--cyan { --cover-bg: #156a86; --cover-accent: #8fdaf2; }
.book-cover--emerald { --cover-bg: #1d6b50; --cover-accent: #91dbb9; }
.book-cover--lime { --cover-bg: #627520; --cover-accent: #cce886; }
.book-cover--mint { --cover-bg: #26725e; --cover-accent: #a4e4ce; }
.book-cover--purple { --cover-bg: #593d87; --cover-accent: #c9aff4; }
.book-cover--charcoal { --cover-bg: #262b33; --cover-accent: #d1d5db; }
.book-cover--sky { --cover-bg: #277394; --cover-accent: #abe1f4; }
.book-cover--magenta { --cover-bg: #8a3265; --cover-accent: #f1abd4; }
.book-cover--rose { --cover-bg: #943d4f; --cover-accent: #f3b2bd; }
.book-cover--green { --cover-bg: #28623d; --cover-accent: #a8d7b5; }

.setting-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: 22px;
    border-top: 1px solid var(--ink-150);
}

.setting-grid > .setting-block {
    border: 0;
}

.setting-grid > .setting-block + .setting-block {
    position: relative;
    padding-left: 22px;
}

.setting-grid > .setting-block + .setting-block::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 1px;
    background: var(--ink-150);
}

.setting-grid--options {
    grid-template-columns: 1fr 1fr;
}

.range-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    align-items: end;
    gap: 8px;
    margin-top: 10px;
}

.field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field > span,
.field--title > span {
    color: var(--ink-600);
    font-size: 9px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    outline: 0;
    background: var(--paper);
    color: var(--ink-900);
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.field input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(40, 120, 232, .12);
}

.field input[aria-invalid="true"] {
    border-color: var(--red-700);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.range-arrow {
    display: grid;
    height: 42px;
    place-items: center;
    color: var(--ink-400);
    font-size: 13px;
}

.text-action {
    padding: 4px 0;
    background: transparent;
    color: var(--blue-600);
    font-size: 9px;
    font-weight: 600;
}

.text-action:hover {
    color: var(--blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.count-row {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: end;
    gap: 10px;
    margin-top: 10px;
}

.field--count {
    position: relative;
}

.field--count input {
    padding-right: 30px;
}

.field--count b {
    position: absolute;
    right: 11px;
    bottom: 12px;
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 600;
}

.quick-counts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.quick-count {
    height: 42px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink-600);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.quick-count:hover {
    border-color: var(--ink-400);
    color: var(--ink-900);
}

.quick-count.is-active {
    border-color: var(--ink-950);
    background: var(--ink-950);
    color: #fff;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 10px 0 0;
    padding: 3px;
    border: 0;
    border-radius: 10px;
    background: var(--ink-100);
}

.segmented-control label {
    position: relative;
    min-width: 0;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-control span {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink-500);
    font-size: 9px;
    text-align: center;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.segmented-control span b {
    font-weight: 600;
}

.segmented-control span i {
    color: var(--ink-400);
    font-style: normal;
}

.segmented-control label:hover span {
    color: var(--ink-900);
}

.segmented-control input:checked + span {
    border-color: var(--ink-200);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    color: var(--ink-900);
}

.segmented-control input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(40, 120, 232, .16);
}

.advanced-settings {
    border-top: 1px solid var(--ink-150);
}

.advanced-settings summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    color: var(--ink-700);
    font-size: 10px;
    font-weight: 600;
}

.advanced-settings summary::-webkit-details-marker {
    display: none;
}

.advanced-settings summary small {
    color: var(--ink-400);
    font-size: 9px;
    font-weight: 500;
}

.advanced-settings summary i {
    margin-left: auto;
    color: var(--ink-500);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    transition: transform .16s ease;
}

.advanced-settings[open] summary i {
    transform: rotate(45deg);
}

.field--title {
    padding: 0 0 14px 35px;
}

.field--title input {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
}

.field--title small {
    color: var(--ink-400);
    font-size: 9px;
}

.validation-message {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #f4b7b2;
    border-radius: var(--radius-sm);
    background: var(--red-100);
    color: var(--red-700);
    font-size: 10px;
    font-weight: 600;
}

.run-panel {
    position: sticky;
    top: 16px;
    overflow: hidden;
    border-color: var(--ink-200);
    background: var(--paper);
    color: var(--ink-900);
    box-shadow: var(--shadow-sm);
}

.run-panel::before {
    display: none;
}

.run-panel__top {
    position: relative;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--ink-150);
}

.ready-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--green-700);
    font-size: 9px;
    font-weight: 600;
}

.ready-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #48c88d;
    box-shadow: 0 0 0 4px var(--green-100);
}

.run-panel__top h2 {
    margin: 4px 0 0;
    color: var(--ink-950);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.selection-summary {
    margin: 0;
    padding: 4px 18px;
}

.selection-summary > div {
    min-height: 39px;
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--ink-150);
}

.selection-summary dt {
    color: var(--ink-500);
    font-size: 9px;
}

.selection-summary dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--ink-900);
    font-size: 10px;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selection-summary dd strong {
    font-family: "Inter", sans-serif;
    font-size: 16px;
}

.range-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 18px 0;
    padding: 10px;
    border: 1px solid #b8e3cf;
    border-radius: 9px;
    background: var(--green-100);
}

.range-status > span {
    color: var(--green-700);
    font-size: 10px;
    font-weight: 700;
}

.range-status p {
    margin: 0;
    color: var(--ink-600);
    font-size: 9px;
    line-height: 1.55;
}

.range-status strong {
    color: var(--ink-900);
    font-weight: 600;
}

.range-status.is-warning {
    border-color: #f4d28c;
    background: var(--amber-100);
}

.range-status.is-warning > span {
    color: var(--amber-700);
}

.range-status.is-error {
    border-color: #f4b7b2;
    background: var(--red-100);
}

.range-status.is-error > span {
    color: var(--red-700);
}

.primary-action {
    width: calc(100% - 36px);
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 18px 0;
    padding: 10px 13px 10px 15px;
    border-radius: 11px;
    background: var(--blue-500);
    color: #fff;
    text-align: left;
    box-shadow: 0 10px 26px rgba(40, 120, 232, .28);
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.primary-action:hover:not(:disabled) {
    background: #3583ed;
    box-shadow: 0 14px 30px rgba(40, 120, 232, .36);
    transform: translateY(-1px);
}

.primary-action:active:not(:disabled) {
    transform: translateY(0);
}

.primary-action span {
    display: flex;
    flex-direction: column;
}

.primary-action small {
    color: rgba(255, 255, 255, .7);
    font-size: 8px;
    font-weight: 500;
}

.primary-action b {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
}

.primary-action > i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    font-size: 17px;
    font-style: normal;
}

.primary-action.is-loading > i {
    animation: action-pulse .8s ease-in-out infinite alternate;
}

.privacy-note {
    margin: 10px 18px 16px;
    color: var(--ink-500);
    font-size: 8px;
    text-align: center;
}

.release-notes {
    margin-top: 14px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .66);
}

.release-notes summary {
    min-height: 42px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    list-style: none;
}

.release-notes summary::-webkit-details-marker {
    display: none;
}

.release-notes summary span {
    color: var(--ink-700);
    font-size: 10px;
    font-weight: 600;
}

.release-notes summary small {
    overflow: hidden;
    color: var(--ink-500);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.release-notes summary i {
    color: var(--ink-400);
    font-size: 15px;
    font-style: normal;
    transition: transform .16s ease;
}

.release-notes[open] summary i {
    transform: rotate(45deg);
}

.release-notes ol {
    margin: 0;
    padding: 0 14px 12px;
    list-style: none;
}

.release-notes li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    padding: 8px 0;
    border-top: 1px solid var(--ink-150);
}

.release-notes time {
    color: var(--ink-500);
    font-family: "Inter", sans-serif;
    font-size: 9px;
}

.release-notes p {
    margin: 0;
    color: var(--ink-600);
    font-size: 9px;
}

.app-footer {
    width: min(1180px, calc(100% - 40px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 0 22px;
    color: var(--ink-400);
    font-size: 9px;
}

.app-footer span {
    color: var(--ink-600);
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.app-footer p {
    margin: 0;
}

/* Material library */

.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(11, 15, 24, .44);
    opacity: 0;
    transition: none;
}

.modal-overlay.is-open {
    opacity: 1;
}

.modal-panel {
    width: min(860px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 12px 36px rgba(16, 24, 40, .14);
    opacity: 1;
    transform: none;
    transition: none;
}

.modal-overlay.is-open .modal-panel {
    opacity: 1;
    transform: none;
}

.modal-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px 20px;
    border-bottom: 1px solid var(--ink-150);
}

.close-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--ink-100);
    color: var(--ink-600);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.close-button:hover {
    background: var(--ink-200);
    color: var(--ink-900);
}

.modal-tools {
    padding: 14px 20px;
    border-bottom: 1px solid var(--ink-150);
    background: var(--ink-50);
}

.search-field {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    background: var(--paper);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.search-field:focus-within {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(40, 120, 232, .12);
}

.search-field > span {
    color: var(--ink-400);
    font-size: 21px;
    line-height: 1;
    transform: rotate(-20deg);
}

.search-field input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink-900);
    font-size: 12px;
}

.search-field input::placeholder {
    color: var(--ink-400);
}

.category-filters {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-filters button {
    min-height: 30px;
    flex: 0 0 auto;
    padding: 0 11px;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-600);
    font-size: 9px;
    font-weight: 600;
}

.category-filters button:hover {
    border-color: var(--ink-400);
    color: var(--ink-900);
}

.category-filters button.is-active {
    border-color: var(--ink-950);
    background: var(--ink-950);
    color: #fff;
}

.modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    contain: layout paint;
    padding: 18px 20px 24px;
}

.recent-books {
    margin-bottom: 20px;
}

.library-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.library-section-heading h3 {
    margin: 0;
    color: var(--ink-800);
    font-size: 10px;
    font-weight: 700;
}

.library-section-heading > span {
    color: var(--ink-400);
    font-size: 9px;
}

.recent-book-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.recent-book {
    min-width: 0;
    height: 54px;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 9px;
    border: 1px solid var(--ink-200);
    border-radius: 9px;
    background: var(--paper);
    text-align: left;
}

.recent-book:hover {
    border-color: var(--blue-500);
}

.recent-book > strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink-800);
    font-size: 9px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-book > small {
    color: var(--ink-400);
    font-size: 8px;
}

.wordbook-category + .wordbook-category {
    margin-top: 20px;
}

.wordbook-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.wordbook-card {
    position: relative;
    min-width: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 38px 8px 9px;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    background: var(--paper);
    text-align: left;
    transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}

.wordbook-card:hover {
    border-color: var(--ink-400);
    box-shadow: 0 3px 10px rgba(16, 24, 40, .05);
}

.wordbook-card.is-selected {
    border-color: var(--blue-500);
    background: #f8fbff;
    box-shadow: 0 0 0 2px rgba(40, 120, 232, .09);
}

.wordbook-card__copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.wordbook-card__copy strong {
    overflow: hidden;
    color: var(--ink-800);
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wordbook-card__copy small {
    margin-top: 3px;
    color: var(--ink-400);
    font-size: 8px;
}

.wordbook-card__check {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 19px;
    height: 19px;
    display: none;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-600);
    color: #fff;
    font-size: 9px;
    transform: translateY(-50%);
}

.wordbook-card.is-selected .wordbook-card__check {
    display: grid;
}

.search-empty {
    padding: 54px 20px;
    text-align: center;
}

.search-empty strong {
    color: var(--ink-800);
    font-size: 13px;
}

.search-empty p {
    margin: 5px 0 0;
    color: var(--ink-500);
    font-size: 10px;
}

/* Preview */

.preview-page {
    min-height: 100vh;
    background: #eceef2;
}

.preview-bar {
    position: sticky;
    z-index: 40;
    top: 0;
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: var(--ink-950);
    color: #fff;
}

.preview-bar__inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 64px;
    display: grid;
    grid-template-columns: 130px minmax(180px, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 0 auto;
}

.back-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 600;
}

.back-action:hover {
    color: #fff;
}

.back-action span {
    font-size: 15px;
}

.preview-context {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, auto) minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
}

.preview-context > span {
    color: #75d6a8;
    font-size: 8px;
    font-weight: 700;
}

.preview-context strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-context small {
    overflow: hidden;
    color: rgba(255, 255, 255, .42);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.utility-button {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
    font-size: 9px;
    font-weight: 600;
}

.utility-button:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .11);
    color: #fff;
}

.utility-button span {
    font-size: 13px;
}

.print-actions {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
}

.print-actions > span {
    padding: 0 7px;
    color: rgba(255, 255, 255, .46);
    font-size: 8px;
    font-weight: 600;
}

.print-actions button {
    height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-size: 9px;
    font-weight: 600;
}

.print-actions button:hover:not(:disabled) {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.print-actions button.is-primary {
    background: var(--blue-500);
    color: #fff;
}

.preview-workspace {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.preview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.preview-heading h1 {
    margin: 0;
    color: var(--ink-950);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.035em;
}

.preview-heading > div:first-child > p:last-child {
    margin: 5px 0 0;
    color: var(--ink-500);
    font-size: 10px;
}

.preview-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.preview-meta span {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(17, 24, 39, .09);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--ink-600);
    font-size: 8px;
    font-weight: 600;
}

.preview-meta b {
    margin-right: 2px;
    color: var(--ink-900);
}

.preview-command-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 15px 0 12px;
    padding: 6px 8px;
    border: 1px solid rgba(17, 24, 39, .09);
    border-radius: 11px;
    background: rgba(255, 255, 255, .7);
}

.view-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 3px;
    border-radius: 8px;
    background: var(--ink-100);
}

.view-switch button {
    min-width: 88px;
    height: 31px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-500);
    font-size: 9px;
    font-weight: 600;
}

.view-switch button.is-active {
    border-color: var(--ink-200);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    color: var(--ink-900);
}

.preview-command-row > p {
    margin: 0 8px 0 0;
    color: var(--ink-500);
    font-family: "Inter", sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .05em;
}

.preview-loading,
.preview-error {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 16px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: var(--radius-lg);
    background: var(--paper);
    text-align: center;
}

.loading-mark,
.preview-error > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 12px;
    background: var(--ink-950);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
    animation: loading-mark 1s ease-in-out infinite alternate;
}

.preview-loading strong,
.preview-error strong {
    color: var(--ink-900);
    font-size: 13px;
}

.preview-loading p,
.preview-error p {
    margin: 5px 0 0;
    color: var(--ink-500);
    font-size: 10px;
}

.preview-error > span {
    background: var(--red-700);
    animation: none;
}

.preview-error a {
    margin-top: 16px;
    padding: 8px 13px;
    border-radius: 8px;
    background: var(--ink-950);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
}

.test-sheets {
    min-width: 0;
}

.test-sheet-wrapper {
    display: grid;
    gap: 18px;
}

.view-mode-questions #q-and-a-sheet,
.view-mode-answers #questions-only-sheet {
    display: none;
}

.test-sheet {
    position: relative;
    width: min(100%, 940px);
    min-height: 760px;
    margin: 0 auto;
    padding: 34px 38px 25px;
    border: 1px solid rgba(17, 24, 39, .1);
    background: var(--paper);
    box-shadow: 0 14px 36px rgba(16, 24, 40, .1);
}

.paper-header {
    min-height: 31px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--ink-200);
    padding-bottom: 8px;
}

.paper-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-700);
    font-family: "Inter", sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .12em;
}

.paper-brand-mark {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--ink-950);
    color: #fff;
    font-size: 8px;
}

.sheet-type {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--ink-100);
    color: var(--ink-600);
    font-size: 7px;
    font-weight: 600;
}

.paper-title {
    padding: 18px 0 15px;
    text-align: center;
}

.paper-title h1 {
    margin: 0;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.paper-title p {
    margin: 4px 0 0;
    color: #4b5563;
    font-size: 9px;
    font-weight: 500;
}

.paper-title > span {
    display: block;
    margin-top: 3px;
    color: #737b87;
    font-size: 7px;
}

.student-fields {
    min-height: 38px;
    display: grid;
    grid-template-columns: .9fr .8fr 1.4fr .9fr;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--ink-300);
    border-radius: 7px;
}

.student-fields > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
}

.student-fields > div + div {
    border-left: 1px solid var(--ink-300);
}

.student-fields span {
    flex: 0 0 auto;
    color: #4b5563;
    font-size: 7px;
    font-weight: 600;
}

.student-fields i {
    height: 15px;
    flex: 1;
    border-bottom: 1px solid #9ca3af;
}

.student-fields .short-line {
    max-width: 22px;
}

.student-fields .score-line {
    min-width: 24px;
}

.student-fields small {
    color: #6b7280;
    font-size: 6px;
}

.column-labels {
    display: grid;
    grid-template-columns: 45px minmax(0, .9fr) minmax(0, 1.15fr);
    gap: 0;
    margin: 0 0 4px;
    padding: 0 0 0 2px;
    color: #7b8491;
    font-size: 6px;
    font-weight: 600;
}

.column-labels span:first-child {
    padding-left: 4px;
}

.test-columns-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.test-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.test-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 45px minmax(0, .9fr) minmax(0, 1.15fr);
    break-inside: avoid;
}

.cell {
    min-width: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid #aeb5bf;
    color: #111827;
    font-size: 8px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.number-cell {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 6px;
    border-radius: 5px 0 0 5px;
    background: #f0f2f5;
}

.number-cell strong {
    color: #111827;
    font-family: "Inter", sans-serif;
    font-size: 8px;
}

.number-cell small {
    color: #7b8491;
    font-family: "Inter", sans-serif;
    font-size: 5px;
}

.question-cell {
    border-left: 0;
    background: #fff;
    font-weight: 600;
}

.answer-cell {
    position: relative;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    background: #fbfbfc;
}

.question-sheet .answer-cell {
    background: #fff;
}

.answer-line {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    height: 1px;
    background: #c5cad1;
}

.test-sheet--dense .test-column {
    gap: 3px;
}

.test-sheet--dense .cell {
    min-height: 24px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 7px;
}

.paper-footer {
    position: absolute;
    right: 38px;
    bottom: 18px;
    left: 38px;
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid var(--ink-200);
    color: #8a929e;
    font-family: "Inter", sans-serif;
    font-size: 5px;
    font-weight: 600;
    letter-spacing: .07em;
}

.toast {
    position: fixed;
    z-index: 80;
    right: 20px;
    bottom: 20px;
    padding: 10px 14px;
    border-radius: 9px;
    background: var(--ink-950);
    box-shadow: var(--shadow-md);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

.mobile-print-bar {
    display: none;
}

@keyframes action-pulse {
    from { opacity: .45; transform: translateX(-2px); }
    to { opacity: 1; transform: translateX(2px); }
}

@keyframes loading-mark {
    from { opacity: .6; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1040px) {
    .builder-workspace {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .setting-block--material {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .setting-grid {
        gap: 16px;
    }

    .setting-grid > .setting-block + .setting-block {
        padding-left: 16px;
    }

    .quick-counts {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-bar__inner {
        grid-template-columns: auto minmax(120px, 1fr) auto;
    }

    .preview-context small,
    .print-actions > span {
        display: none;
    }

    .utility-button {
        padding: 0 8px;
    }
}

@media (max-width: 820px) {
    .workspace {
        padding-top: 20px;
    }

    .shortcut-hint {
        display: none;
    }

    .builder-workspace {
        grid-template-columns: 1fr;
    }

    .run-panel {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .run-panel::before {
        top: -120px;
    }

    .run-panel__top {
        grid-column: 1 / -1;
    }

    .selection-summary {
        grid-column: 1;
    }

    .range-status,
    .primary-action,
    .privacy-note {
        grid-column: 2;
    }

    .range-status {
        align-self: end;
        margin-top: 16px;
    }

    .primary-action {
        align-self: end;
    }

    .privacy-note {
        align-self: start;
    }

    .preview-bar__inner {
        grid-template-columns: auto 1fr;
    }

    .preview-context {
        display: none;
    }

    .preview-actions {
        justify-content: flex-end;
    }

    .utility-button {
        font-size: 0;
    }

    .utility-button span {
        font-size: 14px;
    }

    .test-sheet {
        min-width: 760px;
    }

    .test-sheet-wrapper {
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

@media (max-width: 640px) {
    .app-bar {
        height: 54px;
    }

    .app-bar__inner,
    .workspace,
    .app-footer {
        width: min(100% - 24px, 1180px);
    }

    .brand__mark {
        width: 31px;
        height: 31px;
    }

    .brand__copy small,
    .app-bar__meta i {
        display: none;
    }

    .app-bar__meta {
        display: inline-flex;
        padding: 5px 8px;
        border: 1px solid var(--ink-200);
        border-radius: 999px;
    }

    .app-bar__meta span:last-child {
        font-size: 0;
    }

    .app-bar__meta strong {
        font-size: 9px;
    }

    .page-heading {
        margin-bottom: 13px;
    }

    .page-heading h1 {
        font-size: 25px;
    }

    .page-description {
        font-size: 10px;
    }

    .settings-panel,
    .run-panel {
        border-radius: 14px;
    }

    .panel-header {
        min-height: 62px;
        padding: 12px 14px;
    }

    .settings-content {
        padding: 0 14px 12px;
    }

    .setting-block {
        padding: 13px 0;
    }

    .setting-block--material {
        display: block;
    }

    .setting-block--material .setting-label {
        margin-bottom: 9px;
    }

    .setting-grid,
    .setting-grid--options {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .setting-grid > .setting-block + .setting-block {
        padding-left: 0;
        border-top: 1px solid var(--ink-150);
    }

    .setting-grid > .setting-block + .setting-block::before {
        display: none;
    }

    .quick-counts {
        grid-template-columns: repeat(4, 1fr);
    }

    .field--title {
        padding-left: 0;
    }

    .run-panel {
        display: block;
    }

    .run-panel::before {
        display: none;
    }

    .selection-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
    }

    .selection-summary > div:first-child {
        grid-column: 1 / -1;
    }

    .range-status,
    .primary-action,
    .privacy-note {
        grid-column: auto;
    }

    .primary-action {
        min-height: 58px;
    }

    .release-notes summary {
        grid-template-columns: auto 1fr auto;
    }

    .release-notes summary small {
        text-align: right;
    }

    .app-footer {
        padding-bottom: 16px;
    }

    .app-footer p {
        display: none;
    }

    .modal-overlay {
        align-items: end;
        padding: 0;
    }

    .modal-panel {
        width: 100%;
        max-height: 90vh;
        border-radius: 18px 18px 0 0;
        transform: none;
    }

    .modal-header,
    .modal-tools,
    .modal-body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .recent-book-list {
        grid-template-columns: 1fr;
    }

    .wordbook-card-grid {
        grid-template-columns: 1fr;
    }

    .preview-bar {
        min-height: 58px;
    }

    .preview-bar__inner {
        width: calc(100% - 20px);
        min-height: 58px;
    }

    .preview-actions {
        gap: 4px;
    }

    .print-actions {
        display: none;
    }

    .utility-button {
        width: 34px;
        padding: 0;
        justify-content: center;
    }

    .preview-workspace {
        width: calc(100% - 20px);
        padding: 18px 0 88px;
    }

    .preview-heading {
        display: block;
    }

    .preview-heading h1 {
        font-size: 22px;
    }

    .preview-meta {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .preview-command-row {
        margin-top: 12px;
    }

    .view-switch {
        width: 100%;
    }

    .view-switch button {
        min-width: 0;
    }

    .preview-command-row > p {
        display: none;
    }

    .test-sheet {
        min-width: 700px;
        min-height: 680px;
        padding: 28px 32px 23px;
    }

    .paper-footer {
        right: 32px;
        left: 32px;
    }

    .mobile-print-bar {
        position: fixed;
        z-index: 45;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr 1.15fr;
        gap: 6px;
        padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(17, 24, 39, .1);
        background: var(--paper);
        box-shadow: 0 -3px 12px rgba(16, 24, 40, .08);
    }

    .mobile-print-bar button {
        min-height: 42px;
        border: 1px solid var(--ink-200);
        border-radius: 9px;
        background: var(--paper);
        color: var(--ink-700);
        font-size: 9px;
        font-weight: 600;
    }

    .mobile-print-bar button.is-primary {
        border-color: var(--ink-950);
        background: var(--ink-950);
        color: #fff;
    }

    .toast {
        right: 12px;
        bottom: 72px;
        left: 12px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
