:root {
  --ink: #0B3559;
  --navy: #0B3559;
  --red: #F6404C;
  --red-dark: #F6404C;
  --paper: #FFFFFF;
  --line: rgba(11, 53, 89, 0.18);
  --muted: rgba(11, 53, 89, 0.68);
  --white: #FFFFFF;
  --shadow: 0 18px 48px rgba(11, 53, 89, 0.13);
  --shadow-hover: 0 22px 52px rgba(11, 53, 89, 0.18);
  --font-sans: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 650;
  --weight-bold: 750;
  --weight-heavy: 800;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

h1,
h2,
h3,
b,
strong {
  font-weight: var(--weight-heavy);
}

p,
small {
  font-weight: var(--weight-medium);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 64, 76, 0.16), transparent 30%),
    radial-gradient(circle at 18% 84%, rgba(11, 53, 89, 0.08), transparent 28%),
    linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 62%, rgba(11, 53, 89, 0.07) 100%);
}

.login-card {
  position: relative;
  width: min(420px, 100%);
  min-height: 560px;
  padding: 42px 36px 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), #FFFFFF),
    var(--white);
  box-shadow: 0 26px 70px rgba(11, 53, 89, 0.16);
  overflow: hidden;
}

.login-card-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--red));
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-logo {
  width: 138px;
  height: auto;
  display: block;
  border-radius: 2px;
}

.login-brand-row span {
  color: var(--red);
  font-size: 12px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.login-eyebrow {
  margin: 0 0 18px;
  color: rgba(11, 53, 89, 0.62);
  font-size: 11px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 26px;
  font-size: 40px;
  line-height: 1.05;
  color: var(--navy);
}

.login-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-weight: var(--weight-heavy);
  color: var(--navy);
}

.login-field > span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.login-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 14px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  font-weight: var(--weight-semibold);
}

.login-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(246, 64, 76, 0.12);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 30px;
  margin: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(11, 53, 89, 0.16);
  border-radius: 5px;
  padding: 0;
  background: rgba(11, 53, 89, 0.05);
  color: var(--navy);
}

.password-toggle:hover {
  background: var(--navy);
  color: var(--white);
}

.eye-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.remember-user {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
}

.remember-user input {
  accent-color: var(--red);
}

.caps-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(246, 64, 76, 0.34);
  border-radius: 7px;
  color: var(--red);
  background: rgba(246, 64, 76, 0.07);
  font-size: 13px;
  font-weight: var(--weight-bold);
}

#loginButton {
  width: 100%;
  margin-top: 22px;
  border: 1px solid var(--red);
  border-radius: 7px;
  padding: 13px 16px;
  background: var(--red);
  color: var(--white);
  font-weight: var(--weight-heavy);
}

#loginButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(246, 64, 76, 0.22);
}

#loginButton:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.login-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--red);
  font-weight: var(--weight-bold);
}

.login-status.ok {
  color: #087D4D;
}

.login-footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: rgba(11, 53, 89, 0.55);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 1.5;
}

button,
.filter-control,
.kpi,
.insight-card,
.chart-card,
.star-card,
article,
.table-section,
.rank-row,
.mini-insight-row,
.file-row,
.upload-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 24px;
  background: var(--navy);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 12px 28px rgba(11, 53, 89, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  justify-self: start;
  min-width: 0;
}

.brand img {
  width: 136px;
  height: auto;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.brand span {
  display: block;
  font-size: 11px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 64px;
  border: 0;
  background: transparent;
  color: var(--red);
  padding: 0 4px;
  border-radius: 0;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
}

.nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  border-radius: 999px 999px 0 0;
}

.nav-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button.active,
.nav button:hover {
  color: var(--red);
  background: transparent;
}

.nav button.active::after,
.nav button:hover::after {
  background: var(--white);
}

.topbar-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.topbar-studio-mark {
  color: var(--red);
  font-size: 11px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}

