:root {
  --browser-bg: #120c0c;
  --browser-panel: #231717;
  --browser-panel-strong: #2b1d1d;
  --browser-border: rgba(198, 160, 118, 0.18);
  --browser-muted: #c8b396;
  --browser-soft: #eadbc6;
  --browser-accent: #f0b85a;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 160px),
    linear-gradient(180deg, #1a1010, var(--browser-bg));
}

.app-aura,
.screen-art {
  display: none;
}

.app-root {
  max-width: 1280px;
  padding: 18px 18px 28px;
}

.app-header {
  position: sticky;
  top: 0;
  min-height: 76px;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(18, 12, 12, 0.98), rgba(18, 12, 12, 0.9));
  backdrop-filter: blur(10px);
}

.brand-block {
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-logo {
  transform: scale(1.08);
  filter: none;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-meta {
  margin-top: 4px;
}

.brand-status,
.site-visit-badge,
.date-badge,
.pill,
.chip,
.install-button,
.section-pill {
  border: 1px solid var(--browser-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.site-visit-badge {
  min-width: 84px;
  min-height: 40px;
  border-radius: 10px;
}

.site-visit-label {
  color: var(--browser-muted);
}

.site-visit-badge strong {
  color: #fff4e0;
}

.screen-head {
  display: block;
  padding: 16px 0 10px;
}

.screen-kicker {
  color: var(--browser-muted);
  letter-spacing: 0.08em;
}

.screen-head h1 {
  margin-top: 8px;
  font-size: 1.92rem;
  line-height: 1.04;
}

.screen-subtitle {
  max-width: 760px;
  margin-top: 10px;
  color: var(--browser-soft);
  font-size: 0.96rem;
}

.date-badge {
  margin-top: 14px;
}

.tabbar {
  position: sticky;
  top: 76px;
  z-index: 19;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(24, 15, 15, 0.94);
  left: auto;
  bottom: auto;
  transform: none;
  backdrop-filter: blur(10px);
}

.tab-button {
  display: grid;
  grid-template-columns: 22px 1fr;
  place-items: center start;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--browser-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.tab-button:hover {
  border-color: rgba(240, 184, 90, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.tab-symbol {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
}

.tab-button.active {
  border-color: rgba(240, 184, 90, 0.24);
  background: rgba(240, 184, 90, 0.08);
  color: #f9ddb0;
}

.tab-button.active .tab-symbol {
  background: rgba(240, 184, 90, 0.14);
  color: #f9ddb0;
}

.lookup-shell {
  display: grid;
  gap: 16px;
}

.lookup-card {
  border: 1px solid var(--browser-border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--browser-panel-strong), var(--browser-panel));
  box-shadow: none;
  padding: 16px;
}

.lookup-toolbar {
  gap: 14px;
}

.lookup-toolbar-main,
.lookup-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.lookup-toolbar h2,
.lookup-section-head h2 {
  margin: 4px 0 0;
  color: #fff4e0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.lookup-toolbar-actions {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  width: min(100%, 760px);
}

.lookup-date-field {
  min-width: 0;
}

.lookup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.lookup-primary,
.lookup-secondary {
  display: grid;
  gap: 16px;
}

.lookup-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lookup-kpi {
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.lookup-kpi-primary {
  background:
    linear-gradient(180deg, rgba(240, 184, 90, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.lookup-kpi span {
  display: block;
  color: var(--browser-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lookup-kpi strong {
  display: block;
  margin-top: 8px;
  color: #fff3dd;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lookup-kpi p {
  margin: 6px 0 0;
  color: var(--browser-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #f9ddb0;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.lookup-hour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lookup-hour-button {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.lookup-hour-button:hover {
  border-color: rgba(240, 184, 90, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.lookup-hour-button.is-selected {
  border-color: rgba(240, 184, 90, 0.34);
  background: rgba(240, 184, 90, 0.08);
}

.lookup-hour-button.is-current {
  box-shadow: inset 0 0 0 1px rgba(123, 216, 132, 0.18);
}

.lookup-hour-time {
  color: var(--browser-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.lookup-hour-name {
  color: #fff3dd;
  font-size: 1.04rem;
  line-height: 1.2;
}

.lookup-hour-status {
  color: var(--browser-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.lookup-summary-list,
.tool-link-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.lookup-summary-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.lookup-summary-item span {
  color: var(--browser-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lookup-summary-item strong {
  color: #fff3dd;
  font-size: 0.98rem;
}

.lookup-summary-item small {
  color: var(--browser-soft);
  font-size: 0.78rem;
}

.tool-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.tool-link:hover {
  border-color: rgba(240, 184, 90, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.tool-link-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(240, 184, 90, 0.08);
  color: #f9ddb0;
  font-size: 1rem;
}

.tool-link-copy {
  display: grid;
  gap: 4px;
}

.tool-link-copy strong {
  color: #fff3dd;
  font-size: 0.96rem;
}

.tool-link-copy small {
  color: var(--browser-soft);
  font-size: 0.76rem;
  line-height: 1.35;
}

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

  .lookup-toolbar-main {
    flex-direction: column;
  }

  .lookup-toolbar-actions {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .tabbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lookup-focus-grid,
  .lookup-hour-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .app-root {
    padding: 12px 12px 24px;
  }

  .app-header {
    min-height: 70px;
  }

  .screen-head h1 {
    font-size: 1.56rem;
  }

  .tabbar {
    position: static;
  }

  .tab-button {
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
  }

  .lookup-section-head,
  .lookup-toolbar-main {
    flex-direction: column;
  }

  .lookup-toolbar-actions,
  .lookup-focus-grid,
  .lookup-hour-grid {
    grid-template-columns: 1fr;
  }
}
