:root {
  --navy:#15263d; --ink:#202f41; --muted:#5d6875; --line:#d8dbdc;
  --paper:#f8f7f3; --gold:#caa972; --serif:"Nanum Myeongjo","Batang","바탕",Georgia,serif;
  --sans:Inter,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
}
html {scroll-behavior:smooth}
body,body>div.min-h-screen {margin:0;background:var(--paper);font-family:var(--sans);color:var(--ink)}
.masthead {background:#fcfbf8;border-top:3px solid var(--navy);border-bottom:1px solid var(--line)}
.masthead-inner,.workspace {width:min(1440px,100%);margin:auto;padding-inline:clamp(16px,4.7vw,72px)}
.masthead-inner {display:flex;align-items:center;justify-content:space-between;min-height:65px}
.brand {display:inline-flex;align-items:center;gap:10px;font-weight:750;font-size:19px;letter-spacing:-.075em;color:var(--navy)}
.brand svg {height:29px;width:26px;color:#87693a}
.directory-link {font-size:13px;font-weight:600}.directory-link span {margin-left:6px;color:#806135}
.workspace {padding-top:26px;padding-bottom:40px}
.hero {display:grid;grid-template-columns:1fr 1fr;background:var(--navy);color:white;isolation:isolate;overflow:hidden}
.hero-copy {position:relative;align-self:center;padding:clamp(26px,3.8vw,60px)}
.hero h1 {font:700 clamp(38px,4.1vw,65px)/1.2 var(--serif);letter-spacing:-.084em;word-break:keep-all}
.hero h1:before {display:block;content:"";width:34px;height:2px;margin-bottom:22px;background:var(--gold)}
.hero-copy>p {margin:14px 0 23px;color:#d6dce4;font-size:clamp(14px,1.15vw,17px);letter-spacing:-.03em;line-height:1.7;word-break:keep-all}
.cover {width:100%;height:100%;min-height:0;max-height:345px;object-fit:cover;object-position:center 54%}
.hero .desk-nav {display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;margin:0}
.hero .desk-nav button {display:flex;align-items:center;gap:9px;background:transparent;border:1px solid #8895a6;color:white;border-radius:4px;padding:10px 13px;font-size:13px;line-height:1.45;font-weight:650}
.hero .desk-nav button:first-child {background:#f3e4c7;border-color:#f3e4c7;color:#252d35}
.hero .desk-nav button:hover {outline:1px solid #fff;outline-offset:2px}
.directory-head {scroll-margin-top:16px;margin:32px 0 17px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.directory-head>div {display:flex;align-items:baseline;gap:12px}
.directory-head h2 {font:700 clamp(22px,2vw,32px)/1.4 var(--serif);letter-spacing:-.07em}
.directory-head p {color:var(--muted);font-size:12px}
.searchbox {display:flex;align-items:center;gap:12px;width:min(290px,42%);background:white;border:1px solid #c7cbce;border-radius:4px;padding:0 14px;min-height:42px}
.searchbox i {width:14px;height:14px;border:1.6px solid #667382;border-radius:50%;position:relative;flex:none}
.searchbox i:after {content:"";position:absolute;right:-4px;bottom:-2px;width:6px;height:1.5px;background:#667382;transform:rotate(45deg)}
.searchbox input {width:100%;min-width:0;padding:9px 0;background:transparent;font-size:14px}
.searchbox:focus-within {outline:2px solid #527295}.searchbox input:focus {outline:none}
.filters {display:flex;overflow-x:auto;gap:clamp(12px,2.35vw,36px);border-bottom:1px solid #b8bfc4;scrollbar-width:thin}
.rail-item {flex:none;display:flex;align-items:center;gap:6px;padding:9px 1px 12px;color:#586371;border-bottom:2px solid transparent;font-size:14px;font-weight:580}
.rail-item[aria-pressed=true] {color:var(--navy);border-bottom-color:var(--navy);font-weight:750}
.rail-item small {font-size:11px;font-variant-numeric:tabular-nums;color:#656d77}
.portal-directory>section {margin:22px 0 34px}
.portal-directory h2 {margin:0 0 12px;display:flex;align-items:center;gap:9px;font-size:16px;line-height:1.5;color:var(--navy);font-weight:750;letter-spacing:-.045em}
.portal-directory h2:before {content:"";width:4px;height:15px;background:#af8a51}
.portal-directory section>div {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:14px}
.portal-card {position:relative;min-width:0;padding:18px 18px 14px;background:white;border:1px solid var(--line);border-radius:5px}
.portal-card:hover,.portal-card:focus-within {border-color:#8592a2}
.portal-logo {display:flex;align-items:center;gap:10px;padding-right:26px;min-height:43px}
.logo-tile {display:grid;place-items:center;width:60px;height:42px;border:1px solid #e3e5e7;border-radius:3px;padding:3px;flex:none}
.logo-tile img {width:100%;height:100%;object-fit:contain}
.identity {display:grid;gap:2px;min-width:0}
.identity strong {font-size:16px;line-height:1.3;letter-spacing:-.045em;font-weight:750;color:var(--navy);overflow-wrap:anywhere}
.identity small {font-size:11px;color:#48627b}.portal-logo:hover strong {text-decoration:underline}
.portal-card button[aria-pressed] {inset:10px 8px auto auto;width:30px;height:30px;color:#778391}
.portal-card button[aria-pressed=true] {color:#97722e}.portal-card button[aria-pressed=true] svg {fill:#e5c982}
.portal-card .browser-mark {position:absolute;width:12px;height:12px;right:17px;top:47px}
.portal-card dl {margin:13px 0 12px;border-top:1px solid #e6e7e7;padding-top:8px}
.portal-card dl div {display:flex;align-items:baseline;justify-content:space-between;gap:6px;font-size:13px;line-height:1.75}
.portal-card dt {color:#596776}.portal-card dd {margin:0;text-align:right;font-variant-numeric:tabular-nums;font-weight:560}
.portal-card dd a:hover,.portal-actions a:hover {text-decoration:underline}
.portal-actions {display:flex;gap:6px;flex-wrap:wrap}
.portal-actions>* {padding:5px 9px;border-radius:3px;background:#edf1f6;color:#324c66;font-size:12px;font-weight:650}
.portal-actions>*+* {background:#f4efe6;color:#6c5330}.portal-actions>span {background:#f1f1f1;color:#70777f}
.workspace section[aria-label="공지사항"] {background:#f1f0ea;border:1px solid var(--line);box-shadow:none;border-radius:4px}
.desk-primary,#developer-message,.copy-actions .primary {background:var(--navy);color:white;border-color:var(--navy)}
#developer-message {border-radius:4px}.desk-result {background:#f2f4f6}.desk-links a {color:#294d71}
.desk-dialog,.copy-modal {border-radius:7px;border-top:3px solid #ac8956;margin:auto}.desk-top h2,.copy-modal h3 {font-family:var(--serif);letter-spacing:-.06em}
.workspace section[aria-label="보험전산 안내"] details>p {padding:14px;font-size:13px}.copy-note {border-top:1px solid var(--line);padding-top:18px}
:is(.workspace,.masthead,.desk-dialog,.copy-modal) :focus-visible {outline:2px solid #547aa2;outline-offset:2px}
@media(min-width:1200px){.portal-directory section>div{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.hero {grid-template-columns:1.08fr 1fr}.hero-copy{padding:29px 25px}.hero .desk-nav button{padding:8px 10px}}
@media(max-width:650px){
  .masthead-inner{min-height:54px}.brand{font-size:17px}.brand svg{height:25px}.workspace{padding-top:14px}
  .hero {grid-template-columns:1fr}.cover{grid-row:1;height:clamp(120px,30vw,180px);object-position:50% 54%}
  .hero-copy{padding:21px}.hero h1{font-size:34px}.hero h1:before{display:none}.hero-copy>p{font-size:14px;margin:7px 0 15px}.hero-copy>p br{display:none}
  .directory-head{margin:23px 0 9px;align-items:stretch;flex-direction:column;gap:9px}.directory-head>div{justify-content:space-between}
  .searchbox{width:100%}.filters{gap:17px}.rail-item{font-size:13px;min-height:42px}.portal-directory>section{margin:15px 0 26px}
  .portal-directory section>div{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:9px}
  .portal-card{padding:13px 15px}.portal-card dl{margin:9px 0;display:grid;grid-template-columns:1fr 1fr;gap:2px 15px}
  .portal-card dl div{display:block}.portal-card dd{text-align:left}.portal-card dt{font-size:11px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.hero .desk-nav {max-width:470px}
.desk-dialog {width:min(620px,calc(100% - 24px))}
.desk-top {padding-bottom:12px;border-bottom:1px solid var(--line)}
.desk-hint {color:var(--muted);font-size:13px;line-height:1.65;margin:8px 0}
.desk-secondary {color:var(--navy);border:1px solid #b7c2ca;padding:8px 12px;border-radius:5px;background:#fff;font-size:13px;font-weight:650}
.desk-dialog button:disabled {opacity:.45;cursor:default}
.check-area {border-block:1px solid var(--line);padding:15px 0;margin:16px 0}
.check-top {display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.check-top h3 {color:var(--navy);font-weight:750}.check-top span {color:#65512f;font-size:13px;font-weight:650}
#check-rows {margin:10px 0;font-size:13px;color:var(--muted)}
.check-row {display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e4e6e6;padding:4px 0}
.check-row label {display:flex;align-items:center;gap:9px;margin:0;padding:8px 0;cursor:pointer;color:var(--ink);font-size:14px;font-weight:500}
.check-row input {width:17px;height:17px;flex:none;margin:0;accent-color:var(--navy)}
.check-row label:has(input:checked),.check-row label:has(input:disabled) {color:#65726e;text-decoration:line-through}
.skip-document {flex:none;color:var(--muted);font-size:12px;padding:6px}
.field-action {display:flex;gap:8px;align-items:stretch}.field-action input {min-width:0;margin:0}.field-action button {flex:none}
#add-document label {margin:12px 0 5px}.desk-actions {flex-wrap:wrap}.desk-feedback {margin-top:8px}
#store-draft {margin-top:12px}.library-actions {justify-content:flex-end}.library-actions button:first-child{margin-right:auto}
#method-tags {display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:10px 0;padding:0}
#method-tags li {padding:4px 10px;border-radius:4px;background:#fff;border:1px solid #c9d3dd;color:var(--navy);font-weight:600;font-size:13px}
#method-links {align-items:center}.portal-actions button {cursor:pointer}
.desk-dialog .desk-feedback:not(:empty) {padding:7px 0}
