:root { color-scheme: light; --paper: #f4f4f4; --ink: #282828; --muted: #737373; --line: #d8d8d8; --accent: #555; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button { min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
button:hover { background: #e9e9e9; border-color: #b7b7b7; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button.quiet { background: transparent; border-color: transparent; }
button.quiet:hover { background: #e9e9e9; }
.app-header { height: 76px; margin: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 16px; }
.identity { display: flex; align-items: baseline; gap: 20px; }
h1 { font-size: 23px; font-weight: 500; letter-spacing: -.6px; margin: 0; }
.identity > span, .year { color: var(--muted); font-size: 12px; }
.year { margin-left: 7px; }
#guide-open span { margin-left: 10px; }
main { padding: 0 28px 24px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 0 12px; }
.action-group { display: flex; flex-wrap: wrap; gap: 6px; }
.secondary-actions { flex: 1; }
.toolbar button { white-space: nowrap; }
.toolbar .primary { background: var(--ink); border-color: var(--ink); color: white; min-width: 100px; }
.toolbar .primary:hover { background: #444; }
.toolbar .export { margin-left: auto; }
kbd { color: var(--muted); font: 10px ui-monospace, monospace; margin-left: 10px; }
.primary kbd { color: #c7c7c7; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 24px; align-items: start; }
.drawing { min-width: 0; }
.canvas-footer { min-height: 33px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: 11px; }
#dimensions { font: 11px ui-monospace, monospace; letter-spacing: 0; }
.canvas-stage { height: calc(100dvh - 189px); min-height: 350px; max-height: 1000px; display: flex; align-items: center; justify-content: center; background: #ededed; border: 1px solid var(--line); overflow: hidden; }
#canvas { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
#canvas canvas { display: block; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; touch-action: none; }
#buttons00 p { margin: 0; font: 10px ui-monospace, monospace; white-space: nowrap; }
.inspector { background: #fafafa; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 0; height: calc(100dvh - 189px); min-height: 350px; max-height: 1000px; display: flex; flex-direction: column; }
.inspector-heading { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px 4px 18px; }
.inspector-heading h2 { font-size: 13px; font-weight: 600; margin: 0; }
#collapse-settings { font-size: 20px; min-height: 28px; padding: 0 8px; }
#buttons2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px 14px 0; border-bottom: 1px solid var(--line); background: #f1f1f1; }
#buttons2 button { position: relative; min-width: 0; min-height: 42px; padding: 10px 5px 11px; border: 0; border-radius: 0; background: transparent; color: #707070; font-size: 13px; font-weight: 550; box-shadow: none; }
#buttons2 button::after { content: ""; position: absolute; right: 8px; bottom: -1px; left: 8px; height: 3px; background: transparent; }
#buttons2 button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
#buttons2 button[aria-selected="true"]::after { background: var(--accent); }
#buttons2 button:hover { background: #e6e6e6; color: var(--ink); }
.panel-scroll { flex: 1; min-height: 0; overflow-y: scroll; scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: #777 #e4e4e4; }
.panel-scroll::-webkit-scrollbar { width: 14px; }
.panel-scroll::-webkit-scrollbar-track { background: #e4e4e4; border-left: 1px solid #ccc; }
.panel-scroll::-webkit-scrollbar-thumb { background: #777; border: 3px solid #e4e4e4; border-radius: 8px; min-height: 40px; }
.panel-scroll::-webkit-scrollbar-thumb:hover { background: #555; }
#settings-scroll-hint { flex-shrink: 0; border: 0; border-top: 1px solid #ccc; border-radius: 0; background: #e9e9e9; color: #484848; font-size: 12px; font-weight: 600; padding: 9px 14px; }
#settings-scroll-hint:hover { background: #ddd; }
.panel { padding: 0 18px 20px; }
[hidden] { display: none !important; }
.panel > div + div { margin-top: 24px; padding-top: 4px; border-top: 1px solid var(--line); }
.panel h3 { display: none; }
.panel h4 { margin: 21px 0 12px; color: #4b4b4b; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 650; }
.panel p { font-size: 12px; line-height: 1.55; margin: 13px 0 5px; }
.panel p:empty { display: none; }
.panel p:has(h3) { margin: 0; }
.panel p em { font-size: 11px; color: var(--muted); }
.panel button { width: 100%; margin-top: 7px; text-align: left; font-size: 11px; }
.panel select { display: block; width: 100%; min-height: 34px; background: white; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; color: var(--ink); font-size: 12px; }
.panel input[type="range"] { display: block; width: 100%; min-width: 0; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; appearance: none; background: transparent; }
.panel input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: #c4c4c4; }
.panel input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); margin-top: -4.5px; }
.panel input[type="range"]::-moz-range-track { height: 2px; background: #c4c4c4; }
.panel input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--accent); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { flex: 0 0 40px; text-align: right; font: 10px ui-monospace, monospace; color: var(--muted); }
.range-row:has(input[style*="display: none"]) { display: none; }
.panel .checkbox-row { display: flex; align-items: center; gap: 0; margin: 7px 0; }
.panel .checkbox-row label { padding: 0; }
.toolbar button[aria-pressed="true"] { background: #e4e4e4; border-color: #aaa; }
.panel input[type="checkbox"] { accent-color: var(--accent); vertical-align: middle; margin: 0 7px 0 0; width: 14px; height: 14px; }
.panel label { display: block; font-size: 11px; line-height: 1.6; padding: 7px 0; }
.panel input[type="file"] { width: 100%; font-size: 11px; margin: 7px 0; }
input::file-selector-button { border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 8px; color: var(--ink); margin-right: 6px; cursor: pointer; }
.range-value { float: right; font: 10px ui-monospace, monospace; color: var(--muted); margin-top: 3px; }
#settings-empty { padding: 8px 18px; color: var(--muted); font-size: 12px; }
dialog { width: min(920px, calc(100% - 32px)); max-height: 88dvh; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 20px 90px #20271c26; }
dialog::backdrop { background: #252b2359; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 32px; position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-size: 10px; }
.dialog-header h2 { font-size: 25px; font-weight: 500; letter-spacing: -.5px; margin: 8px 0 0; }
.guide-content { padding: 10px 32px 32px; line-height: 1.7; }
.intro { font-size: 16px; max-width: 650px; }
.guide-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.guide-content h3 { font-size: 14px; margin: 24px 0 8px; }
.guide-content p { color: #606060; }
.shortcuts { display: grid; grid-template-columns: 40px 1fr; gap: 5px 10px; font-size: 12px; }
.shortcuts dt { font-family: ui-monospace, monospace; }
.shortcuts dd { margin: 0; color: #606060; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; display: block; border: 1px solid var(--line); }
@media (min-width: 1500px) { .workspace { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; } }
@media (max-width: 1000px) { main { padding: 0 18px 18px; } .app-header { margin: 0 18px; } .workspace { gap: 16px; grid-template-columns: minmax(0, 1fr) 270px; } kbd { display: none; } .toolbar button { font-size: 12px; } }
@media (max-width: 720px) { .app-header { height: 68px; margin: 0 14px; } .identity { display: block; } h1 { font-size: 24px; } .identity > span { font-size: 10px; } #guide-open { font-size: 11px; padding-right: 0; } main { padding: 0 12px 18px; } .toolbar { gap: 7px; padding: 12px 0 4px; } .action-group { gap: 5px; } .secondary-actions { flex: auto; } .toolbar button { min-height: 36px; font-size: 11px; padding: 7px 9px; } .toolbar .primary { min-width: 80px; } .toolbar .export { margin-left: 0; } .workspace { grid-template-columns: 1fr; gap: 2px; } .canvas-stage { height: 51dvh; min-height: 280px; max-height: 620px; } .canvas-footer { font-size: 10px; } .inspector { margin-top: 12px; } .panel-scroll { max-height: 440px; } .panel { padding: 0 16px 20px; } .panel input[type="range"] { height: 28px; } .dialog-header { padding: 18px; } .dialog-header h2 { font-size: 23px; } .guide-content { padding: 4px 18px 24px; } .guide-columns { grid-template-columns: 1fr; gap: 0; } .gallery { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 720px) { .inspector { height: auto; min-height: 0; max-height: none; } .panel-scroll { max-height: 440px; flex: auto; } .toolbar .action-group { display: contents; } }
@media (max-width: 720px) { .app-header { height: auto; min-height: 90px; flex-wrap: wrap; gap: 4px 12px; padding: 12px 0; } .identity > span { display: block; line-height: 1.6; } }
