/* 색결 1.0.8 — Swiss grid / accessible color workspace. No external assets. */
:root{--ink:#202a28;--muted:#4f605b;--bg:#f4f6f3;--paper:#f4f6f3;--white:#fff;--line:#d5ded9;--accent:#14594d;--accent-hover:#10463d;--blue:var(--accent);--lime:#bce1cf;--soft:#e5eee9;--radius:10px;--control:#83968d;--danger:#a12626;--focus:#14594d}
body{font-family:Pretendard,"Noto Sans KR","Malgun Gothic",system-ui,sans-serif;line-height:1.7;font-size:17px;color:var(--ink);background:var(--bg);word-break:keep-all;overflow-wrap:anywhere}a{color:var(--accent)}.wrap{max-width:1280px;padding-inline:32px}header{background:#fff;border-color:var(--line)}.nav{min-height:76px;gap:24px}.brand{font-size:28px;font-weight:750;letter-spacing:-.04em}.mark{background:#173b33;width:38px;height:38px;padding:7px;border-radius:8px}.mark i{opacity:1!important}.mark i:nth-child(1){background:#fff!important}.mark i:nth-child(2){background:#e9c78b!important}.mark i:nth-child(3){background:#8fc4af!important}.mark i:nth-child(4){background:#d7927f!important}.navlinks{gap:24px;align-items:center}.navlinks a{display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;color:var(--ink)}.navlinks a[aria-current=page]{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}main{padding:32px 0 64px}h1,h2,h3{color:var(--ink);text-wrap:balance}h1{font-size:clamp(30px,3.4vw,44px);font-weight:750;letter-spacing:-.035em;line-height:1.3}h2{font-size:24px;font-weight:700}h3{font-weight:650}.lead{font-size:18px;line-height:1.7;color:var(--muted)}.crumb{color:var(--muted)}
button,.button{background:var(--accent);color:#fff;border-color:var(--accent);min-height:44px;border-radius:8px;font-weight:650;touch-action:manipulation;transition:background-color .15s,border-color .15s}button:not([style]):hover,.button:hover,.studio-entry:hover{background:var(--accent-hover)!important;border-color:var(--accent-hover)}button:active,.button:active{filter:brightness(.94)}button.secondary,.button.secondary,.studio-button{color:var(--ink);background:#fff;border-color:var(--control)}button.secondary:hover,.button.secondary:hover,.studio-button:hover{color:var(--accent);background:var(--soft)!important;border-color:var(--accent)}input,select,textarea{border-color:var(--control);border-radius:8px;font-size:16px;color:var(--ink);max-width:100%;min-width:0}input[type=range],input[type=checkbox]{accent-color:var(--accent)}:focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px}a,button,input,select,textarea,summary{scroll-margin-block:24px}button:disabled{opacity:.55;cursor:not-allowed}small,.muted,.studio-muted{color:var(--muted)}code,.code-copy,.result-row,.studio-code{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.copy-status{background:#173b33;color:#fff;bottom:16px;max-width:calc(100% - 32px)}
/* Home: useful action first, a real palette preview, then a compact catalogue. */
.hero{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:40px;padding:32px;align-items:center;overflow:visible}.hero .home-kicker{font-size:14px;font-weight:700;letter-spacing:.025em;color:var(--accent);margin-bottom:10px}.hero h1{font-size:clamp(34px,3.6vw,50px);line-height:1.19;color:var(--ink);font-weight:750;letter-spacing:-.045em;margin:0 0 14px}.hero p{color:var(--muted);font-size:17px;max-width:45ch}.home-picker{background:#edf3ef;border:1px solid #d5e0d8;padding:14px 16px;border-radius:10px;margin-top:20px}.home-picker>label{font-size:15px;color:var(--ink);margin-bottom:8px}.home-code-wrap input{color:var(--ink);font-size:22px}.home-code-wrap small{font-size:13px;color:var(--muted)}.home-picker>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:4px}.home-search{margin-top:16px}.home-search input{background:#fff}.hero-links{gap:12px;margin-top:12px}.hero-links>a:not(.button){display:inline-flex;align-items:center;min-height:44px}.hero-sample{border:0;border-radius:0;padding:0;background:transparent;min-width:0}.sample-head,.sample-foot{color:var(--muted);font-size:14px;gap:8px;flex-wrap:wrap}.sample-head a{font-weight:650}.hero-sample h2{font-size:25px;margin:12px 0 14px}.hero-art{border-radius:10px;overflow:hidden;min-width:0}.hero-art button{height:258px;min-width:0;border-radius:0;min-height:44px}.hero-art button:hover,.palette-strip button:hover,.chip:hover,.preset-dot:hover,.swatch button:hover{filter:brightness(.96)} /* color swatches use inline backgrounds; corrected below */
.hero-art button span{font-size:13px;background:rgba(255,255,255,.95);color:#202a28;padding:9px 1px}.hero-art button:focus-visible,.palette-strip button:focus-visible,.chip:focus-visible{outline:3px solid #fff!important;outline-offset:-4px;box-shadow:inset 0 0 0 6px #202a28}.sample-foot button{white-space:nowrap}.home-group{display:grid;grid-template-columns:160px minmax(0,1fr);padding:26px 0;margin:0;gap:24px;border-bottom:1px solid var(--line)}.group-heading h2{font-size:23px;margin:2px 0 3px}.group-heading span{font-size:14px;color:var(--muted)}.home-group .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.tile,.home-group .tile,.home-group .tile:nth-last-child(-n+2){display:grid;grid-template-columns:48px minmax(0,1fr) 20px;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;min-height:92px;transform:none}.tile:hover,.home-group .tile:hover{background:#edf3ef;border-color:var(--control)}.tile strong{font-size:17px;font-weight:700}.tile small{font-size:14px;line-height:1.5;color:var(--muted)}.tile-go{font-size:20px;text-align:center;color:var(--accent)}.tool-symbol{width:48px;height:48px;border-radius:7px;border:1px solid #cdd8d1;background:linear-gradient(90deg,#c7dace 50%,#315e48 50%);position:relative;overflow:hidden}.tile[data-tool=color-chart] .tool-symbol,.tile[data-tool=cmyk-chart] .tool-symbol{background:conic-gradient(#dfa77f 0 25%,#315e48 0 50%,#e9dcb7 0 75%,#7f9cb1 0)}.tile[data-tool=color-code] .tool-symbol,.tile[data-tool=cmyk-code] .tool-symbol{background:#e5eee9}.tile[data-tool=color-code] .tool-symbol:after,.tile[data-tool=cmyk-code] .tool-symbol:after{content:'#';position:absolute;inset:0;display:grid;place-items:center;color:#14594d;font:700 26px monospace}.tile[data-tool=rgb-color] .tool-symbol{background:linear-gradient(90deg,#ad4845 0 33.33%,#367a53 0 66.66%,#426fa1 0)}.tile[data-tool=picker] .tool-symbol{background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,#259c80)}.tile[data-tool=palette] .tool-symbol,.tile[data-tool=cmyk-palette] .tool-symbol{background:linear-gradient(90deg,#304c43 0 25%,#9bbfa5 0 50%,#e8cd95 0 75%,#cc8e7a 0)}.tile[data-tool=color-combination] .tool-symbol{background:linear-gradient(135deg,#e8c181 0 33%,#427c70 0 66%,#b6635a 0)}.tile[data-tool=color-extract] .tool-symbol,.tile[data-tool=image-color] .tool-symbol{background:linear-gradient(153deg,#b9d9e1 48%,#426b56 49% 70%,#d5b37b 71%)}.tile[data-tool=image-color] .tool-symbol:after{content:'';position:absolute;left:21px;top:19px;width:10px;height:10px;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #173b33}.tile[data-tool=gradient] .tool-symbol{background:linear-gradient(135deg,#315e48,#e8c181)}.tile[data-tool=contrast] .tool-symbol{background:#173b33}.tile[data-tool=contrast] .tool-symbol:after{content:'Aa';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-weight:700}.tile[data-tool=cmyk-rgb] .tool-symbol{background:linear-gradient(90deg,#4e9db1 0 25%,#bc5787 0 50%,#d2b33e 0 75%,#303630 0)}
/* Tool panels and reading surfaces */
.panel,.tool-panel{border-color:var(--line);border-radius:12px;background:#fff;padding:24px;box-shadow:none}.tool-result{background:#edf3ef;border-color:var(--line);border-radius:9px;min-width:0}.tool-top h2{font-size:23px}.result{background:#173b33;color:#fff}.result-label{color:#bce1cf}.result-row .code-copy,.code-copy{color:var(--accent);background:transparent!important;font-size:14px;min-height:44px!important}.code-copy:hover{background:var(--soft)!important;text-decoration:underline;color:var(--accent)}.result-row .code-copy::after{box-shadow:-3px -3px 0 -1px #edf3ef,-4px -4px 0 -1px currentColor}.swatch-grid{gap:12px}.swatch{background:#fff;border-color:var(--line);border-radius:8px}.swatch strong{font-size:15px}.swatch small{font-size:13px}.palette-card{border-color:var(--line);border-radius:10px}.palette-card p{font-size:16px}.palette-strip{border-radius:8px}.notice{color:#4b3d22;background:#f7f1df;border-color:#d9caa5}.content-body{line-height:1.8}.content-body>p:not(.notice),.policy-section p{max-width:75ch}.content-body h2:not(:first-child){margin-top:30px}.footer{background:#e6ede8;border-color:var(--line);color:var(--muted)}.footer a{color:var(--accent);display:inline-flex;align-items:center;min-height:44px}.policy-toc{background:#edf3ef;border-radius:8px}.adminnav a{min-height:44px;display:inline-flex;align-items:center;border-color:var(--control);color:var(--accent)}.adminnav a:hover{background:var(--soft)}.adminform label{font-size:16px}.adminform input,.adminform textarea{max-width:100%}.ad-slot{border-color:var(--line)}
/* Workshop: neutral surfaces for accurate color judgement. */
.studio-shell{--studio-bg:#e8edeb;--studio-panel:#fff;--studio-line:#cbd6d0;--studio-text:var(--ink);--studio-muted:var(--muted);grid-template-columns:176px minmax(0,1fr);border-color:var(--line);border-radius:12px}.studio-nav{background:#f7f9f8;border-color:var(--line);padding:16px 10px;gap:4px}.studio-nav a{color:var(--ink);font-size:14px;line-height:1.45;padding:10px;min-height:44px;border-radius:6px}.studio-nav a:hover,.studio-nav a[aria-current=page]{background:#dcebe3;color:var(--accent)}.studio-nav a[aria-current=page]{box-shadow:inset 3px 0 var(--accent);font-weight:700}.studio-workspace{padding:18px;min-width:0}.studio-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px}.studio-card{border-radius:10px;border-color:var(--studio-line);padding:18px;min-width:0}.studio-card h2{font-size:21px}.studio-muted{font-size:14px;color:var(--muted)}.studio-field{font-size:15px;color:var(--ink)}.studio-field input,.studio-field select{border-color:var(--control);color:var(--ink);font-size:16px}.studio-field input[type=range]{min-height:44px;accent-color:var(--accent)}.studio-field input[type=range].hue-range{min-height:32px}.studio-quick,.studio-code,.gradient-code{background:#eef3ef;color:var(--ink);border-radius:7px}.studio-code{gap:8px}.studio-code code,.gradient-code{color:var(--ink);font-size:14px;overflow-wrap:anywhere}.studio-code .studio-button,.studio-quick .studio-button,.studio-button{background:#fff;color:var(--accent);border:1px solid var(--control);font-size:14px;min-height:44px}.studio-code .studio-button:hover,.studio-quick .studio-button:hover{background:var(--soft)!important;color:var(--accent)}.studio-selected{min-height:88px;font-size:24px}.studio-contrast-card{background:#eef3ef;border-color:var(--line)}.studio-recommend button{background:#fff;border-color:var(--control);color:var(--ink);min-height:76px}.preset-dot{min-height:44px;border:1px solid var(--control)}.studio-error{color:var(--danger)}.studio-nav a:focus-visible{outline-offset:-3px}.studio-shell .studio-code>div{min-width:0}.studio-shell .studio-recommend{min-width:0}.studio-shell [hidden],[hidden]{display:none!important}

@media(max-width:1050px){.wrap{padding-inline:24px}.hero{padding:24px;gap:24px}.hero-art button{height:210px}.home-group{grid-template-columns:140px minmax(0,1fr)}.studio-shell{grid-template-columns:150px minmax(0,1fr)}.studio-card{padding:14px}.studio-workspace{padding:12px}}
@media(max-width:850px){.studio-shell{grid-template-columns:1fr}.studio-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;max-width:100%;gap:4px;padding:8px}.studio-nav a{white-space:normal;overflow-wrap:anywhere;min-width:0;min-height:44px;font-size:13px}.studio-grid{grid-template-columns:1fr}.studio-workspace{padding:12px}.hero-art button span{font-size:11px}.studio-card{padding:16px}}
@media(max-width:780px){.wrap{padding-inline:16px}.nav{min-height:0;padding-block:10px;gap:8px}.navlinks{gap:4px 16px;justify-content:flex-start}.navlinks a{font-size:14px;min-height:44px;padding:4px 0}.hero{grid-template-columns:1fr;padding:20px;gap:24px;border-radius:12px}.hero h1{font-size:clamp(30px,6vw,38px)}.hero p{font-size:16px}.hero-art button{height:150px}.home-group{grid-template-columns:1fr;gap:12px;padding:22px 0}.group-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.group-heading h2{font-size:21px}.home-group .tiles{grid-template-columns:1fr;gap:8px}.tile,.home-group .tile,.home-group .tile:nth-last-child(-n+2){min-height:80px;padding:12px;grid-template-columns:44px minmax(0,1fr) 18px;gap:10px}.tool-symbol{width:44px;height:44px}.panel,.tool-panel{padding:16px}.studio-workspace{padding:8px}.studio-card{padding:12px}.lead{font-size:17px}.hero-links{gap:8px}.hero-links .button{font-size:14px}.studio-code code{font-size:13px}.home-picker{padding:12px}.home-code-wrap input{font-size:19px}}
@media(max-width:390px){.wrap{padding-inline:12px}.hero{padding:16px}.home-pick-row{grid-template-columns:48px minmax(0,1fr) auto;gap:6px}.home-pick-row input[type=color]{width:48px;height:52px}.home-code-wrap input{font-size:17px;padding-inline:4px}.home-code-wrap small{font-size:12px;padding-left:4px}.home-copy{padding:8px 10px}.hero-art button span{font-size:10px}.studio-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-code{flex-wrap:wrap}.studio-presets{grid-template-columns:repeat(4,minmax(0,1fr))}.navlinks{gap:0 12px}.sample-foot{font-size:13px}.home-search button{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.studio-menu{min-width:0;background:#f7f9f8;border-right:1px solid var(--line)}.studio-menu>.studio-nav{border:0;height:auto}.studio-menu>summary{display:none}.studio-menu:not([open])>summary{display:block;padding:12px 16px;cursor:pointer;font-weight:650;color:var(--accent);min-height:44px}.studio-menu>summary:focus-visible{outline-offset:-4px}@media(max-width:850px){.studio-menu{border-right:0;border-bottom:1px solid var(--line)}.studio-menu>summary{display:list-item;min-height:44px;padding:12px 16px;color:var(--accent);font-size:15px;font-weight:650;cursor:pointer}.studio-menu[open]>.studio-nav{border-top:1px solid var(--line)}.studio-menu:not([open])>.studio-nav{display:none}}
