body {
  margin: 0;
  background: radial-gradient(ellipse at 68% 0, #7038aa12, transparent 55%), var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 20px 24px;
  background: linear-gradient(175deg, #191523, #100f19 65%);
  border-right: 1px solid #ffffff09;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; text-decoration: none; font-size: 23px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 43px;
  border: 1px solid #c194ff80;
  background: linear-gradient(145deg, #b680f0, #6c3db0 70%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 25px #9a52e944, inset 0 1px 0 #ffffff50;
  font-size: 27px;
}
.brand-caption { display: block; font-size: 10px; font-weight: 400; letter-spacing: .04em; color: var(--muted); margin-top: 1px; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: .16em; color: #898096; margin: 45px 14px 14px; }
.sidebar nav { display: grid; gap: 8px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 46px;
  color: #b8b1c9;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background .18s, color .18s, border-color .18s;
}
.nav-link span { display: grid; place-items: center; width: 19px; font-size: 19px; line-height: 1; color: #9b8ab7; }
.nav-link.active { color: #fff; border-color: #a76ae34d; background: linear-gradient(105deg, #7542b9, #472c6c); box-shadow: 0 6px 20px #7c3bb626, inset 0 1px 0 #ffffff15; }
.nav-link.active span { color: #e1c5ff; }
.nav-link:hover:not(.active) { background: #ffffff06; border-color: #ffffff0c; color: #eee6fc; }
.sidebar-bottom { position: relative; overflow: hidden; margin-top: auto; padding: 28px 14px 4px; border-top: 1px solid #ffffff0c; font-size: 11px; color: #9990aa; }
.sidebar-bottom::after { content: ""; position: absolute; width: 95px; height: 95px; border-radius: 50%; right: -47px; bottom: -44px; background: #8b49ce; filter: blur(42px); opacity: .45; pointer-events: none; }
.small-logo { letter-spacing: .16em; font-weight: 650; color: #d1bfeb; }
.sidebar-bottom p { margin: 8px 0 0; line-height: 1.8; }
.workspace { margin-left: 244px; width: calc(100% - 244px); min-width: 0; }
.topbar { min-height: 80px; padding: 20px 42px; border-bottom: 1px solid #ffffff08; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #12101bc9; }
.breadcrumb { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.breadcrumb span:first-child { color: #625a71; }
.breadcrumb span:last-child { color: #e0d8ec; }
.account { display: flex; gap: 15px; align-items: center; font-size: 12px; }
#userName:not(:empty)::before { content: ""; display: inline-block; vertical-align: middle; width: 7px; height: 7px; margin-right: 9px; background: #b485ed; border-radius: 50%; box-shadow: 0 0 12px #b574f060; }
.quiet { border: 1px solid var(--line); border-radius: 8px; background: #ffffff03; padding: 8px 13px; color: #c2b8d0; transition: background .18s, border-color .18s; }
.quiet:hover { background: #ffffff08; border-color: var(--tdm-line-strong); }
main { max-width: 1440px; margin: 0 auto; padding: 40px 42px 28px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 31px; font-weight: 620; letter-spacing: -.035em; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 18px; }
h3 { font-weight: 600; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .18em; color: var(--tdm-accent); margin-bottom: 14px; }
.intro { max-width: 660px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.page-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 28px; }
.page-heading .intro { margin-bottom: 0; }
.heading-aside { padding: 9px 12px; border: 1px solid var(--line); background: #201b2c80; border-radius: 8px; color: #b8a9cb; font-size: 11px; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 34px; }
.stat { position: relative; isolation: isolate; overflow: hidden; background: var(--tdm-gradient); border: 1px solid var(--line); border-radius: 13px; padding: 22px 24px; text-decoration: none; box-shadow: var(--tdm-shadow); transition: border-color .18s, transform .18s, box-shadow .18s; }
.stat::after { content: ""; position: absolute; z-index: -1; right: -10px; bottom: -54px; width: 160px; height: 110px; border-radius: 50%; background: #9d50ef; filter: blur(50px); opacity: .14; pointer-events: none; }
.stat:hover { border-color: #8b5cba; transform: translateY(-2px); box-shadow: var(--tdm-glow); }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #c6bdd6; font-size: 12px; }
.stat-label>span { display: grid; place-items: center; width: 26px; height: 26px; color: #d5b2ff; background: #a55bea14; border: 1px solid #c593ff20; border-radius: 8px; }
.stat strong { display: block; font-size: 35px; font-weight: 600; letter-spacing: -.05em; line-height: 1.1; margin: 13px 0 10px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; color: var(--muted); }
.stat.danger strong { color: var(--danger); }
.stat.danger::after { background: #da6b9b; }
.stat.ok strong { color: var(--tdm-success); }
.stat.ok::after { background: #8272eb; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.text-link { text-decoration: none; color: var(--tdm-accent); font-size: 12px; font-weight: 550; }
.text-link:hover, .back-link:hover { color: #e1c7ff; text-decoration: underline; text-underline-offset: 4px; }
.panel { background: var(--tdm-gradient); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: var(--tdm-shadow); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 15px 22px; border-bottom: 1px solid var(--line); background: #ffffff02; color: #a69bb8; font-size: 10px; font-weight: 550; letter-spacing: .08em; white-space: nowrap; }
td { padding: 20px 22px; border-bottom: 1px solid #ffffff07; vertical-align: top; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .18s; }
tbody tr:hover { background: #aa72ff06; }
.task-title { display: block; max-width: 480px; margin-bottom: 6px; color: #e9e0f6; font-size: 13px; font-weight: 550; text-decoration: none; }
.task-title:hover { color: var(--tdm-accent); }
.task-excerpt { display: block; max-width: 480px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.task-number { display: inline-block; margin-top: 5px; color: #9d8bb5; font-size: 10px; white-space: nowrap; }
.deadline { color: #d0c5de; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #ad81df2b; border-radius: 7px; background: #9b68cf14; color: #cbb2eb; font-size: 10px; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.overdue { border-color: #f198a32b; background: #f198a30c; color: var(--danger); }
.badge.done { border-color: #8fdec12b; background: #8fdec10c; color: var(--tdm-success); }
.progress-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 26px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #15121e; }
.tab { padding: 8px 12px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; }
.tab:hover { color: var(--ink); }
.tab.active { background: #352544; border-color: #9465c547; color: #e3c8ff; box-shadow: inset 0 1px 0 #ffffff07; }
.search-form { display: flex; gap: 6px; }
.search-form input { min-width: 220px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--tdm-field); color: var(--ink); font-size: 12px; }
.search-form button, .pagination button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: #292334; color: #d6c4eb; font-size: 12px; }
.search-form button:hover, .pagination button:hover:not(:disabled) { background: #352a44; border-color: #775492; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: var(--muted); font-size: 12px; }
.pagination div { display: flex; gap: 8px; }
.empty { padding: 50px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; margin-bottom: 9px; color: #e7dcf4; font-size: 16px; font-weight: 550; }
.empty p:last-child { margin-bottom: 0; }
.loading { padding: 40px 0; color: var(--muted); }
.notice { padding: 14px 18px; margin: 22px 0; border: 1px solid #f1ca9430; border-radius: 10px; background: #f1ca9408; color: var(--tdm-warning); font-size: 12px; }
.primary { padding: 12px 18px; border: 1px solid #c596ff44; border-radius: 9px; background: linear-gradient(120deg, #9055d8, #7040b2); color: #fff; font-size: 13px; font-weight: 550; box-shadow: 0 5px 20px #7638bc38, inset 0 1px 0 #ffffff1a; transition: filter .18s, box-shadow .18s; }
.primary:hover { filter: brightness(1.1); box-shadow: 0 5px 28px #9552db4d; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.auth-card { position: relative; isolation: isolate; overflow: hidden; max-width: 560px; padding: 40px; margin: 32px auto; border: 1px solid #4c395f; border-radius: 18px; background: linear-gradient(145deg, #292132 0%, #1a1724 55%, #1d182a); box-shadow: 0 24px 80px #00000040, 0 0 80px #8b4cdb09; }
.auth-card::before { content: ""; position: absolute; z-index: -1; width: 230px; height: 230px; right: -100px; top: -140px; border-radius: 50%; background: #a75aeb; opacity: .22; filter: blur(50px); pointer-events: none; }
.auth-card h1 { font-size: 30px; }
.auth-card p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.auth-card .button { margin-top: 16px; }
.auth-card .quiet { margin-top: 18px; font-size: 11px; }
.auth-page { max-width: 760px; margin: 60px auto; }
.error-note { color: var(--danger) !important; }
.account-form { display: grid; gap: 18px; margin-top: 26px; }
.account-form label { display: grid; gap: 8px; color: #d9cfe5; font-size: 12px; font-weight: 500; }
.account-form input { width: 100%; padding: 12px 13px; border: 1px solid #41354f; border-radius: 9px; background: #13101cb3; color: var(--ink); font-size: 16px; font-weight: 400; transition: border-color .18s, box-shadow .18s; }
.account-form input:focus, .search-form input:focus, .equipment-fields input:focus, .equipment-fields select:focus { border-color: #b27ae8; outline: 2px solid #a861dd40; outline-offset: 2px; box-shadow: 0 0 20px #9c55d510; }
.account-form input:autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px #21182e inset; }
.account-form .primary { margin-top: 4px; min-height: 46px; }
.auth-card .form-hint { margin: -8px 0 0; font-size: 11px; line-height: 1.6; }
.auth-card .form-message { margin: 0; color: var(--danger); font-size: 12px; line-height: 1.6; }
.auth-card .auth-switch { margin-top: 23px; margin-bottom: 0; font-size: 12px; }
.auth-switch a { color: var(--tdm-accent); font-weight: 550; text-underline-offset: 3px; }
.detail-card { padding: 28px; }
.detail-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.detail-title h2 { margin: 0; }
.task-content { color: #d5cadf; white-space: pre-wrap; line-height: 1.9; overflow-wrap: anywhere; font-size: 14px; }
.station-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.station-panel { padding: 24px; }
.station-panel h2 { font-size: 15px; }
.station-list { margin: 0; padding: 0; list-style: none; }
.station-list li { padding: 12px 0; border-top: 1px solid var(--line); color: #c7bbd4; font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--tdm-accent); text-decoration: none; font-size: 12px; }
.detail-meta { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
footer { display: flex; justify-content: space-between; gap: 12px; max-width: 1440px; margin: 0 auto; padding: 24px 42px 28px; color: #9587a7; font-size: 10px; letter-spacing: .1em; }
footer span { letter-spacing: 0; }
.equipment-views { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.equipment-views a { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-height: 42px; padding: 8px 12px; background: #24232d; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.equipment-views a:hover { border-color: var(--tdm-line-strong); }
.equipment-views a[aria-current] { background: #dfcdf9; color: #241a30; font-weight: 600; }
.equipment-views a span { padding: 1px 6px; border-radius: 4px; background: #88888822; font-variant-numeric: tabular-nums; font-size: .8125rem; }
.equipment-count { font-size: 12px; color: var(--muted); }
.equipment-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.equipment-heading h1 { margin: 0; }
.equipment-heading a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: .875rem; text-decoration: none; }
.equipment-heading a:hover { background: var(--paper); border-color: var(--tdm-line-strong); }
.equipment-frame { display: block; width: 100%; height: 900px; min-height: 300px; border: 0; color-scheme: dark; }
.equipment-filter-panel, .equipment-page .panel { border: 1px solid var(--line); background: #1b1a23; border-radius: 12px; box-shadow: none; }
.equipment-filter-panel { margin: 0 0 24px; }
.equipment-filter-panel summary { padding: 12px 16px; cursor: pointer; font-size: .9375rem; font-weight: 550; }
.equipment-filter-panel summary::marker { color: var(--tdm-accent); }
.equipment-filters { border-top: 1px solid var(--line); padding: 16px; }
.equipment-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.equipment-fields label { display: grid; gap: 6px; min-width: 0; font-size: .875rem; color: var(--muted); }
.equipment-fields input, .equipment-fields select { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--tdm-field); padding: 8px 10px; color: var(--ink); font: inherit; }
.equipment-filter-actions { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.equipment-filter-actions .primary { padding: 8px 18px; min-height: 42px; background: #d8b9fc; color: #24182e; box-shadow: none; }
.equipment-table table { min-width: 620px; }
.equipment-table td, .equipment-table th { padding: 12px 14px; }
.equipment-table th { white-space: normal; }
.equipment-table td { max-width: 300px; overflow-wrap: anywhere; font-size: .875rem; }
.equipment-table .task-title { font-size: .9375rem; }
.equipment-table .task-excerpt { font-size: .8125rem; }
.equipment-table .badge { white-space: normal; line-height: 1.6; }
.equipment-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin: 0; }
.equipment-detail div { border-top: 1px solid var(--line); padding-top: 16px; min-width: 0; }
.equipment-detail dt { font-size: .875rem; color: var(--muted); margin-bottom: 6px; }
.equipment-detail dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.page-disabled { opacity: .45; cursor: default; }
.access-form { display: grid; max-width: 42rem; padding: clamp(16px, 3vw, 26px); gap: 14px; background: #1b1a23; }
.access-form label { display: grid; gap: 6px; font-size: .875rem; }
.access-form select { min-width: 0; width: 100%; min-height: 44px; padding: 8px; color: var(--ink); background: var(--tdm-field); border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.access-form p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.access-form p:empty { display: none; }
.access-form h2 { margin: 0; }
.request-fields { display: grid; gap: 14px; }
#pendingCount:not(:empty) { background: #dfcdf9; color: #241a30; border-radius: 10px; padding: 1px 7px; font-weight: 650; }
.access-form select { max-width: 100%; }
.access-form, .access-form > div, .request-fields, .request-fields label { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.access-result { margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1600px) { main { padding-top: 54px; } }
@media (max-width: 1050px) {
  .sidebar { width: 210px; padding: 30px 14px; }
  .workspace { margin-left: 210px; width: calc(100% - 210px); }
  main { padding: 32px 26px 24px; }
  .topbar { padding: 18px 26px; }
  td, th { padding-left: 16px; padding-right: 16px; }
  .stat { padding: 20px; }
  .equipment-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; padding: 19px 20px 14px; border-right: 0; border-bottom: 1px solid #ffffff09; }
  .brand { padding: 0; font-size: 21px; }
  .brand-mark { width: 34px; height: 36px; border-radius: 10px; font-size: 23px; }
  .brand-caption { font-size: 9px; }
  .nav-label, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
  .nav-link { gap: 6px; min-height: 40px; padding: 8px; font-size: 11px; border-radius: 8px; }
  .nav-link span { width: 15px; font-size: 16px; }
  .workspace { margin: 0; width: 100%; }
  .topbar { min-height: 62px; padding: 14px 20px; }
  .breadcrumb { font-size: 10px; gap: 7px; }
  .account { max-width: 53%; gap: 8px; font-size: 10px; }
  #userName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #userName:not(:empty)::before { display: none; }
  .quiet { padding: 8px 10px; font-size: 10px; }
  main { padding: 28px 20px 20px; }
  h1 { font-size: 26px; }
  .intro { font-size: 12px; }
  .page-heading { margin-bottom: 20px; }
  .heading-aside { display: none; }
  .stats { gap: 8px; margin: 24px 0 28px; }
  .stat { padding: 16px 12px; border-radius: 11px; }
  .stat-label { font-size: 10px; }
  .stat-label>span { display: none; }
  .stat strong { font-size: 28px; }
  .stat small { display: block; font-size: 10px; line-height: 1.5; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 16px; }
  .text-link { font-size: 11px; white-space: nowrap; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; min-width: 0; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { padding: 8px 10px; font-size: 11px; }
  .auth-card { padding: 29px 24px; margin: 8px 0; border-radius: 15px; }
  .auth-card h1 { font-size: 27px; }
  .station-columns { grid-template-columns: 1fr; }
  .detail-card { padding: 22px; }
  .detail-title { align-items: start; }
  .task-content { font-size: 13px; }
  .task-table { border: 0; background: none; box-shadow: none; overflow: visible; }
  .task-table table, .task-table tbody { display: block; }
  .task-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .task-table tbody { display: grid; gap: 12px; }
  .task-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--tdm-gradient); box-shadow: var(--tdm-shadow); }
  .task-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .task-table td:first-child { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid #ffffff0a; }
  .task-table td:last-child { grid-column: 1 / -1; }
  .task-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #a69ab7; font-size: 10px; }
  .task-table td:last-child::before { display: none; }
  .task-table .task-title { font-size: 14px; }
  .task-table .task-excerpt { line-height: 1.7; }
  footer { padding: 16px 20px 25px; }
  .equipment-fields, .equipment-detail { grid-template-columns: 1fr; }
  .equipment-fields input, .equipment-fields select { font-size: 16px; min-height: 44px; }
  .equipment-filter-actions { justify-content: space-between; }
  .equipment-filters { padding: 18px; }
  .equipment-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-views a { flex-wrap: wrap; gap: 4px; }
  .equipment-page .equipment-table { background: transparent; border: 0; overflow: visible; }
  .equipment-table table, .equipment-table tbody { display: block; min-width: 0; }
  .equipment-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .equipment-table tbody { display: grid; gap: 10px; }
  .equipment-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 1px solid var(--line); padding: 14px; border-radius: 10px; background: #1b1a23; }
  .equipment-table td { display: block; max-width: none; min-width: 0; padding: 0; border: 0; white-space: normal; }
  .equipment-table td:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .equipment-table td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; margin-bottom: 3px; }
  .equipment-table .badge { font-size: .75rem; }
}
