﻿:root {
  --bg: #f5efe6;
  --bg-accent: #efe2cf;
  --card: rgba(255, 252, 246, 0.92);
  --ink: #30251b;
  --muted: #6d5a4a;
  --line: #dcc7af;
  --brand: #b25832;
  --brand-deep: #7c381f;
  --ok: #22654c;
  --warn: #9e5e13;
  --bad: #8a2d26;
  --shadow: 0 24px 60px rgba(82, 47, 18, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans TC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(178, 88, 50, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(146, 94, 42, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, #fbf7f1 100%);
  color: var(--ink);
}

a {
  color: var(--brand-deep);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin: 24px auto;
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid rgba(220, 199, 175, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.brand small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.brand-tagline {
  margin-top: 4px;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  opacity: 0.96;
  text-shadow: 0 1px 1px rgba(7, 47, 79, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-user-greeting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-user-greeting strong {
  font-weight: 800;
}

.nav a,
.nav button {
  text-decoration: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav a:hover,
.nav button:hover {
  background: rgba(178, 88, 50, 0.1);
}

.admin-subnav {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 22px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(220, 199, 175, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92) 0%, rgba(248, 240, 229, 0.9) 100%);
  box-shadow:
    0 16px 36px rgba(82, 47, 18, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  transition:
    top 160ms ease,
    padding 160ms ease,
    border-radius 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.admin-subnav-link {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 18px;
  border: 1px solid rgba(220, 199, 175, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 247, 237, 0.88) 100%);
  box-shadow: 0 12px 30px rgba(131, 88, 48, 0.07);
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    padding 160ms ease,
    gap 160ms ease;
}

.admin-subnav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(178, 88, 50, 0.35);
  box-shadow: 0 18px 36px rgba(131, 88, 48, 0.12);
}

.admin-subnav-link.is-active {
  border-color: rgba(34, 101, 76, 0.28);
  background:
    linear-gradient(180deg, rgba(34, 101, 76, 0.12) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 20px 38px rgba(34, 101, 76, 0.12);
}

.admin-subnav-link.is-active::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 101, 76, 0.95) 0%, rgba(178, 88, 50, 0.58) 100%);
}

.admin-subnav-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-subnav-link strong {
  font-size: 1rem;
  transition: font-size 160ms ease;
}

.admin-subnav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-subnav-meta-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-subnav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(124, 56, 31, 0.08);
  color: var(--brand-deep);
}

.admin-subnav-badge.ok {
  background: rgba(34, 101, 76, 0.12);
  color: var(--ok);
  border-color: rgba(34, 101, 76, 0.18);
}

.admin-subnav-badge.warn {
  background: rgba(158, 94, 19, 0.14);
  color: var(--warn);
  border-color: rgba(158, 94, 19, 0.18);
}

.admin-subnav-badge.bad {
  background: rgba(138, 45, 38, 0.12);
  color: var(--bad);
  border-color: rgba(138, 45, 38, 0.18);
}

.admin-subnav-link.is-active .admin-subnav-badge {
  background: rgba(255, 255, 255, 0.86);
}

.admin-subnav.is-compact {
  top: 8px;
  padding: 8px;
  border-radius: 18px;
  box-shadow:
    0 12px 26px rgba(82, 47, 18, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95) 0%, rgba(247, 238, 225, 0.93) 100%);
}

.admin-subnav.is-compact .admin-subnav-link {
  gap: 4px;
  padding: 10px 14px;
}

.admin-subnav.is-compact .admin-subnav-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.admin-subnav.is-compact .admin-subnav-link strong {
  font-size: 0.92rem;
}

.admin-subnav.is-compact .admin-subnav-meta {
  gap: 6px;
}

.admin-subnav.is-compact .admin-subnav-meta-label {
  font-size: 0.7rem;
}

.admin-subnav.is-compact .admin-subnav-badge {
  min-width: 30px;
  padding: 3px 8px;
  font-size: 0.72rem;
}

.admin-subnav.is-compact .admin-subnav-link.is-active::after {
  width: 42px;
  height: 3px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid rgba(220, 199, 175, 0.95);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 20px;
  align-items: start;
}

.hero h1,
.page-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.05;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 60ch;
}

.label {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:disabled,
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button.secondary,
button.secondary {
  background: rgba(124, 56, 31, 0.1);
  color: var(--brand-deep);
}

.ghost {
  background: rgba(124, 56, 31, 0.08);
  color: var(--brand-deep);
}

.button.warn,
button.warn {
  background: linear-gradient(135deg, #c97130 0%, #9e5e13 100%);
}

.button.bad,
button.bad {
  background: linear-gradient(135deg, #a53a30 0%, #7b231d 100%);
}

.stack {
  display: grid;
  gap: 14px;
}

.song-filter-form {
  min-width: min(100%, 540px);
}

.filter-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(220, 199, 175, 0.95);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.stat-card-primary {
  background: linear-gradient(135deg, rgba(178, 88, 50, 0.14) 0%, rgba(124, 56, 31, 0.09) 100%);
}

.ops-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card-monitor {
  position: relative;
  overflow: hidden;
}

.stat-card-monitor::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(124, 56, 31, 0.2);
}

.stat-card-monitor.ok::before {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.9) 0%, rgba(34, 101, 76, 0.3) 100%);
}

.stat-card-monitor.warn::before {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.95) 0%, rgba(158, 94, 19, 0.35) 100%);
}

.stat-card-monitor.bad::before {
  background: linear-gradient(180deg, rgba(138, 45, 38, 0.95) 0%, rgba(138, 45, 38, 0.35) 100%);
}

.stat-card-monitor.neutral::before {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.75) 0%, rgba(124, 56, 31, 0.22) 100%);
}

.stat-card-monitor-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.stat-tone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.stat-tone-pill.ok {
  color: var(--ok);
  background: rgba(34, 101, 76, 0.12);
}

.stat-tone-pill.warn {
  color: var(--warn);
  background: rgba(158, 94, 19, 0.13);
}

.stat-tone-pill.bad {
  color: var(--bad);
  background: rgba(138, 45, 38, 0.13);
}

.stat-tone-pill.neutral {
  color: var(--brand-deep);
  background: rgba(124, 56, 31, 0.09);
}

.stat-card-monitor-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.soft-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(220, 199, 175, 0.8);
  background: rgba(255, 248, 239, 0.82);
}

.batch-panel {
  gap: 16px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.log-summary {
  min-width: min(100%, 360px);
}

.log-summary code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 56, 31, 0.08);
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

.selection-toolbar {
  align-items: center;
}

.grouped-song-section {
  padding-top: 20px;
}

.grouped-song-header {
  margin-bottom: 10px;
}

.playlist-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(220, 199, 175, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.playlist-entry input {
  width: auto;
  margin-top: 4px;
}

.playlist-entry strong {
  display: block;
  margin-bottom: 6px;
}

.inline-form {
  display: inline;
}

.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
}

.flash.success {
  background: rgba(34, 101, 76, 0.12);
  color: var(--ok);
}

.flash.error {
  background: rgba(138, 45, 38, 0.12);
  color: var(--bad);
}

.flash.info {
  background: rgba(178, 88, 50, 0.1);
  color: var(--brand-deep);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(220, 199, 175, 0.6);
}

.checkbox-cell {
  width: 64px;
  text-align: center;
}

.checkbox-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

th {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.badge.queued,
.badge.downloading,
.badge.muxing {
  background: rgba(178, 88, 50, 0.12);
  color: var(--brand-deep);
}

.badge.completed {
  background: rgba(34, 101, 76, 0.13);
  color: var(--ok);
}

.badge.failed,
.badge.disabled {
  background: rgba(138, 45, 38, 0.13);
  color: var(--bad);
}

.badge.expired {
  background: rgba(109, 90, 74, 0.12);
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.thumb {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  border: 1px solid rgba(220, 199, 175, 0.7);
  display: block;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.actions-between {
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 0;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.status-grid .card {
  padding: 16px 18px;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.footer-note {
  color: var(--muted);
  margin-top: 22px;
  font-size: 0.92rem;
}

.log-output {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(220, 199, 175, 0.8);
  background: #241c16;
  color: #f6efe8;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  max-height: 720px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-tagline {
    font-size: 0.8rem;
  }

  .nav-user-greeting {
    font-size: 0.88rem;
    padding: 7px 11px;
  }

  .shell {
    width: min(100% - 20px, 1120px);
  }

  .card {
    padding: 20px;
  }
}

code {
  font-family: "Consolas", "Courier New", monospace;
}

.log-meta-grid {
  min-width: min(100%, 520px);
}

.compact-form {
  gap: 8px;
}

.log-clue-list {
  display: grid;
  gap: 10px;
}

.log-clue-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(220, 199, 175, 0.8);
  background: rgba(255, 248, 239, 0.82);
}

.log-clue-item code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pagination-bar {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(220, 199, 175, 0.8);
  background: rgba(255, 248, 239, 0.82);
}

.pagination-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pagination-size-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-size-form select {
  width: auto;
  min-width: 120px;
}

.pagination-size-label {
  margin-bottom: 0;
}

.pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}


.song-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.account-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.account-actions-row {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.account-actions-row .inline-form {
  display: flex;
}

.account-actions-row button {
  min-width: 118px;
  padding: 7px 10px;
  font-size: 0.88rem;
  line-height: 1.1;
  justify-content: center;
  white-space: nowrap;
}

.user-accounts-table th,
.user-accounts-table td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.admin-jobs-table th,
.admin-jobs-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.admin-jobs-table .actions {
  gap: 8px;
  margin-top: 10px;
}

.song-actions-primary,
.song-actions-danger {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.song-actions-primary .button,
.song-actions-danger .button {
  min-width: 0;
}

.compact-action-button {
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.song-actions-danger .compact-action-button {
  min-width: 72px;
  justify-content: center;
}

.history-actions {
  flex-wrap: nowrap;
  align-items: center;
}

@media (max-width: 900px) {
  .history-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .song-actions-primary,
  .song-actions-danger {
    flex-wrap: wrap;
  }

  .account-actions-row {
    flex-wrap: wrap;
  }
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.ops-panels-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ops-panel {
  align-content: start;
  position: relative;
  overflow: hidden;
}

.ops-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: rgba(124, 56, 31, 0.18);
}

.ops-panel:has(.ops-panel-state.ok)::before {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.9) 0%, rgba(34, 101, 76, 0.35) 100%);
}

.ops-panel:has(.ops-panel-state.warn)::before {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.9) 0%, rgba(158, 94, 19, 0.35) 100%);
}

.ops-panel:has(.ops-panel-state.neutral)::before {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.7) 0%, rgba(124, 56, 31, 0.22) 100%);
}

