:root {
    color-scheme: light;
    --ink: #25211b;
    --muted: #6f665c;
    --paper: #f5efe4;
    --panel: rgba(255, 250, 240, 0.9);
    --line: rgba(76, 63, 48, 0.18);
    --shadow: 0 18px 45px rgba(41, 32, 24, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(rgba(245, 239, 228, 0.82), rgba(245, 239, 228, 0.94)),
        #efe2cf;
}

button,
input,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    padding: 18px;
}

.workspace {
    max-width: 1280px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 12px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #76624a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 2.8rem;
    line-height: 0.95;
    letter-spacing: 0;
}

.entry-count {
    min-width: 148px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.74);
    text-align: right;
}

.entry-count span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.entry-count small {
    color: var(--muted);
}

.canvas-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: stretch;
}

.canvas-layout > * {
    min-width: 0;
}

.canvas-panel,
.side-panel > section,
.recent-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.canvas-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
}

.canvas-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tool-button,
.icon-button,
.submit-preview {
    border: 1px solid rgba(61, 48, 36, 0.22);
    border-radius: 8px;
    background: #fff8eb;
    color: var(--ink);
    min-height: 38px;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.tool-button:hover,
.tool-button:focus-visible,
.icon-button:hover:not(:disabled),
.icon-button:focus-visible:not(:disabled),
.submit-preview:hover:not(:disabled),
.submit-preview:focus-visible:not(:disabled) {
    box-shadow: 0 7px 16px rgba(47, 42, 34, 0.14);
    transform: translateY(-1px);
}

.tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
}

.tool-button.active {
    background: #2f2a22;
    color: #fff8eb;
}

.zoom-controls {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
}

.tool-button svg,
.icon-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    flex: 0 0 auto;
}

.tool-button svg circle {
    fill: currentColor;
    stroke: none;
}

.icon-button:disabled,
.submit-preview:disabled,
input:disabled,
textarea:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.mark-canvas {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: clamp(520px, 68vh, 760px);
    overflow: hidden;
    border: 1px solid rgba(48, 38, 29, 0.18);
    border-radius: 8px;
    background: #f7f5ef;
    cursor: crosshair;
    touch-action: none;
    --canvas-pan-x: 0px;
    --canvas-pan-y: 0px;
    --canvas-zoom: 1;
    --canvas-world-width: 100%;
    --canvas-world-height: 100%;
}

.mark-canvas[data-nav="pan"] {
    cursor: grab;
}

.mark-canvas[data-placement-state="valid"] {
    cursor: crosshair;
}

.mark-canvas[data-placement-state="invalid"] {
    cursor: not-allowed;
}

.mark-canvas[data-placement-state="invalid"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border: 2px solid rgba(156, 61, 50, 0.22);
    border-radius: inherit;
    pointer-events: none;
}

.mark-canvas.is-panning {
    cursor: grabbing;
}

.mark-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(81, 70, 58, 0.18) 1px, transparent 1.3px);
    background-size: 24px 24px;
}

.canvas-world {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--canvas-world-width);
    height: var(--canvas-world-height);
    background: #fbfaf5;
    transform: translate(var(--canvas-pan-x), var(--canvas-pan-y)) scale(var(--canvas-zoom));
    transform-origin: 0 0;
}

.canvas-tiles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.canvas-tile {
    position: absolute;
    left: var(--tile-left);
    top: var(--tile-top);
    width: var(--tile-width);
    height: var(--tile-height);
    border: 1px solid rgba(82, 73, 62, 0.08);
    background:
        linear-gradient(rgba(64, 58, 50, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 58, 50, 0.06) 1px, transparent 1px),
        #fbfaf5;
    background-size: 32px 32px;
}

.canvas-world::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mix-blend-mode: soft-light;
}

.canvas-hint {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 6;
    display: flex;
    align-items: start;
    gap: 10px;
    max-width: min(460px, calc(100% - 36px));
    padding: 10px 10px 10px 12px;
    border: 1px solid rgba(255, 248, 235, 0.35);
    border-radius: 8px;
    background: rgba(41, 33, 25, 0.58);
    color: #fff8eb;
    backdrop-filter: blur(3px);
}

.canvas-hint strong,
.canvas-hint span {
    display: block;
}

