:root {
  color-scheme: light;
  --canvas: #f6f5f1;
  --paper: #fffefa;
  --ink: #182822;
  --muted: #5e675f;
  --subtle: #727a71;
  --border: #e2e3dc;
  --input-border: #d8dcd3;
  --accent: #b4492a;
  --accent-hover: #963b21;
  --accent-soft: #f5e9e1;
  --green-soft: #eaf0e8;
  --radius: 14px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 300px; margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #a7462b; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p { word-break: keep-all; overflow-wrap: anywhere; }
svg { display: inline-block; flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.skip { position: fixed; z-index: 10; left: 16px; top: 16px; transform: translateY(-150%); padding: 10px 14px; background: var(--paper); border-radius: 6px; }
.skip:focus { transform: none; }
.clipboard-field { position: fixed; top: -1000px; left: 0; opacity: 0; }

.shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 29px 19px 22px; background: #faf9f5; border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; align-self: flex-start; gap: 12px; min-height: 44px; margin-left: 10px; }
.brand img { display: block; box-shadow: 0 3px 7px #a9422630; border-radius: 10px; }
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong { font-size: 1.37rem; letter-spacing: -.045em; font-weight: 750; white-space: nowrap; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: .75rem; letter-spacing: -.01em; }
.side-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; margin-top: 48px; }
.nav-caption { padding: 0 12px 7px; color: var(--subtle); font-size: .77rem; letter-spacing: .07em; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 0 12px; min-height: 45px; border-radius: 8px; color: #46554d; font-size: .9rem; font-weight: 550; transition: color .16s, background-color .16s; }
.nav-link:hover { background: #eeeee7; color: var(--ink); }
.nav-link.is-active { color: #993b21; background: #f3e6dc; font-weight: 700; }
.nav-link.is-active svg { color: var(--accent); }
.nav-admin { padding-top: 13px; margin-top: auto; border-top: 1px solid var(--border); }
.site-body { min-width: 0; }
.topbar { background: #faf9f5; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 12px; max-width: 1368px; min-height: 64px; padding: 0 43px; margin: 0 auto; font-size: .86rem; color: var(--muted); }
.topbar-inner svg { color: #82877f; }
.topbar-inner strong { color: var(--ink); font-weight: 650; }
.workspace { max-width: 1368px; margin: 0 auto; padding: 34px 43px 58px; }
.workspace:focus { outline: none; }
.warehouse-shell { min-height: 100vh; }
.warehouse-header { background: #254638; border-bottom: 1px solid #203d31; color: #fffdf4; }
.warehouse-header > div { width: min(calc(100% - 76px), 1282px); min-height: 65px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.warehouse-header > div > span { color: #deebdf; font-size: .83rem; letter-spacing: .01em; }
.warehouse-brand { display: flex; gap: 9px; align-items: center; min-height: 44px; font-size: 1.08rem; font-weight: 740; }
.warehouse-brand img { border-radius: 8px; }
.receipt-single { grid-template-columns: minmax(0, 1fr); max-width: 19em; }
@media (max-width: 700px) {
  .warehouse-header > div { width: calc(100% - 34px); min-height: 58px; }
  .warehouse-header > div > span { display: none; }
}

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 221px; overflow: hidden; border-radius: 17px; border: 1px solid #dedccf; background: #eeeadf; }
.hero-copy { position: relative; z-index: 1; padding: 27px 40px 32px; }
.hero-rule { display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 3px; margin-bottom: 19px; }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.45rem); font-weight: 750; line-height: 1.15; letter-spacing: -.055em; }
.hero p { max-width: min(100%, 31em); margin-top: 15px; color: #4f5d53; font-size: .98rem; }
.hero-image { position: absolute; z-index: 0; top: 0; right: 0; width: 60%; height: 100%; object-fit: cover; object-position: 54% 49%; mask-image: linear-gradient(to right, transparent 0%, #000 37%); }
.hero-compact { min-height: 178px; }
.hero-compact h1 { font-size: clamp(2.15rem, 4vw, 3rem); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 31%); align-items: start; gap: 22px; margin-top: 23px; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 4px #25291904; }
.form-aside, .lookup-main { display: grid; gap: 18px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 73px; padding: 15px 25px; border-bottom: 1px solid #ebebe4; }
.panel-heading-text { display: flex; align-items: center; gap: 10px; }
.panel-heading h2 { font-size: 1.16rem; font-weight: 720; }
.heading-icon { display: grid; place-items: center; width: 34px; height: 34px; background: var(--green-soft); border-radius: 8px; color: #345646; }
.required-note { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.required-note b, .field > span > b { color: #a44228; }
.application-form { padding: 23px 25px 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.span-all { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: .9rem; font-weight: 650; }
.field small { color: var(--subtle); font-size: .76rem; margin-left: 4px; font-weight: 400; }
.field input:not([type='radio']), .field select, .field textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 8px; background-color: #fffefa; font-size: .9rem; font-weight: 400; line-height: 1.55; transition: border-color .16s, box-shadow .16s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9f5b44; }
.field input::placeholder, .field textarea::placeholder, .field select:invalid { color: #6e756d; opacity: 1; }
.field select { appearance: none; padding-right: 31px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235e675f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field textarea { min-height: 106px; resize: vertical; }
.priority-field { border: 0; margin: 0; padding: 0; }
.priority-field legend { padding: 0; margin-bottom: 7px; }
.priority-options { display: flex; flex-wrap: wrap; gap: 8px; }
.priority-options label { position: relative; cursor: pointer; }
.priority-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.priority-options label > span { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px; border: 1px solid var(--border); border-radius: 8px; color: #4e5c52; font-size: .85rem; font-weight: 520; }
.priority-options input:checked + span { border-color: #91a795; background: #edf1e9; color: #284638; font-weight: 650; }
.priority-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.priority-options i { width: 7px; height: 7px; background: #587b67; border-radius: 50%; }
.priority-options label:nth-child(2) i { background: #996511; }
.priority-options label:nth-child(3) i { background: #ad482f; }
.form-actions { display: flex; justify-content: flex-start; margin-top: 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 680; text-align: center; transition: background-color .16s, border-color .16s; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); }
.button-quiet { color: #344d40; border-color: var(--input-border); background: #fffefa; }
.button-quiet:hover:not(:disabled) { background: var(--green-soft); }
.form-error { margin-top: 16px; padding: 10px 12px; border-radius: 7px; background: #f9eae2; color: #8e321e; font-size: .9rem; }
.process-card, .lookup-card { padding: 22px 21px; }
.process-card h2, .lookup-card h2 { font-size: 1.05rem; font-weight: 720; }
.process-list { list-style: none; padding: 0; margin: 19px 0 0; }
.process-list li { display: grid; position: relative; grid-template-columns: 35px minmax(0, 1fr); gap: 12px; min-height: 70px; padding-bottom: 16px; }
.process-list li:last-child { min-height: 0; padding-bottom: 0; }
.process-list li:not(:last-child)::after { position: absolute; top: 35px; bottom: 0; left: 17px; width: 1px; background: #d8e1d7; content: ''; }
.process-icon { display: grid; align-self: start; place-items: center; width: 35px; height: 35px; color: #385e49; background: #eaf0e8; border-radius: 8px; }
.process-list h3 { font-size: .88rem; margin: 1px 0 4px; }
.process-list p, .lookup-card p { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.lookup-card { background: #eff2eb; border-color: #e0e7db; }
.lookup-title { display: flex; align-items: center; gap: 8px; }
.lookup-title svg { color: #476955; }
.lookup-card p { margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: #8d3a24; font-weight: 680; font-size: .88rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b87968; }
.text-link:hover { color: #662711; }
.lookup-card .text-link { margin-top: 2px; margin-bottom: -8px; }

.receipt { padding: 28px 25px; }
.receipt-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: #345946; margin-bottom: 16px; }
.receipt h2, .result-top h2 { font-size: 1.38rem; overflow-wrap: anywhere; }
.receipt h2:focus, .result-top h2:focus { outline: none; }
.receipt p { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.receipt-details, .result-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; padding: 14px; border: 1px solid #e7e8df; border-radius: 9px; background: #f6f7f1; }
.receipt-details dt, .result-meta dt { color: var(--muted); font-size: .8rem; }
.receipt-details dd, .result-meta dd { margin: 3px 0 0; font-size: .93rem; font-weight: 650; overflow-wrap: anywhere; }
.receipt-details dd, .record-id { font-family: "IBM Plex Mono", Consolas, monospace; }
.receipt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.lookup-result { padding: 22px 25px; }
.result-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.record-id { color: var(--muted); font-size: .8rem; }
.status-pill { display: inline-flex; align-items: center; min-height: 27px; padding: 1px 9px; border-radius: 20px; white-space: nowrap; background: #e9ebe5; color: #435148; font-size: .79rem; font-weight: 650; }
.status-submitted { background: #f5e7cf; color: #725119; }
.status-in_progress { background: #e3edf3; color: #345a75; }
.status-resolved { background: #e4eee3; color: #3c674a; }
.timeline-title { font-size: 1rem; }
.result-timeline { list-style: none; padding: 0; margin: 14px 0 0; }
.result-timeline li { position: relative; padding: 0 0 17px 22px; }
.result-timeline li:last-child { padding-bottom: 0; }
.result-timeline li:not(:last-child)::before { position: absolute; left: 5px; top: 9px; bottom: -9px; width: 1px; background: #d8e1d7; content: ''; }
.timeline-dot { position: absolute; z-index: 1; top: 6px; left: 1px; width: 9px; height: 9px; background: #577561; border-radius: 50%; }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .87rem; }
.timeline-meta time { color: var(--muted); font-size: .79rem; }
.result-timeline p { color: var(--muted); font-size: .88rem; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (min-width: 1500px) {
  .shell { grid-template-columns: 244px minmax(0, 1fr); }
  .hero { min-height: 249px; }
  .hero-compact { min-height: 180px; }
}

@media (max-width: 1050px) {
  .shell { grid-template-columns: 191px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; }
  .workspace, .topbar-inner { padding-inline: 26px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr) minmax(211px, 30%); gap: 15px; }
  .application-form, .panel-heading { padding-inline: 19px; }
  .process-card, .lookup-card { padding-inline: 17px; }
}

@media (max-width: 910px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .form-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 13px 17px 10px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: 0; gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  .brand-text strong { font-size: 1.15rem; }
  .brand-text small { font-size: .67rem; margin-top: 1px; }
  .side-nav { flex-flow: row wrap; align-items: center; gap: 4px; margin-top: 8px; }
  .nav-caption { display: none; }
  .nav-admin { padding: 0; margin: 0 0 0 auto; border: 0; }
  .nav-link { padding-inline: 8px; gap: 4px; font-size: .8rem; }
  .nav-link svg { width: 17px; height: 17px; }
  .topbar { display: none; }
  .workspace { padding: 17px 16px 33px; }
  .hero { min-height: 160px; }
  .hero-copy { padding: 21px 19px; }
  .hero-rule { margin-bottom: 14px; }
  .hero h1 { font-size: 2.03rem; }
  .hero p { max-width: 16em; margin-top: 9px; font-size: .89rem; }
  .hero-image { width: 61%; opacity: .82; object-position: 48% center; mask-image: linear-gradient(to right, transparent 0%, transparent 9%, #000 66%); }
  .hero-compact p { max-width: none; }
  .workspace-grid { margin-top: 15px; }
}

@media (max-width: 460px) {
  .side-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-link { justify-content: center; padding-inline: 3px; white-space: nowrap; }
  .nav-admin { margin: 0; }
  .form-grid, .form-aside { grid-template-columns: minmax(0, 1fr); }
  .form-grid { gap: 15px; }
  .hero-copy { padding-right: 10px; }
  .hero-illustrated p { max-width: 14em; }
  .receipt, .lookup-result { padding-inline: 17px; }
  .receipt-details { grid-template-columns: minmax(0, 1fr); }
  .field input:not([type='radio']), .field textarea, .field select { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
