:root {
  --bg: #edf3f5;
  --bg-deep: #d9e6eb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --panel-dark: #132833;
  --ink: #10232d;
  --ink-soft: #213b48;
  --muted: #3d5966;
  --line: rgba(22, 46, 58, 0.10);
  --navy: #0d2029;
  --navy-2: #163441;
  --navy-3: #214b5e;
  --sea: #2c6c82;
  --sand: #d7a35d;
  --green: #2e8a5d;
  --orange: #d86f30;
  --red: #bb4b4b;
  --blue: #4b7eb5;
  --violet: #655dc9;
  --gold: #d8b172;
  --shadow-xl: 0 30px 80px rgba(10, 27, 37, 0.14);
  --shadow-lg: 0 18px 40px rgba(12, 28, 38, 0.12);
  --shadow-sm: 0 12px 26px rgba(12, 28, 38, 0.08);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Avenir Next", "Neue Haas Grotesk Text Pro", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(44,108,130,0.16), transparent 22%),
    radial-gradient(circle at bottom right, rgba(216,177,114,0.16), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(237,243,245,0.9) 100%),
    var(--bg);
}

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

.page {
  width: min(1520px, calc(100% - 44px));
  margin: 0 auto 32px;
}

.hero-intro {
  margin-bottom: 26px;
}

