/* AIMS x MPL Indonesia Campus Tour visual system. */
:root {
  --arena-navy: #030812;
  --arena-panel: #07111e;
  --arena-panel-2: #0a1726;
  --arena-cyan: #49ceff;
  --arena-orange: #f26522;
  --arena-orange-hot: #ff7a36;
  --arena-white: #f7fbff;
  --arena-grid: rgba(17, 87, 122, 0.08);
  --bg: #eef4f8;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --glass: rgba(248, 252, 255, 0.82);
  --text: #071321;
  --muted: #5d6e82;
  --line: rgba(16, 72, 104, 0.14);
  --line-strong: rgba(22, 118, 164, 0.32);
  --ink: #071321;
  --blue: #0879a8;
  --orange: var(--arena-orange);
  --cyan: #17aedd;
  --blue-soft: rgba(73, 206, 255, 0.12);
  --soft-blue: rgba(73, 206, 255, 0.13);
  --soft-cyan: rgba(73, 206, 255, 0.16);
  --shadow: 0 28px 80px rgba(3, 18, 34, 0.18);
  --shadow-soft: 0 12px 34px rgba(3, 18, 34, 0.09);
  --blur: blur(18px) saturate(135%);
}

:root[data-theme="dark"] {
  --bg: #030812;
  --panel: rgba(7, 17, 30, 0.88);
  --panel-strong: rgba(8, 20, 35, 0.97);
  --glass: rgba(7, 20, 35, 0.82);
  --glass-dark: rgba(3, 9, 20, 0.92);
  --text: #f4f9fc;
  --muted: #8ba0b6;
  --line: rgba(104, 202, 240, 0.16);
  --line-strong: rgba(73, 206, 255, 0.4);
  --ink: #f7fbff;
  --blue: #55d4ff;
  --orange: #ff7a36;
  --blue-soft: rgba(73, 206, 255, 0.14);
  --silver: #091725;
  --soft-blue: rgba(73, 206, 255, 0.14);
  --soft-cyan: rgba(73, 206, 255, 0.17);
  --soft-green: rgba(18, 165, 111, 0.18);
  --soft-amber: rgba(245, 158, 11, 0.18);
  --soft-red: rgba(244, 63, 94, 0.17);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--arena-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--arena-grid) 1px, transparent 1px),
    radial-gradient(circle at 88% 8%, rgba(73, 206, 255, 0.13), transparent 32rem),
    radial-gradient(circle at 8% 92%, rgba(242, 101, 34, 0.1), transparent 30rem),
    linear-gradient(180deg, #f8fbfd 0%, #eaf1f6 100%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] body {
  background-color: var(--arena-navy);
  background-image:
    linear-gradient(rgba(73, 206, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 206, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 88% 8%, rgba(73, 206, 255, 0.11), transparent 32rem),
    radial-gradient(circle at 8% 92%, rgba(242, 101, 34, 0.08), transparent 30rem),
    linear-gradient(180deg, #030812 0%, #050c16 100%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
}

::selection {
  color: #ffffff;
  background: rgba(73, 206, 255, 0.42);
}

:focus-visible {
  outline: 2px solid var(--arena-cyan);
  outline-offset: 2px;
}

.particle-canvas {
  opacity: 0.42;
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] .particle-canvas {
  opacity: 0.28;
  mix-blend-mode: screen;
}

.eyebrow,
.field-label,
.task-board-header,
.task-kicker,
.kanban-column-header span,
.user-list-header,
.account-panel span,
.settings-theme > span,
.itinerary-hero span,
.itinerary-time span {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 0;
}

.topbar h2,
.auth-copy h1,
.auth-form h2,
.page-panel-header h3,
.kanban-column-header h3,
.drawer-header h3,
.modal-header h3,
.itinerary-hero strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

button,
input,
select,
textarea {
  font-family: "Barlow", Arial, sans-serif;
}

button {
  font-weight: 600;
}

.auth-view {
  min-height: 100svh;
  padding: 24px;
}

.auth-card {
  grid-template-columns: minmax(390px, 1.08fr) minmax(330px, 0.92fr);
  width: min(1060px, 100%);
  min-height: 630px;
  border: 1px solid rgba(73, 206, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.82);
  box-shadow: 0 34px 100px rgba(3, 8, 18, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-copy {
  align-content: end;
  min-height: 630px;
  padding: 46px;
  border-right: 1px solid rgba(73, 206, 255, 0.18);
  border-radius: 0;
  background-image:
    linear-gradient(0deg, rgba(3, 8, 18, 0.98) 0%, rgba(3, 8, 18, 0.75) 48%, rgba(3, 8, 18, 0.18) 100%),
    linear-gradient(90deg, rgba(3, 8, 18, 0.45), rgba(3, 8, 18, 0.05)),
    url("./campus-arena.png");
  background-position: center;
  background-size: cover;
  box-shadow: none;
}

.auth-copy::after {
  inset: 18px;
  border-color: rgba(73, 206, 255, 0.22);
  border-radius: 4px;
  background-image:
    linear-gradient(rgba(73, 206, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 206, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.auth-copy::before {
  content: "CAMPUS TOUR / EVENT OPS";
  position: absolute;
  top: 32px;
  left: 46px;
  z-index: 1;
  color: var(--arena-cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-logo {
  position: relative;
  z-index: 1;
  width: min(300px, 80%);
  max-height: 120px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.38));
}

.auth-copy h1,
.auth-copy p,
.auth-copy .eyebrow {
  position: relative;
  z-index: 1;
}

.auth-copy h1 {
  max-width: 8ch;
  font-size: clamp(48px, 6vw, 74px);
  line-height: 0.9;
}

.auth-copy .eyebrow {
  color: var(--arena-cyan);
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.7);
}

.auth-panels {
  padding: 34px;
  background: rgba(5, 13, 24, 0.94);
}

.auth-form,
:root[data-theme="dark"] .auth-form {
  align-self: center;
  padding: 30px;
  border: 1px solid rgba(73, 206, 255, 0.16);
  border-radius: 6px;
  background: rgba(7, 20, 34, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-form h2 {
  color: #ffffff;
  font-size: 40px;
}

.auth-form label {
  color: #e8f3f9;
  font-weight: 500;
}

.auth-form input,
.auth-form select {
  border-color: rgba(73, 206, 255, 0.18);
  background-color: rgba(2, 9, 19, 0.74);
  color: #f7fbff;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(73, 206, 255, 0.72);
  background: rgba(3, 13, 26, 0.96);
  box-shadow: 0 0 0 3px rgba(73, 206, 255, 0.13);
}

.auth-form .primary-button,
.auth-form .secondary-button {
  color: #ffffff;
  background: var(--arena-orange);
  border-color: var(--arena-orange);
}

.auth-form .primary-button:hover,
.auth-form .secondary-button:hover {
  background: var(--arena-orange-hot);
}

.auth-switch .plain-button {
  color: var(--arena-cyan);
  border-color: rgba(73, 206, 255, 0.28);
  background: rgba(73, 206, 255, 0.08);
}

.auth-theme-control .theme-switch {
  border-radius: 5px;
  background: rgba(3, 12, 24, 0.82);
  border-color: rgba(73, 206, 255, 0.22);
}

.auth-theme-control .theme-option {
  color: #a9bdca;
}

.app-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  width: min(1760px, 100%);
  gap: 14px;
  padding: 14px;
}

.sidebar {
  top: 14px;
  height: calc(100vh - 28px);
  padding: 18px;
  border: 1px solid rgba(73, 206, 255, 0.18);
  border-radius: 8px;
  color: #f7fbff;
  background:
    linear-gradient(rgba(73, 206, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 206, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 86% 4%, rgba(73, 206, 255, 0.16), transparent 15rem),
    linear-gradient(180deg, #071321 0%, #030914 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  box-shadow: 0 22px 64px rgba(3, 8, 18, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(73, 206, 255, 0.14);
}

.sidebar-logo {
  width: 82px;
  height: 48px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.brand h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 21px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand p {
  color: #68d9ff;
  font-size: 12px;
  font-weight: 500;
}

.account-panel,
.access-panel {
  border-color: rgba(73, 206, 255, 0.16);
  border-radius: 6px;
  background: rgba(10, 29, 48, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.account-panel span,
.sidebar .field-label,
.settings-theme > span {
  color: rgba(151, 221, 247, 0.72);
}

.account-panel small {
  color: rgba(224, 239, 247, 0.66);
}

.account-actions .secondary-button,
.sidebar-actions .secondary-button,
.logout-button {
  color: #eaf8ff;
  border-color: rgba(73, 206, 255, 0.25);
  background: rgba(73, 206, 255, 0.08);
}

.account-actions .secondary-button:hover,
.sidebar-actions .secondary-button:hover,
.logout-button:hover {
  border-color: rgba(73, 206, 255, 0.55);
  background: rgba(73, 206, 255, 0.14);
}

.team-picker-button {
  min-height: 48px;
  border-color: rgba(73, 206, 255, 0.24);
  border-radius: 5px;
  background: rgba(3, 13, 26, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.team-picker-button:focus-visible,
.team-picker[data-open="true"] .team-picker-button {
  border-color: var(--arena-cyan);
  box-shadow: 0 0 0 3px rgba(73, 206, 255, 0.12);
}

.team-picker-chevron {
  border-radius: 3px;
  background: rgba(73, 206, 255, 0.13);
}

.team-picker-menu {
  border-color: rgba(73, 206, 255, 0.22);
  border-radius: 6px;
  background: rgba(3, 12, 24, 0.98);
}

.team-picker-option {
  border-radius: 3px;
  color: #bfd0da;
}

.team-picker-option:hover,
.team-picker-option:focus-visible {
  color: #ffffff;
  border-color: rgba(73, 206, 255, 0.22);
  background: rgba(73, 206, 255, 0.08);
}

.team-picker-option.selected {
  color: #04101d;
  border-color: var(--arena-cyan);
  background: var(--arena-cyan);
  box-shadow: none;
}

.settings-panel summary,
.settings-theme {
  border-color: rgba(73, 206, 255, 0.17);
  border-radius: 5px;
  color: #eaf8ff;
  background: rgba(73, 206, 255, 0.06);
}

.settings-panel summary::after {
  border-radius: 3px;
  background: rgba(73, 206, 255, 0.12);
}

.theme-switch {
  border-radius: 5px;
}

.theme-option {
  border-radius: 3px;
}

.theme-option.active {
  color: #071321;
  background: var(--arena-cyan);
  box-shadow: 0 7px 20px rgba(73, 206, 255, 0.2);
}

.topbar,
.controls,
.metric,
.page-panel-header,
.user-toolbar,
.users-page .users-list,
.kanban-progress,
.kanban-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.44);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .controls,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .page-panel-header,
:root[data-theme="dark"] .user-toolbar,
:root[data-theme="dark"] .users-page .users-list,
:root[data-theme="dark"] .kanban-progress,
:root[data-theme="dark"] .kanban-column {
  border-color: rgba(73, 206, 255, 0.14);
  background: rgba(7, 17, 30, 0.88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .kanban-progress-stats span {
  border-color: rgba(73, 206, 255, 0.18);
  background: rgba(73, 206, 255, 0.065);
  color: #9eb2c5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .kanban-progress-stats b {
  color: #ff8b4d;
}

:root[data-theme="dark"] .kanban-progress-track {
  background: rgba(73, 206, 255, 0.075);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .kanban-add-button {
  border-color: rgba(242, 101, 34, 0.42);
  background: rgba(242, 101, 34, 0.1);
  color: #ff9b66;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

:root[data-theme="dark"] .kanban-add-button:hover {
  border-color: rgba(255, 122, 54, 0.68);
  background: rgba(242, 101, 34, 0.18);
  color: #ffc09f;
}

.topbar {
  top: 14px;
  padding: 15px 18px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--arena-cyan), var(--arena-orange));
}

.topbar h2 {
  color: var(--ink);
  background: none;
  font-size: 34px;
}

.topbar .eyebrow {
  color: var(--blue);
  font-size: 9px;
}

.view-switch {
  border-color: var(--line);
  border-radius: 5px;
  background: rgba(73, 206, 255, 0.05);
  box-shadow: none;
}

.view-button {
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.view-button.active {
  color: #06111d;
  background: var(--arena-cyan);
  box-shadow: 0 7px 18px rgba(73, 206, 255, 0.2);
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.plain-button,
.edit-button {
  border-radius: 4px;
}

.primary-button {
  background: var(--arena-orange);
  box-shadow: 0 9px 24px rgba(242, 101, 34, 0.22);
}

.primary-button:hover {
  background: var(--arena-orange-hot);
}

.secondary-button,
.plain-button,
.edit-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .plain-button,
:root[data-theme="dark"] .edit-button {
  border-color: rgba(73, 206, 255, 0.18);
  background: rgba(73, 206, 255, 0.055);
}

.edit-button,
:root[data-theme="dark"] .edit-button,
.visibility-line,
:root[data-theme="dark"] .visibility-line {
  color: var(--blue);
}

.sidebar .logout-button,
:root[data-theme="dark"] .sidebar .logout-button {
  border-color: rgba(73, 206, 255, 0.28);
  background: rgba(73, 206, 255, 0.085);
  color: #eefaff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.sidebar .logout-button:hover,
:root[data-theme="dark"] .sidebar .logout-button:hover {
  border-color: rgba(73, 206, 255, 0.58);
  background: rgba(73, 206, 255, 0.16);
  color: #ffffff;
}

input,
select,
textarea,
.user-toolbar input,
.user-toolbar select {
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.76);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(73, 206, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(73, 206, 255, 0.12);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .user-toolbar input,
:root[data-theme="dark"] .user-toolbar select {
  border-color: rgba(73, 206, 255, 0.14);
  background-color: rgba(3, 12, 24, 0.72);
}

:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus {
  border-color: rgba(73, 206, 255, 0.72);
  background: rgba(4, 15, 29, 0.96);
  box-shadow: 0 0 0 3px rgba(73, 206, 255, 0.12);
}

.metrics {
  gap: 8px;
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 13px 15px;
}

.metric::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--arena-cyan);
}

.metric:nth-child(even)::after {
  background: var(--arena-orange);
}

.metric strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 27px;
  font-weight: 800;
}

.metric span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.controls {
  padding: 12px;
}

.task-board {
  gap: 7px;
}

.task-board-header {
  color: var(--muted);
}

.task-row {
  min-height: 62px;
  padding: 10px 15px;
  border-color: var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(3, 18, 34, 0.06);
}

.task-row::before {
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 0;
  background: var(--arena-cyan);
}

.task-row:hover {
  border-color: rgba(73, 206, 255, 0.34);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(3, 18, 34, 0.09);
}

:root[data-theme="dark"] .task-row,
:root[data-theme="dark"] .task-row.done,
:root[data-theme="dark"] .task-row.progress,
:root[data-theme="dark"] .task-row.blocked {
  border-color: rgba(73, 206, 255, 0.13);
  background: rgba(7, 19, 33, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .task-row:hover {
  border-color: rgba(73, 206, 255, 0.34);
  background: rgba(10, 29, 48, 0.96);
}

.task-row.done,
:root[data-theme="dark"] .task-row.done {
  box-shadow: inset 3px 0 0 var(--green), 0 8px 24px rgba(3, 18, 34, 0.06);
}

.task-row.progress,
:root[data-theme="dark"] .task-row.progress {
  box-shadow: inset 3px 0 0 #f59e0b, 0 8px 24px rgba(3, 18, 34, 0.06);
}

.task-row.blocked,
:root[data-theme="dark"] .task-row.blocked {
  box-shadow: inset 3px 0 0 var(--red), 0 8px 24px rgba(3, 18, 34, 0.06);
}

.task-kicker {
  color: var(--blue);
  font-size: 9px;
}

.task-title strong {
  color: var(--ink);
  font-weight: 500;
}

.task-assignee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 5px;
  margin-right: 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1;
  vertical-align: middle;
}

.task-assignee > span:last-child {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.task-assignee small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.task-assignee b {
  max-width: 170px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignee-avatar {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  border: 1px solid rgba(242, 101, 34, 0.34);
  border-radius: 4px;
  color: #8e330c;
  background: rgba(242, 101, 34, 0.17);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 700;
}

.task-assignee.unassigned .assignee-avatar {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(100, 116, 139, 0.08);
}

.task-title .task-activity {
  display: inline-grid;
  vertical-align: middle;
}

.kanban-assignee {
  display: flex;
  margin: 9px 0 0;
}

.drawer-assignee {
  display: flex;
  margin: 0;
}

.drawer-assignee > span:last-child {
  display: grid;
  gap: 3px;
}

.activity-by {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
}

:root[data-theme="dark"] .assignee-avatar {
  color: #ff9b66;
  background: rgba(242, 101, 34, 0.12);
}

.task-activity {
  display: grid;
  grid-template-columns: 20px minmax(0, auto) auto;
  align-items: center;
  justify-content: start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1;
}

.activity-avatar {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  border: 1px solid rgba(73, 206, 255, 0.3);
  border-radius: 4px;
  color: #073048;
  background: rgba(73, 206, 255, 0.2);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.task-activity.moved .activity-avatar {
  border-color: rgba(242, 101, 34, 0.34);
  color: #8e330c;
  background: rgba(242, 101, 34, 0.18);
}

.activity-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.activity-copy b {
  color: var(--ink);
  font-weight: 600;
}

.task-activity time {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
}

:root[data-theme="dark"] .activity-avatar {
  color: #80ddff;
  background: rgba(73, 206, 255, 0.1);
}

:root[data-theme="dark"] .task-activity.moved .activity-avatar {
  color: #ff9b66;
  background: rgba(242, 101, 34, 0.12);
}

.status-pill,
.owner-pill,
.badge,
.role-badge,
.user-status-badge {
  border-radius: 3px;
}

.status-pill.open,
:root[data-theme="dark"] .status-pill.open,
.role-badge,
:root[data-theme="dark"] .role-badge {
  color: var(--blue);
  background: var(--blue-soft);
}

.owner-pill {
  border-color: var(--line);
  background: rgba(73, 206, 255, 0.05);
}

.edit-button {
  min-width: 58px;
}

.kanban-column,
.kanban-card,
.kanban-empty,
.timeline-summary,
.timeline-summary > div,
.timeline-day,
.timeline-date,
.timeline-item,
.itinerary-hero,
.itinerary-card,
.drawer-meta div,
.detail-log-item,
.user-metrics > div,
.user-group-options label,
.user-row-card {
  border-radius: 5px;
}

.kanban-column {
  border-top: 3px solid var(--arena-cyan);
}

.kanban-column:nth-child(2),
.kanban-column:nth-child(4) {
  border-top-color: var(--arena-orange);
}

.kanban-card,
.timeline-item,
.itinerary-card,
.user-row-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

:root[data-theme="dark"] .kanban-card,
:root[data-theme="dark"] .kanban-empty,
:root[data-theme="dark"] .timeline-summary,
:root[data-theme="dark"] .timeline-summary > div,
:root[data-theme="dark"] .timeline-day,
:root[data-theme="dark"] .timeline-date,
:root[data-theme="dark"] .timeline-item,
:root[data-theme="dark"] .itinerary-card,
:root[data-theme="dark"] .drawer-meta div,
:root[data-theme="dark"] .detail-log-item,
:root[data-theme="dark"] .user-metrics > div,
:root[data-theme="dark"] .user-group-options label,
:root[data-theme="dark"] .user-row-card {
  border-color: rgba(73, 206, 255, 0.13);
  background: rgba(7, 19, 33, 0.9);
}

:root[data-theme="dark"] .user-row-card.approved {
  background: rgba(7, 19, 33, 0.92);
  box-shadow: inset 3px 0 0 rgba(73, 206, 255, 0.58);
}

:root[data-theme="dark"] .user-row-card.pending {
  background: rgba(38, 27, 18, 0.92);
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.72);
}

:root[data-theme="dark"] .user-row-card.rejected {
  opacity: 1;
  background: rgba(36, 17, 27, 0.9);
  box-shadow: inset 3px 0 0 rgba(244, 63, 94, 0.64);
}

:root[data-theme="dark"] .user-row-card:hover,
:root[data-theme="dark"] .user-row-card.approved:hover {
  border-color: rgba(73, 206, 255, 0.32);
  background: rgba(10, 29, 48, 0.98);
}

:root[data-theme="dark"] .user-identity strong {
  color: #f7fbff;
}

:root[data-theme="dark"] .user-identity span,
:root[data-theme="dark"] .user-identity small,
:root[data-theme="dark"] .user-access-cell small {
  color: #9eb2c5;
}

:root[data-theme="dark"] .user-actions .secondary-button {
  border-color: rgba(73, 206, 255, 0.22);
  color: #eaf8fd;
  background: rgba(73, 206, 255, 0.08);
}

:root[data-theme="dark"] .user-actions .danger-button {
  border-color: rgba(244, 63, 94, 0.28);
  color: #ff9eb0;
  background: rgba(244, 63, 94, 0.12);
}

.itinerary-hero,
:root[data-theme="dark"] .itinerary-hero {
  border-bottom-color: var(--line);
  background:
    linear-gradient(90deg, rgba(73, 206, 255, 0.12), rgba(242, 101, 34, 0.08)),
    var(--panel);
}

:root[data-theme="dark"] .itinerary-row {
  border-bottom-color: rgba(73, 206, 255, 0.13);
  background: rgba(4, 14, 26, 0.72);
}

:root[data-theme="dark"] .itinerary-time {
  background: rgba(73, 206, 255, 0.025);
}

:root[data-theme="dark"] .itinerary-time strong,
:root[data-theme="dark"] .itinerary-day-label {
  border-color: rgba(73, 206, 255, 0.24);
  background: rgba(73, 206, 255, 0.09);
  color: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .itinerary-main p,
:root[data-theme="dark"] .itinerary-hero small,
:root[data-theme="dark"] .itinerary-linked small {
  color: #9eb2c5;
}

:root[data-theme="dark"] .itinerary-task-link {
  border-color: rgba(73, 206, 255, 0.2);
  background: rgba(73, 206, 255, 0.075);
  color: #dcecf4;
}

:root[data-theme="dark"] .itinerary-task-link:hover {
  border-color: rgba(73, 206, 255, 0.44);
  background: rgba(73, 206, 255, 0.13);
  color: #ffffff;
}

.detail-drawer,
.modal,
:root[data-theme="dark"] .detail-drawer,
:root[data-theme="dark"] .modal {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 30px 100px rgba(3, 8, 18, 0.42);
}

.detail-log-item {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.detail-log-item .activity-avatar,
.audit-item .activity-avatar {
  width: 24px;
  height: 24px;
  color: #073048;
  font-size: 9px;
}

:root[data-theme="dark"] .detail-log-item .activity-avatar,
:root[data-theme="dark"] .audit-item .activity-avatar {
  color: #80ddff;
}

.detail-log-item strong,
.detail-log-item span {
  display: block;
}

.audit-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.drawer-header,
.modal-header {
  border-bottom-color: var(--line);
  background: linear-gradient(90deg, rgba(73, 206, 255, 0.08), rgba(242, 101, 34, 0.05));
}

.page-panel-header {
  border-top: 3px solid var(--arena-cyan);
}

.user-avatar {
  border-radius: 4px;
  color: #06111d;
  background: var(--arena-cyan);
}

.user-group-options label:has(input:checked),
:root[data-theme="dark"] .user-group-options label:has(input:checked) {
  border-color: rgba(73, 206, 255, 0.52);
  background: rgba(73, 206, 255, 0.12);
}

@media (max-width: 980px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-copy {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(73, 206, 255, 0.18);
  }

  .app-shell {
    padding: 8px;
  }

  .sidebar {
    inset: 8px auto 8px 8px;
    width: min(330px, calc(100vw - 34px));
    max-height: calc(100vh - 16px);
    border-radius: 7px;
  }

  .sidebar-overlay {
    background: rgba(3, 8, 18, 0.68);
  }

  .mobile-menu-button,
  :root[data-theme="dark"] .mobile-menu-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-color: rgba(73, 206, 255, 0.24);
    border-radius: 4px;
    background: rgba(73, 206, 255, 0.08);
    box-shadow: none;
  }

  .mobile-menu-button span {
    background: var(--blue);
  }

  .topbar {
    top: 8px;
    padding: 12px;
  }

  .topbar-title > div {
    text-align: left;
  }

  .topbar h2 {
    font-size: 29px;
  }

  .kanban-columns::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--arena-cyan), var(--arena-orange));
  }
}

@media (max-width: 620px) {
  .auth-view {
    padding: 0;
  }

  .auth-theme-control {
    top: 10px;
    right: 10px;
  }

  .auth-card {
    width: 100%;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
  }

  .auth-copy {
    min-height: 265px;
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(73, 206, 255, 0.18);
    background-position: center 46%;
  }

  .auth-copy::before {
    top: 22px;
    left: 24px;
  }

  .auth-copy::after {
    inset: 10px;
  }

  .auth-logo {
    width: 185px;
    max-height: 74px;
    margin-bottom: 4px;
  }

  .auth-copy h1 {
    max-width: none;
    font-size: 40px;
  }

  .auth-copy p:not(.eyebrow) {
    display: none;
  }

  .auth-panels {
    padding: 14px;
  }

  .auth-form,
  :root[data-theme="dark"] .auth-form {
    padding: 20px;
  }

  .sidebar {
    gap: 10px;
    padding: 14px;
    border-radius: 6px;
  }

  .brand {
    display: flex;
    justify-items: initial;
    justify-content: flex-start;
    gap: 10px;
  }

  .sidebar-logo {
    width: 78px;
    height: 44px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .brand p {
    font-size: 11px;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .view-switch {
    width: 100%;
  }

  .view-button {
    flex: 1;
    padding-inline: 7px;
  }

  .add-icon-button {
    margin-left: auto;
  }

  .task-row {
    border-radius: 4px;
    padding: 9px 10px;
  }

  .task-title strong {
    font-size: 14px;
  }

  .task-activity {
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }
}
