:root {
  --bg: #071120;
  --bg-2: #0d1730;
  --bg-3: #17294d;
  --text: #18243b;
  --text-soft: #5f6f8e;
  --muted: #5f6f8e;
  --text-strong: #f8fbff;
  --card: rgba(255, 255, 255, 0.92);
  --card-soft: rgba(245, 249, 255, 0.84);
  --card-dark: rgba(10, 20, 39, 0.88);
  --line: rgba(132, 150, 182, 0.18);
  --primary: #102347;
  --primary-2: #224281;
  --primary-3: #0c1730;
  --orange: #ff8c2a;
  --orange-2: #ff6210;
  --cyan: #1ea7ff;
  --cyan-soft: rgba(30, 167, 255, 0.18);
  --orange-soft: rgba(255, 140, 42, 0.16);
  --green: #12b76a;
  --yellow: #fbbf24;
  --red: #ef4444;
  --shadow: 0 22px 60px rgba(5, 15, 35, 0.16);
  --shadow-strong: 0 30px 90px rgba(4, 11, 28, 0.32);
  --radius: 26px;
  font-family: "Plus Jakarta Sans", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 12%, rgba(30, 167, 255, 0.18), transparent 20%),
    radial-gradient(circle at 86% 10%, rgba(255, 140, 42, 0.2), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(58, 123, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #0d1730 48%, #132443 100%);
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 12%, rgba(30, 167, 255, 0.18), transparent 20%),
    radial-gradient(circle at 86% 10%, rgba(255, 140, 42, 0.2), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(58, 123, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #0d1730 48%, #132443 100%);
  color: var(--text);
  overscroll-behavior: none;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 28%, rgba(0, 0, 0, 0) 84%);
  opacity: 0.24;
}

body::after {
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(6, 16, 29, 0), rgba(6, 16, 29, 0.5) 38%, rgba(6, 16, 29, 0.94));
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

.shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-inline: clamp(14px, 3vw, 28px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: max(12px, env(safe-area-inset-top));
}

.topbar-inner {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(11, 21, 43, 0.94), rgba(18, 38, 75, 0.9) 52%, rgba(15, 31, 62, 0.94)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px 16px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.topbar-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 140, 42, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(30, 167, 255, 0.14), transparent 26%);
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

.userbox {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar-side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.userbox-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.userbox-meta strong,
.userbox-meta span {
  max-width: 176px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userbox-meta strong {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.userbox-meta span {
  font-size: 11px;
  opacity: 0.72;
}

.page {
  display: grid;
  gap: 16px;
  padding-block: 18px calc(136px + env(safe-area-inset-bottom));
}

.page > * {
  opacity: 1;
  transform: none;
  animation: pageRise 180ms ease-out both;
}

.page > *:nth-child(2),
.page > *:nth-child(3),
.page > *:nth-child(4),
.page > *:nth-child(5),
.page > *:nth-child(6) {
  animation-delay: 0ms;
}

.page-title {
  margin: 0;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(30px, 7vw, 42px);
  letter-spacing: -0.055em;
  line-height: 0.96;
  color: #f8fbff;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(13, 28, 57, 0.94), rgba(24, 50, 97, 0.88) 48%, rgba(14, 27, 53, 0.96)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 24px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(26px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: -72px;
  right: -34px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 140, 42, 0.34), rgba(255, 140, 42, 0));
}

.hero::after {
  right: 18px;
  bottom: -84px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30, 167, 255, 0.22), rgba(30, 167, 255, 0));
}

.hero p,
.hero h1,
.hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero h1,
.hero h2 {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero p {
  color: rgba(255, 255, 255, 0.76);
}

.hero-kicker,
.section-kicker,
.form-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card .section-kicker,
.card .form-kicker {
  border-color: rgba(16, 35, 71, 0.08);
  background: rgba(16, 35, 71, 0.05);
  color: var(--primary);
}

.hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.hero-copy {
  margin-top: 8px;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.65;
}

.hero-visual {
  display: flex;
  justify-content: flex-start;
}

.hero-ring {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 40px rgba(3, 9, 24, 0.18);
  text-align: center;
  animation: heroFloat 5.8s ease-in-out infinite alternate;
}

.hero-ring span {
  display: block;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-ring small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 255, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card.pad {
  padding: 18px;
}

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

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

.stat,
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 32px rgba(8, 17, 37, 0.08);
}

.stat::after,
.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), rgba(30, 167, 255, 0.9));
}