.ops-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ops-panel-state {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220, 199, 175, 0.7);
  background: rgba(255, 255, 255, 0.62);
}

.ops-panel-state.ok {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.11) 0%, rgba(255, 255, 255, 0.78) 100%);
  border-color: rgba(34, 101, 76, 0.18);
}

.ops-panel-state.warn {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.12) 0%, rgba(255, 255, 255, 0.78) 100%);
  border-color: rgba(158, 94, 19, 0.2);
}

.ops-panel-state.neutral {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.08) 0%, rgba(255, 255, 255, 0.78) 100%);
  border-color: rgba(124, 56, 31, 0.15);
}

.ops-panel-state-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
}

.ops-panel-state.ok .ops-panel-state-label {
  color: var(--ok);
}

.ops-panel-state.warn .ops-panel-state-label {
  color: var(--warn);
}

.ops-panel-state.neutral .ops-panel-state-label {
  color: var(--brand-deep);
}

.ops-panel-state small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ops-kv-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.ops-kv-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(220, 199, 175, 0.55);
}

.ops-kv-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.ops-kv-row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ops-inline-meta {
  color: var(--muted);
}

.ops-code-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ops-mini-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.ops-mini-stat {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(220, 199, 175, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(247, 238, 227, 0.9) 100%);
}

.ops-mini-stat.ok {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.14) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(34, 101, 76, 0.2);
}

.ops-mini-stat.warn {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.14) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(158, 94, 19, 0.22);
}

.ops-mini-stat.neutral {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.08) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(124, 56, 31, 0.16);
}

.ops-mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.ops-mini-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.ops-meter-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(220, 199, 175, 0.7);
  background: rgba(255, 255, 255, 0.62);
}

.ops-meter-header,
.ops-meter-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ops-meter-header span,
.ops-meter-legend span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ops-meter {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(124, 56, 31, 0.1);
  border: 1px solid rgba(220, 199, 175, 0.8);
}

.ops-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 180ms ease;
}

.ops-meter-fill.used.ok {
  background: linear-gradient(90deg, rgba(34, 101, 76, 0.75) 0%, rgba(34, 101, 76, 0.95) 100%);
}

.ops-meter-fill.used.warn {
  background: linear-gradient(90deg, rgba(201, 113, 48, 0.78) 0%, rgba(158, 94, 19, 0.98) 100%);
}

.ops-meter-fill.used.neutral {
  background: linear-gradient(90deg, rgba(124, 56, 31, 0.5) 0%, rgba(178, 88, 50, 0.9) 100%);
}

.ops-trend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220, 199, 175, 0.72);
  background: rgba(255, 255, 255, 0.66);
}

.ops-trend.compact {
  margin-top: 10px;
  padding: 10px 12px;
  gap: 10px;
}

.ops-trend.ok {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.12) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(34, 101, 76, 0.2);
}

.ops-trend.warn {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.13) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(158, 94, 19, 0.2);
}

.ops-trend.bad {
  background: linear-gradient(180deg, rgba(138, 45, 38, 0.13) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(138, 45, 38, 0.2);
}

.ops-trend.neutral {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.08) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(124, 56, 31, 0.16);
}

.ops-trend-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.9);
}

.ops-trend.compact .ops-trend-arrow {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

.ops-trend.ok .ops-trend-arrow {
  color: var(--ok);
}

.ops-trend.warn .ops-trend-arrow {
  color: var(--warn);
}

.ops-trend.bad .ops-trend-arrow {
  color: var(--bad);
}

.ops-trend.neutral .ops-trend-arrow {
  color: var(--brand-deep);
}

.ops-trend-copy {
  display: grid;
  gap: 4px;
}

.ops-trend-copy strong {
  font-size: 0.92rem;
}

.ops-trend-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.ops-trend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ops-trend-badge.ok {
  color: var(--ok);
  background: rgba(34, 101, 76, 0.12);
  border-color: rgba(34, 101, 76, 0.16);
}

.ops-trend-badge.warn {
  color: var(--warn);
  background: rgba(158, 94, 19, 0.14);
  border-color: rgba(158, 94, 19, 0.16);
}

.ops-trend-badge.bad {
  color: var(--bad);
  background: rgba(138, 45, 38, 0.14);
  border-color: rgba(138, 45, 38, 0.16);
}

.ops-trend-badge.neutral {
  color: var(--brand-deep);
  background: rgba(124, 56, 31, 0.09);
  border-color: rgba(124, 56, 31, 0.14);
}

.ops-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-pill.ok {
  background: rgba(34, 101, 76, 0.12);
  color: var(--ok);
  border-color: rgba(34, 101, 76, 0.18);
}

.status-pill.warn {
  background: rgba(158, 94, 19, 0.12);
  color: var(--warn);
  border-color: rgba(158, 94, 19, 0.18);
}

.status-pill.bad {
  background: rgba(138, 45, 38, 0.12);
  color: var(--bad);
  border-color: rgba(138, 45, 38, 0.18);
}

.status-pill.neutral {
  background: rgba(124, 56, 31, 0.08);
  color: var(--brand-deep);
  border-color: rgba(124, 56, 31, 0.14);
}

.ops-note {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(124, 56, 31, 0.06);
  border: 1px solid rgba(220, 199, 175, 0.7);
}

.ops-note strong {
  font-size: 0.92rem;
}

.ops-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 10px;
}

.ops-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(220, 199, 175, 0.9);
}

.ops-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.ops-timeline-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(220, 199, 175, 0.35);
}

.ops-timeline-dot.ok {
  background: var(--ok);
}

.ops-timeline-dot.bad {
  background: var(--bad);
}

.ops-timeline-dot.neutral {
  background: var(--brand-deep);
}

.ops-timeline-content {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(220, 199, 175, 0.65);
  background: rgba(255, 255, 255, 0.58);
}

.ops-timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ops-subsection {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.ops-subtitle {
  margin: 0;
  font-size: 1rem;
}

.ops-signal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ops-signal-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(220, 199, 175, 0.75);
  background: rgba(255, 255, 255, 0.7);
}

.ops-signal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.ops-signal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.65rem;
  line-height: 1.05;
}

.ops-signal-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.ops-signal-card.ok {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(34, 101, 76, 0.18);
}

.ops-signal-card.warn {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.13) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(158, 94, 19, 0.2);
}

.ops-signal-card.bad {
  background: linear-gradient(180deg, rgba(138, 45, 38, 0.13) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(138, 45, 38, 0.2);
}

.ops-signal-card.neutral {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(124, 56, 31, 0.15);
}

.ops-form-panel {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(220, 199, 175, 0.65);
}

@media (max-width: 720px) {
  .ops-kv-row {
    grid-template-columns: 1fr;
  }

  .ops-trend {
    grid-template-columns: auto 1fr;
  }

  .ops-trend-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.analytics-inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.analytics-role-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.analytics-role-metrics {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.analytics-role-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.analytics-role-metrics strong {
  font-size: 0.95rem;
  margin-top: 0;
}

.analytics-rank-list {
  display: grid;
  gap: 10px;
}

.analytics-rank-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220, 199, 175, 0.68);
  background: rgba(255, 255, 255, 0.62);
}

.analytics-rank-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: rgba(124, 56, 31, 0.08);
  color: var(--brand-deep);
}

.geo-badge.ok {
  background: rgba(34, 101, 76, 0.12);
  color: var(--ok);
  border-color: rgba(34, 101, 76, 0.18);
}

.geo-badge.warn {
  background: rgba(158, 94, 19, 0.14);
  color: var(--warn);
  border-color: rgba(158, 94, 19, 0.22);
}

.geo-badge.local {
  background: rgba(109, 90, 74, 0.12);
  color: var(--muted);
  border-color: rgba(109, 90, 74, 0.18);
}

.geo-badge.neutral {
  background: rgba(124, 56, 31, 0.08);
  color: var(--brand-deep);
  border-color: rgba(124, 56, 31, 0.14);
}

.geo-badge.large {
  padding: 9px 14px;
  font-size: 0.92rem;
}

.geo-badge-flag {
  font-size: 1.1em;
  line-height: 1;
}

.geo-badge-label {
  white-space: nowrap;
}

.geo-badge-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.recent-login-geo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(220, 199, 175, 0.68);
  background: rgba(255, 255, 255, 0.66);
}

.recent-login-geo-card.ok {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.11) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(34, 101, 76, 0.18);
}

.recent-login-geo-card.warn {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.14) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(158, 94, 19, 0.22);
}

.recent-login-geo-card.local {
  background: linear-gradient(180deg, rgba(109, 90, 74, 0.1) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(109, 90, 74, 0.18);
}

.recent-login-geo-card.neutral {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.08) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(124, 56, 31, 0.15);
}

.recent-login-geo-copy {
  display: grid;
  gap: 6px;
}

.geo-flag-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(220, 199, 175, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.geo-flag-image {
  display: block;
  width: 26px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(48, 37, 27, 0.15);
}

.geo-flag-fallback {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.geo-flag-tile.ok {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.14) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-color: rgba(34, 101, 76, 0.18);
}

.geo-flag-tile.warn {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.16) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(158, 94, 19, 0.22);
}

.geo-flag-tile.local {
  background: linear-gradient(180deg, rgba(109, 90, 74, 0.14) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(109, 90, 74, 0.18);
}

.geo-flag-tile.neutral {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.1) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-color: rgba(124, 56, 31, 0.15);
}

.country-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.country-rank-pill.top {
  background: linear-gradient(135deg, rgba(178, 88, 50, 0.18) 0%, rgba(124, 56, 31, 0.14) 100%);
  color: var(--brand-deep);
  border-color: rgba(178, 88, 50, 0.2);
}

.country-rank-pill.neutral {
  background: rgba(124, 56, 31, 0.08);
  color: var(--brand-deep);
  border-color: rgba(124, 56, 31, 0.14);
}

.country-distribution-grid {
  display: grid;
  gap: 12px;
}

.country-stat-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(220, 199, 175, 0.72);
  background: rgba(255, 255, 255, 0.7);
}

