:root {
  --bg: #f3f3f5;
  --bg-deep: #ebebee;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-contrast: #111214;
  --surface-soft: rgba(17, 18, 20, 0.04);
  --surface-muted: rgba(17, 18, 20, 0.06);
  --line: rgba(17, 18, 20, 0.08);
  --line-strong: rgba(17, 18, 20, 0.15);
  --text: #111214;
  --text-soft: rgba(17, 18, 20, 0.64);
  --text-faint: rgba(17, 18, 20, 0.42);
  --shadow-lg: 0 24px 80px rgba(15, 15, 16, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 15, 16, 0.06);
  --radius-xl: 32px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 32%),
    linear-gradient(180deg, #fafafc 0%, var(--bg) 40%, var(--bg-deep) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

#root,
.shell {
  min-height: 100vh;
}

.shell {
  width: min(1520px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 calc(36px + env(safe-area-inset-bottom, 0px));
}

.topbar,
.tabbar,
.hero-card,
.panel-card,
.metric-card,
.site-card,
.status-card,
.list-card,
.tool-item,
.lane-card,
.queue-item,
.message-card,
.empty-card,
.report-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 10px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, #070708, #141518);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 28px rgba(17, 18, 20, 0.18);
}

.brand-mark-image {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.eyebrow {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.brand-note,
.section-copy,
.item-copy,
.meta-copy,
.tool-copy,
.queue-copy,
.status-note,
.lane-note,
.list-copy,
.empty-copy,
.form-note,
.site-note,
.support-copy {
  color: var(--text-soft);
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.meta-link {
  white-space: nowrap;
}

.meta-pill,
.pill,
.tiny-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.tabbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-top: 2px;
  padding: 8px;
  border-radius: 999px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  box-shadow: 0 12px 28px rgba(17, 18, 20, 0.05);
}

.tabbar::-webkit-scrollbar {
  display: none;
}

.tab-button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 11px 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.tab-button:hover {
  transform: translateY(-1px);
}

.tab-button.active {
  background: var(--surface-contrast);
  color: #fff;
  box-shadow: 0 14px 24px rgba(17, 18, 20, 0.16);
}

.tab-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(17, 18, 20, 0.06);
  font-size: 11px;
  font-weight: 800;
}

.tab-button.active .tab-index {
  background: rgba(255, 255, 255, 0.14);
}

.content {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.view {
  display: grid;
  gap: 18px;
  animation: rise 220ms ease;
}

.grid-two,
.grid-three,
.grid-four,
.monitor-grid,
.tool-grid,
.action-grid,
.site-grid,
.device-grid,
.lane-grid,
.split-grid {
  display: grid;
  gap: 18px;
}

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

.grid-three,
.tool-grid,
.site-grid,
.lane-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-four,
.device-grid,
.monitor-grid,
.action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 30px;
  border-radius: 40px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(135deg, #0d0d0f 0%, #17181b 55%, #202226 100%);
  color: #fff;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-card .eyebrow,
.hero-card .section-copy,
.hero-card .hero-support {
  color: rgba(255, 255, 255, 0.72);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-copy h2 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-copy p {
  margin-top: 16px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.65;
}

.hero-support {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-support span,
.status-pair span,
.tool-meta,
.site-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-metric {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.hero-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-metric p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.panel-card,
.metric-card,
.site-card,
.status-card,
.list-card,
.empty-card,
.report-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.section-head h3,
.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.section-head.compact h3 {
  font-size: 18px;
}

.section-stack {
  display: grid;
  gap: 12px;
}

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

.metric-card {
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.metric-card span {
  display: block;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.lane-card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.lane-card h4,
.site-card h4,
.status-card h4,
.tool-item h4,
.report-card h4 {
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lane-card p,
.site-card p,
.status-card p,
.tool-item p,
.report-card p,
.message-card p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row,
.status-pair,
.tool-tag-row,
.device-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.action-grid {
  align-items: stretch;
}

.action-tile {
  min-height: 126px;
  min-width: 0;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  display: grid;
  align-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.action-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(17, 18, 20, 0.1);
}

.action-tile strong {
  font-size: 18px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: balance;
}

.action-tile span,
.action-tile .action-meta {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.action-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 700;
}

.action-tile.is-live {
  background: linear-gradient(180deg, #141518, #0f0f11);
  border-color: rgba(17, 18, 20, 0.72);
  color: #fff;
}

.action-tile.is-live span,
.action-tile.is-live .action-meta {
  color: rgba(255, 255, 255, 0.72);
}

.action-tile.is-live .action-meta {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.action-tile.is-planned {
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.02), rgba(17, 18, 20, 0.08));
}

.action-tile.is-empty,
.action-tile[disabled] {
  cursor: not-allowed;
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.02), rgba(17, 18, 20, 0.04));
  border-style: dashed;
  box-shadow: none;
}

.action-tile.is-empty:hover,
.action-tile[disabled]:hover {
  transform: none;
}

.device-card,
.tool-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.device-grid .device-card {
  display: grid;
  gap: 16px;
}

.view-computers .device-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-head,
.tool-head,
.site-head,
.status-head,
.queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.device-title,
.tool-title,
.site-title {
  display: grid;
  gap: 6px;
}

.device-title .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
}

.device-title h3,
.tool-title h3,
.site-title h3,
.status-title {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.device-role {
  color: var(--text-soft);
  font-size: 13px;
}

.device-name {
  font-size: clamp(34px, 4vw, 42px) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.08em !important;
}

.device-station {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.device-summary {
  font-size: 14px;
  line-height: 1.65;
}

.device-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.device-link-tile {
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.device-link-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(17, 18, 20, 0.08);
}

.device-link-tile.is-live {
  background: linear-gradient(180deg, #141518, #0f0f11);
  border-color: rgba(17, 18, 20, 0.72);
  color: #fff;
}

.device-link-tile.is-empty,
.device-link-tile[disabled] {
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.02), rgba(17, 18, 20, 0.04));
  border-style: dashed;
  box-shadow: none;
  cursor: not-allowed;
}

.device-link-tile.is-empty:hover,
.device-link-tile[disabled]:hover {
  transform: none;
}

.device-link-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.device-link-copy strong {
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.device-link-copy span,
.device-link-state {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.device-link-state {
  flex-shrink: 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 700;
}

.device-link-tile.is-live .device-link-copy span,
.device-link-tile.is-live .device-link-state {
  color: rgba(255, 255, 255, 0.72);
}

.device-link-tile.is-live .device-link-state {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.status-chip.is-busy {
  background: var(--surface-contrast);
  color: #fff;
  border-color: var(--surface-contrast);
}

.status-chip.is-online {
  background: var(--surface-soft);
  color: var(--text);
}

.status-chip.is-attention {
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.02), rgba(17, 18, 20, 0.1));
  color: var(--text);
}

.status-chip.is-pending {
  background: transparent;
  border-style: dashed;
  color: var(--text-soft);
}

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

.status-pair {
  justify-content: flex-start;
}

.status-box {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.status-box span {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-box strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.status-box p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.queue-list,
.message-list,
.report-list,
.stack-list {
  display: grid;
  gap: 12px;
}

.queue-item,
.message-card,
.report-card,
.list-row {
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.queue-meta,
.message-meta,
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tiny-pill {
  min-height: 28px;
  padding: 0 10px;
}

.tiny-pill.is-solid {
  background: var(--surface-contrast);
  color: #fff;
  border-color: var(--surface-contrast);
}

.tiny-pill.is-outline {
  background: transparent;
  color: var(--text-soft);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(17, 18, 20, 0.06);
}

.primary-button {
  border: 0;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--surface-contrast);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 18, 20, 0.18);
}

.primary-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.toggle-button {
  border: 1px solid var(--line);
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.toggle-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 22px rgba(17, 18, 20, 0.08);
}

.support-block,
.empty-card {
  display: grid;
  gap: 10px;
}

.empty-card {
  text-align: center;
  place-items: center;
  min-height: 180px;
}

.empty-card strong {
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.site-card {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.site-actions,
.dual-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-card .action-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(182px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.channel-grid .action-tile {
  min-height: 152px;
  min-width: 0;
  align-content: start;
}

.channel-grid .action-tile strong {
  font-size: 16px;
  line-height: 1.08;
}

.site-card .action-tile {
  min-height: 148px;
  align-content: start;
}

.site-card .action-tile strong,
.site-card .action-tile span:last-child,
.site-card h4,
.site-note,
.tool-item h4,
.queue-item h4,
.message-card strong,
.status-title,
.device-role,
.brand-copy h1,
.section-head h2,
.section-head h3 {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.tool-group {
  display: grid;
  gap: 16px;
}

.tool-grid {
  align-items: stretch;
}

.tool-item {
  padding: 20px;
  border-radius: var(--radius-md);
  display: grid;
  gap: 14px;
}

.tool-item footer,
.status-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tool-copy strong,
.status-note strong {
  color: var(--text);
}

.monitor-grid .status-card {
  display: grid;
  gap: 14px;
}

.status-card .status-head {
  align-items: center;
}

.view-overview {
  gap: 24px;
}

.view-overview > * {
  animation: rise 420ms ease both;
}

.view-overview > *:nth-child(2) {
  animation-delay: 60ms;
}

.view-overview > *:nth-child(3) {
  animation-delay: 110ms;
}

.view-overview > *:nth-child(4) {
  animation-delay: 150ms;
}

.view-overview > *:nth-child(5) {
  animation-delay: 190ms;
}

.overview-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  overflow: hidden;
  min-height: 620px;
  border-radius: 42px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  background: #090a0c;
  color: #fff;
  box-shadow: 0 32px 110px rgba(17, 18, 20, 0.18);
}

.overview-plane {
  position: relative;
  padding: 40px;
  display: grid;
  align-content: space-between;
  gap: 26px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(145deg, #050608 0%, #0d1014 52%, #171b22 100%);
}

.overview-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.16));
  opacity: 0.32;
  pointer-events: none;
}

.overview-plane::after {
  content: "";
  position: absolute;
  inset: auto auto -10% 58%;
  width: 44vw;
  max-width: 560px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  filter: blur(6px);
  opacity: 0.7;
  pointer-events: none;
  animation: ambientFloat 14s ease-in-out infinite;
}

.overview-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.overview-copy h2 {
  margin-top: 12px;
  max-width: 10ch;
  font-size: clamp(42px, 5.9vw, 78px);
  line-height: 0.88;
  letter-spacing: -0.1em;
  text-wrap: balance;
}

.overview-lead {
  margin-top: 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.7;
}

.overview-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.overview-action-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}

.overview-stage .action-tile {
  min-height: 116px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.overview-stage .action-tile strong,
.overview-stage .action-tile.is-live strong {
  color: var(--text);
}

.overview-stage .action-tile span,
.overview-stage .action-tile .action-meta,
.overview-stage .action-tile.is-live span,
.overview-stage .action-tile.is-live .action-meta {
  color: var(--text-soft);
}

.overview-stage .action-tile .action-meta,
.overview-stage .action-tile.is-live .action-meta {
  background: rgba(17, 18, 20, 0.06);
  border-color: rgba(17, 18, 20, 0.08);
}

.overview-stage .action-tile.is-live {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.06);
}

.overview-stage .action-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(8, 9, 11, 0.22);
}

.overview-action-grid .action-tile:first-child {
  grid-column: span 2;
  min-height: 146px;
  align-content: end;
}

.overview-action-grid .action-tile:first-child strong {
  font-size: 28px;
  letter-spacing: -0.05em;
}

.overview-action-grid .action-tile:first-child span:last-child {
  max-width: 24ch;
}

.overview-rail {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}

.overview-metrics {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-note-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.overview-note-block {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.overview-note-block h3 {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.overview-note-block p:last-child {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.6;
}

.director-rail {
  grid-template-rows: 1fr;
}

.director-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  height: 100%;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.director-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.director-head h3 {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.director-field {
  display: grid;
  gap: 8px;
}

.director-field > span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.director-textarea {
  width: 100%;
  min-height: 118px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  resize: vertical;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.director-textarea--todo {
  min-height: 190px;
}

.director-status {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.overview-section {
  padding: 28px 30px;
  border-radius: 32px;
  border: 1px solid rgba(17, 18, 20, 0.07);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 44px rgba(17, 18, 20, 0.04);
  backdrop-filter: blur(18px);
}

.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
}

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

.overview-lane-list {
  display: grid;
  gap: 0;
}

.overview-lane-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.overview-lane-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.overview-lane-row:last-child {
  padding-bottom: 0;
}

.overview-lane-copy h4 {
  font-size: 18px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.overview-lane-copy p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.view-overview .queue-list,
.view-overview .message-list,
.view-overview .stack-list {
  gap: 10px;
}

.view-overview .queue-item,
.view-overview .message-card,
.view-overview .report-card,
.view-overview .list-row {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.view-overview .queue-item,
.view-overview .list-row {
  border-color: rgba(17, 18, 20, 0.06);
}

.view-overview .queue-item:hover,
.view-overview .message-card:hover,
.view-overview .list-row:hover {
  transform: translateY(-1px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  border-color: rgba(17, 18, 20, 0.12);
}

.mono {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

.divider {
  height: 1px;
  background: var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, -12px, 0) scale(1.04);
  }
}

@media (max-width: 1200px) {
  .grid-four,
  .device-grid,
  .action-grid,
  .monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-three,
  .tool-grid,
  .site-grid,
  .lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics,
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-stage,
  .overview-columns,
  .overview-columns-bottom {
    grid-template-columns: 1fr;
  }

  .overview-rail {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .overview-stage {
    min-height: 0;
  }
}

@media (max-width: 840px) {
  .shell {
    width: min(100vw, calc(100vw - 20px));
    padding-top: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-meta {
    justify-content: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .grid-two,
  .split-grid,
  .grid-three,
  .grid-four,
  .device-grid,
  .device-link-grid,
  .tool-grid,
  .site-grid,
  .lane-grid,
  .monitor-grid,
  .action-grid,
  .channel-grid,
  .hero-metrics,
  .metric-strip,
  .overview-action-grid,
  .overview-metrics,
  .site-actions,
  .dual-actions,
  .status-grid,
  .overview-columns,
  .overview-columns-bottom {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 0;
    padding: 24px;
  }

  .panel-card,
  .metric-card,
  .site-card,
  .status-card,
  .list-card,
  .report-card {
    padding: 20px;
    border-radius: 26px;
  }

  .tabbar {
    top: 10px;
  }

  .action-tile {
    min-height: 112px;
  }

  .overview-stage {
    border-radius: 32px;
  }

  .overview-plane,
  .overview-rail,
  .overview-section {
    padding: 22px;
  }

  .overview-copy h2 {
    max-width: none;
    font-size: clamp(28px, 9vw, 42px);
  }

  .overview-action-grid .action-tile:first-child {
    grid-column: auto;
    min-height: 120px;
  }

  .overview-action-grid .action-tile:first-child strong {
    font-size: 18px;
  }

  .overview-lane-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .director-head {
    flex-direction: column;
  }

  .director-panel {
    padding: 18px;
  }
}

.view-communication {
  gap: 0;
}

.communication-loading,
.communication-auth,
.communication-stage {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-radius: 36px;
  overflow: hidden;
}

.communication-loading {
  min-height: 360px;
  padding: 40px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.communication-loading h2,
.communication-auth-copy h2,
.communication-room-head h3,
.communication-sidebar h2,
.comm-empty-state h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.communication-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  padding: 28px;
}

.communication-auth-copy {
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 420px;
  padding: 18px 8px 8px;
}

.communication-login-form {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.comm-field {
  display: grid;
  gap: 8px;
}

.comm-field > span,
.comm-inline-note,
.comm-side-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.comm-field input,
.comm-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.comm-field input {
  min-height: 56px;
  padding: 0 18px;
}

.comm-field input:focus,
.comm-textarea:focus {
  border-color: rgba(17, 18, 20, 0.24);
  box-shadow: 0 0 0 4px rgba(17, 18, 20, 0.06);
}

.comm-primary-button,
.comm-ghost-button,
.comm-attach-button,
.comm-account-pill,
.comm-chip-remove {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, color 180ms ease;
}

.comm-primary-button {
  min-height: 52px;
  padding: 0 20px;
  background: #111214;
  color: #fff;
}

.comm-primary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.comm-primary-button:not(:disabled):hover,
.comm-ghost-button:hover,
.comm-attach-button:hover,
.comm-account-pill:hover,
.comm-chip-remove:hover {
  transform: translateY(-1px);
}

.comm-ghost-button,
.comm-attach-button,
.comm-account-pill,
.comm-chip-remove {
  min-height: 42px;
  padding: 0 14px;
  background: rgba(17, 18, 20, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
}

.comm-account-pills,
.comm-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.communication-stage {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 210px);
}

.communication-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
  background: #111214;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.communication-sidebar .section-copy,
.communication-sidebar .eyebrow,
.communication-sidebar p,
.comm-side-meta span,
.comm-side-people span,
.communication-sidebar .comm-side-label {
  color: rgba(255, 255, 255, 0.72);
}

.comm-side-block {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comm-side-block strong {
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.comm-side-people,
.comm-side-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.communication-room {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  background:
    radial-gradient(circle at top right, rgba(17, 18, 20, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 247, 0.9));
}

.communication-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.communication-thread {
  min-height: 0;
  overflow: auto;
  padding: 24px 28px 14px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.comm-day-divider {
  justify-self: center;
  margin: 6px 0 2px;
}

.comm-day-divider span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 18, 20, 0.06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.comm-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  max-width: min(78%, 760px);
}

.comm-message.is-own {
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.comm-message.is-own .comm-avatar {
  order: 2;
}

.comm-message.is-own .comm-bubble-stack {
  order: 1;
  justify-items: end;
}

.comm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #111214;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.comm-bubble-stack {
  display: grid;
  gap: 6px;
}

.comm-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.comm-bubble {
  max-width: 100%;
  padding: 16px 18px;
  border-radius: 22px 22px 22px 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.comm-message.is-own .comm-bubble {
  border-radius: 22px 22px 10px 22px;
  background: #111214;
  color: #fff;
  border-color: #111214;
}

.comm-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.comm-attachments {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.comm-attachment-card,
.comm-file-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(17, 18, 20, 0.04);
}

.comm-message.is-own .comm-attachment-card,
.comm-message.is-own .comm-file-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.comm-attachment-card img,
.comm-attachment-card video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  background: rgba(17, 18, 20, 0.08);
}

.comm-attachment-card audio {
  width: 100%;
  display: block;
}

.comm-file-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.comm-file-card strong,
.comm-upload-copy strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.comm-file-meta {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.communication-composer {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.comm-upload-chip {
  min-width: 220px;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.comm-upload-chip.is-error {
  background: #fff5f5;
  border-color: rgba(180, 35, 24, 0.16);
}

.comm-upload-chip.is-ready {
  border-color: rgba(17, 18, 20, 0.12);
}

.comm-upload-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.comm-upload-copy span,
.comm-upload-copy small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.comm-chip-remove {
  min-width: auto;
  min-height: 36px;
  padding: 0 12px;
  flex-shrink: 0;
}

.comm-textarea {
  min-height: 108px;
  padding: 16px 18px;
  resize: vertical;
}

.communication-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.comm-attach-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comm-toolbar-note {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.comm-toolbar-note strong {
  font-size: 13px;
  line-height: 1.2;
}

.comm-toolbar-note span {
  color: var(--text-soft);
  font-size: 12px;
}

.comm-error-text {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
}

.comm-inline-note {
  margin: 0;
}

.comm-empty-state {
  align-self: center;
  justify-self: center;
  max-width: 460px;
  padding: 40px 24px;
  text-align: center;
}

@media (max-width: 1120px) {
  .communication-auth,
  .communication-stage {
    grid-template-columns: 1fr;
  }

  .communication-stage {
    min-height: 0;
  }

  .communication-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 840px) {
  .communication-loading,
  .communication-auth,
  .communication-stage {
    border-radius: 32px;
  }

  .communication-auth {
    padding: 20px;
  }

  .communication-auth-copy {
    min-height: 0;
    padding: 0;
  }

  .communication-sidebar,
  .communication-room-head,
  .communication-thread,
  .communication-composer {
    padding: 20px;
  }

  .comm-message {
    max-width: 100%;
  }

  .comm-message.is-own {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .comm-message.is-own .comm-avatar {
    display: none;
  }

  .comm-message.is-own .comm-bubble-stack {
    justify-items: end;
  }

  .comm-attachment-card img,
  .comm-attachment-card video {
    max-height: 240px;
  }
}