.session {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.session button {
  border: 1px solid rgba(246, 64, 76, 0.42);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(246, 64, 76, 0.08);
  color: var(--red);
  font-weight: var(--weight-heavy);
}

.session button:hover {
  background: var(--red);
  color: var(--white);
}

.profile-menu {
  position: relative;
  justify-self: end;
}

.profile-trigger {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: var(--weight-heavy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  border-color: rgba(246, 64, 76, 0.42);
  color: var(--white);
  background: var(--red);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 280px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 24px 62px rgba(11, 53, 89, 0.18);
}

.profile-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 10px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.profile-photo-shell {
  position: relative;
}

.profile-photo-button,
.profile-card-head > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: var(--weight-heavy);
  overflow: hidden;
  padding: 0;
}

.profile-photo-button:hover,
.profile-photo-button[aria-expanded="true"] {
  background: var(--red);
}

.profile-photo-actions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: 154px;
  padding: 6px;
  border: 1px solid rgba(11, 53, 89, 0.14);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(11, 53, 89, 0.2);
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.profile-card-head b,
.profile-card-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-head b {
  color: var(--ink);
}

.profile-card-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-dropdown > button,
.profile-photo-actions button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: var(--weight-bold);
}

.profile-dropdown button:hover {
  background: rgba(11, 53, 89, 0.06);
}

.profile-dropdown .profile-logout {
  color: var(--red);
}

.profile-dropdown .profile-logout:hover {
  background: rgba(246, 64, 76, 0.08);
}

.assistant-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 22px 54px rgba(11, 53, 89, 0.28);
}

.assistant-fab svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-fab span {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.08em;
}

.assistant-fab:hover,
.assistant-fab-active {
  transform: translateY(-2px);
  background: var(--red);
  box-shadow: 0 26px 62px rgba(246, 64, 76, 0.28);
}

.assistant-panel {
  position: fixed;
  right: 28px;
  bottom: 108px;
  z-index: 46;
  width: min(420px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 140px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(11, 53, 89, 0.18);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 28px 74px rgba(11, 53, 89, 0.24);
}

.assistant-panel.hidden,
.assistant-fab.hidden {
  display: none;
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: var(--navy);
  color: var(--white);
}

.assistant-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-size: 10px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.assistant-head b {
  display: block;
  font-size: 18px;
}

.assistant-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
}

.assistant-head button:hover {
  background: var(--red);
}

.assistant-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(11, 53, 89, 0.04), rgba(246, 64, 76, 0.03));
}

.assistant-message {
  border: 1px solid rgba(11, 53, 89, 0.16);
  border-left: 4px solid var(--navy);
  border-radius: 9px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
}

.assistant-message b {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.assistant-message p {
  margin: 0;
  color: var(--muted);
}

.assistant-user {
  border-left-color: var(--red);
  background: rgba(246, 64, 76, 0.06);
}

.assistant-answer {
  border-top: 2px solid var(--navy);
}

.assistant-system {
  border-left-color: var(--red);
}

.assistant-prompts {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  overflow-x: auto;
}

.assistant-prompts button {
  flex: 0 0 auto;
  border: 1px solid rgba(246, 64, 76, 0.32);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(246, 64, 76, 0.08);
  color: var(--red);
  font-size: 12px;
  font-weight: var(--weight-bold);
}

.assistant-prompts button:hover {
  background: var(--red);
  color: var(--white);
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px 16px;
  background: var(--white);
}

.assistant-form textarea {
  width: 100%;
  resize: none;
  border: 1px solid rgba(11, 53, 89, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--navy);
  outline: none;
}

.assistant-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(246, 64, 76, 0.12);
}

.assistant-form button {
  align-self: stretch;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--red);
  color: var(--white);
  font-weight: var(--weight-heavy);
}

.assistant-form button:hover {
  background: var(--navy);
}

.assistant-form button:disabled {
  opacity: 0.62;
  cursor: progress;
}

main {
  width: min(1520px, calc(100% - 48px));
  margin: 24px auto 72px;
}

.page { display: none; }
.page.active { display: block; }

.hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 24%, rgba(246, 64, 76, 0.14), transparent 23%),
    linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 58%, rgba(11, 53, 89, 0.08) 100%);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.hero > div {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(360px, 1fr);
  align-items: end;
  column-gap: 42px;
}