.hero-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-intro p {
  margin: 0;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-kicker,
.topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(22,46,58,0.08);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.nav-card,
.card,
.panel,
.stat {
  background: var(--panel-strong);
  border: 1px solid rgba(22,46,58,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.nav-card::before,
.panel::before,
.stat::before,
.hero-panel::before,
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 28%);
  pointer-events: none;
}

.nav-card {
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.nav-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.nav-card span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.nav-card small {
  display: block;
  margin-top: 14px;
  color: var(--sea);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

.sidebar {
  background:
    radial-gradient(circle at top right, rgba(216,177,114,0.18), transparent 26%),
    linear-gradient(180deg, #0f232c 0%, #163543 100%);
  color: #f3fbff;
  border-radius: var(--radius-2xl);
  padding: 24px 18px 18px;
  box-shadow: var(--shadow-xl);
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.brand-block {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 140px;
  height: 52px;
  display: flex;
  align-items: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sub {
  color: rgba(228, 241, 248, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #eaf4f9;
  font-size: 12px;
  font-weight: 700;
}

.menu-group-title {
  margin: 18px 10px 8px;
  color: rgba(228, 241, 248, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 16px;
  margin-bottom: 8px;
  color: #e6f0f5;
  font-weight: 700;
  border: 0;
  width: 100%;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
}

.menu-pill {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  font-size: 11px;
  font-weight: 800;
}

.menu-pill.alert {
  background: rgba(216,111,48,0.22);
  color: #ffd9bf;
}

.sidebar-footer {
  margin-top: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: grid;
  gap: 8px;
}

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

.sidebar-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.sidebar-card h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #f3fbff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #e6f0f5;
}

.sidebar-table td {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-table td:last-child {
  text-align: right;
  font-weight: 800;
  color: #fff;
}

.sidebar-actions {
  display: grid;
  gap: 8px;
}

.sidebar-action {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f3fbff;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}

button.sidebar-action {
  appearance: none;
  -webkit-appearance: none;
}

.sidebar-action:hover {
  background: rgba(255,255,255,0.12);
}

.sidebar-action-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(234, 179, 78, 0.16);
  border-color: rgba(234, 179, 78, 0.24);
}

.sidebar-action-support span:first-child {
  font-size: 14px;
}

.sidebar-footer strong {
  display: block;
  margin-bottom: 6px;
}

.note,
.meta,
.footer-note,
.stat-label,
.stat-meta,
.panel .meta,
.panel p,
.sheet-card .meta,
.approval-box .meta,
.focus-box .meta {
  color: #445d69;
}

.main {
  display: grid;
  gap: 14px;
  align-content: start;
}

.main-finance {
  width: 100%;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 0;
  margin-bottom: 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.rp-mobile-sidebar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #153340 0%, #1f485a 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.top-bar .right-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ghost-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(22,46,58,0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(12, 28, 38, 0.06);
}

.top-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 20px;
  backdrop-filter: blur(8px);
}

.stat-label {
  color: #425b67;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-value {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.stat-meta {
  margin-top: 10px;
  color: #45606c;
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(216,177,114,0.18), transparent 26%),
    linear-gradient(135deg, #102430 0%, #163a49 56%, #21485a 100%);
  color: #f4fbff;
  border-radius: var(--radius-2xl);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.05em;
}

.hero-panel p {
  margin: 0;
  color: rgba(232, 242, 248, 0.72);
  line-height: 1.6;
  max-width: 680px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 20px;
}

.three-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.finance-panel {
  padding: 24px;
}

.finance-table-wrap {
  overflow: auto;
  margin-top: 12px;
  border-radius: 22px;
  border: 1px solid rgba(22,46,58,0.08);
}

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

.finance-table {
  width: 100%;
  min-width: 1780px;
  border-collapse: collapse;
  background: rgba(255,255,255,0.98);
}

.finance-table th,
.finance-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(22,46,58,0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.finance-table th {
  position: sticky;
  top: 0;
  background: #f6fafc;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.finance-table-compact {
  min-width: 1080px;
}

.finance-table-compact th,
.finance-table-compact td {
  padding: 14px 12px;
}

.table-sort {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}

.table-filter {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.finance-row-main {
  cursor: pointer;
}

.finance-row-main td {
  white-space: nowrap;
}

.finance-row-detail td {
  background: #f8fbfd;
}

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

.finance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tiny-wide {
  padding: 10px 14px;
  font-size: 12px;
}

.finance-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 100%);
  backdrop-filter: blur(10px);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.panel p {
  margin: 0 0 14px;
  color: #58717c;
  line-height: 1.55;
  font-weight: 500;
}

[hidden] {
  display: none !important;
}

.divider {
  height: 1px;
  background: rgba(22,46,58,0.08);
  margin: 14px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.green { background: #e7f6ef; color: #236544; }
.badge.orange { background: #fff1e5; color: #a25417; }
.badge.red { background: #fdecec; color: #a63b3b; }
.badge.blue { background: #ebf3fe; color: #315e9f; }
.badge.violet { background: #f1effe; color: #584cbc; }
.badge.dark { background: rgba(16,35,45,0.10); color: var(--ink); }
.badge.yellow { background: #fff7dc; color: #8b6a10; }

.approval-box,
.focus-box,
.message-box,
.timeline-item,
.sheet-card {
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 12px;
}

.approval-box {
  background: #fff4eb;
  border: 1px solid #f2d6c1;
}

.focus-box {
  background: #eef5f8;
  border: 1px solid #d8e4ea;
}

.message-box {
  background: #edf3ff;
  border: 1px solid #d7dff0;
}

.timeline-item {
  background: linear-gradient(180deg, #f9fbfc 0%, #f1f6f8 100%);
  border: 1px solid rgba(22,46,58,0.08);
}

.sheet-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafb 100%);
  border: 1px solid rgba(22,46,58,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.approval-box strong,
.focus-box strong,
.message-box strong,
.timeline-item strong,
.sheet-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.meta {
  color: #47616d;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 700;
}

.meta.warm { color: #7a614f; font-weight: 600; }

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: #47616d;
  font-weight: 600;
}

.meta-row strong {
  color: var(--ink);
  margin: 0;
  font-size: 15px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 8px 20px rgba(12, 28, 38, 0.10);
}

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

.btn.dark { background: var(--navy); color: white; }
.btn.light { background: white; color: var(--ink); border: 1px solid rgba(22,46,58,0.08); }
.btn.orange { background: linear-gradient(135deg, #e8b05f 0%, #d86f30 100%); color: white; }
.btn.yellow { background: linear-gradient(135deg, #f0d46b 0%, #d8b24b 100%); color: #19303b; }
.btn.green { background: linear-gradient(135deg, #31986b 0%, #236f4f 100%); color: white; }
.btn.ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.16); box-shadow: none; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(44,108,130,0.05);
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(22,46,58,0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-link {
  color: var(--sea);
  font-weight: 700;
}

.note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(44,108,130,0.08);
  color: #486572;
  line-height: 1.6;
  font-weight: 600;
}

.phone-wrap {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 30px;
  align-items: start;
}

.phone {
  width: 410px;
  background: linear-gradient(180deg, #0f202c 0%, #17384c 100%);
  border-radius: 44px;
  padding: 16px;
  box-shadow: 0 24px 70px rgba(8, 21, 31, 0.26);
}

.phone-screen {
  min-height: 840px;
  border-radius: 34px;
  overflow: hidden;
  padding: 22px 20px 18px;
  background:
    radial-gradient(circle at top right, rgba(216,177,114,0.18), transparent 26%),
    linear-gradient(180deg, #102231 0%, #143246 100%);
  color: #f6fbff;
}

.phone-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.phone-brand .brand-mark {
  width: 120px;
  height: 42px;
}

.phone-screen h2 {
  margin: 0 0 16px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.mobile-card {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 18px 34px rgba(13, 27, 38, 0.12);
}

.mobile-section {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(244,249,252,0.98);
  letter-spacing: 0.02em;
}

.mobile-stat-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #4d6976;
  font-weight: 700;
}

.mobile-stat-line span {
  color: #4f6b78;
  font-weight: 700;
}

.mobile-stat-line strong {
  color: var(--ink);
  font-weight: 800;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
  background: rgba(12, 26, 36, 0.55);
  border-radius: 22px;
  padding: 10px;
  color: #eef5f9;
  font-size: 12px;
  text-align: center;
}

.mobile-nav a,
.mobile-nav button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 6px 4px;
  border-radius: 14px;
  cursor: pointer;
}

.mobile-nav .active {
  color: white;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
}

.runnerpro-auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(44,108,130,0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(216,177,114,0.16), transparent 20%),
    linear-gradient(180deg, #102231 0%, #143246 100%);
}

.runnerpro-auth-card {
  width: min(100%, 560px);
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(22,46,58,0.08);
  box-shadow: 0 26px 64px rgba(8, 21, 31, 0.22);
}

.runnerpro-auth-logo {
  width: 180px;
  max-width: 100%;
  margin-bottom: 14px;
}

.runnerpro-auth-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.runnerpro-auth-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16,35,45,0.06);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.runnerpro-auth-card h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.runnerpro-auth-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.runnerpro-auth-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff0e8;
  color: #9c4c18;
  font-weight: 700;
}

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

.runnerpro-auth-form label {
  display: grid;
}

.runnerpro-auth-form label > span {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: var(--ink);
}

.runnerpro-auth-form input[type="text"],
.runnerpro-auth-form input[type="password"],
.runnerpro-auth-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(22,46,58,0.12);
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.runnerpro-auth-form input[type="text"]:focus,
.runnerpro-auth-form input[type="password"]:focus,
.runnerpro-auth-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(44,108,130,0.35);
  box-shadow: 0 0 0 4px rgba(44,108,130,0.10);
}

.runnerpro-auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.runnerpro-auth-checkbox > span {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 600;
}

.runnerpro-auth-consent {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbfc 0%, #eef5f8 100%);
  border: 1px solid rgba(22,46,58,0.08);
}

.runnerpro-auth-list {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.btn.wide {
  width: 100%;
  justify-content: center;
}

.runnerpro-auth-card .btn.dark.wide {
  min-height: 56px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 18px;
}

.pill-row,
.inline-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.split-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle closest-side, rgba(255,255,255,1) 70%, transparent 71% 100%),
    conic-gradient(var(--gold) 0deg, var(--gold) 230deg, rgba(22,46,58,0.08) 230deg);
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
}

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

.mini-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbfc 0%, #eef5f8 100%);
  border: 1px solid rgba(22,46,58,0.08);
}

.mini-card .label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.mini-card .value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.footer-note {
  margin-top: 10px;
  color: #516b78;
  font-size: 12px;
  font-weight: 600;
}

.runnerpro-app-shell .page {
  margin-top: 4px;
}

.runnerpro-app-shell .runnerpro-shell-main {
  padding-top: 0;
}

.runnerpro-app-shell .sidebar .meta,
.runnerpro-app-shell .sidebar .footer-note,
.runnerpro-app-shell .sidebar-footer .meta,
.runnerpro-app-shell .sidebar-card .meta,
.runnerpro-app-shell .sidebar-table td {
  color: rgba(234, 245, 250, 0.84);
}

.runnerpro-app-shell .timeline-item .meta,
.runnerpro-app-shell .sheet-card .meta,
.runnerpro-app-shell .approval-box .meta,
.runnerpro-app-shell .focus-box .meta,
.runnerpro-app-shell .panel p,
.runnerpro-app-shell .meta-row,
.runnerpro-app-shell .stat-label,
.runnerpro-app-shell .stat-meta {
  color: #3f5966;
  font-weight: 800;
}

.rp-runner-alarm-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  top: calc(env(safe-area-inset-top) + 86px);
  z-index: 1400;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232,176,95,0.98) 0%, rgba(216,111,48,0.98) 100%);
  color: #fff;
  box-shadow: 0 20px 40px rgba(8, 21, 31, 0.28);
  transform: translateY(-18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.rp-runner-alarm-toast strong {
  font-size: 15px;
  line-height: 1.2;
}

.rp-runner-alarm-toast span {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.96);
}

.rp-runner-alarm-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.runnerpro-app-shell .top-stats .stat {
  min-height: 142px;
}

.rp-detail-toggle {
  margin-top: 10px;
}

.rp-detail-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbfc 0%, #eef5f8 100%);
  border: 1px solid rgba(22,46,58,0.08);
}

.rp-shell-ui {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
}

.rp-shell-dock {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-shell-menu {
  margin-right: auto;
}

.rp-sidebar-close {
  display: none;
  margin-left: auto;
  margin-bottom: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.rp-shell-icon,
.rp-shell-avatar {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  position: relative;
}

.rp-shell-icon {
  cursor: pointer;
  font-size: 18px;
  padding: 0;
}

.rp-shell-icon span,
.rp-shell-avatar strong {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.rp-shell-icon em {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rp-shell-avatar {
  color: var(--ink);
  font-weight: 800;
  padding: 0;
}

.rp-compose-shell {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99998;
}

.rp-compose-shell.open {
  display: block;
}

.rp-compose-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 30, 0.54);
  backdrop-filter: blur(8px);
}

.rp-compose-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(860px, calc(100% - 28px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(22,46,58,0.08);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(10,27,37,0.24);
  padding: 22px;
}

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

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

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

.rp-compose-field.full {
  grid-column: 1 / -1;
}

.rp-compose-field label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rp-compose-field input,
.rp-compose-field select,
.rp-compose-field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(22,46,58,0.12);
  background: #f8fbfc;
  color: var(--ink);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
}

.rp-compose-field textarea {
  min-height: 96px;
  resize: vertical;
}

.rp-contact-list {
  display: grid;
  gap: 10px;
}

.rp-contact-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rp-contact-paste {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.rp-contact-paste-actions {
  display: flex;
  justify-content: flex-start;
}

.rp-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.btn.tiny {
  padding: 10px 12px;
  min-width: 44px;
  justify-content: center;
}

.btn.tiny-wide {
  padding: 10px 14px;
}

.rp-compose-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
  flex-wrap: wrap;
}

.rp-compose-help {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(44,108,130,0.08);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.rp-compose-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(75,126,181,0.10);
  color: var(--navy-3);
  font-weight: 700;
}

.rp-compose-feedback.error {
  background: rgba(187,75,75,0.12);
  color: var(--red);
}

.rp-flyout {
  position: fixed;
  top: 78px;
  right: 18px;
  width: min(380px, calc(100vw - 28px));
  max-height: calc(100vh - 110px);
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(22,46,58,0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 1200;
  backdrop-filter: blur(18px);
}

.rp-flyout.open {
  display: flex;
}

.rp-flyout-chat {
  width: min(620px, calc(100vw - 28px));
}

.rp-flyout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(22,46,58,0.08);
}

.rp-flyout-head h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.rp-flyout-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: #edf3f5;
  font-size: 22px;
  cursor: pointer;
}

.rp-flyout-list {
  padding: 14px;
  overflow: auto;
}

.rp-notice-item {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fbfc 0%, #f1f6f8 100%);
  border: 1px solid rgba(22,46,58,0.08);
  margin-bottom: 10px;
}

.rp-notice-item.unread {
  background: #edf3ff;
  border-color: #cdd9ef;
}

.rp-notice-item strong,
.rp-chat-bubble strong,
.rp-thread-item strong {
  display: block;
  margin-bottom: 6px;
}

.rp-notice-item p,
.rp-chat-bubble p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.rp-notice-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.rp-notice-action {
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-2);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}

.rp-chat-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 520px;
}

.rp-chat-threads {
  border-right: 1px solid rgba(22,46,58,0.08);
  padding: 12px;
  overflow: auto;
  background: rgba(244,248,250,0.9);
}

.rp-thread-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(22,46,58,0.08);
  background: white;
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.rp-thread-item.unread {
  border-color: #cdd9ef;
  background: #edf3ff;
}

.rp-thread-item span {
  color: var(--muted);
  display: block;
  line-height: 1.4;
}

.rp-chat-empty {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(22,46,58,0.08);
}

.rp-chat-empty span {
  color: var(--muted);
  line-height: 1.45;
}

.rp-chat-thread {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 520px;
}

.rp-chat-thread-head {
  padding: 14px 16px 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
}

.rp-chat-messages {
  padding: 14px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(248,251,252,0.92) 0%, rgba(241,246,248,0.92) 100%);
}

.rp-chat-bubble {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(22,46,58,0.08);
  margin-bottom: 10px;
}

.rp-chat-bubble.mine {
  margin-left: auto;
  background: #edf3ff;
  border-color: #cdd9ef;
}

.rp-chat-attach {
  margin-bottom: 8px;
  color: var(--sea);
  font-size: 12px;
  font-weight: 700;
}

.rp-chat-image {
  margin-bottom: 8px;
}

.rp-chat-image img {
  display: block;
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
}

.rp-chat-file {
  margin-bottom: 8px;
}

.rp-chat-file a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #edf3ff;
  color: var(--navy-2);
  font-weight: 700;
}

.rp-map-marker-wrap {
  background: transparent;
  border: 0;
}

.rp-map-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pin, #4b7eb5) 88%, white) 0%, var(--pin, #4b7eb5) 100%);
  border: 4px solid rgba(255,255,255,0.96);
  box-shadow:
    0 12px 22px rgba(12,28,38,0.28),
    inset 0 2px 0 rgba(255,255,255,0.38);
  display: grid;
  place-items: center;
  position: relative;
}

.rp-map-number::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pin, #4b7eb5) 50%, white);
  opacity: 0.55;
}

.rp-map-number span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.rp-map-vehicle {
  width: 52px;
  height: 52px;
  position: relative;
  transform: rotate(var(--rot, 0deg));
  transform-origin: 50% 50%;
}

.rp-map-vehicle__shadow {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 14px;
  border-radius: 999px;
  background: rgba(11, 24, 31, 0.22);
  filter: blur(5px);
}

.rp-map-vehicle__body {
  position: absolute;
  inset: 8px;
  border-radius: 16px 16px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,252,255,0.98) 40%, color-mix(in srgb, var(--pin, #4b7eb5) 16%, white) 100%);
  border: 3px solid rgba(19, 40, 51, 0.18);
  box-shadow:
    0 10px 18px rgba(8, 19, 28, 0.24),
    inset 0 2px 0 rgba(255,255,255,0.92);
}

.rp-map-vehicle__body::before,
.rp-map-vehicle__body::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1f2b33;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

.rp-map-vehicle__body::before {
  left: -4px;
}

.rp-map-vehicle__body::after {
  right: -4px;
}

.rp-map-vehicle__roof {
  position: relative;
  width: 56%;
  height: 56%;
  margin: 7px auto 0;
  border-radius: 11px 11px 8px 8px;
  background: linear-gradient(180deg, rgba(19,40,51,0.92) 0%, rgba(41,68,82,0.9) 100%);
  border: 2px solid rgba(255,255,255,0.45);
}

.rp-map-vehicle__windshield,
.rp-map-vehicle__rear {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 8px;
  background: linear-gradient(180deg, rgba(166, 214, 255, 0.92) 0%, rgba(228, 243, 255, 0.85) 100%);
  border-radius: 999px;
}

.rp-map-vehicle__windshield {
  top: 10px;
}

.rp-map-vehicle__rear {
  bottom: 10px;
}

.rp-map-vehicle--van .rp-map-vehicle__body,
.rp-map-vehicle--cargo .rp-map-vehicle__body {
  border-radius: 14px;
}

.rp-map-vehicle--van .rp-map-vehicle__roof,
.rp-map-vehicle--cargo .rp-map-vehicle__roof {
  width: 62%;
  height: 60%;
  border-radius: 10px;
}

.rp-map-vehicle--cargo .rp-map-vehicle__body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,249,251,0.98) 38%, color-mix(in srgb, var(--pin, #4b7eb5) 26%, white) 100%);
}

.rp-map-vehicle--cargo .rp-map-vehicle__body::before,
.rp-map-vehicle--cargo .rp-map-vehicle__body::after {
  top: 5px;
}

.rp-map-popup {
  min-width: 160px;
  line-height: 1.45;
}

.rp-map-popup strong {
  display: block;
  margin-bottom: 4px;
}

.runner-number {
  --runner-badge: #173543;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--runner-badge) 88%, white) 0%, var(--runner-badge) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
  box-shadow: 0 6px 16px rgba(12, 28, 38, 0.16);
}

.rp-chat-compose {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(22,46,58,0.08);
  background: white;
}

.rp-chat-compose input[type="text"] {
  width: 100%;
  border: 1px solid rgba(22,46,58,0.10);
  border-radius: 999px;
  padding: 12px 14px;
}

.rp-chat-compose button,
.rp-attach-btn {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-2);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.rp-attach-btn {
  width: 46px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1320px) {
  .layout,
  .content-grid,
  .three-grid,
  .top-stats,
  .phone-wrap,
  .nav-cards,
  .finance-detail-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

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

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, calc(100vw - 48px));
    z-index: 1250;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    overflow: auto;
    min-height: 100dvh;
    border-radius: 0 28px 28px 0;
    transform: translateX(-104%);
    transition: transform 220ms ease;
  }

  .layout.rp-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .layout.rp-sidebar-open .rp-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar .sidebar-stack {
    display: grid;
  }

  .sidebar .sidebar-footer,
  .sidebar .menu-group-title {
    display: block;
  }

  .sidebar .menu-item {
    display: flex;
  }

  .rp-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1240;
    border: 0;
    background: rgba(8, 21, 31, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .rp-mobile-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .rp-sidebar-close {
    display: inline-grid;
    place-items: center;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 100%);
  }

  .runnerpro-auth-screen {
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    align-items: start;
  }

  .runnerpro-auth-card {
    width: 100%;
    padding: 18px 16px 20px;
    border-radius: 24px;
    margin-top: calc(env(safe-area-inset-top) + 10px);
  }

  .runnerpro-auth-logo {
    width: 150px;
    margin-bottom: 12px;
  }

  .runnerpro-auth-card h1 {
    margin: 14px 0 10px;
    font-size: 36px;
    line-height: 0.96;
  }

  .runnerpro-auth-card p,
  .runnerpro-auth-list,
  .runnerpro-auth-checkbox > span {
    font-size: 15px;
  }

  .runnerpro-auth-form {
    gap: 12px;
  }

  .runnerpro-auth-form input[type="text"],
  .runnerpro-auth-form input[type="password"],
  .runnerpro-auth-form input[type="email"] {
    min-height: 54px;
    font-size: 16px;
  }

  .runnerpro-auth-consent {
    padding: 12px;
    border-radius: 16px;
  }

  .rp-shell-ui {
    position: sticky;
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    padding: calc(env(safe-area-inset-top) + 10px) 12px 10px;
    background: linear-gradient(180deg, rgba(13,32,41,0.96) 0%, rgba(13,32,41,0.88) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(8, 21, 31, 0.18);
  }

  .rp-shell-dock {
    justify-content: flex-end;
    gap: 10px;
  }

  .runner-app-page {
    width: 100%;
    margin: 0;
  }

  .runner-app-page .hero-intro,
  .runner-app-page .stack {
    display: none;
  }

  .runner-app-page .phone-wrap {
    display: block;
    gap: 0;
    margin: 0;
    width: 100%;
  }

  .top-bar {
    position: sticky;
    top: calc(72px + env(safe-area-inset-top));
    z-index: 100;
    padding: 0;
    background: linear-gradient(180deg, rgba(16,34,49,0.98) 0%, rgba(16,34,49,0.92) 100%);
    border-bottom: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .top-bar .right-tools {
    margin-left: auto;
    justify-content: flex-end;
  }

  .top-bar .ghost-chip {
    display: none;
  }

  .top-bar-left {
    display: none;
  }

  .rp-mobile-sidebar-toggle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 26px;
    font-weight: 900;
  }

  .phone {
    width: 100%;
    max-width: 420px;
  }

  .runner-app-page .phone {
    width: 100%;
    max-width: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .runner-app-page .phone-screen {
    min-height: 100dvh;
    border-radius: 0;
    padding: 18px 16px calc(92px + env(safe-area-inset-bottom));
  }

  .runnerpro-shell-main {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #102231 0%, #143246 100%);
  }

  body.runnerpro-app-shell {
    background: linear-gradient(180deg, #102231 0%, #143246 100%);
  }

  .runner-app-page .mobile-card {
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .runner-app-page .meta {
    color: #546d79;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
  }

  .runner-app-page .footer-note {
    color: #556d79;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
  }

  .runner-app-page .mobile-stat-line {
    color: #506874;
    font-size: 15px;
    font-weight: 700;
  }

  .runner-app-page .mobile-stat-line span {
    color: #5d7682;
    font-weight: 700;
  }

  .runner-app-page .mobile-stat-line strong {
    color: #10232d;
  }

  .runner-app-page .mobile-card .meta + .meta {
    margin-top: 6px;
  }

  .runner-app-page .rp-detail-toggle {
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .runner-app-page .rp-detail-panel {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .runner-app-page .rp-detail-panel strong,
  .runner-app-page .rp-detail-panel .timeline-item strong {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .runner-app-page .rp-detail-panel .meta,
  .runner-app-page .rp-detail-panel .meta-row,
  .runner-app-page .rp-detail-panel .meta-row strong {
    font-size: 13px;
  }

  .runner-app-page .rp-detail-panel .btn.light {
    font-size: 13px;
    line-height: 1.2;
    padding: 10px 12px;
    word-break: break-word;
  }

  .runner-app-page .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1100;
    margin-top: 0;
    box-shadow: 0 18px 36px rgba(8, 21, 31, 0.28);
    backdrop-filter: blur(16px);
    background: rgba(10, 27, 37, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
  }

  .runner-app-page .mobile-nav a,
  .runner-app-page .mobile-nav button {
    color: rgba(255,255,255,0.82);
    font-weight: 600;
  }

  .runner-app-page .mobile-nav .active {
    color: #ffffff;
    font-weight: 800;
    background: rgba(255,255,255,0.10);
  }

  .rp-shell-icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translateX(-1px);
  }

  .rp-shell-avatar strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .hero-panel,
  .panel,
  .stat,
  .nav-card {
    border-radius: 24px;
  }

  .layout .hero-panel {
    padding: 8px;
  }

  .layout .hero-panel > .panel:first-child {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .layout .hero-panel > .panel:first-child > div:first-child {
    height: 364px !important;
    border-radius: 18px !important;
  }

  .layout .hero-panel .badge {
    display: none;
  }

  .layout .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .layout .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 11px 8px;
    font-size: 13px;
    text-align: center;
  }

  .layout .top-stats {
    gap: 12px;
  }

  .layout .stat {
    padding: 18px;
  }

  .layout .stat-label,
  .layout .stat-meta,
  .layout .panel .meta,
  .layout .note,
  .layout .footer-note,
  .layout .sheet-card .meta,
  .layout .approval-box .meta,
  .layout .focus-box .meta,
  .layout .panel p {
    color: #445d69;
    font-weight: 700;
  }

  .layout .meta-row,
  .layout .meta-row span {
    color: #445d69;
    font-weight: 700;
  }

  .layout .stat-label {
    font-size: 14px;
  }

  .layout .stat-meta,
  .layout .panel .meta,
  .layout .note,
  .layout .footer-note,
  .layout .sheet-card .meta,
  .layout .approval-box .meta,
  .layout .focus-box .meta,
  .layout .panel p {
    font-size: 14px;
    line-height: 1.55;
  }

  .layout .sidebar {
    padding-top: calc(env(safe-area-inset-top) + 14px);
  }

  .layout .sidebar-footer {
    margin-top: 8px;
    padding: 14px;
  }

  .layout .sidebar-footer strong {
    margin-bottom: 8px;
  }

  .layout .sidebar-card,
  .layout .sidebar-footer {
    border-radius: 18px;
  }

  .rp-shell-ui {
    top: 0;
    right: auto;
  }

  .rp-flyout,
  .rp-flyout-chat {
    top: 76px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  .rp-chat-shell {
    grid-template-columns: 1fr;
  }

  .rp-chat-threads {
    max-height: 180px;
  }
}
