/* Two visible dots share one generous touch target; one press changes theme. */
.theme-toggle {
  flex: 0 0 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 64px;
  height: 44px;
  padding: 0;
  border: 1px solid #b8bbc2;
  border-radius: 24px;
  background: #e9e9ed;
  cursor: pointer;
  color: #222;
}
.theme-dot {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #90939b;
  position: relative;
}
.theme-dot-dark {
  background: #16171a;
}
.theme-dot-light {
  background: #fff;
}
html[data-theme='dark'] .theme-dot-dark,
html[data-theme='light'] .theme-dot-light {
  outline: 2px solid #d66b00;
  outline-offset: 3px;
}

html{color-scheme:light}html[data-theme="dark"]{color-scheme:dark;--portal-text-0:#e3edf8;--portal-text-1:#e3edf8;--portal-text-2:#e3edf8;--portal-text-3:#e3edf8;--portal-text-4:#e3edf8;--portal-text-5:#e3edf8;--portal-text-6:#e3edf8;--portal-muted-0:#a6b7cc;--portal-muted-1:#a6b7cc;--portal-muted-2:#a6b7cc;--portal-muted-3:#a6b7cc;--portal-muted-4:#a6b7cc;--portal-muted-5:#a6b7cc;--portal-muted-6:#a6b7cc;--portal-muted-7:#a6b7cc;--portal-muted-8:#a6b7cc;--portal-muted-9:#a6b7cc;--portal-muted-10:#a6b7cc;--portal-canvas-0:#0e1725;--portal-surface-0:#172334;--portal-soft-0:#202f43;--portal-soft-1:#202f43;--portal-soft-2:#202f43;--portal-soft-3:#202f43;--portal-soft-4:#202f43;--portal-soft-5:#202f43;--portal-soft-6:#202f43;--portal-soft-7:#202f43;--portal-soft-8:#202f43;--portal-selected-0:#203b5b;--portal-selected-1:#203b5b;--portal-selected-2:#203b5b;--portal-selected-3:#203b5b;--portal-line-0:#34465b;--portal-line-1:#34465b;--portal-line-2:#34465b;--portal-line-3:#34465b;--portal-line-4:#34465b;--portal-line-5:#34465b;--portal-line-6:#34465b;--portal-line-7:#34465b;--portal-line-8:#34465b;--portal-line-9:#34465b;--portal-info-0:#b8d8ff;--portal-info-1:#b8d8ff;--portal-dangerbg-0:#452827;--portal-danger-0:#ffb0a8;--portal-danger-1:#ffb0a8;--portal-danger-2:#ffb0a8;--portal-success-0:#83dfb5;--portal-success-1:#83dfb5;--portal-successbg-0:#173c32;--portal-successbg-1:#173c32;--portal-warning-0:#f8cf85;--portal-warningbg-0:#40331d}

.theme-toggle{position:fixed;right:24px;top:16px;z-index:4}
.top-right{padding-right:78px}
.auth-panel{padding-top:76px}
.theme-toggle:focus-visible{outline:3px solid #3985ef;outline-offset:4px}
html[data-theme="dark"] :is(input,select,textarea,dialog){color:var(--portal-text-0);background-color:var(--portal-surface-0);border-color:var(--line)}
html[data-theme="dark"] :is(a:not(.primary):not(.secondary),.tabs button.active,.nav button.active){color:#83bbff}
html[data-theme="dark"] .brand-logo{background:transparent}

html.theme-changing,html.theme-changing body,html.theme-changing :is(.top,.sidebar,.card,.dialog,dialog,.auth-panel,.nav button,input,select,textarea,th,td,.note,.secondary,.badge,.theme-toggle){transition:background-color .4s ease,color .4s ease,border-color .4s ease}
.statement-sheet{color-scheme:light}
@media(max-width:700px){.theme-toggle{right:12px;top:11px;width:60px}.top-right{gap:8px;padding-right:68px}.auth-panel{padding-top:30px}.intro{padding-right:88px}}
@media(prefers-reduced-motion:reduce){html.theme-changing,html.theme-changing *{transition:none!important}}
@media print{.theme-toggle{display:none!important}html{color-scheme:light}}

.statement-sheet{--portal-text-0:#172c43;--portal-text-1:#254465;--portal-text-2:#163b66;--portal-text-3:#19324f;--portal-text-4:#42546d;--portal-text-5:#526176;--portal-text-6:#475569;--portal-muted-0:#62748a;--portal-muted-1:#73859b;--portal-muted-2:#50647c;--portal-muted-3:#657890;--portal-muted-4:#6b7e93;--portal-muted-5:#526982;--portal-muted-6:#6a7d92;--portal-muted-7:#70849b;--portal-muted-8:#73879e;--portal-muted-9:#64748b;--portal-muted-10:#6a7179;--portal-canvas-0:#f3f6fa;--portal-surface-0:#fff;--portal-soft-0:#f2f5f8;--portal-soft-1:#eaf0f7;--portal-soft-2:#edf1f7;--portal-soft-3:#f5f7fa;--portal-soft-4:#f0f3f8;--portal-soft-5:#eef2f6;--portal-soft-6:#f3f6fb;--portal-soft-7:#e7e9ec;--portal-soft-8:#f2f6fa;--portal-selected-0:#edf4ff;--portal-selected-1:#f4f8fe;--portal-selected-2:#eef4fb;--portal-selected-3:#f0f6ff;--portal-line-0:#dce4ee;--portal-line-1:#cbd6e3;--portal-line-2:#d3e4fc;--portal-line-3:#e7edf4;--portal-line-4:#d8dfe8;--portal-line-5:#b6c8db;--portal-line-6:#d5e3f8;--portal-line-7:#d6e1f0;--portal-line-8:#dce5ef;--portal-line-9:#d2d7dd;--portal-info-0:#385b86;--portal-info-1:#1262b3;--portal-dangerbg-0:#fff0ef;--portal-danger-0:#b23b33;--portal-danger-1:#af3028;--portal-danger-2:#a93e36;--portal-success-0:#137153;--portal-success-1:#047857;--portal-successbg-0:#e7f5ed;--portal-successbg-1:#d1fae5;--portal-warning-0:#966009;--portal-warningbg-0:#fff3d9}
@media print{:root{--portal-text-0:#172c43;--portal-text-1:#254465;--portal-text-2:#163b66;--portal-text-3:#19324f;--portal-text-4:#42546d;--portal-text-5:#526176;--portal-text-6:#475569;--portal-muted-0:#62748a;--portal-muted-1:#73859b;--portal-muted-2:#50647c;--portal-muted-3:#657890;--portal-muted-4:#6b7e93;--portal-muted-5:#526982;--portal-muted-6:#6a7d92;--portal-muted-7:#70849b;--portal-muted-8:#73879e;--portal-muted-9:#64748b;--portal-muted-10:#6a7179;--portal-canvas-0:#f3f6fa;--portal-surface-0:#fff;--portal-soft-0:#f2f5f8;--portal-soft-1:#eaf0f7;--portal-soft-2:#edf1f7;--portal-soft-3:#f5f7fa;--portal-soft-4:#f0f3f8;--portal-soft-5:#eef2f6;--portal-soft-6:#f3f6fb;--portal-soft-7:#e7e9ec;--portal-soft-8:#f2f6fa;--portal-selected-0:#edf4ff;--portal-selected-1:#f4f8fe;--portal-selected-2:#eef4fb;--portal-selected-3:#f0f6ff;--portal-line-0:#dce4ee;--portal-line-1:#cbd6e3;--portal-line-2:#d3e4fc;--portal-line-3:#e7edf4;--portal-line-4:#d8dfe8;--portal-line-5:#b6c8db;--portal-line-6:#d5e3f8;--portal-line-7:#d6e1f0;--portal-line-8:#dce5ef;--portal-line-9:#d2d7dd;--portal-info-0:#385b86;--portal-info-1:#1262b3;--portal-dangerbg-0:#fff0ef;--portal-danger-0:#b23b33;--portal-danger-1:#af3028;--portal-danger-2:#a93e36;--portal-success-0:#137153;--portal-success-1:#047857;--portal-successbg-0:#e7f5ed;--portal-successbg-1:#d1fae5;--portal-warning-0:#966009;--portal-warningbg-0:#fff3d9}}

/* Keep the original transparent logo; brighten only its Korean caption. */
.portal-logo{display:block;position:relative;line-height:0}
.brand-logo .portal-logo-caption{display:none;position:absolute;inset:0;width:100%;height:100%;clip-path:inset(72% 0 0);filter:brightness(0) invert(1)}
@media screen{html[data-theme="dark"] .portal-logo>img:first-child{clip-path:inset(0 0 28% 0)}html[data-theme="dark"] .brand-logo .portal-logo-caption{display:block}}

/* EOJIN identity: the logo's orange O, shared with the corporate website. */
@media screen {
 :root {--brand-orange:#ef8000;--brand-hover:#ff981f;--blue:#a95000;--portal-canvas-0:#f7f6f4;--portal-surface-0:#fff;
 --portal-text-0:#292622;--portal-text-1:#423a32;--portal-text-2:#3d3127;--portal-text-3:#352d26;--portal-text-4:#554c43;--portal-text-5:#62594f;--portal-text-6:#62594f;
 --portal-muted-0:#71675d;--portal-muted-1:#786e63;--portal-muted-2:#665c52;--portal-muted-3:#71675d;--portal-muted-4:#71675d;--portal-muted-5:#71675d;--portal-muted-6:#71675d;--portal-muted-7:#71675d;--portal-muted-8:#71675d;--portal-muted-9:#71675d;--portal-muted-10:#71675d;
 --portal-soft-0:#f4f2ef;--portal-soft-1:#f1ede8;--portal-soft-2:#f2efeb;--portal-soft-3:#f8f6f3;--portal-soft-4:#f5f2ee;--portal-soft-5:#f3efea;--portal-soft-6:#f8f5f1;--portal-soft-7:#ede9e4;--portal-soft-8:#f6f2ed;
 --portal-selected-0:#fff0dd;--portal-selected-1:#fff8ef;--portal-selected-2:#fff2e2;--portal-selected-3:#fff5e8;
 --portal-line-0:#e3dcd3;--portal-line-1:#c9bdae;--portal-line-2:#edcba4;--portal-line-3:#eee7df;--portal-line-4:#e0d8ce;--portal-line-5:#cabbab;--portal-line-6:#efd4b5;--portal-line-7:#e8d6c1;--portal-line-8:#e7ded3;--portal-line-9:#d9d1c7;--portal-info-0:#80501d;--portal-info-1:#a95000;
 }
 html[data-theme="dark"] {--blue:#ff9b32;--portal-canvas-0:#171614;--portal-surface-0:#22201d;
 --portal-text-0:#f4eee7;--portal-text-1:#f4eee7;--portal-text-2:#f4eee7;--portal-text-3:#f4eee7;--portal-text-4:#e1d8ce;--portal-text-5:#e1d8ce;--portal-text-6:#e1d8ce;
 --portal-muted-0:#bfb3a6;--portal-muted-1:#bfb3a6;--portal-muted-2:#bfb3a6;--portal-muted-3:#bfb3a6;--portal-muted-4:#bfb3a6;--portal-muted-5:#bfb3a6;--portal-muted-6:#bfb3a6;--portal-muted-7:#bfb3a6;--portal-muted-8:#bfb3a6;--portal-muted-9:#bfb3a6;--portal-muted-10:#bfb3a6;
 --portal-soft-0:#302b25;--portal-soft-1:#302b25;--portal-soft-2:#302b25;--portal-soft-3:#302b25;--portal-soft-4:#302b25;--portal-soft-5:#302b25;--portal-soft-6:#302b25;--portal-soft-7:#302b25;--portal-soft-8:#302b25;
 --portal-selected-0:#49311b;--portal-selected-1:#34291e;--portal-selected-2:#40301f;--portal-selected-3:#40301f;
 --portal-line-0:#4b4136;--portal-line-1:#776653;--portal-line-2:#74502c;--portal-line-3:#443a31;--portal-line-4:#4b4136;--portal-line-5:#665340;--portal-line-6:#6b4c2d;--portal-line-7:#574432;--portal-line-8:#4b4136;--portal-line-9:#4b4136;--portal-info-0:#f4c591;--portal-info-1:#ff9b32;
 }
 .primary {background:var(--brand-orange);color:#251b12}
 .primary:not(:disabled):hover {background:var(--brand-hover)}
 .brand em,.intro li:before {color:var(--brand-orange)}
 .intro {background:#24211e;background-image:radial-gradient(ellipse at 0% 100%,#613d1e 0%,transparent 65%)}
 .intro p,.intro ul {color:#e3d6c8}.intro footer,.intro .tag {color:#c6b5a3}
 .hero {background:#47301d}.hero p {color:#eed9c0}.hero .badge {background:#6e451f;color:#fff2e2}
 .form input:focus,.form select:focus,.theme-toggle:focus-visible {outline-color:var(--brand-orange)}
 :is(input,select,textarea,button,a):focus-visible {outline-color:var(--brand-orange)}
 input[type=checkbox],input[type=radio] {accent-color:var(--blue)}
 html[data-theme="dark"] :is(a:not(.primary):not(.secondary),.tabs button.active,.nav button.active) {color:var(--blue)}
 .shipment-number,.mill-wait,details[data-number] summary[aria-busy="true"]::after {color:var(--blue)}
 .mill-spinner {border-top-color:var(--brand-orange)}
 #toast,.fax-info [role=tooltip] {background:#352c23}
 .modal {background:#211b1599}.order-picker::backdrop {background:#211b1588}.fax-dialog::backdrop {background:#211b1599}
}
@media screen {
 .intro .portal-logo>img:first-child {clip-path:inset(0 0 28% 0)}
 .intro .brand-logo .portal-logo-caption {display:block;filter:brightness(0) invert(.88)}
}
@media screen {html[data-theme="dark"] a.primary {color:#251b12}}

/* Links presented as actions must keep button contrast in either theme. */
@media screen {
 html[data-theme] a.primary {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:var(--brand-orange);color:#251b12;text-decoration:none;line-height:1.5;text-align:center}
 html[data-theme] a.primary:not(:disabled):hover {background:var(--brand-hover);color:#251b12}
 html[data-theme] a.secondary {color:var(--portal-text-1);background:var(--portal-soft-1);text-decoration:none}
 html[data-theme] a.manual-download {color:var(--portal-text-0);background:var(--portal-soft-1);border-color:var(--portal-line-1);line-height:1.5;min-height:44px}
 html[data-theme] a.manual-download:hover {color:var(--portal-text-0);background:var(--portal-selected-0);border-color:var(--blue)}
 html[data-theme] :is(a.primary,a.secondary,a.manual-download):focus-visible {outline:3px solid var(--blue);outline-offset:3px}
}