.country-stat-card.ok {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(34, 101, 76, 0.18);
}

.country-stat-card.neutral {
  background: linear-gradient(180deg, rgba(124, 56, 31, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(124, 56, 31, 0.15);
}

.country-stat-card.is-top {
  box-shadow: 0 18px 40px rgba(82, 47, 18, 0.1);
}

.country-stat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.country-stat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-stat-meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(220, 199, 175, 0.55);
  overflow: hidden;
}

.country-stat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34, 101, 76, 0.95) 0%, rgba(86, 166, 132, 0.85) 100%);
}

.badge.pending_activation {
  background: rgba(124, 56, 31, 0.1);
  color: var(--brand-deep);
}

.badge.locked {
  background: rgba(158, 94, 19, 0.14);
  color: var(--warn);
}

.compact-stack {
  gap: 10px;
}

.two-factor-setup-card {
  padding: 18px;
}

.two-factor-setup-grid {
  align-items: start;
}

.two-factor-qr {
  width: 220px;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(167, 130, 95, 0.18);
  background: #fff;
  padding: 10px;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.recovery-code {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(238, 244, 241, 0.92);
  border: 1px solid rgba(96, 141, 121, 0.2);
  color: #1f5d48;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.card-muted {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(220, 199, 175, 0.88);
  color: var(--muted);
}

.mrtg-provider-card,
.mrtg-chart-shell,
.mrtg-service-list,
.mrtg-notice-list {
  width: 100%;
}

.mrtg-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mrtg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(220, 199, 175, 0.8);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.mrtg-tab.is-active {
  background: linear-gradient(135deg, rgba(178, 88, 50, 0.14) 0%, rgba(124, 56, 31, 0.12) 100%);
  border-color: rgba(124, 56, 31, 0.22);
  color: var(--brand-deep);
}

.mrtg-provider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mrtg-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.mrtg-provider-grid > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(220, 199, 175, 0.72);
}

.mrtg-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mrtg-chart-shell {
  display: grid;
  gap: 12px;
}

.mrtg-chart {
  width: 100%;
  height: auto;
  display: block;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(250, 242, 233, 0.86) 100%);
  border: 1px solid rgba(220, 199, 175, 0.72);
}

.mrtg-chart-axis {
  stroke: rgba(109, 90, 74, 0.32);
  stroke-width: 2;
}

.mrtg-chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mrtg-chart-line.inbound {
  stroke: rgba(34, 101, 76, 0.95);
}

.mrtg-chart-line.outbound {
  stroke: rgba(178, 88, 50, 0.9);
}

.mrtg-chart-line.bandwidth {
  stroke: rgba(34, 101, 76, 0.95);
}

.mrtg-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.mrtg-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.mrtg-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.mrtg-legend-swatch.inbound {
  background: rgba(34, 101, 76, 0.95);
}

.mrtg-legend-swatch.outbound {
  background: rgba(178, 88, 50, 0.9);
}

.mrtg-legend-swatch.bandwidth {
  background: rgba(34, 101, 76, 0.95);
}

.mrtg-service-list {
  display: grid;
  gap: 10px;
}

.mrtg-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(220, 199, 175, 0.72);
}

.mrtg-cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.mrtg-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.hinet-delivery-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mrtg-vdc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.mrtg-notice-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.mrtg-group-switch {
  display: grid;
  gap: 12px;
}

.mrtg-group-switch-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.mrtg-group-switch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.mrtg-group-pill {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(220, 199, 175, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 247, 237, 0.88) 100%);
  box-shadow: 0 10px 24px rgba(82, 47, 18, 0.06);
}

.mrtg-group-pill:hover {
  border-color: rgba(124, 56, 31, 0.24);
  transform: translateY(-1px);
}

.mrtg-group-pill.is-active {
  border-color: rgba(34, 101, 76, 0.3);
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.12) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: 0 16px 32px rgba(34, 101, 76, 0.12);
}

.mrtg-group-pill-code {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mrtg-group-pill strong {
  font-size: 1rem;
}

.mrtg-group-select {
  max-width: 260px;
}

.mrtg-cacti-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 10px;
  background: #efefef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mrtg-cacti-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.mrtg-cacti-chart {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border: 1px solid #9a9a9a;
}

.mrtg-cacti-frame {
  fill: #ffffff;
}

.mrtg-cacti-grid {
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.mrtg-cacti-grid.horizontal {
  stroke: rgba(198, 54, 54, 0.24);
  stroke-dasharray: 2 3;
}

.mrtg-cacti-grid.vertical {
  stroke: rgba(104, 149, 72, 0.18);
  stroke-dasharray: 2 4;
}

.mrtg-cacti-line {
  fill: none;
  stroke: #0c58d2;
  stroke-width: 2.1;
  stroke-linejoin: round;
  stroke-linecap: square;
}

.mrtg-cacti-area {
  fill: rgba(105, 255, 25, 0.9);
  stroke: rgba(60, 160, 20, 0.62);
  stroke-width: 0.8;
}

.mrtg-cacti-reference {
  stroke: rgba(178, 47, 47, 0.92);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
}

.mrtg-cacti-axis-text {
  font-size: 11px;
  fill: #3c3c3c;
  font-family: "Tahoma", "Segoe UI", sans-serif;
}

.mrtg-cacti-axis-text.bottom {
  font-size: 10px;
}

.mrtg-cacti-period {
  text-align: center;
  font-size: 0.95rem;
  color: #333;
}

.mrtg-cacti-legend {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: #202020;
}

.mrtg-cacti-legend-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.mrtg-cacti-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(0, 0, 0, 0.28);
}

.mrtg-cacti-swatch.inbound {
  background: rgba(105, 255, 25, 0.95);
}

.mrtg-cacti-swatch.outbound {
  background: rgba(12, 88, 210, 0.95);
}

.mrtg-cacti-swatch.percentile {
  background: rgba(178, 47, 47, 0.95);
}

.shell-wide {
  width: min(1480px, calc(100% - 24px));
}

.shell-narrow {
  width: min(1120px, calc(100% - 32px));
}

.shell-hinet {
  --hinet-primary: var(--brand);
  --hinet-primary-deep: var(--brand-deep);
  --hinet-primary-soft: rgba(178, 88, 50, 0.08);
  --hinet-panel-bg: rgba(255, 251, 245, 0.94);
  --hinet-border: rgba(220, 199, 175, 0.92);
  --hinet-text-soft: var(--muted);
  --hinet-text-strong: var(--ink);
}

.shell-hinet .topbar {
  border-radius: 0 0 24px 24px;
  margin-top: 0;
  background: linear-gradient(180deg, var(--hinet-primary) 0%, var(--hinet-primary-deep) 100%);
  border-color: rgba(124, 56, 31, 0.32);
}

.shell-hinet .brand,
.shell-hinet .brand small,
.shell-hinet .nav a,
.shell-hinet .nav button {
  color: #fff;
}

.shell-hinet .nav a:hover,
.shell-hinet .nav button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hinet-report-page {
  display: grid;
  gap: 18px;
}

.hinet-report-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hinet-report-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hinet-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96) 0%, rgba(248, 240, 229, 0.96) 100%);
  border: 1px solid var(--hinet-border);
  box-shadow: 0 16px 36px rgba(82, 47, 18, 0.08);
}

.hinet-sidebar-user {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--hinet-border);
}

.hinet-sidebar-user strong {
  font-size: 1.1rem;
}

.hinet-sidebar-user span {
  color: var(--hinet-text-soft);
  font-size: 0.88rem;
}

.hinet-target-group {
  display: grid;
  gap: 10px;
}

.hinet-target-group-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hinet-border);
}

.hinet-target-group-summary::-webkit-details-marker {
  display: none;
}

.hinet-target-group-main {
  display: grid;
  gap: 4px;
}

.hinet-target-group-main strong {
  color: var(--hinet-text-strong);
}

.hinet-target-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(178, 88, 50, 0.1);
  color: var(--hinet-primary-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.hinet-target-group-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 138, 214, 0.12);
  color: #0f70b7;
  font-size: 0.76rem;
  font-weight: 800;
}

.hinet-target-list {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.hinet-target-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--hinet-border);
  background: rgba(255, 255, 255, 0.88);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.hinet-target-link:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 56, 31, 0.2);
  box-shadow: 0 16px 32px rgba(82, 47, 18, 0.08);
}

.hinet-target-link.is-active {
  border-color: rgba(124, 56, 31, 0.3);
  background: linear-gradient(180deg, rgba(178, 88, 50, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(124, 56, 31, 0.08);
}

.hinet-target-link-root {
  margin-bottom: 4px;
}

.hinet-target-link strong {
  display: block;
  font-size: 0.98rem;
}

.hinet-target-link small {
  display: block;
  margin-top: 4px;
  color: var(--hinet-text-soft);
}

.hinet-target-status {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #39c764;
  box-shadow: 0 0 0 3px rgba(57, 199, 100, 0.16);
}

.hinet-target-status.is-company {
  background: #1f8bd6;
  box-shadow: 0 0 0 3px rgba(31, 139, 214, 0.16);
}

.hinet-target-empty {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed var(--hinet-border);
  color: var(--hinet-text-soft);
  background: rgba(255, 255, 255, 0.68);
}

.hinet-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hinet-panel {
  border-radius: 22px;
  padding: 20px;
}

.hinet-breadcrumb {
  color: var(--hinet-text-soft);
  font-size: 0.95rem;
}

.hinet-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hinet-page-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hinet-report-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hinet-report-title {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: var(--hinet-text-strong);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.hinet-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 220px));
  gap: 0;
  border-bottom: 2px solid rgba(178, 88, 50, 0.16);
}

.hinet-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--hinet-text-soft);
  font-weight: 800;
  background: rgba(255, 249, 241, 0.96);
  border: 1px solid var(--hinet-border);
  border-bottom: 0;
}

.hinet-mode-tab:first-child {
  border-top-left-radius: 16px;
}

.hinet-mode-tab:last-child {
  border-top-right-radius: 16px;
}

.hinet-mode-tab.is-active {
  background: linear-gradient(180deg, rgba(178, 88, 50, 0.92) 0%, rgba(124, 56, 31, 0.94) 100%);
  color: #fff;
}

.hinet-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.hinet-toolbar span {
  display: block;
  margin-bottom: 8px;
  color: var(--hinet-text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.hinet-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hinet-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--hinet-text-soft);
  font-size: 0.92rem;
}