.canvas-hint span {
    margin-top: 4px;
    color: rgba(255, 248, 235, 0.78);
    font-size: 0.9rem;
}

.canvas-hint[hidden] {
    display: none;
}

.canvas-hint button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 248, 235, 0.35);
    border-radius: 999px;
    background: rgba(255, 248, 235, 0.08);
    color: #fff8eb;
    cursor: pointer;
}

.canvas-hint button:hover,
.canvas-hint button:focus-visible {
    background: rgba(255, 248, 235, 0.18);
}

.canvas-hint svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.mark-dot {
    position: absolute;
    left: var(--mark-x);
    top: var(--mark-y);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    padding: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
    outline: 0;
    transition: transform 160ms ease, filter 160ms ease;
}

.mark-dot::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 2px solid rgba(255, 248, 235, 0.78);
    background: var(--mark-color);
    box-shadow:
        0 0 0 8px color-mix(in srgb, var(--mark-color), transparent 78%),
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.45);
    transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.mark-dot:hover,
.mark-dot:focus-visible {
    filter: saturate(1.08);
}

.mark-dot:hover::before,
.mark-dot:focus-visible::before,
.mark-dot[data-selected="true"]::before {
    box-shadow:
        0 0 0 11px color-mix(in srgb, var(--mark-color), transparent 70%),
        0 9px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 3px rgba(255, 255, 255, 0.55);
}

.mark-dot:hover::before,
.mark-dot:focus-visible::before,
.mark-dot[data-selected="true"]::before {
    transform: scale(1.12);
}

.mark-dot:focus-visible {
    filter: saturate(1.1);
}

.mark-dot.circle::before {
    border-radius: 999px;
}

.mark-dot.square::before {
    border-radius: 5px;
}

.mark-dot.diamond::before {
    border-radius: 4px;
    transform: rotate(45deg);
}

.mark-dot[data-selected="true"] {
    filter: saturate(1.12);
}

.mark-dot[data-selected="true"]::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid color-mix(in srgb, var(--mark-color), #fff8eb 58%);
    border-radius: 999px;
    box-shadow:
        0 0 0 5px color-mix(in srgb, var(--mark-color), transparent 70%),
        0 0 20px color-mix(in srgb, var(--mark-color), transparent 42%);
    pointer-events: none;
    transform: scale(1.04);
}

.mark-dot[data-new="true"]::before {
    animation: mark-pop 560ms ease-out;
}

.mark-dot[data-new="true"]::after {
    animation: mark-ring 760ms ease-out;
}

.mark-dot.diamond:hover::before,
.mark-dot.diamond:focus-visible::before,
.mark-dot.diamond[data-selected="true"]::before {
    transform: rotate(45deg) scale(1.12);
}

.mark-dot.square[data-selected="true"]::after {
    border-radius: 7px;
}

.mark-dot.diamond[data-selected="true"]::after {
    border-radius: 7px;
    transform: rotate(45deg) scale(0.86);
}

.empty-state {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(280px, calc(100% - 32px));
    padding: 18px;
    border: 1px dashed rgba(76, 63, 48, 0.28);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.84);
    color: var(--ink);
    text-align: center;
    transform: translate(-50%, -50%);
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.mark-canvas.has-marks .empty-state {
    display: none;
}

.placement-marker {
    position: absolute;
    left: var(--placement-x);
    top: var(--placement-y);
    z-index: 4;
    width: 34px;
    height: 34px;
    border: 2px dashed rgba(47, 42, 34, 0.72);
    border-radius: 999px;
    background: rgba(255, 248, 235, 0.5);
    box-shadow: 0 0 0 8px rgba(47, 42, 34, 0.08), 0 8px 22px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.placement-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2f2a22;
    transform: translate(-50%, -50%);
}

.side-panel {
    display: grid;
    gap: 18px;
    align-content: start;
}

.side-panel > section,
.recent-preview {
    padding: 18px;
}

.recent-preview {
    grid-column: 1 / -1;
    padding-top: 12px;
    padding-bottom: 12px;
}

.panel-label {
    margin: 0 0 14px;
    color: #7a6754;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.section-heading .panel-label {
    margin-bottom: 0;
}

