:root{color-scheme:dark;--background:#0D0D0F;--surface:#16171A;--border:#262626;--border-gold:#2C281E;--foreground:#F5F5F7;--muted:#A1A1AA;--primary:#D4AF37;--primary-foreground:#0D0D0F;--highlight:#F3E5AB;--font:'Geist','Noto Sans Thai',sans-serif;--radius:12px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:40px}body{margin:0;font:16px/1.8 var(--font);background:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-weight:400;line-height:1.45}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,summary{touch-action:manipulation}button{cursor:pointer}a,button{transition:color .18s,background .18s,border-color .18s}svg{flex-shrink:0;vertical-align:middle}::selection{background:var(--primary);color:var(--background)}:focus-visible{outline:2px solid var(--primary);outline-offset:5px}button:disabled{cursor:not-allowed;opacity:.45}[hidden]{display:none!important}input,textarea,select{width:100%;min-width:0;background:var(--background);border:1px solid #39393d;border-radius:8px;padding:12px 16px;color:var(--foreground);min-height:48px;caret-color:var(--primary)}input::placeholder,textarea::placeholder{color:var(--muted)}textarea{resize:vertical}label{display:block;font-size:14px}label input,label textarea,label select{margin-top:8px}em{font-style:normal;color:var(--primary)}.muted{color:var(--muted)}.button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 24px;border:1px solid transparent;border-radius:100px;font-size:14px;font-weight:500;white-space:normal;text-align:center}.gold{background:var(--primary);color:var(--primary-foreground)}.gold:hover{background:var(--highlight)}.outline{border-color:#363639;background:var(--surface);color:var(--foreground)}.outline:hover{background:#242427;border-color:#57534a}.quiet{background:transparent;color:var(--muted)}.quiet:hover{color:var(--foreground)}.text-link{display:inline-flex;align-items:center;gap:16px;font-size:14px;min-height:40px}.text-link:hover{color:var(--primary)}.small-label{font-size:13px;color:var(--primary);letter-spacing:.025em;margin-bottom:24px}.notice{border-left:1px solid var(--primary);padding:16px 24px;color:var(--muted);font-size:14px;margin:32px 0}.notice.compact{margin:16px 0 32px}.preview-label{display:block;color:var(--highlight);font-size:12px;margin-bottom:24px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#24241f;border:1px solid #5b5031;padding:16px 24px;border-radius:12px;max-width:min(600px,90vw);z-index:100;color:var(--highlight);font-size:14px}.empty-state{text-align:center;padding:48px 24px;color:var(--muted);border:1px dashed var(--border);margin-top:24px;border-radius:12px}.skip{position:fixed;top:-100px;left:16px;background:var(--primary);color:var(--background);padding:12px;z-index:200}.skip:focus{top:8px}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--background)}::-webkit-scrollbar-thumb{background:#45423a;border-radius:8px}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

[data-preview-gate]{border:0;padding:0;margin:0;min-width:0;width:100%}.editor-layout>fieldset{display:contents}

/* Form focus uses the existing edge rather than an extra rectangular ring. */
:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select):focus{outline:none;box-shadow:none;border-color:var(--highlight)}
.search-box:focus-within{border-bottom-color:var(--highlight)}
@media(forced-colors:active){:is(input,textarea,select):focus{outline:1px solid Highlight;outline-offset:0}}