.hero .eyebrow,
.hero h1,
.hero .hero-copy {
  grid-column: 1;
}

.hero .filter-bar {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
  align-self: end;
  max-width: 620px;
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.section h2 {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1;
  font-weight: var(--weight-heavy);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 740px;
  color: rgba(11, 53, 89, 0.76);
  font-size: 17px;
  line-height: 1.65;
}

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

.filter-bar,
.hero-actions label,
.hero-actions span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.filter-bar {
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(11, 53, 89, 0.07);
}

.filter-control {
  display: inline-flex;
  align-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  background: var(--white);
  color: rgba(11, 53, 89, 0.74);
  min-height: 34px;
}

.filter-control:hover,
.filter-control:focus-within {
  border-color: rgba(246, 64, 76, 0.42);
  box-shadow: 0 10px 24px rgba(11, 53, 89, 0.1);
}

.filter-control select {
  min-width: 116px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 7px 30px 7px 10px;
  font-weight: var(--weight-semibold);
}

.clear-filters-btn {
  width: 36px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(246, 64, 76, 0.42);
  border-radius: 6px;
  padding: 0;
  background: var(--white);
  color: var(--red);
}

.clear-filters-btn:hover {
  background: rgba(246, 64, 76, 0.09);
  transform: translateY(-1px);
}

.ui-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.month-filter-button {
  min-width: 126px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 7px 30px 7px 10px;
  font-weight: var(--weight-semibold);
}

.month-filter-button::after {
  content: "⌄";
  position: absolute;
  right: 11px;
  color: var(--ink);
}

.month-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 220px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(11, 53, 89, 0.18);
}

.month-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
}

.month-menu label:hover {
  background: rgba(246, 64, 76, 0.08);
}

.month-menu input {
  accent-color: var(--red);
}

.month-menu small {
  display: block;
  margin: 8px 4px 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.filter-control small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.section { margin-top: 34px; }

.star-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.star-card {
  min-height: 172px;
  border-top: 4px solid var(--ink);
}

.star-card:nth-child(even) {
  border-top-color: var(--red);
}

.star-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 64, 76, 0.34);
  box-shadow: var(--shadow-hover);
}

.star-card span,
.star-card small,
.star-card strong {
  display: block;
}

.star-card span {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.star-card b {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.star-card small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.star-card strong {
  margin-top: 16px;
  color: var(--red);
  font-size: 22px;
}

.star-section-stack {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.star-section-card {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.star-card-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
  max-height: 260px;
  overflow-y: auto;
  padding: 0 4px 4px 0;
  scrollbar-gutter: stable;
}

.star-performer-card {
  position: relative;
  min-height: 166px;
  padding: 18px;
  border: 1px solid rgba(11, 53, 89, 0.16);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(11, 53, 89, 0.08);
}

.star-performer-card:nth-child(even) {
  border-top-color: var(--red);
}

.star-performer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.star-performer-card:nth-child(odd):hover {
  border-top-color: var(--ink);
}

.star-performer-card:nth-child(even):hover {
  border-top-color: var(--red);
}

.star-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(246, 64, 76, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: var(--weight-heavy);
}

.star-performer-card small {
  display: block;
  margin-bottom: 12px;
  padding-right: 34px;
  color: var(--red);
  font-size: 11px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.star-performer-card b,
.star-performer-card strong {
  display: block;
  color: var(--ink);
}

.star-performer-card b {
  padding-right: 34px;
  font-size: 18px;
  line-height: 1.25;
}

.star-performer-card strong {
  margin-top: 14px;
  color: var(--red);
  font-size: 24px;
}

.star-performer-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.star-statement-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.star-statement-summary,
.star-statement-card {
  border: 1px solid rgba(11, 53, 89, 0.16);
  border-left: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  margin-left: 0;
}

.star-statement-summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: var(--weight-heavy);
}

.star-statement-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
}

.star-statement-card:nth-child(odd) {
  border-left-color: var(--red);
}

.star-statement-card:hover {
  transform: translateX(2px);
  box-shadow: 0 10px 24px rgba(11, 53, 89, 0.1);
}

.star-statement-card span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(246, 64, 76, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: var(--weight-heavy);
}

.star-statement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow: visible;
}

.insights-panel {
  margin: 22px 0 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(11, 53, 89, 0.08);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: -22px -22px 18px;
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
  background: var(--ink);
  color: var(--white);
}

.panel-head .eyebrow {
  margin: 0;
  color: var(--white);
  opacity: 0.9;
}

.panel-head h2 {
  margin: 0;
  color: var(--white);
  font-size: 20px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0;
}

.panel-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.table-download-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.36);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.table-download-btn:hover {
  border-color: var(--red);
  background: var(--red);
  transform: translateY(-1px);
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.insight-card {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}

.insight-card:nth-child(even) {
  border-top-color: var(--red);
}

.insight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 53, 89, 0.32);
  box-shadow: 0 14px 32px rgba(11, 53, 89, 0.12);
}