.section-heading span {
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.preview-chip {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 248, 235, 0.9);
    border-radius: 999px;
    background: #f0b35a;
    box-shadow: 0 0 0 8px rgba(240, 179, 90, 0.16);
}

.mark-preview.is-empty .preview-chip {
    opacity: 0.58;
    box-shadow: 0 0 0 8px rgba(240, 179, 90, 0.08);
}

.mark-preview.is-empty h2,
.mark-preview.is-empty p,
.mark-preview.is-empty small {
    color: var(--muted);
}

.mark-preview h2 {
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.mark-preview p {
    margin: 0 0 14px;
    color: #4d4237;
    font-size: 1.05rem;
    line-height: 1.5;
}

.preview-drawing {
    width: 100%;
    aspect-ratio: 2 / 1;
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid rgba(61, 48, 36, 0.16);
    border-radius: 8px;
    background: #fffaf1;
}

.preview-drawing svg {
    display: block;
    width: 100%;
    height: 100%;
}

.preview-drawing path {
    fill: none;
    stroke: #4b4035;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.mark-preview small,
.prototype-note {
    color: var(--muted);
}

.compose-preview label:not(.swatch-option):not(.shape-option) {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    color: #4c4033;
    font-size: 0.9rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(61, 48, 36, 0.18);
    border-radius: 8px;
    background: #fffaf1;
    color: var(--ink);
    padding: 11px 12px;
}

input:disabled,
textarea:disabled {
    border-style: dashed;
    background: rgba(255, 250, 241, 0.62);
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.drawing-tool {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}

.drawing-tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #4c4033;
    font-size: 0.9rem;
    font-weight: 700;
}

.mini-button {
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid rgba(61, 48, 36, 0.22);
    border-radius: 8px;
    background: #fff8eb;
    color: var(--ink);
    cursor: pointer;
}

.mini-button:hover,
.mini-button:focus-visible {
    box-shadow: 0 5px 12px rgba(47, 42, 34, 0.12);
}

.drawing-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    border: 1px solid rgba(61, 48, 36, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(rgba(64, 58, 50, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 58, 50, 0.06) 1px, transparent 1px),
        #fffaf1;
    background-size: 24px 24px;
    cursor: crosshair;
    touch-action: none;
}

.mark-form fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
    padding: 0;
    border: 0;
}

.mark-form legend {
    width: 100%;
    margin-bottom: 8px;
    color: #4c4033;
    font-size: 0.9rem;
    font-weight: 700;
}

.swatch {
    display: block;
    width: 28px;
    height: 28px;
    border: 2px solid #fff8eb;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(61, 48, 36, 0.16);
}

.swatch-option {
    display: inline-grid;
    margin: 0;
}

.swatch-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.swatch-option input:checked + .swatch {
    box-shadow: 0 0 0 2px #2f2a22, 0 0 0 5px rgba(255, 248, 235, 0.9);
}

.swatch.clay {
    background: #d9826b;
}

.swatch.moss {
    background: #9fc5a8;
}

.swatch.dusk {
    background: #86a6c9;
}

.swatch.ember {
    background: #f0b35a;
}

.mark-form .shape-option {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 1px solid rgba(61, 48, 36, 0.18);
    border-radius: 8px;
    background: #fffaf1;
    cursor: pointer;
}

.mark-form .shape-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.shape-icon {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 248, 235, 0.9);
    background: var(--selected-mark-color, #d9826b);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--selected-mark-color, #d9826b), transparent 82%);
}

.shape-icon.circle {
    border-radius: 999px;
}

.shape-icon.square {
    border-radius: 5px;
}

.shape-icon.diamond {
    border-radius: 4px;
    transform: rotate(45deg);
}

.mark-form .shape-option:has(input:checked) {
    border-color: #2f2a22;
    box-shadow: 0 0 0 2px #2f2a22, 0 0 0 5px rgba(255, 248, 235, 0.9);
}

.mark-form .shape-option:has(input:focus-visible) {
    outline: 3px solid rgba(47, 42, 34, 0.28);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.submit-preview {
    width: 100%;
    padding: 11px 14px;
    background: #2f2a22;
    color: #fff8eb;
    font-weight: 800;
}

.submit-preview:disabled {
    background: #7b7064;
    cursor: not-allowed;
}

.prototype-note {
    margin: 12px 0 0;
    font-size: 0.88rem;
}

.prototype-note.error {
    color: #9c3d32;
    font-weight: 700;
}

.form-status {
    min-height: 20px;
    margin: 10px 0 0;
    color: #4f6b4f;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-status.error {
    color: #9c3d32;
}

.recent-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recent-list li {
    min-width: 0;
    border: 1px solid rgba(61, 48, 36, 0.1);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.55);
    overflow: hidden;
}

.recent-list li:first-child {
    border-top: 1px solid rgba(61, 48, 36, 0.1);
}

.recent-mark-button {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-height: 100%;
    padding: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.recent-mark-button:hover,
.recent-mark-button:focus-visible {
    background: rgba(255, 248, 235, 0.86);
    outline: 0;
}

.recent-mark-button:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(47, 42, 34, 0.34);
}

.recent-empty {
    grid-column: 1 / -1;
    padding: 14px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.recent-dot {
    width: 13px;
    height: 13px;
    margin-top: 4px;
    border: 2px solid rgba(255, 248, 235, 0.9);
    border-radius: 999px;
    background: var(--mark-color);
    box-shadow: 0 0 0 4px rgba(61, 48, 36, 0.06);
}

.recent-list strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.88rem;
}

.recent-list p {
    margin: 0 0 4px;
    color: #51463a;
    font-size: 0.82rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-list small {
    color: var(--muted);
    font-size: 0.72rem;
}

.mark-toast-region {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: grid;
    gap: 8px;
    width: min(320px, calc(100vw - 36px));
    pointer-events: none;
}

.mark-toast {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 248, 235, 0.5);
    border-radius: 8px;
    background: rgba(41, 33, 25, 0.88);
    color: #fff8eb;
    box-shadow: 0 16px 34px rgba(41, 32, 24, 0.22);
    transform: translateY(8px);
    opacity: 0;
    animation: toast-in 180ms ease forwards;
}

.mark-toast.hide {
    animation: toast-out 180ms ease forwards;
}

.mark-toast strong,
.mark-toast span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mark-toast strong {
    font-size: 0.92rem;
}

.mark-toast span {
    margin-top: 2px;
    color: rgba(255, 248, 235, 0.78);
    font-size: 0.82rem;
}

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateY(8px);
        opacity: 0;
    }
}

