:root {
  color-scheme: light;
  --ink: #1b2731;
  --muted: #82909b;
  --subtle: #aab4bc;
  --line: #e8edf0;
  --surface: #ffffff;
  --canvas: #f5f7f8;
  --navy: #101820;
  --navy-soft: #1a2731;
  --orange: #f27b4b;
  --orange-dark: #d85e31;
  --orange-pale: #fff1eb;
  --green: #2e9b71;
  --green-pale: #e8f6ef;
  --red: #d85757;
  --red-pale: #fff0ef;
  --yellow: #bc8417;
  --yellow-pale: #fff6df;
  --shadow: 0 15px 50px rgba(20, 35, 44, .08);
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1fr) minmax(460px, .92fr); background: white; }
.login-story { position: relative; overflow: hidden; min-height: 100vh; padding: 38px 7.2%; display: flex; flex-direction: column; color: white; background: radial-gradient(ellipse at 74% 77%, rgba(242,123,75,.22), transparent 34%), linear-gradient(143deg, #121e27, #17242c 62%, #101820); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--ink); font-family: Manrope, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .035em; }
.brand-light, .sidebar-brand { color: white; }
.brand-accent { color: var(--orange); }
.brand-mark { width: 31px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border-radius: 9px; background: var(--orange); }
.brand-mark span { width: 3px; border-radius: 5px; background: #fff; }
.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 12px; }
.login-story-copy { z-index: 1; position: relative; max-width: 460px; margin-top: clamp(75px, 12vh, 132px); }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.login-story .eyebrow { color: #aeb9c0; }
.eyebrow-dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242,123,75,.13); }
.login-story h1 { margin: 22px 0 15px; font-family: Manrope, sans-serif; font-size: clamp(43px, 5vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.login-story h1 span { color: var(--orange); }
.login-story-copy p { max-width: 390px; margin: 0; color: #aeb9c0; font-size: 15px; line-height: 1.8; }
.login-art { position: absolute; right: 3%; bottom: 8%; width: min(45vw, 500px); height: min(43vw, 440px); min-width: 300px; min-height: 280px; display: grid; place-items: center; }
.art-orbit { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.orbit-one { width: 74%; height: 74%; }
.orbit-two { width: 94%; height: 94%; }
.art-radio { z-index: 1; position: relative; width: 230px; height: 276px; padding: 30px 25px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 23px; background: linear-gradient(150deg, #283842, #17242c 70%); box-shadow: 12px 30px 50px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.1); transform: rotate(-7deg); }
.art-radio-top { height: 3px; width: 44px; margin: 0 auto 23px; border-radius: 4px; background: #687781; }
.art-radio-screen { height: 72px; padding: 12px 13px; border: 1px solid rgba(242,123,75,.2); border-radius: 10px; background: #101a20; box-shadow: inset 0 0 22px rgba(242,123,75,.08); }
.art-radio-screen span { display: block; color: var(--orange); font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.art-radio-screen i { display: inline-block; width: 4px; margin: 10px 4px 0 0; border-radius: 4px; background: var(--orange); vertical-align: bottom; animation: pulse-bars .8s ease-in-out infinite alternate; }
.art-radio-screen i:nth-of-type(1) { height: 13px; }
.art-radio-screen i:nth-of-type(2) { height: 21px; animation-delay: .2s; }
.art-radio-screen i:nth-of-type(3) { height: 10px; animation-delay: .4s; }
.art-radio-screen i:nth-of-type(4) { height: 17px; animation-delay: .1s; }
.art-radio-speaker { position: absolute; left: 28px; bottom: 21px; width: 116px; height: 116px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 5px, rgba(255,255,255,.1) 6px 7px); }
.art-radio-speaker::after { position: absolute; inset: 36px; border-radius: 50%; background: #273740; content: ""; }
.art-radio-knob { position: absolute; right: 28px; bottom: 53px; width: 34px; height: 34px; border: 4px solid #53616a; border-radius: 50%; background: #1b2931; box-shadow: 0 0 0 3px rgba(0,0,0,.13); }
.art-signal { z-index: 2; position: absolute; width: 10px; height: 10px; border: 2px solid #ffd1bd; border-radius: 50%; background: var(--orange); box-shadow: 0 0 18px rgba(242,123,75,.8); }
.signal-a { top: 19%; left: 24%; }
.signal-b { top: 24%; right: 16%; width: 6px; height: 6px; }
.signal-c { right: 22%; bottom: 17%; width: 7px; height: 7px; }
.login-story-footer { z-index: 1; position: relative; display: flex; justify-content: space-between; margin-top: auto; color: #8d9aa2; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.login-panel { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 50px 9%; }
.login-panel-inner { width: min(100%, 410px); }
.mobile-brand { display: none; margin-bottom: 56px; }
.login-heading { margin-bottom: 34px; }
.login-heading h2 { margin: 10px 0 7px; font-family: Manrope, sans-serif; font-size: 34px; letter-spacing: -.045em; }
.login-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-form { display: flex; flex-direction: column; }
.login-form label, .field-label { margin: 0 0 9px; color: #44535e; font-size: 12px; font-weight: 700; }
.input-wrap { position: relative; margin-bottom: 23px; }
.input-wrap input { width: 100%; height: 52px; padding: 0 48px 0 43px; border: 1px solid #e3e8eb; border-radius: 8px; outline: 0; color: var(--ink); background: #fbfcfc; font-size: 13px; transition: border .2s, box-shadow .2s; }
.input-wrap input:focus, .form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,123,75,.12); }
.input-wrap input::placeholder { color: #a8b2b9; }
.field-icon { position: absolute; top: 50%; left: 15px; color: #9aa6ad; font-size: 19px; transform: translateY(-53%); }
.password-toggle { position: absolute; top: 50%; right: 13px; padding: 5px; border: 0; color: #8a969d; background: transparent; font-size: 11px; font-weight: 700; transform: translateY(-50%); }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; transition: background .18s, border .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--orange); color: white; background: var(--orange); box-shadow: 0 5px 12px rgba(242,123,75,.18); }
.button-primary:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.button-secondary { border-color: var(--line); color: #596873; background: #fff; }
.button-secondary:hover { border-color: #cdd5da; background: #f8fafb; }
.button-danger { border-color: #f4d0cc; color: var(--red); background: var(--red-pale); }
.button-danger:hover { background: #ffe4e1; }
.button-small { min-height: 32px; padding: 0 10px; font-size: 11px; }
.button-icon { min-width: 32px; padding: 0; }
.login-submit { width: 100%; min-height: 52px; justify-content: space-between; margin-top: 3px; padding: 0 17px; font-size: 13px; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: #9aa5ac; font-size: 11px; }
.lock-icon { color: var(--green); }
.login-help { margin-top: 45px; padding-top: 22px; border-top: 1px solid #edf0f2; color: #a0aab0; font-size: 11px; text-align: center; }
.login-copyright { position: absolute; right: 9%; bottom: 24px; color: #a9b2b8; font-size: 10px; }
.form-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f4d0cc; border-radius: 7px; color: #a4443a; background: var(--red-pale); font-size: 12px; line-height: 1.5; }

.app-shell { min-height: 100vh; }
.sidebar { z-index: 20; position: fixed; inset: 0 auto 0 0; width: 246px; display: flex; flex-direction: column; padding: 25px 16px 15px; color: #d1d9de; background: var(--navy); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 8px; }
.sidebar-brand { font-size: 13px; }
.sidebar-brand .brand-mark { width: 28px; height: 27px; }
.workspace-label { margin: 32px 9px 16px; color: #65747e; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.side-nav { overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #31404a transparent; }
.nav-link { position: relative; width: 100%; height: 42px; display: flex; align-items: center; gap: 12px; margin: 2px 0; padding: 0 11px; border: 0; border-radius: 6px; color: #9eabb3; background: transparent; font-size: 12px; text-align: left; transition: color .18s, background .18s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link.is-active { color: #fff; background: #263641; }
.nav-link.is-active::before { position: absolute; top: 9px; bottom: 9px; left: -16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); content: ""; }
.nav-icon { width: 17px; color: #81919b; font-size: 17px; text-align: center; }
.nav-link.is-active .nav-icon { color: var(--orange); }
.nav-count, .nav-badge { min-width: 19px; height: 19px; display: inline-grid; place-items: center; margin-left: auto; border-radius: 10px; color: #bcc7ce; background: #2b3943; font-size: 10px; }
.nav-badge { color: #ffcab6; background: rgba(242,123,75,.17); }
.nav-caption { margin: 25px 11px 9px; color: #5d6b74; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.sidebar-bottom { margin-top: auto; }
.sidebar-status { display: flex; align-items: center; gap: 8px; margin: 0 5px 13px; padding: 11px 9px; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; color: #87959d; font-size: 10px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #3caf82; box-shadow: 0 0 0 3px rgba(60,175,130,.13); }
.status-live { margin-left: auto; color: #69c69d; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.profile-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 6px 3px; border: 0; border-top: 1px solid rgba(255,255,255,.08); color: white; background: transparent; text-align: left; }
.avatar, .topbar-avatar { width: 33px; height: 33px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #ffd2c0; background: #50392f; font-size: 12px; font-weight: 700; }
.profile-details { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.profile-details strong { overflow: hidden; color: #dce2e5; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.profile-details small { color: #78868f; font-size: 9px; }
.logout-icon { color: #84929a; font-size: 16px; }
.sidebar-close, .sidebar-backdrop { display: none; }
.main-area { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; z-index: 10; top: 0; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid #e9edef; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9ba6ad; font-size: 11px; }
.breadcrumb strong { color: #3c4a55; font-weight: 600; }
.crumb-separator { color: #c7cfd4; }
.topbar-date { color: #84919a; font-size: 11px; }
.topbar-divider { width: 1px; height: 23px; background: var(--line); }
.topbar-avatar { width: 31px; height: 31px; color: #a95532; background: #fff0e8; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: #65727c; background: white; font-size: 21px; }
.icon-button:hover { border-color: #d2dbe0; background: #f8fafb; }
.menu-button { display: none; width: 32px; height: 32px; gap: 3px; align-content: center; padding: 0 8px; }
.menu-button span { width: 14px; height: 1.5px; background: #65727c; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 34px 38px 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading-copy h1 { margin: 5px 0 5px; font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.04em; }
.page-heading-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-card { position: relative; min-height: 180px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; margin-bottom: 22px; padding: 26px 31px; border-radius: 10px; color: white; background: linear-gradient(105deg, #1d2c35, #20323a 62%, #31443e); box-shadow: 0 12px 22px rgba(24,43,50,.09); }
.welcome-card::after { position: absolute; top: -110px; right: 8%; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 33px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.02); content: ""; }
.welcome-content { z-index: 1; max-width: 520px; }
.welcome-label { color: #bbc8ce; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.welcome-content h2 { margin: 10px 0 7px; font-family: Manrope, sans-serif; font-size: 24px; letter-spacing: -.04em; }
.welcome-content h2 span { color: #ffab84; }
.welcome-content p { max-width: 420px; margin: 0; color: #b2bec4; font-size: 11px; line-height: 1.7; }
.welcome-note { z-index: 1; display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; color: #c9d4d8; background: rgba(255,255,255,.07); font-size: 10px; }
.welcome-note span { color: #73d5a5; font-size: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { min-height: 126px; padding: 17px 18px; border: 1px solid #edf0f2; border-radius: 8px; background: var(--surface); box-shadow: 0 3px 12px rgba(22,37,44,.025); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: #84919a; font-size: 10px; font-weight: 600; }
.stat-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: var(--orange-dark); background: var(--orange-pale); font-size: 15px; }
.stat-icon.green { color: var(--green); background: var(--green-pale); }
.stat-icon.yellow { color: var(--yellow); background: var(--yellow-pale); }
.stat-icon.blue { color: #4686a5; background: #e9f4f8; }
.stat-value { display: block; margin-top: 10px; font-family: Manrope, sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -.05em; }
.stat-foot { margin-top: 1px; color: #9ca7ad; font-size: 9px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr); gap: 15px; }
.panel { overflow: hidden; border: 1px solid #edf0f2; border-radius: 8px; background: white; }
.panel-header { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid #f0f2f3; }
.panel-header h2, .panel-header h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 700; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.text-link { padding: 5px 0; border: 0; color: var(--orange-dark); background: transparent; font-size: 10px; font-weight: 700; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 11px 14px; color: #97a2a9; background: #fbfcfc; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
td { padding: 12px 14px; border-top: 1px solid #f1f3f4; color: #596771; font-size: 11px; }
tbody tr:hover { background: #fcfdfd; }
.radio-cell { display: flex; align-items: center; gap: 10px; }
.station-logo { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid #edf0f2; border-radius: 8px; color: var(--orange-dark); background: #fff6f1; font-size: 10px; font-weight: 700; }
.station-logo img { width: 100%; height: 100%; object-fit: cover; }
.station-title { display: flex; flex-direction: column; gap: 3px; }
.station-title strong { color: #36444e; font-size: 11px; font-weight: 700; }
.station-title small { color: #9aa5ac; font-size: 9px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 15px; font-size: 9px; font-weight: 700; }
.pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.pill-active { color: var(--green); background: var(--green-pale); }
.pill-pending { color: var(--yellow); background: var(--yellow-pale); }
.pill-resolved { color: #84919a; background: #f0f3f4; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.action-link { padding: 5px 6px; border: 0; color: #82909a; background: transparent; font-size: 11px; }
.action-link:hover { color: var(--orange-dark); }
.action-link.danger:hover { color: var(--red); }
.quick-actions { padding: 15px; }
.quick-action { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 10px; border: 0; border-radius: 6px; color: #52616b; background: transparent; text-align: left; }
.quick-action:hover { background: #f8fafb; }
.quick-action + .quick-action { border-top: 1px solid #f1f3f4; border-radius: 0; }
.quick-action-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--orange-dark); background: var(--orange-pale); font-size: 13px; }
.quick-action span:nth-child(2) { flex: 1; font-size: 10px; font-weight: 600; }
.quick-action .quick-arrow { color: #aab4ba; font-size: 15px; }
.toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.search-box { position: relative; width: min(100%, 320px); }
.search-box input { width: 100%; height: 39px; padding: 0 12px 0 35px; border: 1px solid #e8edef; border-radius: 6px; outline: 0; color: var(--ink); background: white; font-size: 11px; }
.search-box input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,123,75,.1); }
.search-box::before { position: absolute; top: 10px; left: 12px; color: #98a4ab; content: "⌕"; font-size: 19px; line-height: 1; }
.filter-select { height: 39px; min-width: 130px; padding: 0 30px 0 11px; border: 1px solid #e8edef; border-radius: 6px; outline: 0; color: #64727c; background: white; font-size: 10px; }
.toolbar-spacer { flex: 1; }
.muted-count { color: #98a3aa; font-size: 10px; }
.status-control { display: inline-flex; align-items: center; gap: 7px; color: #809099; font-size: 10px; cursor: pointer; }
.status-control input { width: 14px; height: 14px; margin: 0; accent-color: var(--green); cursor: pointer; }
.table-panel .panel-header { min-height: 50px; }
.table-panel .table-wrap { min-height: 120px; }
.empty-state { padding: 38px 20px; color: #97a2a9; font-size: 11px; text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: #5a6872; font-size: 12px; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--orange-dark); background: var(--orange-pale); font-size: 17px; }
.report-list { padding: 0 18px; }
.report-item { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid #f1f3f4; }
.report-item:last-child { border-bottom: 0; }
.report-alert { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--yellow); background: var(--yellow-pale); font-size: 15px; }
.report-copy { min-width: 0; flex: 1; }
.report-copy strong { display: block; overflow: hidden; color: #45535d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.report-copy small { display: block; margin-top: 4px; color: #a1abb1; font-size: 9px; }
.report-card { padding: 16px; border-bottom: 1px solid #f0f2f3; }
.report-card:last-child { border-bottom: 0; }
.report-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-card h3 { margin: 0; color: #36454f; font-size: 12px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 9px; color: #99a4ab; font-size: 9px; }
.report-meta span { overflow-wrap: anywhere; }
.report-card-actions { display: flex; gap: 7px; margin-top: 13px; }
.ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ticket { padding: 17px; border: 1px solid #edf0f2; border-radius: 8px; background: white; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ticket-avatar { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #5183a0; background: #eaf3f7; font-size: 10px; font-weight: 700; }
.ticket-person strong { display: block; overflow: hidden; color: #495862; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-person small { display: block; margin-top: 3px; color: #9aa5ab; font-size: 9px; }
.ticket-message { margin: 15px 0; padding: 12px; border-radius: 6px; color: #687680; background: #f7f9fa; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.ticket-reply { margin: -4px 0 14px; padding: 10px 12px; border-left: 2px solid #70bd96; color: #547462; background: #f1faf5; font-size: 10px; line-height: 1.6; }
.ticket-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-actions { display: flex; align-items: center; gap: 5px; }
.ticket-date { color: #a1abb1; font-size: 9px; }
.settings-list { display: grid; gap: 10px; }
.config-row { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(160px, 1fr) minmax(180px, 1.3fr) auto; align-items: center; gap: 14px; padding: 14px 17px; border: 1px solid #edf0f2; border-radius: 8px; background: white; }
.config-key { color: #394953; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.config-value { color: #63717a; font-size: 11px; overflow-wrap: anywhere; }
.config-description { color: #9ba5ab; font-size: 10px; line-height: 1.5; }
.config-actions { display: flex; gap: 4px; }
.modal-backdrop { z-index: 50; position: fixed; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(13,23,29,.54); backdrop-filter: blur(3px); }
.modal-card { width: min(100%, 560px); max-height: min(90vh, 780px); overflow: auto; border-radius: 10px; background: white; box-shadow: 0 25px 80px rgba(9,18,23,.25); animation: modal-in .18s ease-out; }
.modal-card.modal-narrow { width: min(100%, 450px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 21px 23px 16px; border-bottom: 1px solid #edf0f2; }
.modal-header h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.03em; }
.modal-header p { margin: 5px 0 0; color: #92a0a8; font-size: 10px; }
.modal-close { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #84919a; background: #f3f5f6; font-size: 18px; }
.modal-form { padding: 18px 23px 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 13px; }
.form-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #53616b; font-size: 10px; font-weight: 700; }
.required { color: var(--orange-dark); }
.form-control { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #e5eaed; border-radius: 6px; outline: 0; color: #42515b; background: #fcfdfd; font-size: 11px; }
textarea.form-control { min-height: 85px; resize: vertical; }
.form-hint { color: #9aa5ac; font-size: 9px; line-height: 1.5; }
.checkbox-field { display: flex; align-items: center; gap: 9px; padding-top: 5px; }
.checkbox-field input { width: 15px; height: 15px; accent-color: var(--orange); }
.checkbox-field label { color: #596771; font-size: 10px; font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; padding-top: 15px; border-top: 1px solid #edf0f2; }
.toast-region { z-index: 100; position: fixed; right: 22px; bottom: 22px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #e8edef; border-radius: 8px; background: white; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast-mark { width: 20px; height: 20px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-pale); font-size: 11px; font-weight: 700; }
.toast.error .toast-mark { color: var(--red); background: var(--red-pale); }
.toast-message { color: #52616b; font-size: 11px; line-height: 1.5; }
.loading { padding: 52px 20px; color: #93a0a8; font-size: 11px; text-align: center; }
.loading::before { width: 18px; height: 18px; display: block; margin: 0 auto 12px; border: 2px solid #e7ecef; border-top-color: var(--orange); border-radius: 50%; content: ""; animation: spin .75s linear infinite; }

@keyframes pulse-bars { to { opacity: .48; transform: scaleY(.55); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; }
  .topbar { padding: 0 26px; }
  .page-content { padding: 28px 26px 50px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .config-row { grid-template-columns: minmax(115px,.7fr) minmax(150px,1fr) auto; }
  .config-description { grid-column: 1 / 3; grid-row: 2; }
  .config-actions { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 760px) {
  .login-screen { display: block; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 35px 25px 60px; }
  .login-panel-inner { width: min(100%, 390px); }
  .mobile-brand { display: inline-flex; margin-bottom: 54px; }
  .login-heading h2 { font-size: 31px; }
  .login-help { margin-top: 35px; }
  .login-copyright { right: 0; bottom: 20px; left: 0; text-align: center; }
  .sidebar { width: 270px; transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid; width: 30px; height: 30px; color: #bdc8ce; background: #202e37; }
  .sidebar-backdrop.is-visible { z-index: 19; position: fixed; inset: 0; display: block; background: rgba(12,21,26,.42); }
  .main-area { margin-left: 0; }
  .topbar { height: 58px; padding: 0 17px; }
  .menu-button { display: inline-flex; flex-direction: column; justify-content: center; }
  .topbar-left, .topbar-right { gap: 10px; }
  .topbar-date { display: none; }
  .topbar-divider { display: none; }
  .page-content { padding: 24px 17px 42px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .page-heading-copy h1 { font-size: 22px; }
  .page-actions { width: 100%; }
  .welcome-card { min-height: 165px; padding: 22px; }
  .welcome-note { display: none; }
  .welcome-content h2 { font-size: 20px; }
  .stats-grid { gap: 9px; }
  .stat-card { min-height: 112px; padding: 13px; }
  .stat-value { font-size: 24px; }
  .overview-grid { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .toolbar-spacer { display: none; }
  .filter-select { flex: 1; }
}
@media (max-width: 480px) {
  .page-content { padding-right: 12px; padding-left: 12px; }
  .topbar { padding-right: 12px; padding-left: 12px; }
  .breadcrumb { gap: 7px; font-size: 10px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-label { max-width: 110px; line-height: 1.4; }
  .welcome-card { min-height: 160px; }
  .welcome-content p { font-size: 10px; }
  .panel-header { padding: 0 13px; }
  .config-row { grid-template-columns: 1fr auto; gap: 8px; padding: 13px; }
  .config-value, .config-description { grid-column: 1 / -1; }
  .config-description { grid-row: auto; }
  .config-actions { grid-column: 2; grid-row: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .modal-backdrop { padding: 10px; }
  .modal-header { padding: 17px 17px 14px; }
  .modal-form { padding: 15px 17px 18px; }
  .report-card-top { flex-direction: column; }
  .toast-region { right: 12px; bottom: 12px; }
}