.insight-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-card b {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: var(--weight-heavy);
}

.insight-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.insight-risk,
.insight-action,
.insight-empty {
  border-top-color: var(--red);
}

.insight-risk b,
.insight-action b,
.insight-empty b {
  color: var(--red);
}

.insight-list .insight-card:nth-child(odd),
.insight-list .insight-card:nth-child(odd):hover {
  border-top-color: var(--ink);
}

.insight-list .insight-card:nth-child(even),
.insight-list .insight-card:nth-child(even):hover {
  border-top-color: var(--red);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.kpi {
  min-height: 130px;
  padding: 22px;
  border: 1px solid rgba(246, 64, 76, 0.24);
  border-top: 4px solid var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(11, 53, 89, 0.08);
}

.kpi-grid .kpi:nth-child(even) {
  border-top-color: var(--red);
}

.kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 53, 89, 0.34);
  box-shadow: var(--shadow-hover);
}

.kpi.strong {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(246, 64, 76, 0.24);
  border-top-color: var(--red);
}

.kpi span {
  display: block;
  color: var(--ink);
  opacity: 0.92;
  font-size: 12px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kpi b {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.kpi small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  opacity: 1;
}

.kpi.strong span,
.kpi.strong b,
.kpi.strong small {
  color: var(--ink);
}

.kpi.strong span,
.kpi.strong small {
  opacity: 0.92;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: 38px;
  color: var(--ink);
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.page-head .filter-bar {
  margin-top: 0;
  flex: 0 0 auto;
}

.upload-page-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 32px;
  width: min(1360px, 100%);
  margin: 18px auto 26px;
  padding: 18px 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.upload-page-head h1 {
  font-size: 40px;
}

.upload-hero-art {
  position: relative;
  min-height: 132px;
}

.upload-cloud {
  position: absolute;
  right: 72px;
  top: 8px;
  width: 118px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 55%, rgba(246, 64, 76, 0.16), transparent 31%),
    radial-gradient(circle, rgba(11, 53, 89, 0.06), transparent 68%);
}

.upload-cloud svg {
  width: 86px;
  height: 86px;
  fill: none;
  stroke: rgba(246, 64, 76, 0.78);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-art-folder,
.upload-art-chart {
  position: absolute;
  display: block;
  opacity: 0.72;
}

.upload-art-folder {
  right: 48px;
  bottom: 15px;
  width: 62px;
  height: 34px;
  border-radius: 7px 7px 10px 10px;
  background: linear-gradient(135deg, rgba(56, 111, 203, 0.82), rgba(56, 111, 203, 0.52));
}

.upload-art-folder::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -9px;
  width: 25px;
  height: 14px;
  border-radius: 7px 7px 0 0;
  background: rgba(56, 111, 203, 0.58);
}

.upload-art-chart {
  right: 0;
  top: 28px;
  width: 52px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 10px, rgba(80, 116, 219, 0.28) 10px 18px, transparent 18px 24px, rgba(80, 116, 219, 0.48) 24px 32px, transparent 32px 38px, rgba(80, 116, 219, 0.72) 38px 46px, transparent 46px),
    rgba(11, 53, 89, 0.03);
}

.upload-head button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 8px;
  background: rgba(11, 53, 89, 0.28);
  padding: 11px 16px;
  color: var(--white);
  font-weight: var(--weight-heavy);
}