@keyframes mark-pop {
    0% {
        filter: brightness(1.25) saturate(1.18);
    }

    100% {
        filter: brightness(1) saturate(1);
    }
}

@keyframes mark-ring {
    0% {
        opacity: 0;
        box-shadow:
            0 0 0 0 color-mix(in srgb, var(--mark-color), #fff8eb 48%),
            0 0 0 0 color-mix(in srgb, var(--mark-color), transparent 40%);
    }

    38% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mark-dot[data-new="true"]::before,
    .mark-dot[data-new="true"]::after {
        animation: none;
    }
}

@media (max-width: 920px) {
    .app-shell {
        padding: 16px;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    h1 {
        font-size: 3rem;
    }

    .entry-count {
        text-align: left;
    }

    .canvas-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .canvas-panel {
        min-height: auto;
    }

    .mark-canvas {
        flex: none;
        min-height: 520px;
    }

    .side-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recent-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .app-shell {
        padding: 10px;
    }

    h1 {
        font-size: 2.45rem;
    }

    .entry-count {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
    }

    .entry-count span {
        font-size: 1.65rem;
    }

    .canvas-panel,
    .side-panel > section {
        padding: 12px;
    }

    .canvas-toolbar {
        flex-wrap: wrap;
        height: auto;
    }

    .tool-button {
        flex: 1 1 110px;
    }

    .icon-button {
        margin-left: 0;
    }

    .zoom-controls {
        margin-left: 0;
    }

    .mark-canvas {
        min-height: 430px;
    }

    .canvas-hint {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
    }

    .side-panel {
        grid-template-columns: 1fr;
    }

    .recent-list {
        grid-template-columns: 1fr;
    }

    .recent-list li {
        grid-template-columns: 20px minmax(0, 1fr);
    }
}

@media (max-width: 390px) {
    h1 {
        font-size: 2.1rem;
    }

    .mark-canvas {
        min-height: 390px;
    }

    .canvas-hint {
        font-size: 0.92rem;
    }
}