.hinet-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hinet-chart-card {
  display: grid;
  gap: 14px;
}

.hinet-chart-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hinet-chart-title-row h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hinet-chart-caption {
  color: var(--hinet-text-soft);
  font-size: 0.92rem;
}

.hinet-cacti-card {
  padding: 18px;
  gap: 14px;
}

.hinet-chart-style-note {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #617382;
  font-size: 0.88rem;
}

.hinet-chart-style-swatch {
  width: 16px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.hinet-chart-style-swatch.area {
  background: linear-gradient(180deg, rgba(105, 255, 25, 0.95) 0%, rgba(60, 160, 20, 0.92) 100%);
}

.hinet-chart-style-swatch.line {
  background: linear-gradient(90deg, rgba(12, 88, 210, 0.95) 0%, rgba(77, 154, 245, 0.95) 100%);
}

.hinet-dual-legend-row {
  padding-top: 4px;
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
}

.hinet-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .hinet-report-layout {
    grid-template-columns: 1fr;
  }

  .hinet-sidebar {
    position: static;
  }

  .hinet-secondary-grid {
    grid-template-columns: 1fr;
  }

  .hinet-delivery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hinet-report-top,
  .hinet-chart-title-row,
  .hinet-page-head {
    flex-direction: column;
  }

  .hinet-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .hinet-mode-tabs {
    grid-template-columns: 1fr;
  }

  .hinet-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .topbar,
  .hinet-sidebar,
  .page-actions,
  .hinet-page-head-actions,
  .hinet-toolbar,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .shell,
  .shell-wide {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hinet-report-layout {
    grid-template-columns: 1fr;
  }

  .card,
  .hinet-panel,
  .mrtg-cacti-card {
    box-shadow: none;
    border-color: #bbb;
  }
}

@media (max-width: 720px) {
  .admin-subnav {
    top: 8px;
    padding: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .admin-subnav-link {
    padding: 12px 14px;
  }

  .analytics-rank-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .country-stat-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .recent-login-geo-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .two-factor-setup-grid {
    grid-template-columns: 1fr;
  }

  .mrtg-cacti-head,
  .mrtg-cacti-legend-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell-wide {
    width: min(100% - 16px, 1680px);
  }

  .hinet-toolbar {
    grid-template-columns: 1fr;
  }

  .hinet-delivery-grid {
    grid-template-columns: 1fr;
  }
}

.shell-hinet .topbar {
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, rgba(33, 139, 219, 0.96) 0%, rgba(19, 108, 182, 0.96) 100%);
}

.hinet-report-layout {
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
}

.hinet-sidebar {
  border-radius: 18px;
}

.hinet-panel {
  border-radius: 18px;
}

.hinet-target-group-summary,
.hinet-target-link {
  border-radius: 12px;
}

.hinet-target-link.is-active {
  background: linear-gradient(180deg, rgba(31, 139, 214, 0.18) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(24, 112, 183, 0.12);
}

.hinet-toolbar {
  padding: 14px 0 4px;
  border-bottom: 1px solid rgba(194, 207, 216, 0.65);
}

.hinet-chart-meta {
  padding-top: 8px;
}

.hinet-official-chart {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--hinet-border);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.99) 0%, rgba(248, 242, 233, 0.98) 100%);
}

.hinet-official-chart .mrtg-cacti-frame {
  fill: #ffffff;
  stroke: rgba(150, 180, 201, 0.9);
}

.hinet-official-chart .mrtg-cacti-grid.horizontal,
.hinet-official-chart .mrtg-cacti-grid.vertical {
  stroke: rgba(142, 174, 198, 0.28);
}

.hinet-official-chart .mrtg-cacti-area {
  fill: rgba(121, 184, 233, 0.48);
}

.hinet-official-chart .mrtg-cacti-area.legend-color-1 { fill: rgba(91, 143, 249, 0.74); }
.hinet-official-chart .mrtg-cacti-area.legend-color-2 { fill: rgba(255, 122, 144, 0.72); }
.hinet-official-chart .mrtg-cacti-area.legend-color-3 { fill: rgba(255, 214, 102, 0.7); }
.hinet-official-chart .mrtg-cacti-area.legend-color-4 { fill: rgba(115, 209, 61, 0.68); }
.hinet-official-chart .mrtg-cacti-area.legend-color-5 { fill: rgba(54, 207, 201, 0.68); }
.hinet-official-chart .mrtg-cacti-area.legend-color-6 { fill: rgba(146, 84, 222, 0.68); }
.hinet-official-chart .mrtg-cacti-area.legend-color-7 { fill: rgba(255, 156, 110, 0.68); }
.hinet-official-chart .mrtg-cacti-area.legend-color-8 { fill: rgba(89, 126, 247, 0.68); }
.hinet-official-chart .mrtg-cacti-area.legend-color-9 { fill: rgba(149, 222, 100, 0.68); }
.hinet-official-chart .mrtg-cacti-area.legend-color-10 { fill: rgba(105, 192, 255, 0.68); }

.hinet-official-chart .mrtg-cacti-line {
  stroke: rgba(80, 149, 219, 0.95);
  stroke-width: 2.8;
}

.hinet-official-chart .mrtg-cacti-reference {
  stroke: rgba(204, 88, 78, 0.85);
  stroke-dasharray: 8 6;
}

.hinet-official-chart .mrtg-cacti-axis-text {
  fill: #6d7d8a;
}

.hinet-official-chart .mrtg-cacti-axis-title {
  fill: #4e6578;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hinet-chart-unit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--hinet-text-soft);
}

.hinet-domain-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hinet-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(220, 199, 175, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #345065;
  font-size: 0.84rem;
  cursor: pointer;
  appearance: none;
  box-shadow: 0 4px 14px rgba(82, 47, 18, 0.06);
}

.hinet-domain-chip strong {
  color: #23445c;
}

.hinet-domain-chip-control {
  border-style: dashed;
  background: rgba(248, 240, 229, 0.96);
}

.hinet-domain-chip-control strong {
  color: var(--brand-deep);
}

.hinet-domain-chip.is-muted {
  opacity: 0.45;
}

[data-chart-domain].is-hidden {
  display: none;
}