.stat b,
.metric-card b {
  display: block;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.stat span,
.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.btn-with-icon {
  gap: 10px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 98, 16, 0.28);
}

.btn-dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 18px 34px rgba(16, 35, 71, 0.28);
}

.btn-green {
  background: linear-gradient(135deg, #18c37a, #10975f);
  color: #fff;
  box-shadow: 0 18px 34px rgba(16, 151, 95, 0.24);
}

.btn-yellow {
  background: linear-gradient(135deg, #ffd85d, #f7b500);
  color: #4e3600;
  box-shadow: 0 18px 34px rgba(247, 181, 0, 0.22);
}

.btn-red {
  background: linear-gradient(135deg, #ff6868, #ef4444);
  color: #fff;
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.22);
}

.btn-pdf {
  background: linear-gradient(135deg, #ff6a6a, #dc2626);
  color: #fff;
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.24);
}

.btn-excel {
  background: linear-gradient(135deg, #8ef2b1, #54d07a);
  color: #083b1c;
  box-shadow: 0 18px 34px rgba(84, 208, 122, 0.22);
}

.btn-outline {
  border-color: rgba(117, 139, 177, 0.22);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.btn-small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.w-full {
  width: 100%;
}

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

.field label,
.label {
  color: #314361;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.control,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(125, 147, 185, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 13px 14px;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(7, 17, 36, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.control:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(30, 167, 255, 0.44);
  box-shadow:
    0 0 0 5px rgba(30, 167, 255, 0.12),
    0 10px 22px rgba(7, 17, 36, 0.06);
}

.control[type="file"] {
  padding: 10px 12px;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.row + .row {
  margin-top: 10px;
}

.row-main {
  min-width: 0;
}

.row-main b,
.row-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-main b {
  font-size: 15px;
}

.row-main span,
.meta {
  color: var(--text-soft);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-aberto {
  background: rgba(148, 163, 184, 0.18);
  color: #334155;
}

.badge-andamento {
  background: rgba(255, 140, 42, 0.16);
  color: #b45309;
}

.badge-pausado {
  background: rgba(251, 191, 36, 0.18);
  color: #8a5a00;
}

.badge-finalizado {
  background: rgba(18, 183, 106, 0.16);
  color: #15803d;
}

.alert {
  border-radius: 20px;
  padding: 14px 16px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(9, 18, 36, 0.08);
}

.alert-success {
  background: rgba(18, 183, 106, 0.18);
  color: #166534;
}

.alert-error {
  background: rgba(239, 68, 68, 0.14);
  color: #991b1b;
}

.alert-info {
  background: rgba(30, 167, 255, 0.16);
  color: #1e40af;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.tabs a.is-active {
  background: linear-gradient(135deg, rgba(255, 140, 42, 0.24), rgba(255, 255, 255, 0.14));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tabs-soft {
  border-color: rgba(16, 35, 71, 0.08);
  background: rgba(16, 35, 71, 0.05);
}

.tabs-soft a {
  color: rgba(24, 36, 59, 0.58);
}

.tabs-soft a.is-active {
  background: linear-gradient(135deg, rgba(255, 140, 42, 0.2), rgba(255, 255, 255, 0.92));
  color: var(--primary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(255, 140, 42, 0.12);
}

.checkbox-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.checkbox-list input {
  accent-color: var(--orange);
}

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

.section-head h2,
.surface-head h2 {
  margin: 6px 0 0;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(24px, 5vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(16, 35, 71, 0.08);
  color: var(--primary);
  font-weight: 800;
}

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

.list-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 14px 28px rgba(8, 17, 37, 0.06);
}

.list-main {
  min-width: 0;
}

.list-main b {
  display: block;
  font-size: 16px;
}

.list-main span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 4px;
}

.list-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex-shrink: 0;
}

.list-side small {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.list-side b {
  display: block;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.action-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.9));
  padding: 18px;
  box-shadow: var(--shadow);
}

.action-card strong {
  font-size: 16px;
}

.action-card small {
  color: var(--text-soft);
  font-size: 12px;
}

.action-card-primary {
  background:
    linear-gradient(145deg, rgba(255, 140, 42, 0.2), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.94);
}

.action-card-dark {
  background:
    linear-gradient(145deg, rgba(16, 35, 71, 0.22), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.94);
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.detail-item {
  padding: 14px 16px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-item span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item p {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.screen-shell,
.panel-stack {
  display: grid;
  gap: 16px;
}

.screen-hero {
  min-height: 220px;
}

.screen-hero-head,
.headline-group {
  display: grid;
  gap: 16px;
}

.screen-hero-copy {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.screen-hero-copy p,
.headline-group p,
.section-head p,
.surface-head p,
.form-section-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.screen-hero .hero-copy {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 112px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-chip b {
  display: block;
  color: #fff;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  letter-spacing: -0.05em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-chip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-score {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-width: 148px;
}

.hero-score-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-score-value {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(44px, 11vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: #fff;
}

.hero-score-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.quick-grid,
.surface-grid {
  display: grid;
  gap: 12px;
}

.quick-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 138px;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.quick-card::before,
.quick-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.quick-card::before {
  top: -42px;
  right: -28px;
  width: 118px;
  height: 118px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.quick-card::after {
  inset: auto 18px 16px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0));
}

.quick-card strong,
.quick-card small {
  position: relative;
  z-index: 1;
}

.quick-card strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.quick-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.quick-card-primary {
  background:
    linear-gradient(145deg, rgba(255, 140, 42, 0.98), rgba(255, 98, 16, 0.92) 58%, rgba(217, 75, 4, 0.9)),
    rgba(255, 255, 255, 0.08);
}

.quick-card-dark {
  background:
    linear-gradient(145deg, rgba(14, 27, 53, 0.96), rgba(34, 66, 129, 0.88) 58%, rgba(16, 35, 71, 0.96)),
    rgba(255, 255, 255, 0.08);
}

.quick-card-soft {
  background:
    linear-gradient(145deg, rgba(30, 167, 255, 0.94), rgba(21, 113, 196, 0.9) 55%, rgba(12, 59, 113, 0.9)),
    rgba(255, 255, 255, 0.08);
}

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

.empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(126, 147, 184, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
}

.empty-state b {
  font-size: 16px;
}

.empty-state p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

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

.form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(126, 147, 184, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.form-section-head {
  display: grid;
  gap: 4px;
}

.form-section-head h2,
.section-head h2,
.surface-head h2 {
  margin: 0;
}

.form-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.upload-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.upload-panel,
.media-picker,
.media-section {
  display: grid;
  gap: 12px;
}

.upload-panel {
  padding: 14px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.upload-panel-head {
  display: grid;
  gap: 3px;
}

.upload-panel-head small,
.upload-empty,
.upload-preview-copy span,
.media-card-copy span,
.completion-item span,
.modal-summary-item span {
  color: var(--text-soft);
  font-size: 12px;
}

.upload-dropzone {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px dashed rgba(16, 35, 71, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.88));
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.upload-dropzone:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 140, 42, 0.34);
  box-shadow:
    0 18px 32px rgba(15, 23, 42, 0.08),
    0 0 0 8px rgba(255, 140, 42, 0.06);
}

.upload-dropzone span {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

.upload-dropzone small {
  color: var(--text-soft);
  line-height: 1.5;
}

.upload-preview {
  display: grid;
  gap: 10px;
}

.upload-preview-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.upload-preview-item {
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 10px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.upload-preview-item img,
.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-item img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.upload-preview-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 35, 71, 0.12), rgba(30, 167, 255, 0.14));
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.upload-preview-copy,
.media-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.upload-preview-copy b,
.media-card-copy b {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-picker-actions,
.completion-summary,
.modal-summary {
  display: grid;
  gap: 10px;
}

.media-picker-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.media-picker-actions .btn,
.modal-actions .btn {
  width: 100%;
}

.completion-card {
  align-content: start;
}

.completion-summary,
.modal-summary {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.completion-item,
.modal-summary-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.completion-item b,
.modal-summary-item b {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.media-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(8, 17, 37, 0.06);
}

.media-card img,
.media-card video,
.media-audio-shell {
  min-height: 180px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(231, 239, 255, 0.7), rgba(244, 248, 255, 0.96));
}

.media-audio-shell {
  display: grid;
  place-items: center;
  padding: 20px;
}

.media-audio-shell audio {
  width: 100%;
}

.media-link {
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 800;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-shell[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 32, 0.62);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 560px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.94));
  box-shadow: 0 32px 90px rgba(4, 11, 28, 0.32);
}

.modal-card h2,
.modal-card p {
  margin: 0;
}

.modal-card h2 {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: -0.04em;
  color: var(--primary);
}

.modal-card p {
  color: var(--text-soft);
  line-height: 1.65;
}

.modal-kicker {
  border-color: rgba(16, 35, 71, 0.08);
  background: rgba(16, 35, 71, 0.06);
  color: var(--primary);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(16, 35, 71, 0.08);
  color: var(--primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

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

body.modal-open {
  overflow: hidden;
}

.rank-list,
.timeline {
  display: grid;
  gap: 12px;
}

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

.podium-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow-strong);
  animation: podiumFloat 4.8s ease-in-out infinite alternate;
}

.podium-card::before,
.podium-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.podium-card::before {
  top: -28px;
  right: -18px;
  width: 118px;
  height: 118px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.podium-card::after {
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
}

.podium-card small,
.podium-card strong,
.podium-card .podium-stats,
.podium-card .podium-medal {
  position: relative;
  z-index: 1;
}

.podium-card.is-place-1 {
  background: linear-gradient(145deg, rgba(255, 140, 42, 0.98), rgba(255, 98, 16, 0.92) 60%, rgba(215, 74, 5, 0.92));
  animation-delay: 0s;
}

.podium-card.is-place-2 {
  background: linear-gradient(145deg, rgba(21, 47, 90, 0.96), rgba(45, 90, 176, 0.9) 60%, rgba(17, 33, 66, 0.96));
  animation-delay: 0.35s;
}

.podium-card.is-place-3 {
  background: linear-gradient(145deg, rgba(22, 58, 83, 0.96), rgba(32, 138, 184, 0.88) 60%, rgba(9, 26, 45, 0.96));
  animation-delay: 0.7s;
}

.podium-card.is-empty {
  background: linear-gradient(145deg, rgba(24, 34, 57, 0.82), rgba(41, 56, 88, 0.78));
  color: rgba(255, 255, 255, 0.9);
}

.podium-card.is-empty .podium-stats span,
.podium-card.is-empty small {
  color: rgba(255, 255, 255, 0.68);
}

.podium-medal {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.podium-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.podium-card strong {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.podium-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.podium-stats span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.podium-stats b {
  font-size: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(126, 147, 184, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 24px rgba(8, 17, 37, 0.05);
}

.rank-position {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(16, 35, 71, 0.08);
  color: var(--primary);
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.rank-position.is-top {
  background: linear-gradient(135deg, rgba(255, 140, 42, 0.18), rgba(255, 255, 255, 0.94));
  color: var(--orange-2);
}

.rank-copy {
  min-width: 0;
}

.rank-copy b,
.rank-copy span {
  display: block;
}

.rank-copy span {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
}

.rank-score {
  text-align: right;
}

.rank-score b {
  display: block;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.rank-score span {
  color: var(--text-soft);
  font-size: 12px;
}

.export-panel {
  gap: 16px;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 0 0 0 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 0 0 5px rgba(30, 167, 255, 0.1);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -10px;
  left: 5px;
  width: 1px;
  background: linear-gradient(180deg, rgba(95, 111, 142, 0.24), rgba(95, 111, 142, 0));
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item b {
  font-size: 15px;
}

.timeline-item p,
.timeline-item span {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  background: #07101d;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: -12%;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.24), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(251, 146, 60, 0.22), transparent 18%),
    radial-gradient(circle at 52% 78%, rgba(14, 165, 233, 0.18), transparent 22%),
    linear-gradient(135deg, #06101b 0%, #102449 46%, #081223 100%);
  animation: authAmbient 18s ease-in-out infinite alternate;
}

.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 82%);
  pointer-events: none;
  opacity: 0.34;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
  width: min(100%, 1120px);
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background: rgba(6, 12, 24, 0.56);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.auth-visual {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 620px;
  padding: 38px;
  background:
    linear-gradient(160deg, rgba(9, 20, 38, 0.72), rgba(10, 22, 40, 0.3)),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.2), transparent 26%);
}

.auth-mark {
  position: absolute;
  top: 34px;
  right: 34px;
  font-size: clamp(48px, 10vw, 110px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.auth-logo {
  height: 46px;
  width: auto;
}

.auth-copy {
  display: grid;
  gap: 14px;
  max-width: 520px;
  color: #fff;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-copy p {
  margin: 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.65;
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-kicker-dark {
  border-color: rgba(22, 42, 82, 0.1);
  background: rgba(22, 42, 82, 0.06);
  color: var(--primary);
}

.auth-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-highlights span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.auth-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 38px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.94));
}

.auth-panel-head {
  display: grid;
  gap: 10px;
}

.auth-panel-head h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.auth-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  gap: 16px;
}

.auth-submit {
  min-height: 48px;
  margin-top: 6px;
}

.muted {
  color: var(--muted);
}

.mt {
  margin-top: 14px;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-kicker-dark {
  color: var(--primary);
}

.settings-header {
  display: grid;
  gap: 8px;
}

.settings-header p {
  margin: 0;
}

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

.settings-layout {
  display: grid;
  gap: 16px;
}

.settings-sidebar {
  align-self: start;
}

.settings-nav {
  display: grid;
  gap: 10px;
}

.settings-nav-link {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(22, 42, 82, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px 15px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.settings-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 146, 60, 0.34);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.settings-nav-link span {
  font-size: 14px;
  font-weight: 800;
}

.settings-nav-link small {
  color: var(--muted);
  font-size: 12px;
}

.settings-nav-link.is-active {
  border-color: rgba(251, 146, 60, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96));
  box-shadow: 0 18px 30px rgba(234, 88, 12, 0.1);
}

.settings-content {
  display: grid;
  gap: 16px;
}

.settings-hub {
  display: grid;
  gap: 20px;
}

.shortcut-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.shortcut-card {
  display: grid;
  gap: 6px;
  min-height: 136px;
  align-content: end;
  border: 1px solid rgba(22, 42, 82, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 251, 0.9));
  padding: 20px;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.shortcut-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 146, 60, 0.34);
  box-shadow:
    0 24px 42px rgba(15, 23, 42, 0.12),
    0 0 0 8px rgba(251, 146, 60, 0.08);
}

.shortcut-card span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.shortcut-card small {
  color: var(--muted);
  font-size: 13px;
}

.avatar-trigger {
  display: inline-flex;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.avatar-trigger:hover {
  transform: translateY(-2px);
}

.avatar-trigger .profile-avatar {
  border-color: rgba(22, 42, 82, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 251, 0.94));
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.avatar-trigger:hover .profile-avatar {
  transform: translateY(-2px);
  border-color: rgba(234, 88, 12, 0.38);
  box-shadow:
    0 22px 40px rgba(15, 23, 42, 0.12),
    0 0 0 6px rgba(251, 146, 60, 0.08);
}

.settings-avatar-row {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.profile-avatar-large {
  width: 132px;
  height: 132px;
  border-radius: 34px;
}

.settings-form-panel {
  gap: 18px;
}

.settings-panel {
  gap: 20px;
}

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

.settings-section-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.03em;
}

.settings-section-head p {
  margin: 6px 0 0;
}

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

.create-panel {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.create-panel[hidden] {
  display: none;
}

.field-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.field-inline .control {
  flex: 1;
}

.lookup-feedback {
  min-height: 18px;
  margin: 0;
}

.lookup-feedback.is-error {
  color: #b91c1c;
}

.lookup-feedback.is-success {
  color: #166534;
}

.data-card {
  gap: 12px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-on {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.status-pill.is-off {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.notification-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(22, 42, 82, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 251, 0.9));
  padding: 18px;
}

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

.notification-note {
  gap: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.live-toast {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 60;
  border: 1px solid rgba(22, 42, 82, 0.1);
  border-radius: 999px;
  background: rgba(9, 18, 36, 0.92);
  padding: 11px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.live-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-dock {
  position: fixed;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 0;
  z-index: 20;
  padding-inline: 12px;
  pointer-events: none;
}

.mobile-dock-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--dock-columns, 5), minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 244, 251, 0.86));
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  pointer-events: auto;
}

.mobile-dock-inner::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 18%;
  left: 18%;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0), rgba(251, 146, 60, 0.2), rgba(22, 42, 82, 0.16), rgba(22, 42, 82, 0));
  filter: blur(20px);
  opacity: 0.95;
  pointer-events: none;
}

.dock-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 4px 2px;
  color: #60708b;
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.dock-item:hover {
  transform: translateY(-2px);
}

.dock-item.is-active {
  color: var(--primary);
}

.dock-item.is-active::before {
  content: "";
  position: absolute;
  top: -6px;
  height: 4px;
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.3);
}

.dock-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 16px rgba(148, 163, 184, 0.12);
}

.dock-item.is-active .dock-icon {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.18), rgba(255, 255, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 22px rgba(234, 88, 12, 0.14);
}

.dock-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dock-item.is-primary {
  transform: translateY(-16px);
}

.dock-item.is-primary:hover {
  transform: translateY(-18px);
}

.dock-item.is-primary .dock-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow:
    0 20px 34px rgba(234, 88, 12, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dock-item.is-primary .dock-label {
  color: var(--orange-2);
}

body.has-dock-nav::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(6, 16, 29, 0), rgba(6, 16, 29, 0.7) 38%, rgba(6, 16, 29, 0.96) 100%);
  pointer-events: none;
  z-index: 10;
}

@media (min-width: 720px) {
  .grid-2,
  .quick-grid,
  .surface-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-hero-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

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

  .podium-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 640px) {
  .login-page {
    min-height: 100svh;
    place-items: start center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  }

  .topbar-inner {
    min-height: 50px;
    padding: 8px 11px;
  }

  .userbox {
    gap: 6px;
  }

  .userbox-meta strong,
  .userbox-meta span {
    max-width: 112px;
  }

  .userbox-meta strong {
    font-size: 11px;
  }

  .userbox-meta span {
    font-size: 10px;
  }

  .userbox-action {
    padding: 7px 10px;
    font-size: 10px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    width: min(100%, 460px);
    border-radius: 24px;
    overflow: visible;
  }

  .auth-visual {
    align-content: start;
    min-height: auto;
    gap: 16px;
    padding: 20px 18px 16px;
  }

  .auth-kicker {
    padding: 6px 11px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .auth-mark {
    display: none;
  }

  .auth-logo {
    height: 38px;
  }

  .auth-copy {
    gap: 10px;
  }

  .auth-copy h1 {
    font-size: clamp(22px, 9vw, 34px);
    line-height: 1.04;
  }

  .auth-copy p {
    max-width: none;
    font-size: 14px;
    line-height: 1.55;
  }

  .auth-highlights {
    gap: 8px;
  }

  .auth-highlights span {
    padding: 7px 11px;
    font-size: 10px;
  }

  .auth-highlights span:last-child {
    display: none;
  }

  .auth-panel {
    align-content: start;
    gap: 16px;
    padding: 22px 18px 24px;
  }

  .auth-panel-head {
    gap: 8px;
  }

  .auth-panel-head h2 {
    font-size: clamp(28px, 10vw, 38px);
  }

  .auth-form {
    gap: 14px;
  }

  .settings-shell {
    gap: 14px;
  }

  .settings-nav-link {
    padding: 12px 13px;
  }

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

  .shortcut-card {
    min-height: 112px;
    padding: 18px;
  }

  .quick-grid,
  .surface-grid,
  .metric-grid,
  .action-grid,
  .detail-grid,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .hero-chip {
    min-width: calc(50% - 6px);
  }

  .hero-score-value {
    font-size: 46px;
  }

  .profile-avatar-large {
    width: 116px;
    height: 116px;
    border-radius: 30px;
  }

  .live-toast {
    top: 74px;
    right: 12px;
    left: 12px;
    text-align: center;
  }

  .row {
    align-items: flex-start;
  }

  .row-actions,
  .field-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-dock {
    bottom: max(10px, env(safe-area-inset-bottom));
    padding-inline: 10px;
  }

  .mobile-dock-inner {
    gap: 2px;
    padding: 10px 8px 8px;
    border-radius: 24px;
  }

  .dock-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .dock-label {
    font-size: 10px;
  }

  .modal-shell {
    padding: 14px;
  }

  .modal-card {
    padding: 20px 18px;
    border-radius: 24px;
  }

}

@media (min-width: 900px) {
  .page {
    padding-bottom: 132px;
  }

  .settings-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .mobile-dock {
    bottom: 18px;
  }

  .mobile-dock-inner {
    width: min(100%, 620px);
  }
}

@media (max-width: 900px) {
  .topbar-inner,
  .hero,
  .card,
  .tabs,
  .modal-backdrop,
  .live-toast,
  .mobile-dock-inner {
    backdrop-filter: none;
  }

  .topbar-inner,
  .hero,
  .quick-card,
  .podium-card,
  .modal-card {
    box-shadow: 0 16px 38px rgba(8, 17, 37, 0.14);
  }

  .hero-ring,
  .podium-card {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page > *,
  .hero-ring,
  .podium-card {
    animation: none !important;
  }

  .btn,
  .quick-card,
  .settings-nav-link,
  .shortcut-card,
  .upload-dropzone,
  .dock-item {
    transition: none !important;
  }
}

@keyframes authAmbient {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(1);
  }

  100% {
    transform: scale(1.08) translate3d(1%, -1%, 0);
    filter: saturate(1.08);
  }
}

@keyframes pageRise {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes podiumFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}

.connection-indicator {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.9rem);
  right: 1rem;
  z-index: 70;
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.connection-indicator.is-inline {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  box-shadow: none;
  backdrop-filter: none;
}

.connection-indicator-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.35);
  animation: connectionPulse 1.8s ease infinite;
}

.connection-indicator[data-state="offline"] .connection-indicator-dot {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
}

.sync-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6rem);
  transform: translate(-50%, 1.25rem);
  z-index: 80;
  width: min(92vw, 32rem);
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  background: rgba(7, 17, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(3, 10, 24, 0.32);
  color: #f7fafc;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sync-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sync-toast[data-type="success"] {
  border-color: rgba(46, 204, 113, 0.32);
}

.sync-toast[data-type="warning"] {
  border-color: rgba(251, 191, 36, 0.32);
}

.sync-toast[data-type="error"] {
  border-color: rgba(239, 68, 68, 0.34);
}

.row-wrap {
  flex-wrap: wrap;
  gap: 0.9rem;
}

.row-actions-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.row-main-right {
  align-items: flex-end;
  text-align: right;
}

.user-admin-card {
  gap: 1rem;
}

.user-detail-panel {
  margin-top: 0.4rem;
}

.detail-grid-tight {
  gap: 0.85rem;
}

.audit-log-list {
  gap: 0.95rem;
}

.audit-log-card {
  gap: 0.95rem;
}

.audit-log-payload {
  border-top: 1px solid rgba(15, 35, 71, 0.08);
  padding-top: 0.8rem;
}

.audit-log-payload summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.audit-log-payload pre {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  overflow: auto;
  border-radius: 1rem;
  background: #0f223f;
  color: #e8eef8;
  font-size: 0.76rem;
  line-height: 1.55;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@keyframes connectionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15);
    opacity: 1;
  }

  70% {
    box-shadow: 0 0 0 0.55rem transparent;
    opacity: 0.92;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .page > * {
    animation: none !important;
  }

  .topbar-inner,
  .hero,
  .mobile-dock-inner,
  .card,
  .settings-panel,
  .create-panel {
    backdrop-filter: none;
  }

  .connection-indicator {
    top: calc(env(safe-area-inset-top, 0px) + 0.7rem);
    right: 0.75rem;
    width: 1.05rem;
    height: 1.05rem;
  }

  .connection-indicator.is-inline {
    top: auto;
    right: auto;
    width: 0.92rem;
    height: 0.92rem;
  }

  .topbar-side {
    gap: 6px;
    max-width: 70%;
  }

  .sync-toast {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.4rem);
    width: min(92vw, 24rem);
  }

  .row-main-right {
    align-items: flex-start;
    text-align: left;
  }
}
