:root {
  color: #17262e;
  background: #f3f6f8;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  --teal-900: #0c5f5a;
  --teal-800: #0f746e;
  --teal-700: #137f79;
  --teal-600: #188f87;
  --teal-500: #1c9b93;
  --teal-100: #d9f2ef;
  --teal-50: #edf9f8;
  --ink-900: #17262e;
  --ink-800: #263943;
  --ink-700: #425761;
  --ink-600: #5d7079;
  --ink-500: #778890;
  --ink-400: #9aa8ae;
  --ink-300: #c7d1d6;
  --ink-200: #dce4e8;
  --ink-100: #edf1f3;
  --ink-50: #f7f9fa;
  --white: #ffffff;
  --green: #16845d;
  --green-soft: #e6f6ef;
  --amber: #9a6615;
  --amber-soft: #fff3d9;
  --red: #bc3d48;
  --red-soft: #fdebed;
  --blue: #2b6fb0;
  --blue-soft: #e8f2fc;
  --violet: #6650a4;
  --violet-soft: #f0ebfb;
  --shadow-sm: 0 1px 2px rgba(25, 47, 57, 0.06), 0 3px 12px rgba(25, 47, 57, 0.04);
  --shadow-md: 0 16px 45px rgba(17, 54, 61, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: #f3f6f8; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, select { outline: none; }
:focus-visible { outline: 3px solid rgba(28, 155, 147, 0.32); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
button { color: inherit; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: -60px; padding: 10px 16px; border-radius: 8px; color: white; background: var(--teal-900); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }
.icon { display: block; flex: 0 0 auto; }

.brand { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.brand__symbol-frame { position: relative; display: block; width: 82px; height: 64px; overflow: hidden; }
.brand__symbol-frame img { position: absolute; width: 310px; max-width: none; height: auto; left: -8px; top: -20px; }
.brand--inverse { padding: 10px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 7px 24px rgba(8,45,43,.14); }
.brand--primary { color: var(--ink-900); }

.login-brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--ink-100); }
.login-brand > span { color: var(--ink-500); font-size: .78rem; font-weight: 750; text-align: right; }

.badge { display: inline-flex; min-height: 25px; align-items: center; justify-content: center; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; font-size: .78rem; font-weight: 750; line-height: 1.15; white-space: nowrap; }
.badge--neutral { background: var(--ink-100); color: var(--ink-700); }
.badge--success { background: var(--green-soft); color: var(--green); }
.badge--warning { background: var(--amber-soft); color: var(--amber); }
.badge--danger { background: var(--red-soft); color: var(--red); }
.badge--info { background: var(--blue-soft); color: var(--blue); }
.badge--violet { background: var(--violet-soft); color: var(--violet); }
.badge--test { background: var(--teal-100); color: var(--teal-800); }
.badge--dark { background: rgba(8, 57, 55, .7); color: #eafffd; border-color: rgba(255,255,255,.16); }
.badge--light { color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }

.access-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 46%) 1fr; background: var(--white); }
.access-visual { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px 48px; color: white; background: linear-gradient(150deg, #0c615d 0%, #117f77 46%, #0f6c68 100%); }
.access-visual::before, .access-visual::after { position: absolute; content: ""; pointer-events: none; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.access-visual::before { width: 560px; height: 560px; right: -220px; top: -160px; }
.access-visual::after { width: 370px; height: 370px; left: -170px; bottom: -140px; }
.access-visual__top, .access-visual__status { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.access-visual__status { justify-content: flex-start; flex-wrap: wrap; }
.access-visual__content { position: relative; z-index: 1; max-width: 620px; padding-bottom: 5vh; }
.access-visual__content h1 { margin: 10px 0 22px; font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1.12; letter-spacing: -.055em; }
.access-visual__content p:last-child { max-width: 530px; color: #d6f2ef; font-size: 1.05rem; line-height: 1.8; }
.eyebrow { margin: 0 0 9px; color: #b9e9e4; font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.eyebrow--teal { color: var(--teal-700); }
.access-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 42px clamp(34px, 6vw, 90px); background: white; }
.access-panel__body { width: min(100%, 560px); margin: 52px auto 0; }
.access-panel__body--login { margin-top: 0; }
.prototype-note { margin: 32px auto 0; color: var(--ink-500); font-size: .8rem; text-align: center; }
.stepper { display: grid; width: min(100%, 620px); grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 auto; padding: 0; list-style: none; }
.stepper__item { position: relative; display: flex; align-items: center; gap: 7px; color: var(--ink-500); font-size: .79rem; font-weight: 700; }
.stepper__item::after { position: absolute; z-index: 0; right: 12px; left: 40px; top: 14px; height: 1px; content: ""; background: var(--ink-200); transform: translateX(12%); }
.stepper__item:last-child::after { display: none; }
.stepper__number { position: relative; z-index: 1; display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid var(--ink-200); border-radius: 50%; background: white; font-size: .74rem; }
.stepper__item.is-current { color: var(--teal-800); }
.stepper__item.is-current .stepper__number { border-color: var(--teal-500); color: white; background: var(--teal-500); }
.stepper__item.is-done { color: var(--ink-700); }
.stepper__item.is-done .stepper__number { border-color: var(--teal-100); color: var(--teal-700); background: var(--teal-100); }
.form-heading h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.2; letter-spacing: -.04em; }
.form-heading > p:last-child { color: var(--ink-600); }
.heading-badges { display: flex; gap: 7px; margin-bottom: 16px; }
.login-form, .selection-form { display: grid; gap: 18px; margin-top: 34px; }
.field { display: grid; gap: 8px; color: var(--ink-800); font-size: .88rem; font-weight: 700; }
.field input { height: 52px; padding: 0 15px; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background: white; color: var(--ink-900); }
.field input:hover { border-color: var(--ink-300); }
.field input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
.field input[aria-invalid="true"] { border-color: #e29aa1; }
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 52px; }
.password-toggle { position: absolute; right: 7px; top: 7px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 7px; color: var(--ink-600); background: transparent; }
.password-toggle:hover { color: var(--teal-800); background: var(--teal-50); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-700); font-size: .85rem; }
.check input { width: 17px; height: 17px; accent-color: var(--teal-600); }
.helper { color: var(--ink-500); font-size: .78rem; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .86rem; font-weight: 800; transition: transform .15s, background .15s, border-color .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--wide { width: 100%; min-height: 52px; }
.button--primary { color: white; background: var(--teal-700); }
.button--primary:hover { background: var(--teal-800); }
.button--ghost { border-color: var(--ink-200); background: white; color: var(--ink-700); }
.button--soft { border-color: #cfe8e5; background: var(--teal-50); color: var(--teal-800); }
.button:disabled { opacity: .68; transform: none; }
.button-row { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.login-submit__busy { display: none; align-items: center; gap: 8px; }
.login-form.is-busy .login-submit__idle { display: none; }
.login-form.is-busy .login-submit__busy { display: inline-flex; }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.42); border-top-color: white; border-radius: 50%; animation: spin .75s linear infinite; }
.login-message { display: flex; align-items: flex-start; gap: 9px; margin-bottom: -2px; padding: 12px 13px; border: 1px solid #f2c9cd; border-radius: var(--radius-sm); color: #9d2d38; background: var(--red-soft); font-size: .82rem; font-weight: 700; }
.login-message--locked { color: #754b13; border-color: #efd18c; background: var(--amber-soft); }
.security-callout, .selection-warning { display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; border-radius: var(--radius-sm); background: var(--ink-50); color: var(--ink-700); font-size: .82rem; }
.security-callout strong { color: var(--ink-900); }
.security-callout p { margin: 2px 0 0; color: var(--ink-600); }
.selection-warning { background: var(--amber-soft); color: #785115; }
.selection-form fieldset { margin: 0; padding: 0; border: 0; }
.option-list { display: grid; gap: 12px; }
.option-card { position: relative; display: grid; grid-template-columns: 46px 1fr 22px; gap: 14px; align-items: center; min-height: 108px; padding: 16px 17px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.option-card:hover { border-color: #9fcac6; transform: translateY(-1px); }
.option-card.is-selected { border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
.option-card input { position: absolute; opacity: 0; }
.option-card__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; color: var(--teal-800); background: var(--teal-50); }
.option-card__copy { display: grid; gap: 4px; }
.option-card__copy strong { font-size: 1rem; }
.option-card__copy small { color: var(--ink-600); font-size: .82rem; }
.option-card__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.option-card__check { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid var(--ink-200); border-radius: 50%; color: transparent; }
.option-card.is-selected .option-card__check { border-color: var(--teal-500); color: white; background: var(--teal-500); }

.modal-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(12, 31, 35, .62); backdrop-filter: blur(5px); }
.context-modal { width: min(920px, 100%); max-height: calc(100vh - 56px); overflow: auto; padding: 28px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-lg); background: white; box-shadow: 0 28px 80px rgba(7, 31, 36, .3); }
.context-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 21px; border-bottom: 1px solid var(--ink-100); }
.context-modal__head h2 { margin: 11px 0 7px; font-size: 1.65rem; letter-spacing: -.035em; }
.context-modal__head p { margin: 0; color: var(--ink-600); font-size: .9rem; }
.context-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; padding-top: 22px; }
.context-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.context-form legend { margin-bottom: 10px; color: var(--ink-800); font-size: .86rem; font-weight: 850; }
.option-list--compact .option-card { min-height: 92px; grid-template-columns: 42px 1fr 21px; padding: 13px 14px; }
.option-list--compact .option-card__icon { width: 42px; height: 42px; }
.context-form .selection-warning, .context-form .button-row { grid-column: 1 / -1; }
.signed-in-card { text-align: center; }
.signed-in-card__icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.signed-in-card h2 { margin: 7px 0 10px; font-size: 2rem; letter-spacing: -.04em; }
.signed-in-card > p:not(.eyebrow) { color: var(--ink-600); }
.signed-in-card > div { display: flex; justify-content: center; gap: 6px; }

@keyframes spin { to { transform: rotate(360deg); } }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); background: #f3f6f8; }
.sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; display: flex; width: 240px; flex-direction: column; border-right: 1px solid #d8e3e6; color: #d9efed; background: #15383c; }
.sidebar__brand { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); color: white; }
.sidebar__brand .brand { padding: 8px 10px; border-radius: 10px; }
.sidebar__brand .brand__symbol-frame { width: 58px; height: 46px; }
.sidebar__brand .brand__symbol-frame img { width: 224px; left: -6px; top: -15px; }
.sidebar__close { display: none !important; color: white; }
.nav-list { display: grid; gap: 4px; padding: 20px 12px; }
.nav-item { position: relative; display: flex; width: 100%; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 8px; color: #bdd3d2; background: transparent; font-size: .88rem; font-weight: 700; text-align: left; }
.nav-item:hover { color: white; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: white; background: #1c6e6c; }
.nav-item.is-active::before { position: absolute; left: -12px; width: 3px; height: 24px; border-radius: 0 3px 3px 0; content: ""; background: #5bd1c8; }
.nav-count { display: grid; min-width: 21px; height: 21px; place-items: center; margin-left: auto; border-radius: 999px; color: white; background: var(--red); font-size: .7rem; font-style: normal; }
.sidebar__footer { display: grid; gap: 7px; margin-top: auto; padding: 14px 12px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.demo-card { display: grid; gap: 2px; margin: 0 8px 8px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.04); }
.demo-card strong { color: white; font-size: .78rem; }
.demo-card span { color: #9cb8b7; font-size: .72rem; }
.sidebar-scrim { display: none; }
.workspace { min-width: 0; grid-column: 2; }
.topbar { position: sticky; z-index: 40; top: 0; display: grid; min-height: 72px; grid-template-columns: minmax(150px, 1fr) auto minmax(250px, 1fr); align-items: center; gap: 20px; padding: 10px 24px; border-bottom: 1px solid var(--ink-200); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.topbar__start, .topbar__end, .context-badges { display: flex; align-items: center; }
.topbar__start { gap: 10px; }
.topbar__start p { margin: 0; color: var(--ink-500); font-size: .7rem; }
.topbar__start strong { font-size: .94rem; }
.context-badges { justify-content: center; flex-wrap: wrap; gap: 6px; }
.topbar__end { justify-content: flex-end; gap: 9px; }
.mobile-menu { display: none !important; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 8px; background: transparent; }
.icon-button:hover { background: var(--ink-100); }
.site-selector select, .select-wrap select { min-height: 38px; padding: 0 34px 0 11px; border: 1px solid var(--ink-200); border-radius: 8px; color: var(--ink-700); background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d7079' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font-size: .78rem; font-weight: 700; }
.context-button { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--ink-200); border-radius: 8px; background: white; color: var(--ink-700); font-size: .76rem; font-weight: 750; }
.avatar { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; text-align: left; }
.avatar > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: var(--teal-800); background: var(--teal-100); font-size: .78rem; font-weight: 900; }
.avatar div { display: grid; }
.avatar strong { font-size: .75rem; }
.avatar small { color: var(--ink-500); font-size: .68rem; }
.preview-banner, .prod-banner { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 20px; padding: 7px 24px; font-size: .78rem; }
.preview-banner { color: #225f91; background: var(--blue-soft); border-bottom: 1px solid #cde0f1; }
.preview-banner > div, .prod-banner { display: flex; align-items: center; gap: 8px; }
.preview-banner button { border: 0; color: #225f91; background: transparent; font-weight: 800; text-decoration: underline; }
.prod-banner { justify-content: center; color: #8e2d37; background: var(--red-soft); border-bottom: 1px solid #f3ccd0; }
.content { min-width: 0; padding: 26px 28px 36px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-header h1 { margin: 0; font-size: 1.62rem; line-height: 1.25; letter-spacing: -.04em; }
.page-header p { margin: 6px 0 0; color: var(--ink-600); font-size: .86rem; }
.page-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.summary-card { display: grid; min-height: 112px; grid-template-columns: 45px 1fr; gap: 12px; align-items: center; padding: 17px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.summary-card__icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; }
.summary-card p { margin: 0 0 2px; color: var(--ink-600); font-size: .78rem; font-weight: 700; }
.summary-card strong { display: inline-block; margin-right: 8px; font-size: 1.65rem; letter-spacing: -.04em; }
.summary-card small { color: var(--ink-500); font-size: .7rem; }
.summary-card--teal .summary-card__icon { color: var(--teal-800); background: var(--teal-50); }
.summary-card--green .summary-card__icon { color: var(--green); background: var(--green-soft); }
.summary-card--amber .summary-card__icon { color: var(--amber); background: var(--amber-soft); }
.summary-card--red .summary-card__icon { color: var(--red); background: var(--red-soft); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(280px, .8fr); gap: 18px; margin-bottom: 18px; }
.panel { min-width: 0; padding: 18px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel__heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.panel__heading p { margin: 5px 0 0; color: var(--ink-500); font-size: .75rem; }
.text-button { padding: 5px; border: 0; color: var(--teal-800); background: transparent; font-size: .76rem; font-weight: 800; }
.toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.search-box { display: flex; min-width: 230px; max-width: 380px; flex: 1; align-items: center; gap: 8px; min-height: 38px; padding: 0 11px; border: 1px solid var(--ink-200); border-radius: 8px; color: var(--ink-500); background: var(--ink-50); }
.search-box:focus-within { border-color: var(--teal-500); background: white; }
.search-box input { width: 100%; border: 0; color: var(--ink-800); background: transparent; font-size: .78rem; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .77rem; white-space: nowrap; }
th { padding: 10px 12px; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-200); color: var(--ink-500); background: var(--ink-50); font-size: .7rem; font-weight: 800; text-align: left; }
td { padding: 12px; border-bottom: 1px solid var(--ink-100); color: var(--ink-700); }
tbody tr:hover { background: #fbfdfd; }
td strong { color: var(--ink-900); }
td small { display: block; margin-top: 3px; color: var(--ink-500); font-size: .68rem; }
.freshness { color: var(--ink-600); }
.freshness.is-stale { color: var(--red); font-weight: 800; }
.table-action { min-height: 30px; padding: 0 10px; border: 1px solid #b7ddd9; border-radius: 6px; color: var(--teal-800); background: var(--teal-50); font-size: .72rem; font-weight: 800; }
.table-action:disabled { border-color: var(--ink-200); color: var(--ink-400); background: var(--ink-100); }
.alarm-list { display: grid; gap: 2px; }
.alarm-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--ink-100); }
.alarm-item:last-child { border-bottom: 0; }
.alarm-item strong { font-size: .82rem; }
.alarm-item p { margin: 2px 0; color: var(--ink-600); font-size: .74rem; }
.alarm-item small { color: var(--ink-500); font-size: .68rem; }
.alarm-level { display: inline-flex; align-self: start; min-width: 39px; justify-content: center; padding: 4px 7px; border-radius: 5px; font-size: .68rem; font-weight: 900; }
.alarm-level--danger { color: var(--red); background: var(--red-soft); }
.alarm-level--warning { color: var(--amber); background: var(--amber-soft); }
.alarm-level--info { color: var(--blue); background: var(--blue-soft); }
.health-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 14px 18px; }
.health-strip > div { display: grid; grid-template-columns: 33px 1fr; align-items: center; padding: 4px 17px; border-right: 1px solid var(--ink-100); }
.health-strip > div:last-child { border: 0; }
.health-strip strong, .health-strip small { grid-column: 2; }
.health-strip strong { font-size: .76rem; }
.health-strip small { color: var(--ink-500); font-size: .68rem; }
.health-icon { grid-row: 1 / span 2; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; }
.health-icon--ok { color: var(--green); background: var(--green-soft); }
.health-icon--warn { color: var(--amber); background: var(--amber-soft); }
.alarm-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.alarm-card { padding: 16px; border: 1px solid var(--ink-200); border-radius: 10px; }
.alarm-card__top { display: flex; align-items: center; justify-content: space-between; }
.alarm-card h3 { margin: 15px 0 4px; font-size: .95rem; }
.alarm-card > p { color: var(--ink-600); font-size: .78rem; }
.alarm-card dl { display: grid; gap: 7px; margin: 14px 0; padding: 11px; border-radius: 7px; background: var(--ink-50); }
.alarm-card dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .7rem; }
.alarm-card dt { color: var(--ink-500); }
.alarm-card dd { margin: 0; color: var(--ink-700); }
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.device-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--ink-200); border-radius: 10px; }
.device-card__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; color: var(--teal-800); background: var(--teal-50); }
.device-card h3 { margin: 0 0 3px; font-size: .9rem; }
.device-card p { margin: 0 0 3px; color: var(--ink-600); font-size: .74rem; }
.device-card small { color: var(--ink-500); font-size: .68rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.setting-card { display: grid; min-height: 130px; grid-template-columns: 45px 1fr auto; gap: 14px; align-items: start; padding: 19px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); text-align: left; }
.setting-card > span { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; color: var(--teal-800); background: var(--teal-50); }
.setting-card h2 { margin: 0 0 7px; font-size: 1rem; }
.setting-card p { margin: 0 0 10px; color: var(--ink-600); font-size: .77rem; }
.boundary-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.boundary-panel > div { display: flex; align-items: flex-start; gap: 12px; }
.boundary-panel h2 { margin: 0 0 5px; font-size: .98rem; }
.boundary-panel p, .boundary-panel li { color: var(--ink-600); font-size: .76rem; }
.boundary-panel ul { display: grid; gap: 5px; margin: 0; padding-left: 20px; }
.empty-state { display: grid; max-width: 540px; min-height: 440px; place-items: center; align-content: center; gap: 10px; margin: 0 auto; text-align: center; }
.empty-state > .icon { color: var(--teal-700); }
.empty-state h1 { margin: 5px 0 0; font-size: 1.35rem; }
.empty-state p { color: var(--ink-600); }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 16px; border-radius: 9px; color: white; background: #183a3e; box-shadow: var(--shadow-md); font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { width: 78px; }
  .sidebar__brand { padding: 0; justify-content: center; }
  .nav-item span, .demo-card, .sidebar__footer .nav-item span { display: none; }
  .sidebar__brand .brand { padding: 7px; }
  .sidebar__brand .brand__symbol-frame { width: 46px; height: 38px; }
  .sidebar__brand .brand__symbol-frame img { width: 186px; left: -5px; top: -12px; }
  .nav-list, .sidebar__footer { padding-right: 9px; padding-left: 9px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item.is-active::before { left: -9px; }
  .nav-count { position: absolute; top: 4px; right: 5px; min-width: 17px; height: 17px; font-size: .58rem; }
  .workspace { grid-column: 2; }
  .topbar { grid-template-columns: 150px 1fr auto; padding-right: 18px; padding-left: 18px; }
  .site-selector, .avatar div { display: none; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .alarm-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .alarm-item { border: 1px solid var(--ink-100); border-radius: 8px; padding: 12px; }
}

@media (max-width: 900px) {
  .access-shell { grid-template-columns: 1fr; }
  .access-visual { min-height: 270px; padding: 28px 32px; }
  .access-visual__content { padding: 35px 0 20px; }
  .access-visual__content h1 { font-size: 2.25rem; }
  .access-panel { padding: 36px 28px; }
  .context-modal { padding: 24px; }
  .context-form { grid-template-columns: 1fr; }
  .context-form .selection-warning, .context-form .button-row { grid-column: 1; }
  .app-shell { display: block; }
  .sidebar { width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s; }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open .sidebar-scrim { position: fixed; z-index: 50; inset: 0; display: block; border: 0; background: rgba(13, 30, 35, .46); }
  .sidebar__brand { justify-content: space-between; padding: 0 18px; }
  .sidebar__brand .brand__symbol-frame { width: 58px; height: 46px; }
  .sidebar__brand .brand__symbol-frame img { width: 224px; left: -6px; top: -15px; }
  .nav-item span, .sidebar__footer .nav-item span, .demo-card { display: initial; }
  .sidebar__brand .brand { display: flex; }
  .sidebar__close { display: grid !important; }
  .nav-item { justify-content: flex-start; padding: 0 12px; }
  .nav-count { position: static; min-width: 21px; height: 21px; margin-left: auto; font-size: .7rem; }
  .workspace { min-height: 100vh; }
  .topbar { grid-template-columns: 1fr auto; }
  .mobile-menu { display: grid !important; }
  .context-badges { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-top: 6px; border-top: 1px solid var(--ink-100); }
  .topbar__end .context-button { display: none; }
  .content { padding: 22px 18px 30px; }
  .health-strip { grid-template-columns: repeat(2, 1fr); }
  .health-strip > div:nth-child(2) { border-right: 0; }
  .alarm-board, .device-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .access-visual { min-height: 240px; padding: 22px; }
  .access-visual__top { align-items: flex-start; }
  .access-visual__top .badge { display: none; }
  .access-visual__content h1 { font-size: 1.85rem; }
  .access-visual__content p:last-child { font-size: .9rem; }
  .access-panel { padding: 28px 20px; }
  .login-brand { align-items: flex-start; margin-bottom: 28px; }
  .login-brand > span { max-width: 130px; }
  .stepper__item { justify-content: center; }
  .stepper__item span:last-child { display: none; }
  .stepper__item::after { left: 50%; right: -50%; transform: none; }
  .access-panel__body { margin-top: 34px; }
  .access-panel__body--login { margin-top: 0; }
  .modal-backdrop { align-items: end; padding: 0; }
  .context-modal { width: 100%; max-height: 94vh; padding: 22px 18px; border-radius: 20px 20px 0 0; }
  .context-modal__head h2 { font-size: 1.4rem; }
  .form-row { align-items: flex-start; flex-direction: column; }
  .button-row .button { flex: 1; }
  .topbar { gap: 9px; padding: 9px 14px; }
  .topbar__end { gap: 4px; }
  .avatar > span { width: 33px; height: 33px; }
  .preview-banner, .prod-banner { align-items: flex-start; padding: 8px 14px; }
  .preview-banner { flex-direction: column; gap: 4px; }
  .prod-banner { flex-wrap: wrap; justify-content: flex-start; }
  .page-header { flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; max-width: none; }
  .select-wrap select { width: 100%; }
  .alarm-list { grid-template-columns: 1fr; }
  .health-strip { grid-template-columns: 1fr; }
  .health-strip > div { border-right: 0; border-bottom: 1px solid var(--ink-100); }
  .health-strip > div:last-child { border-bottom: 0; }
  .settings-grid { grid-template-columns: 1fr; }
  .boundary-panel { grid-template-columns: 1fr; }
  .option-card { grid-template-columns: 42px 1fr 20px; padding: 14px; }
}

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