.hinet-domain-chip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.legend-color-1 { background: #5b8ff9; }
.legend-color-2 { background: #ff7a90; }
.legend-color-3 { background: #ffd666; }
.legend-color-4 { background: #73d13d; }
.legend-color-5 { background: #36cfc9; }
.legend-color-6 { background: #9254de; }
.legend-color-7 { background: #ff9c6e; }
.legend-color-8 { background: #597ef7; }
.legend-color-9 { background: #95de64; }
.legend-color-10 { background: #69c0ff; }
.legend-color-warning { background: #f08c42; }

.hinet-domain-table-wrap {
  overflow-x: auto;
}

.hinet-domain-table-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) minmax(180px, 1fr) minmax(160px, 0.9fr);
  gap: 12px;
  margin-bottom: 14px;
}

.hinet-domain-table-toolbar label {
  display: grid;
  gap: 6px;
}

.hinet-domain-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 0.92rem;
}

.hinet-domain-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(149, 180, 203, 0.85);
  background: linear-gradient(180deg, rgba(239, 226, 207, 0.98) 0%, rgba(229, 210, 186, 0.98) 100%);
  color: var(--brand-deep);
  text-align: left;
  font-weight: 700;
}

.hinet-domain-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(214, 225, 235, 0.88);
  color: #355468;
  vertical-align: middle;
}

.hinet-domain-table tbody tr:nth-child(odd) {
  background: rgba(234, 238, 255, 0.9);
}

.hinet-domain-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 255, 0.94);
}

.hinet-domain-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hinet-domain-meta {
  display: grid;
  gap: 4px;
}

.hinet-domain-meta strong {
  color: #29485f;
}

.hinet-domain-cell .muted[hidden] {
  display: none;
}

.hinet-domain-table th:nth-child(2),
.hinet-domain-table td:nth-child(2) {
  display: none;
}

.hinet-secondary-grid {
  gap: 20px;
}

@media (max-width: 1100px) {
  .hinet-report-layout {
    grid-template-columns: 1fr;
  }
}

/* HiNet CDN redesign */
.shell-app-theme,
.shell-hinet-admin {
  width: min(1480px, calc(100% - 24px));
  --bg: #edf7ff;
  --bg-accent: #dcefff;
  --card: rgba(248, 252, 255, 0.94);
  --ink: #123652;
  --muted: #5c7890;
  --line: #bfd8ea;
  --brand: #1688d5;
  --brand-deep: #0b5d99;
  --shadow: 0 24px 60px rgba(10, 56, 92, 0.12);
}

.shell-auth-theme {
  --bg: #edf7ff;
  --bg-accent: #dcefff;
  --card: rgba(247, 252, 255, 0.95);
  --ink: #123652;
  --muted: #5d7a91;
  --line: #bfd8ea;
  --brand: #1688d5;
  --brand-deep: #0b5d99;
  --shadow: 0 24px 60px rgba(10, 56, 92, 0.14);
}

body:has(.shell-app-theme),
body:has(.shell-hinet-admin) {
  background:
    radial-gradient(circle at top left, rgba(22, 136, 213, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(48, 162, 222, 0.12), transparent 22%),
    linear-gradient(180deg, #eef8ff 0%, #f8fcff 100%);
}

body:has(.shell-auth-theme) {
  background:
    radial-gradient(circle at top left, rgba(17, 128, 204, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(27, 168, 215, 0.14), transparent 22%),
    linear-gradient(180deg, #eef8ff 0%, #f7fbff 100%);
}

.shell-auth-theme .topbar {
  margin-top: 12px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(135deg, #0a5d9e 0%, #1180cc 48%, #1ba8d7 100%);
  border-color: rgba(17, 101, 163, 0.5);
  box-shadow:
    0 28px 60px rgba(11, 54, 89, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.shell-auth-theme .brand,
.shell-auth-theme .brand small {
  color: #f7fbff;
}

.shell-auth-theme .card {
  border-color: rgba(191, 216, 234, 0.92);
  background:
    radial-gradient(circle at top right, rgba(24, 165, 223, 0.08), transparent 28%),
    rgba(248, 252, 255, 0.96);
  box-shadow: 0 24px 50px rgba(16, 57, 86, 0.08);
}

.shell-auth-theme .hero {
  gap: 24px;
}

.shell-auth-theme .hero > .card.stack {
  background:
    radial-gradient(circle at top right, rgba(24, 165, 223, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(242, 249, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.shell-auth-theme .hero h1,
.shell-auth-theme .page-title {
  color: #123652;
}

.shell-auth-theme .lead,
.shell-auth-theme .label,
.shell-auth-theme .meta,
.shell-auth-theme .brand small {
  color: #5c7890;
}

.shell-auth-theme a {
  color: #0b5d99;
}

.shell-auth-theme input,
.shell-auth-theme select,
.shell-auth-theme textarea {
  border-color: rgba(191, 216, 234, 0.96);
  background: rgba(255, 255, 255, 0.98);
  color: #123652;
}

.shell-auth-theme button,
.shell-auth-theme .button {
  background: linear-gradient(135deg, #57b7f0 0%, #248fd4 100%);
  color: #f7fbff;
}

.shell-auth-theme .secondary,
.shell-auth-theme .button.secondary,
.shell-auth-theme button.secondary {
  background: linear-gradient(135deg, rgba(87, 183, 240, 0.12) 0%, rgba(36, 143, 212, 0.08) 100%);
  color: #0b5d99;
  border: 1px solid rgba(156, 209, 238, 0.88);
}

.shell-auth-theme .flash.success {
  background: rgba(34, 140, 116, 0.14);
  color: #1b6e5b;
}

.shell-auth-theme .flash.error {
  background: rgba(191, 51, 79, 0.12);
  color: #8f2040;
}

.shell-app-theme .topbar,
.shell-hinet-admin .topbar {
  margin-top: 12px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(135deg, #0a5d9e 0%, #1180cc 48%, #1ba8d7 100%);
  border-color: rgba(17, 101, 163, 0.5);
  box-shadow:
    0 28px 60px rgba(11, 54, 89, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.shell-app-theme .brand,
.shell-app-theme .brand small,
.shell-app-theme .nav a,
.shell-app-theme .nav button,
.shell-hinet-admin .brand,
.shell-hinet-admin .brand small,
.shell-hinet-admin .nav a,
.shell-hinet-admin .nav button {
  color: #f7fbff;
}

.shell-app-theme .nav a:hover,
.shell-app-theme .nav button:hover,
.shell-hinet-admin .nav a:hover,
.shell-hinet-admin .nav button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.shell-app-theme .button,
.shell-app-theme button,
.shell-app-theme .button.secondary,
.shell-app-theme button.secondary,
.shell-app-theme .ghost,
.shell-hinet-admin .button,
.shell-hinet-admin button,
.shell-hinet-admin .button.secondary,
.shell-hinet-admin button.secondary,
.shell-hinet-admin .ghost {
  background: linear-gradient(135deg, #57b7f0 0%, #248fd4 100%);
  color: #f7fbff;
}

.shell-app-theme .button.secondary,
.shell-app-theme button.secondary,
.shell-app-theme .ghost,
.shell-hinet-admin .button.secondary,
.shell-hinet-admin button.secondary,
.shell-hinet-admin .ghost {
  background: linear-gradient(135deg, rgba(87, 183, 240, 0.12) 0%, rgba(36, 143, 212, 0.08) 100%);
  color: var(--brand-deep);
  border: 1px solid rgba(156, 209, 238, 0.88);
}

.shell-app-theme .button.bad,
.shell-app-theme button.bad,
.shell-hinet-admin .button.bad,
.shell-hinet-admin button.bad {
  background: linear-gradient(135deg, #1b74b8 0%, #0a4e82 100%);
  color: #f7fbff;
}

.shell-app-theme .flash.info,
.shell-hinet-admin .flash.info {
  background: rgba(22, 136, 213, 0.1);
  color: var(--brand-deep);
}

.shell-app-theme .nav button,
.shell-hinet-admin .nav button {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.shell-app-theme .card,
.shell-app-theme .filters-card,
.shell-app-theme .stat-card,
.shell-app-theme .soft-card,
.shell-app-theme .card-muted,
.shell-app-theme .pagination-bar,
.shell-app-theme .log-clue-item,
.shell-app-theme .playlist-entry,
.shell-app-theme .ops-panel-state,
.shell-app-theme .ops-kv-row,
.shell-app-theme .ops-mini-stat,
.shell-app-theme .ops-meter-card {
  border-color: rgba(191, 216, 234, 0.92);
  box-shadow: 0 24px 50px rgba(16, 57, 86, 0.08);
}

.shell-app-theme .card,
.shell-app-theme .filters-card {
  background:
    radial-gradient(circle at top right, rgba(24, 165, 223, 0.06), transparent 28%),
    rgba(248, 252, 255, 0.95);
}

.shell-app-theme .soft-card,
.shell-app-theme .log-clue-item,
.shell-app-theme .pagination-bar,
.shell-app-theme .playlist-entry,
.shell-app-theme .ops-kv-row,
.shell-app-theme .ops-meter-card {
  background: linear-gradient(180deg, rgba(242, 249, 255, 0.94) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.shell-app-theme .stat-card,
.shell-app-theme .ops-mini-stat {
  background: linear-gradient(180deg, rgba(239, 248, 255, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.shell-app-theme .stat-card-primary {
  background: linear-gradient(135deg, rgba(22, 136, 213, 0.14) 0%, rgba(11, 93, 153, 0.08) 100%);
}

.shell-app-theme .flash.success {
  background: rgba(34, 140, 116, 0.14);
  color: #1b6e5b;
}

.shell-app-theme .flash.error {
  background: rgba(191, 51, 79, 0.12);
  color: #8f2040;
}

.shell-app-theme .admin-subnav {
  border-color: rgba(188, 214, 232, 0.88);
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.95) 0%, rgba(232, 243, 252, 0.94) 100%);
  box-shadow:
    0 16px 36px rgba(16, 57, 86, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.shell-app-theme .admin-subnav-link {
  border-color: rgba(191, 216, 234, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 248, 254, 0.95) 100%);
  box-shadow: 0 12px 30px rgba(16, 79, 120, 0.08);
}

.shell-app-theme .admin-subnav-link:hover {
  border-color: rgba(17, 128, 204, 0.35);
  box-shadow: 0 18px 36px rgba(16, 79, 120, 0.12);
}

.shell-app-theme .admin-subnav-link.is-active {
  border-color: rgba(17, 128, 204, 0.38);
  background: linear-gradient(180deg, rgba(225, 242, 252, 0.94) 0%, rgba(255, 255, 255, 0.97) 100%);
  box-shadow: 0 20px 38px rgba(17, 128, 204, 0.1);
}

.shell-app-theme .admin-subnav-link.is-active::after {
  background: linear-gradient(90deg, rgba(17, 128, 204, 0.95) 0%, rgba(24, 165, 223, 0.58) 100%);
}

.shell-app-theme .admin-subnav-badge {
  background: rgba(17, 128, 204, 0.1);
  color: #0b5d99;
}

.shell-app-theme .admin-subnav.is-compact {
  box-shadow:
    0 12px 26px rgba(16, 57, 86, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.96) 0%, rgba(235, 245, 252, 0.94) 100%);
}

.shell-app-theme .badge.queued,
.shell-app-theme .badge.downloading,
.shell-app-theme .badge.muxing,
.shell-app-theme .badge.expired {
  background: rgba(17, 128, 204, 0.12);
  color: #0b5d99;
}

.shell-app-theme .badge.pending_activation {
  background: rgba(17, 128, 204, 0.12);
  color: #0b5d99;
}

.shell-app-theme .log-output {
  border-color: rgba(166, 196, 218, 0.75);
  background: #11293a;
  color: #edf7ff;
}

.shell-app-theme th,
.shell-app-theme td {
  border-bottom-color: rgba(191, 216, 234, 0.72);
}

.shell-app-theme th {
  color: #56758c;
}

.shell-app-theme .ops-panel::before {
  background: rgba(17, 128, 204, 0.2);
}

.shell-app-theme .ops-panel:has(.ops-panel-state.neutral)::before {
  background: linear-gradient(180deg, rgba(17, 128, 204, 0.7) 0%, rgba(17, 128, 204, 0.22) 100%);
}

.shell-app-theme .ops-panel-state.neutral {
  background: linear-gradient(180deg, rgba(22, 136, 213, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(17, 128, 204, 0.16);
}

.shell-app-theme .ops-mini-stat.neutral {
  background: linear-gradient(180deg, rgba(22, 136, 213, 0.08) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(17, 128, 204, 0.16);
}

.shell-app-theme .ops-panel-state-label,
.shell-app-theme .stat-tone-pill.neutral,
.shell-app-theme .admin-subnav-kicker,
.shell-app-theme .admin-subnav-meta-label,
.shell-app-theme .meta,
.shell-app-theme .muted,
.shell-app-theme .footer-note,
.shell-app-theme .label,
.shell-app-theme .lead,
.shell-app-theme .brand small {
  color: #5c7890;
}

.shell-app-theme code {
  color: #0f4f7d;
}

.shell-app-theme input,
.shell-app-theme select,
.shell-app-theme textarea {
  border-color: rgba(191, 216, 234, 0.96);
  background: rgba(255, 255, 255, 0.96);
}

.shell-app-theme .mrtg-tab {
  border-color: rgba(191, 216, 234, 0.84);
  background: rgba(255, 255, 255, 0.82);
  color: #20415c;
}

.shell-app-theme .mrtg-tab.is-active {
  background: linear-gradient(135deg, rgba(22, 136, 213, 0.14) 0%, rgba(11, 93, 153, 0.12) 100%);
  border-color: rgba(17, 128, 204, 0.22);
  color: #0b5d99;
}

.shell-app-theme .country-rank-pill.top {
  background: linear-gradient(135deg, rgba(22, 136, 213, 0.18) 0%, rgba(11, 93, 153, 0.14) 100%);
  border-color: rgba(17, 128, 204, 0.2);
  color: #0b5d99;
}

.shell-app-theme .country-rank-pill.neutral {
  background: rgba(17, 128, 204, 0.08);
  border-color: rgba(17, 128, 204, 0.14);
  color: #0b5d99;
}

.shell-app-theme .country-stat-card {
  border-color: rgba(191, 216, 234, 0.74);
  background: rgba(255, 255, 255, 0.82);
}

.shell-app-theme .country-stat-card.neutral {
  background: linear-gradient(180deg, rgba(22, 136, 213, 0.08) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-color: rgba(17, 128, 204, 0.15);
}

.shell-app-theme .country-stat-card.is-top {
  box-shadow: 0 18px 40px rgba(16, 79, 120, 0.1);
}

.shell-app-theme .country-stat-meter {
  background: rgba(191, 216, 234, 0.58);
}

.shell-app-theme .country-stat-fill {
  background: linear-gradient(90deg, rgba(17, 128, 204, 0.95) 0%, rgba(98, 189, 242, 0.86) 100%);
}

.shell-app-theme .two-factor-qr {
  border-color: rgba(167, 206, 228, 0.42);
}

.shell-app-theme .recovery-code {
  background: rgba(237, 247, 255, 0.96);
  border-color: rgba(145, 195, 225, 0.3);
  color: #0b5d99;
}

.shell-app-theme .page-section.narrow {
  max-width: 1120px;
  margin: 0 auto;
}

.hinet-ui {
  display: grid;
  gap: 20px;
}

.hinet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(27, 168, 215, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(8, 34, 55, 0.98) 0%, rgba(11, 75, 119, 0.96) 52%, rgba(16, 121, 190, 0.92) 100%);
  color: #f7fbff;
  border: 1px solid rgba(34, 132, 199, 0.4);
  box-shadow: 0 32px 72px rgba(8, 47, 79, 0.28);
}

.hinet-hero-admin {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
}

.hinet-hero-copy {
  display: grid;
  gap: 14px;
}

.hinet-eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(227, 241, 251, 0.78);
}

.hinet-hero-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.hinet-hero-text {
  margin: 0;
  max-width: 68ch;
  color: rgba(235, 246, 252, 0.88);
  font-size: 1rem;
  line-height: 1.7;
}

.hinet-hero-side,
.hinet-status-banner {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hinet-status-banner {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 31, 51, 0.34);
  backdrop-filter: blur(12px);
}

.hinet-status-banner.ok {
  background: linear-gradient(180deg, rgba(18, 87, 67, 0.48) 0%, rgba(8, 31, 51, 0.34) 100%);
}

.hinet-status-banner.warn {
  background: linear-gradient(180deg, rgba(145, 84, 18, 0.46) 0%, rgba(8, 31, 51, 0.34) 100%);
}

.hinet-status-banner.bad {
  background: linear-gradient(180deg, rgba(128, 34, 34, 0.46) 0%, rgba(8, 31, 51, 0.34) 100%);
}

.hinet-status-banner.neutral {
  background: rgba(7, 31, 51, 0.34);
}

.hinet-status-banner strong {
  font-size: 1.08rem;
  line-height: 1.5;
}

.hinet-status-banner small {
  color: rgba(235, 246, 252, 0.8);
  font-size: 0.88rem;
}

.hinet-status-label,
.hinet-section-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(229, 242, 251, 0.72);
}

.hinet-hero-actions {
  justify-content: flex-start;
}

.hinet-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.hinet-sidebar-panel,
.hinet-surface {
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.97) 0%, rgba(248, 244, 237, 0.98) 100%);
  border: 1px solid rgba(207, 222, 232, 0.95);
  box-shadow: 0 24px 50px rgba(16, 57, 86, 0.08);
}

.hinet-sidebar-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.hinet-sidebar-summary {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 246, 252, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(194, 216, 231, 0.94);
}

.hinet-sidebar-summary strong {
  font-size: clamp(1rem, 0.92rem + 0.5vw, 1.15rem);
  line-height: 1.28;
  color: #123652;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hinet-sidebar-summary small {
  color: #59738a;
}

.hinet-sidebar-summary .hinet-section-kicker {
  font-size: 0;
}

.hinet-sidebar-summary .hinet-section-kicker::after {
  content: "更新時間";
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c7a91;
}

.hinet-sidebar-summary small:first-of-type {
  display: none;
}

.hinet-sidebar-source {
  display: block;
}

.hinet-sidebar-group-list,
.hinet-sidebar-links {
  display: grid;
  gap: 10px;
}

.hinet-sidebar-group {
  display: grid;
  gap: 10px;
}

.hinet-sidebar-group-summary,
.hinet-nav-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
  color: #1b3951;
  border-radius: 18px;
  border: 1px solid rgba(199, 217, 229, 0.94);
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.hinet-sidebar-group-summary {
  grid-template-columns: 1fr auto;
  cursor: pointer;
  list-style: none;
}

.hinet-sidebar-group-summary > div,
.hinet-nav-link > div {
  min-width: 0;
}

.hinet-sidebar-group-summary::-webkit-details-marker {
  display: none;
}

.hinet-sidebar-group-summary:hover,
.hinet-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 128, 204, 0.42);
  box-shadow: 0 16px 28px rgba(16, 79, 120, 0.1);
}

.hinet-nav-link.is-static {
  cursor: default;
}

.hinet-nav-link.is-static:hover {
  transform: none;
}

.hinet-nav-link.is-active,
.hinet-sidebar-group[open] > .hinet-sidebar-group-summary {
  border-color: rgba(17, 128, 204, 0.5);
  background: linear-gradient(180deg, rgba(225, 242, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 128, 204, 0.08);
}

.hinet-nav-link strong,
.hinet-sidebar-group-summary strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hinet-nav-link small,
.hinet-sidebar-group-summary small,
.hinet-empty-inline {
  display: block;
  color: #648093;
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hinet-sidebar-breakdown {
  color: #2d5772;
  font-size: 0.8rem;
  font-weight: 600;
}

.hinet-nav-dot,
.hinet-domain-chip-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #29b084 0%, #1b8c69 100%);
  box-shadow: 0 0 0 4px rgba(41, 176, 132, 0.14);
}

.hinet-nav-dot.is-company {
  background: linear-gradient(180deg, #18a5df 0%, #0f7ebb 100%);
  box-shadow: 0 0 0 4px rgba(24, 165, 223, 0.14);
}

.hinet-nav-dot.is-warning {
  background: linear-gradient(180deg, #f2a34e 0%, #d06a1d 100%);
  box-shadow: 0 0 0 4px rgba(240, 140, 66, 0.18);
}

.hinet-nav-dot.legend-color-1,
.hinet-domain-chip-swatch.legend-color-1 { box-shadow: 0 0 0 4px rgba(91, 143, 249, 0.14); }
.hinet-nav-dot.legend-color-2,
.hinet-domain-chip-swatch.legend-color-2 { box-shadow: 0 0 0 4px rgba(255, 122, 144, 0.14); }
.hinet-nav-dot.legend-color-3,
.hinet-domain-chip-swatch.legend-color-3 { box-shadow: 0 0 0 4px rgba(255, 214, 102, 0.18); }
.hinet-nav-dot.legend-color-4,
.hinet-domain-chip-swatch.legend-color-4 { box-shadow: 0 0 0 4px rgba(115, 209, 61, 0.14); }
.hinet-nav-dot.legend-color-5,
.hinet-domain-chip-swatch.legend-color-5 { box-shadow: 0 0 0 4px rgba(54, 207, 201, 0.14); }
.hinet-nav-dot.legend-color-6,
.hinet-domain-chip-swatch.legend-color-6 { box-shadow: 0 0 0 4px rgba(146, 84, 222, 0.14); }
.hinet-nav-dot.legend-color-7,
.hinet-domain-chip-swatch.legend-color-7 { box-shadow: 0 0 0 4px rgba(255, 156, 110, 0.18); }
.hinet-nav-dot.legend-color-8,
.hinet-domain-chip-swatch.legend-color-8 { box-shadow: 0 0 0 4px rgba(89, 126, 247, 0.14); }
.hinet-nav-dot.legend-color-9,
.hinet-domain-chip-swatch.legend-color-9 { box-shadow: 0 0 0 4px rgba(149, 222, 100, 0.16); }
.hinet-nav-dot.legend-color-10,
.hinet-domain-chip-swatch.legend-color-10 { box-shadow: 0 0 0 4px rgba(105, 192, 255, 0.14); }

.hinet-sidebar-warning-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a541d;
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hinet-sidebar-warning-note.is-inline {
  margin-top: 2px;
  font-size: 0.76rem;
}

.hinet-report-custom-range {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.hinet-report-custom-range label {
  min-width: 180px;
}

.hinet-count-pill,
.hinet-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 128, 204, 0.08);
  color: #0b558d;
  border: 1px solid rgba(167, 206, 228, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hinet-main-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hinet-panel-heading,
.hinet-chart-head,
.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hinet-panel-heading > *,
.hinet-chart-head > *,
.section-title-row > *,
.hinet-report-toolbar > *,
.hinet-heading-actions > *,
.hinet-chart-side > * {
  min-width: 0;
}

.hinet-panel-title,
.hinet-chart-head .section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  color: #123652;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.hinet-breadcrumb {
  margin: 0 0 8px;
  color: #6a8397;
  font-size: 0.88rem;
}

.hinet-heading-actions,
.hinet-chart-side,
.hinet-card-grid,
.hinet-note-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hinet-mode-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hinet-mode-pill {
  display: grid;
  gap: 6px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(191, 216, 234, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 249, 255, 0.96) 100%);
  text-decoration: none;
  color: #183d59;
  box-shadow: 0 14px 28px rgba(16, 79, 120, 0.08);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.hinet-mode-pill:hover,
.hinet-mode-pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(17, 128, 204, 0.42);
  box-shadow: 0 20px 36px rgba(16, 79, 120, 0.14);
}

.hinet-mode-pill.is-active {
  border-color: rgba(17, 128, 204, 0.58);
  background:
    radial-gradient(circle at top right, rgba(24, 165, 223, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(229, 243, 253, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
  box-shadow:
    0 22px 40px rgba(16, 79, 120, 0.14),
    inset 0 0 0 1px rgba(17, 128, 204, 0.12);
}

.hinet-mode-pill-label {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #123652;
  overflow-wrap: anywhere;
}

.hinet-mode-pill-meta {
  display: block;
  color: #5f7b92;
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hinet-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(211, 225, 234, 0.92);
}

.hinet-filter-form-admin {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) auto;
}

.hinet-filter-form label,
.hinet-table-toolbar label,
.hinet-form-grid label {
  display: grid;
  gap: 8px;
}

.hinet-filter-form span,
.hinet-table-toolbar span,
.hinet-form-grid span,
.hinet-form-layout > .hinet-form-section span {
  color: #587286;
  font-size: 0.84rem;
  font-weight: 700;
}

.hinet-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hinet-info-grid,
.hinet-metric-grid,
.hinet-admin-grid,
.hinet-card-grid {
  display: grid;
  gap: 14px;
}

.hinet-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.hinet-info-card,
.hinet-kpi-card,
.hinet-note-card {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(200, 219, 231, 0.94);
  background:
    radial-gradient(circle at top right, rgba(24, 165, 223, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hinet-info-card span,
.hinet-kpi-card span {
  display: block;
  color: #678197;
  font-size: 0.82rem;
  font-weight: 700;
}

.hinet-info-card strong,
.hinet-kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.15rem, 0.92rem + 0.9vw, 1.5rem);
  line-height: 1.15;
  color: #15364f;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hinet-info-card small,
.hinet-kpi-card small,
.hinet-note-card p {
  display: block;
  margin-top: 8px;
  color: #698195;
  line-height: 1.55;
}

.hinet-fit-text {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hinet-fit-text-time {
  font-size: clamp(1.05rem, 1.3vw, 1.32rem);
  line-height: 1.22;
}

.hinet-fit-text-status {
  font-size: clamp(1rem, 1.1vw, 1.24rem);
  line-height: 1.28;
}

.hinet-settings-status-grid {
  margin-top: 18px;
}

.hinet-settings-status-card strong {
  font-size: clamp(1.05rem, 1.2vw, 1.32rem);
  line-height: 1.28;
}

.hinet-settings-page-head {
  grid-column: 1 / -1;
  padding: 24px 26px;
  background:
    radial-gradient(circle at top right, rgba(24, 165, 223, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(244, 250, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(188, 215, 232, 0.96);
}

.hinet-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.hinet-kpi-status {
  position: relative;
  overflow: hidden;
}

.hinet-kpi-status::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: rgba(17, 128, 204, 0.28);
}

.hinet-kpi-status.ok::before {
  background: linear-gradient(180deg, rgba(34, 101, 76, 0.9) 0%, rgba(34, 101, 76, 0.3) 100%);
}

.hinet-kpi-status.warn::before {
  background: linear-gradient(180deg, rgba(158, 94, 19, 0.92) 0%, rgba(158, 94, 19, 0.34) 100%);
}

.hinet-kpi-status.bad::before {
  background: linear-gradient(180deg, rgba(138, 45, 38, 0.92) 0%, rgba(138, 45, 38, 0.34) 100%);
}

.hinet-kpi-card-compact strong {
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.25rem);
}

.hinet-chart-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(196, 216, 230, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 252, 0.98) 100%);
}

.hinet-chart-meta-row,
.hinet-chart-summary-row,
.hinet-domain-chip-list,
.hinet-notice-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hinet-chart-meta-row {
  color: #617a8f;
  font-size: 0.88rem;
}

.hinet-chart-shell .hinet-chart-meta-row,
.hinet-chart-shell .mrtg-cacti-legend {
  display: none;
}

.hinet-chart-summary-row {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(196, 216, 230, 0.92);
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.96) 0%, rgba(235, 245, 252, 0.94) 100%);
  color: #49657c;
  font-size: 0.92rem;
}

.hinet-chart-summary-row span,
.hinet-chart-summary-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hinet-chart-summary-row strong {
  color: #0c4d79;
}

.hinet-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(191, 216, 233, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
  color: #20415c;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(17, 78, 118, 0.045);
}

.hinet-domain-chip strong {
  color: #16374f;
  overflow-wrap: anywhere;
}

.hinet-domain-chip-control {
  border-style: dashed;
  border-color: rgba(160, 205, 234, 0.8);
  background: linear-gradient(180deg, rgba(235, 246, 255, 0.96) 0%, rgba(226, 241, 252, 0.96) 100%);
}

.shell-hinet-admin .hinet-hero-actions .button.primary,
.shell-hinet-admin .hinet-filter-actions .button.primary,
.shell-hinet-admin .row-actions .button,
.shell-hinet-admin .hinet-domain-actions .button {
  background: linear-gradient(135deg, #62bdf2 0%, #2d93d7 100%);
}

.shell-hinet-admin .hinet-hero-actions .button.secondary,
.shell-hinet-admin .hinet-filter-actions .button.secondary,
.shell-hinet-admin .row-actions .button.secondary,
.shell-hinet-admin .hinet-domain-actions .button.secondary {
  background: linear-gradient(135deg, rgba(98, 189, 242, 0.12) 0%, rgba(45, 147, 215, 0.08) 100%);
  color: #0b5d99;
  border: 1px solid rgba(168, 216, 241, 0.92);
}

.hinet-domain-chip.is-muted {
  opacity: 0.42;
}

[data-chart-domain].is-hidden {
  display: none;
}

.hinet-chart-shell .mrtg-cacti-chart {
  border-color: rgba(137, 184, 215, 0.92);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.98) 100%);
}

.hinet-chart-shell .mrtg-cacti-area {
  fill: rgba(108, 178, 238, 0.18);
  stroke: rgba(74, 140, 203, 0.24);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-1 {
  fill: rgba(126, 188, 244, 0.68);
  stroke: rgba(90, 157, 224, 0.78);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-2 {
  fill: rgba(82, 88, 98, 0.5);
  stroke: rgba(60, 66, 75, 0.82);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-3 {
  fill: rgba(255, 174, 66, 0.66);
  stroke: rgba(204, 120, 25, 0.7);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-4 {
  fill: rgba(83, 121, 255, 0.62);
  stroke: rgba(47, 76, 199, 0.7);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-5 {
  fill: rgba(84, 203, 90, 0.58);
  stroke: rgba(48, 145, 56, 0.68);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-6 {
  fill: rgba(255, 111, 145, 0.6);
  stroke: rgba(190, 58, 91, 0.68);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-7 {
  fill: rgba(62, 190, 232, 0.58);
  stroke: rgba(30, 128, 175, 0.68);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-8 {
  fill: rgba(152, 119, 255, 0.56);
  stroke: rgba(99, 75, 196, 0.68);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-9 {
  fill: rgba(245, 201, 75, 0.62);
  stroke: rgba(180, 135, 22, 0.68);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-10 {
  fill: rgba(75, 214, 219, 0.58);
  stroke: rgba(35, 148, 153, 0.68);
}

.hinet-chart-shell .mrtg-cacti-area.legend-color-warning {
  fill: rgba(240, 140, 66, 0.32);
  stroke: rgba(196, 92, 28, 0.72);
}

.hinet-chart-shell .mrtg-cacti-line {
  stroke: rgba(4, 74, 132, 0.96);
  stroke-width: 3;
  filter: drop-shadow(0 2px 3px rgba(14, 82, 132, 0.18));
}

.hinet-chart-shell .mrtg-cacti-domain-line {
  fill: none;
  stroke-width: 1.9;
  opacity: 0.96;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-1 {
  stroke: rgba(83, 148, 214, 0.98);
  stroke-width: 2.1;
  filter: drop-shadow(0 1px 1px rgba(103, 165, 226, 0.16));
}

.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-2 {
  stroke: rgba(54, 58, 66, 0.96);
  stroke-width: 1.75;
}

.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-3 { stroke: rgba(204, 120, 25, 0.9); }
.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-4 { stroke: rgba(47, 76, 199, 0.92); }
.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-5 { stroke: rgba(48, 145, 56, 0.9); }
.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-6 { stroke: rgba(190, 58, 91, 0.9); }
.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-7 { stroke: rgba(30, 128, 175, 0.9); }
.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-8 { stroke: rgba(99, 75, 196, 0.9); }
.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-9 { stroke: rgba(180, 135, 22, 0.9); }
.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-10 { stroke: rgba(35, 148, 153, 0.9); }
.hinet-chart-shell .mrtg-cacti-domain-line.legend-color-warning { stroke: rgba(196, 92, 28, 0.94); }

.hinet-domain-chip-swatch.legend-color-1 {
  background: linear-gradient(180deg, #9cd0fb 0%, #68aee6 100%);
  box-shadow: inset 0 0 0 1px rgba(73, 142, 208, 0.28);
}

.hinet-domain-chip-swatch.legend-color-2 {
  background: linear-gradient(180deg, #6e7480 0%, #4d535d 100%);
  box-shadow: inset 0 0 0 1px rgba(39, 43, 50, 0.24);
}

.hinet-domain-chip-swatch.legend-color-warning {
  background: linear-gradient(180deg, #f7b555 0%, #e87a2a 100%);
  box-shadow: inset 0 0 0 1px rgba(196, 92, 28, 0.24);
}

.hinet-table-toolbar {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.5fr)
    minmax(180px, 1fr)
    minmax(180px, 1fr)
    minmax(160px, 0.9fr);
  gap: 12px;
  margin-top: 18px;
}

.hinet-domain-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.hinet-domain-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.hinet-domain-table thead th {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(225, 240, 251, 0.98) 0%, rgba(210, 229, 243, 0.98) 100%);
  color: #0d4f83;
  border-bottom: 1px solid rgba(177, 204, 222, 0.95);
}

.hinet-domain-table thead th:first-child {
  border-top-left-radius: 16px;
}

.hinet-domain-table thead th:last-child {
  border-top-right-radius: 16px;
}

.hinet-domain-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(218, 230, 238, 0.96);
  background: rgba(255, 255, 255, 0.95);
  color: #28465f;
  vertical-align: middle;
}

.hinet-domain-table tbody tr:nth-child(even) td {
  background: rgba(247, 251, 253, 0.98);
}

.hinet-domain-table tfoot td {
  padding: 14px 16px;
  border-top: 2px solid rgba(143, 182, 208, 0.95);
  border-bottom: 1px solid rgba(210, 225, 236, 0.98);
  background: linear-gradient(180deg, rgba(239, 247, 252, 0.98) 0%, rgba(230, 241, 249, 0.98) 100%);
  color: #173c56;
  font-weight: 700;
  vertical-align: middle;
}

.hinet-domain-summary-row strong {
  color: #0c4d79;
}

.hinet-domain-cell,
.hinet-domain-meta {
  display: grid;
  gap: 6px;
}

.hinet-domain-cell {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.hinet-domain-actions {
  min-width: 120px;
}

.hinet-admin-table {
  min-width: 1180px;
}

.hinet-mini-button {
  padding: 9px 12px;
  font-size: 0.84rem;
}

.hinet-empty-state {
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed rgba(176, 203, 221, 0.94);
  background: linear-gradient(180deg, rgba(244, 249, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: #49667f;
}

.hinet-empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #123652;
}

.hinet-empty-state p,
.hinet-note-card p {
  margin: 0;
}

.hinet-secondary-grid,
.hinet-admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hinet-report-section {
  display: grid;
  gap: 18px;
}

.hinet-report-condition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hinet-report-condition-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(189, 214, 231, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(24, 165, 223, 0.08), transparent 34%),
    rgba(247, 252, 255, 0.94);
}

.hinet-report-condition-item span {
  display: block;
  color: #5d7990;
  font-size: 0.8rem;
  font-weight: 800;
}

.hinet-report-condition-item strong {
  display: block;
  margin-top: 8px;
  color: #123a56;
  font-size: clamp(0.82rem, 0.68rem + 0.5vw, 1.05rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hinet-report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hinet-report-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.hinet-report-toolbar label {
  display: grid;
  flex: 1 1 320px;
  gap: 8px;
  max-width: 520px;
}

.hinet-report-toolbar span {
  color: #587286;
  font-size: 0.84rem;
  font-weight: 800;
}

.hinet-report-toolbar-inline {
  flex-wrap: nowrap;
  align-items: end;
}

.hinet-report-toolbar-inline > label {
  flex: 0 1 300px;
  max-width: 300px;
}

.hinet-report-toolbar-inline > .hinet-report-custom-range-field {
  flex: 0 1 230px;
  max-width: 230px;
}

.hinet-report-toolbar-inline > .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hinet-report-custom-range-inline {
  display: flex;
  align-items: end;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
}

.hinet-report-custom-range-inline label {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.hinet-report-custom-range-field {
  display: grid;
  gap: 8px;
}

.hinet-report-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(190, 214, 230, 0.95);
  background: rgba(255, 255, 255, 0.86);
}

.hinet-report-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.93rem;
}

.hinet-report-table th,
.hinet-report-table td {
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.hinet-report-table thead th {
  background: linear-gradient(180deg, rgba(226, 242, 253, 0.98) 0%, rgba(207, 228, 243, 0.98) 100%);
  color: #0d4f83;
  border-bottom: 1px solid rgba(168, 199, 219, 0.96);
  font-weight: 800;
}

.hinet-report-table tbody td {
  color: #28465f;
  border-bottom: 1px solid rgba(218, 230, 238, 0.96);
  background: rgba(255, 255, 255, 0.96);
}

.hinet-report-table tbody tr:nth-child(even) td {
  background: rgba(247, 251, 253, 0.98);
}

.hinet-report-table tbody tr[hidden] {
  display: none;
}

.hinet-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.hinet-report-row-total td {
  background: rgba(231, 242, 252, 0.98) !important;
  color: #123f67;
  font-weight: 800;
}

.hinet-pricing-table input[type="number"] {
  min-width: 120px;
}

.hinet-performance-shell {
  display: grid;
  gap: 18px;
}

.hinet-performance-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border: 1px dashed rgba(173, 199, 220, 0.96);
  border-radius: 20px;
  background: rgba(251, 254, 255, 0.92);
}

.hinet-performance-form .hinet-filter-actions {
  display: flex;
  gap: 10px;
}

.hinet-performance-hero {
  display: grid;
  gap: 16px;
}

.hinet-performance-chart-card {
  padding: 18px 20px;
  border: 1px solid rgba(188, 214, 233, 0.96);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(29, 153, 214, 0.12), transparent 34%),
    rgba(248, 252, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hinet-performance-chart-stage {
  min-height: 420px;
}

.hinet-traffic-chart-stage {
  min-height: 420px;
}

.hinet-traffic-chart {
  width: 100%;
  min-height: 420px;
}

.hinet-performance-chart {
  width: 100%;
  min-height: 420px;
}

.hinet-performance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.hinet-performance-header p {
  margin: 6px 0 0;
}

.hinet-performance-table-note {
  color: #587286;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.hinet-performance-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hinet-performance-kpi-grid .hinet-kpi-card {
  min-height: 0;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(252, 254, 255, 0.98) 0%, rgba(239, 248, 255, 0.96) 100%);
}

.hinet-performance-kpi-grid .hinet-kpi-card strong {
  font-size: clamp(0.98rem, 0.9rem + 0.35vw, 1.1rem);
}

.hinet-performance-shell .hinet-report-condition-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hinet-performance-shell .hinet-report-toolbar {
  align-items: center;
}

.hinet-performance-shell .hinet-report-toolbar label {
  max-width: 420px;
}

.hinet-performance-shell .hinet-report-table thead th {
  position: sticky;
  top: 0;
}

.hinet-admin-page .hinet-admin-grid {
  margin-bottom: 0;
}

.hinet-admin-page > .hinet-hero.hinet-hero-admin {
  display: none;
}

.hinet-admin-page .hinet-admin-grid {
  align-items: start;
}

.hinet-admin-page .hinet-info-grid {
  align-items: stretch;
}

.hinet-admin-page .hinet-settings-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hinet-admin-page .hinet-settings-status-grid .hinet-info-card,
.hinet-admin-page .hinet-admin-grid > .hinet-surface,
.hinet-admin-page .hinet-form-layout {
  height: 100%;
}

.hinet-admin-page .hinet-form-layout {
  padding: 26px;
}

.hinet-admin-page .hinet-status-banner {
  margin-top: 18px;
}

.hinet-admin-page .hinet-note-stack {
  gap: 14px;
}

.hinet-admin-page .hinet-form-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 24px 26px;
  align-items: start;
}

.hinet-admin-page .hinet-form-layout > .hinet-form-section {
  padding-top: 0;
  border-top: 0;
  min-width: 0;
}

.hinet-admin-page .hinet-form-layout > .hinet-form-section:last-of-type {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(198, 217, 230, 0.92);
  background:
    radial-gradient(circle at top right, rgba(24, 165, 223, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.hinet-admin-page .hinet-form-layout > .hinet-form-section:last-of-type .hinet-note-stack {
  grid-template-columns: 1fr;
}

.hinet-admin-page .hinet-form-layout > .form-actions {
  grid-column: 1 / -1;
  padding-top: 4px;
}

.hinet-form-layout {
  display: grid;
  gap: 22px;
}

.hinet-form-section {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(211, 225, 234, 0.92);
}

.hinet-form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.hinet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hinet-form-grid-span-2 {
  grid-column: span 2;
}

.hinet-checkbox-row {
  align-self: end;
  padding: 14px 16px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(200, 219, 231, 0.94);
  background: rgba(248, 251, 253, 0.96);
}

.hinet-checkbox-row span {
  margin: 0;
  color: #1f3e57;
}

.hinet-note-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hinet-code-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hinet-code-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(173, 208, 229, 0.92);
  background: rgba(241, 249, 255, 0.96);
  color: #0b5d99;
  font-size: 0.82rem;
  font-weight: 700;
}

.hinet-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hinet-note-card strong {
  display: block;
  margin-bottom: 8px;
  color: #123652;
}

.hinet-notice-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #3e5d73;
}

@media (max-width: 1280px) {
  .hinet-workspace {
    grid-template-columns: 1fr;
  }

  .hinet-sidebar-panel {
    position: static;
  }

  .hinet-admin-grid,
  .hinet-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hinet-hero,
  .hinet-hero-admin {
    grid-template-columns: 1fr;
  }

  .hinet-mode-nav,
  .hinet-filter-form,
  .hinet-filter-form-admin,
  .hinet-performance-form,
  .hinet-form-layout,
  .hinet-settings-status-grid,
  .hinet-report-condition-grid,
  .hinet-report-kpi-grid,
  .hinet-form-grid,
  .hinet-table-toolbar,
  .hinet-note-stack {
    grid-template-columns: 1fr;
  }

  .hinet-chart-head,
  .hinet-panel-heading,
  .hinet-report-toolbar,
  .section-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hinet-report-toolbar-inline {
    flex-wrap: wrap;
  }

  .hinet-report-toolbar-inline > label,
  .hinet-report-toolbar-inline > .hinet-report-custom-range-field,
  .hinet-report-custom-range-inline,
  .hinet-report-custom-range-inline label {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .hinet-report-custom-range-inline {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .shell-app-theme,
  .shell-hinet-admin {
    width: min(100% - 14px, 1480px);
  }

  .hinet-hero,
  .hinet-surface,
  .hinet-sidebar-panel {
    padding: 18px;
  }

  .hinet-hero-actions,
  .hinet-heading-actions,
  .hinet-performance-header,
  .hinet-chart-side {
    flex-direction: column;
    align-items: stretch;
  }

  .hinet-chart-shell {
    gap: 12px;
    padding: 14px;
  }

  .hinet-meta-chip {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .hinet-chart-summary-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 10px 12px;
  }

  .hinet-chart-summary-row span {
    min-width: 0;
  }

  .hinet-domain-chip-list {
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 6px;
    scrollbar-width: thin;
  }

  .hinet-domain-chip-list::-webkit-scrollbar {
    height: 6px;
  }

  .hinet-domain-chip {
    flex: 0 0 auto;
    gap: 8px;
    padding: 9px 12px;
    white-space: nowrap;
  }

  .hinet-sidebar-summary strong,
  .hinet-panel-title,
  .hinet-chart-head .section-title {
    text-wrap: balance;
  }

  .hinet-domain-table {
    min-width: 960px;
  }

  .hinet-report-table {
    min-width: 720px;
  }

  .hinet-performance-table-note {
    white-space: normal;
  }

  .hinet-performance-chart {
    min-height: 320px;
  }

  .hinet-traffic-chart,
  .hinet-traffic-chart-stage {
    min-height: 280px;
  }
}

@media print {
  .shell-app-theme .topbar,
  .shell-hinet-admin .topbar,
  .hinet-sidebar-panel,
  .hinet-hero-actions,
  .hinet-heading-actions .button,
  .hinet-filter-form,
  .hinet-performance-form,
  .hinet-table-toolbar,
  .hinet-report-toolbar,
  .hinet-domain-actions,
  .form-actions,
  .row-actions {
    display: none !important;
  }

  .shell-app-theme,
  .shell-hinet-admin,
  .shell-wide {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hinet-hero,
  .hinet-surface,
  .hinet-sidebar-panel {
    box-shadow: none;
    border-color: #c6d6e1;
  }
}