.upload-head button:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.upload-head button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.compact { grid-template-columns: repeat(6, minmax(130px, 1fr)); margin-bottom: 20px; }

.insight-grid,
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

article,
.upload-card,
.empty {
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(11, 53, 89, 0.09);
}

.insight-grid article:nth-child(even),
.charts article:nth-child(even),
.three-col article:nth-child(even) {
  border-top-color: var(--red);
}

.insight-grid article:nth-child(odd),
.charts article:nth-child(odd),
.three-col article:nth-child(odd) {
  border-top-color: var(--ink);
}

.page > .table-section:nth-of-type(even),
.page > .upload-card:nth-of-type(even),
.page > .empty:nth-of-type(even) {
  border-top-color: var(--red);
}

.page > .table-section:nth-of-type(odd),
.page > .upload-card:nth-of-type(odd),
.page > .empty:nth-of-type(odd) {
  border-top-color: var(--ink);
}

article {
  padding: 20px;
  overflow: hidden;
}

article:hover,
.table-section:hover,
.upload-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(11, 53, 89, 0.28);
}

article h3 {
  margin: -20px -20px 16px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: var(--weight-heavy);
  font-size: 16px;
  line-height: 1.25;
}

.chart-card {
  height: 390px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.chart-card canvas,
.wide-chart canvas {
  display: block;
  width: 100%;
  height: 300px !important;
  max-height: 300px;
  flex: 1 1 auto;
  min-height: 0;
}

.chart-empty-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.attention-card,
.recruiter-attention-card {
  overflow: hidden;
}

.chart-card.star-section-card {
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.chart-card.star-section-card .star-card-list {
  max-height: none;
}

.chart-card.star-section-card .star-statement-list {
  max-height: 320px;
  overflow-y: auto;
}

.wide-star-card {
  grid-column: 1 / -1;
}

.mini-insight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
  min-height: 0;
}

.mini-insight-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 53, 89, 0.14);
  border-left: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.mini-insight-row:nth-child(even) {
  border-left-color: var(--red);
}

.mini-insight-row:hover {
  transform: translateX(2px);
  border-color: rgba(246, 64, 76, 0.34);
  box-shadow: 0 8px 20px rgba(11, 53, 89, 0.1);
}

.mini-insight-row span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(246, 64, 76, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: var(--weight-heavy);
}

.mini-insight-row b,
.mini-insight-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-insight-row b {
  color: var(--ink);
  font-size: 14px;
}

