.v3-nav-group { display: grid; gap: 4px; }
.v3-nav-group + .v3-nav-group { margin-top: 14px; }
.v3-nav-heading {
  padding: 4px 12px;
  color: var(--v3-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.v3-shell-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--v3-border);
  border-radius: 14px;
  background: var(--v3-surface);
  color: var(--v3-text);
  cursor: pointer;
}

.v3-mobile-nav {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--v3-border) 88%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--v3-surface) 92%, transparent);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  backdrop-filter: blur(18px) saturate(150%);
}

.v3-mobile-nav a,
.v3-mobile-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 50px;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--v3-muted);
  text-decoration: none;
  font-size: .69rem;
  font-weight: 850;
  cursor: pointer;
}
.v3-mobile-nav .v3-nav-icon { font-size: 1rem; line-height: 1; }
.v3-mobile-nav :is(a,button).is-active {
  background: color-mix(in srgb, var(--v3-info) 12%, var(--v3-surface));
  color: var(--v3-info);
}
.v3-mobile-nav .v3-nav-create {
  background: var(--v3-info);
  color: #fff !important;
}
.v3-mobile-nav .v3-nav-create :is(span,.v3-nav-icon) { color: #fff !important; }

.v3-sheet[hidden] { display: none; }
.v3-sheet {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  align-items: end;
}
.v3-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .48);
}
.v3-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(82dvh, 760px);
  margin-inline: auto;
  overflow: auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  border: 1px solid var(--v3-border);
  border-radius: 24px 24px 0 0;
  background: var(--v3-surface);
  color: var(--v3-text);
  box-shadow: 0 -18px 60px rgba(15, 23, 42, .22);
}
.v3-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.v3-sheet-head h2 { margin: 0; font-size: 1.1rem; }
.v3-sheet-close { min-width: 44px; min-height: 44px; border-radius: 14px; border: 1px solid var(--v3-border); background: var(--v3-surface-subtle); color: var(--v3-text); }
.v3-more-links { display: grid; gap: 12px; }
.v3-more-links .v3-nav-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v3-more-links .v3-nav-heading { grid-column: 1 / -1; }
.v3-more-links a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--v3-border); border-radius: 14px; background: var(--v3-surface-subtle); color: var(--v3-text); text-decoration: none; font-weight: 800; }
.v3-more-links a.is-active { border-color: var(--v3-info); color: var(--v3-info); }

.v3-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.v3-page-header h1 { margin: 0; color: var(--v3-text); font-size: clamp(1.35rem, 3vw, 2rem); }
.v3-page-header p { margin: 5px 0 0; color: var(--v3-muted); }
.v3-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.v3-status { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 9px; border: 1px solid var(--v3-border); border-radius: 999px; background: var(--v3-surface-subtle); color: var(--v3-text); font-weight: 800; }
.v3-status-danger { color: var(--v3-danger); }
.v3-status-warning { color: var(--v3-warning); }
.v3-status-success { color: var(--v3-success); }
.v3-status-info { color: var(--v3-info); }
.v3-action-card { padding: 16px; border: 1px solid var(--v3-border); border-radius: var(--v3-radius-md); background: var(--v3-surface); }
.v3-action-card h3, .v3-action-card p { margin-top: 0; }
.v3-data-view { max-width: 100%; overflow-x: auto; border-radius: var(--v3-radius-md); }
.v3-inline-outcome { padding: 10px 12px; border-radius: var(--v3-radius-sm); background: var(--v3-surface-subtle); border-left: 4px solid var(--v3-info); }