.mini-insight-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mini-insight-row strong {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.compact-empty {
  min-height: 260px;
}

.table-section {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(11, 53, 89, 0.09);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.table-scroll-lock {
  max-height: min(62vh, 620px);
  overscroll-behavior: contain;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

tbody tr {
  transition: background-color 140ms ease, color 140ms ease;
}

tbody tr:hover {
  background: rgba(11, 53, 89, 0.035);
}

td {
  color: rgba(11, 53, 89, 0.9);
}

th:first-child, td:first-child {
  text-align: left;
}

th.text-left,
td.text-left {
  text-align: left;
}

th.text-center,
td.text-center {
  text-align: center;
}

td.value-excellent {
  color: #12834B;
  font-weight: var(--weight-heavy);
}

td.value-good {
  color: #B77900;
  font-weight: var(--weight-heavy);
}

td.value-watch {
  color: #E36414;
  font-weight: var(--weight-heavy);
}

td.value-risk {
  color: #D92D20;
  font-weight: var(--weight-heavy);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

th button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  padding: 0;
}

th button:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.table-empty {
  padding: 34px;
  text-align: center !important;
  color: var(--muted);
  font-weight: 800;
}

.empty {
  padding: 34px;
  color: var(--muted);
}

.no-data {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(246, 64, 76, 0.3);
  border-left: 4px solid var(--red);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(246, 64, 76, 0.07);
  color: var(--red-dark);
  font-weight: var(--weight-heavy);
}

.hidden {
  display: none !important;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rank-row,
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row {
  border-left: 4px solid var(--ink);
  padding-left: 12px;
}

.rank-row:nth-child(even) {
  border-left-color: var(--red);
}

.rank-row:hover,
.file-row:hover {
  padding-left: 10px;
  padding-right: 10px;
  border-color: rgba(246, 64, 76, 0.28);
  background: rgba(11, 53, 89, 0.025);
}

.rank-row:last-child,
.file-row:last-child {
  border-bottom: 0;
}

.rank-row span {
  color: var(--red-dark);
  font-weight: var(--weight-bold);
}

.rank-row b,
.file-row b {
  color: var(--ink);
  font-weight: var(--weight-heavy);
}

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

.performance-rank-row div {
  min-width: 0;
}

.performance-rank-row b,
.performance-rank-row small {
  display: block;
}

.performance-rank-row b {
  color: var(--ink);
  font-weight: var(--weight-heavy);
}

.performance-rank-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.wide-chart { margin-top: 18px; }

.upload-card {
  width: min(1360px, 100%);
  max-width: none;
  margin: 0 auto 56px;
  overflow: hidden;
  border-radius: 12px;
  border-color: rgba(11, 53, 89, 0.16);
  border-top-color: var(--red);
  box-shadow: 0 28px 76px rgba(11, 53, 89, 0.16);
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background:
    radial-gradient(circle at 82% 40%, rgba(255,255,255,0.12), transparent 24%),
    linear-gradient(135deg, #062747, var(--ink) 48%, #0f426f);
  color: var(--white);
}

.upload-head-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.upload-data-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.upload-data-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-head b {
  font-size: 17px;
}

.upload-head span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
}

.dropzone {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 218px;
  border: 1px dashed rgba(11, 53, 89, 0.22);
  border-radius: 10px;
  margin: 20px 24px 0;
  background:
    radial-gradient(circle at 50% 27%, rgba(246, 64, 76, 0.08), transparent 16%),
    linear-gradient(180deg, #FFFFFF, rgba(11, 53, 89, 0.018));
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.dropzone input { display: none; }
.dropzone-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(246, 64, 76, 0.12);
  color: var(--red);
}

.dropzone-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone span:not(.dropzone-icon):not(.choose-files-btn) { font-weight: var(--weight-heavy); font-size: 18px; color: var(--ink); }
.dropzone em {
  margin: 8px 0;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.choose-files-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 7px;
  padding: 8px 18px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: var(--weight-heavy);
  box-shadow: 0 12px 26px rgba(246, 64, 76, 0.24);
}

.choose-files-btn .ui-icon {
  width: 15px;
  height: 15px;
}

.dropzone small { display: block; margin-top: 12px; color: var(--muted); }

.dropzone:hover {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(246, 64, 76, 0.12);
  background:
    radial-gradient(circle at 50% 27%, rgba(246, 64, 76, 0.13), transparent 17%),
    linear-gradient(180deg, #FFFFFF, rgba(246, 64, 76, 0.04));
}

.upload-status {
  min-height: 26px;
  padding: 12px 26px 0;
  color: var(--red-dark);
  font-weight: var(--weight-bold);
}

.file-list {
  padding: 0 26px 24px;
}

.file-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.file-main > div {
  min-width: 0;
}

.file-row {
  margin-top: 12px;
  padding: 14px 14px;
  border: 1px solid rgba(11, 53, 89, 0.12);
  border-left: 4px solid var(--ink);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
}

.file-row:nth-child(even) {
  border-left-color: var(--red);
}

.file-row-protected {
  border-color: rgba(246, 64, 76, 0.22);
  background:
    linear-gradient(90deg, rgba(246, 64, 76, 0.035), rgba(255,255,255,0.96) 28%),
    var(--white);
}

.file-row:hover {
  padding-left: 14px;
  padding-right: 14px;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(11, 53, 89, 0.11);
}

.kpi-grid .kpi:nth-child(odd):hover,
.star-hero-grid .star-card:nth-child(odd):hover,
.insight-grid article:nth-child(odd):hover,
.charts article:nth-child(odd):hover,
.three-col article:nth-child(odd):hover,
.page > .table-section:nth-of-type(odd):hover,
.page > .upload-card:nth-of-type(odd):hover,
.page > .empty:nth-of-type(odd):hover {
  border-top-color: var(--ink);
}

.kpi-grid .kpi:nth-child(even):hover,
.star-hero-grid .star-card:nth-child(even):hover,
.insight-grid article:nth-child(even):hover,
.charts article:nth-child(even):hover,
.three-col article:nth-child(even):hover,
.page > .table-section:nth-of-type(even):hover,
.page > .upload-card:nth-of-type(even):hover,
.page > .empty:nth-of-type(even):hover {
  border-top-color: var(--red);
}

.rank-row:nth-child(odd):hover,
.mini-insight-row:nth-child(odd):hover,
.file-row:nth-child(odd):hover {
  border-left-color: var(--ink);
}

.rank-row:nth-child(even):hover,
.mini-insight-row:nth-child(even):hover,
.file-row:nth-child(even):hover {
  border-left-color: var(--red);
}

.file-row b { display: block; }
.file-row span { color: var(--muted); font-size: 13px; }
.file-ok {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(11, 53, 89, 0.08);
  color: var(--ink) !important;
  font-weight: var(--weight-heavy);
}
.file-warn { color: var(--red-dark) !important; font-weight: var(--weight-bold); }

.file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  font-size: 18px;
  font-weight: var(--weight-heavy);
  line-height: 1;
  box-shadow: 0 8px 18px rgba(11, 53, 89, 0.15);
}

.icon-btn .ui-icon {
  width: 16px;
  height: 16px;
}

.icon-download {
  background: var(--ink);
}

.icon-delete {
  background: var(--red);
}

.icon-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.file-protected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(11, 53, 89, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--weight-heavy);
}

.file-protected .ui-icon {
  width: 14px;
  height: 14px;
}

.upload-status.ok { color: var(--ink); }
.upload-status.error { color: var(--red-dark); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .kpi:hover,
  .chart-card:hover,
  .insight-card:hover,
  .star-card:hover,
  .mini-insight-row:hover,
  .icon-btn:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .kpi-grid, .compact { grid-template-columns: repeat(2, 1fr); }
  .star-hero-grid { grid-template-columns: repeat(2, 1fr); }
  .star-card-list { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .insight-grid, .charts, .three-col, .insight-list { grid-template-columns: 1fr; }
  .hero > div { display: block; }
  .hero .filter-bar {
    max-width: none;
    margin-top: 26px;
    justify-self: auto;
  }
  .page-head { display: block; }
  .page-head .filter-bar { margin-top: 18px; }
  .upload-page-head {
    grid-template-columns: 1fr;
  }
  .upload-hero-art {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    height: auto;
    padding: 12px;
  }
  .brand { grid-column: 1; }
  .topbar-right { grid-column: 2; grid-row: 1; gap: 10px; }
  .topbar-studio-mark { display: none; }
  .profile-menu { grid-column: auto; grid-row: auto; }
  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
  }
  .nav button {
    min-height: 44px;
  }
  .login-screen { padding: 24px 14px; }
  .login-card {
    min-height: auto;
    padding: 34px 24px 28px;
  }
  .login-card h1 { font-size: 34px; }
  .login-brand-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .login-logo { width: 132px; }
  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  main { width: min(100% - 24px, 1520px); }
  .hero { padding: 28px; }
  .upload-page-head h1 { font-size: 34px; }
  .upload-card { border-radius: 10px; }
  .upload-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .dropzone {
    min-height: 220px;
    margin: 14px;
    padding: 22px;
  }
  .file-list,
  .upload-status {
    padding-left: 14px;
    padding-right: 14px;
  }
  .kpi-grid, .compact { grid-template-columns: 1fr; }
  .star-hero-grid { grid-template-columns: 1fr; }
  .star-card-list { grid-template-columns: 1fr; }
  .filter-bar,
  .filter-control {
    width: 100%;
  }
  .filter-control select {
    flex: 1;
  }
  .month-filter-button {
    flex: 1;
  }
  .month-menu {
    width: 100%;
  }
  .assistant-fab {
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }
  .assistant-panel {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 112px);
  }
  .assistant-form {
    grid-template-columns: 1fr;
  }
}
