@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/satoshi-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/satoshi-900.woff2') format('woff2');
}

:root {
  /* Leonidas Studio — ../Leonidas/src/styles/tokens.css */
  --brand: #990100;
  --brand-dark: #7a0100;
  --brand-secondary: #b90504;
  --brand-hot: #d11a18;
  --brand-soft: rgba(153, 1, 0, 0.08);
  --brand-softer: rgba(153, 1, 0, 0.045);
  --focus: rgba(153, 1, 0, 0.24);
  --bg: #f6f6f6;
  --bg-alt: #e8e8e8;
  --surface: #ffffff;
  --surface-subtle: #fbfbfb;
  --text: #333333;
  --text-strong: #1c1c1c;
  --text-soft: #4d4d4d;
  --muted: #595959;
  --placeholder: #8c8c8c;
  --vote-positive: #26734d;
  --vote-positive-soft: #e8f3ed;
  --vote-negative: var(--brand);
  --vote-negative-soft: var(--brand-soft);
  --vote-empty: var(--bg-alt);
  --border: #ececec;
  --border-strong: #d4d4d4;
  --overlay: rgba(28, 28, 28, 0.46);
  --shadow-sm: 0 2px 8px rgba(28, 28, 28, 0.06), 0 1px 2px rgba(28, 28, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 28, 28, 0.08), 0 2px 6px rgba(28, 28, 28, 0.05);
  --shadow-brand: 0 12px 30px rgba(185, 5, 4, 0.2), 0 4px 10px rgba(153, 1, 0, 0.14);
  --font-sans: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1120px;
  --header-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button,
a,
label,
select,
input[type='checkbox'],
input[type='radio'] {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
strong {
  color: var(--text-strong);
}

h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

::selection {
  background: var(--brand);
  color: var(--bg);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon {
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
}

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

.site-header {
  position: relative;
  z-index: 10;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header__inner {
  width: min(100% - 40px, var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-lockup img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-lockup strong {
  font-weight: 900;
}

.brand-lockup__dot {
  color: var(--brand-secondary);
  font-weight: 900;
}

.account {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.account form {
  margin: 0;
}

.public-badge,
.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.main {
  min-height: calc(100vh - var(--header-height));
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.page-intro {
  display: grid;
  gap: 18px;
}

.page-intro p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.page-intro--compact h1 {
  font-size: clamp(2rem, 4.2vw, 3.7rem);
}

.page-intro--center {
  justify-items: center;
  text-align: center;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.back-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--brand);
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 180ms var(--ease), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button--primary {
  border-color: var(--brand-secondary);
  background: var(--brand-secondary);
  color: var(--surface);
  box-shadow: var(--shadow-brand);
}

.button--primary strong,
.button--danger strong {
  color: inherit;
}

.button--primary:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand);
}

.button--primary:active:not(:disabled) {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.button--secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text-strong);
}

.button--secondary:hover:not(:disabled),
.button--quiet:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.button--quiet {
  border-color: var(--border);
  background: var(--surface-subtle);
  color: var(--text-soft);
}

.button--danger {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.button--danger:hover:not(:disabled) {
  background: var(--brand);
  color: var(--surface);
}

.button--small {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  font-size: 0.84rem;
}

.button--large {
  min-height: 52px;
  padding: 14px 22px;
}

.button--full {
  width: 100%;
}

.button.is-copied {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: none;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 500;
}

.field input::placeholder {
  color: var(--placeholder);
}

.field input:hover,
.field select:hover {
  border-color: var(--muted);
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  outline: 3px solid var(--focus);
  outline-offset: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 700;
}

.alert--error {
  border: 1px solid var(--focus);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Login */
.main--login {
  display: grid;
  align-items: center;
  padding: 56px 20px 80px;
}

.login-shell {
  width: min(100%, 600px);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.login-shell h1 {
  max-width: 600px;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}

.login-form {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 5vw, 32px);
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.user-choice {
  min-width: 0;
  cursor: pointer;
}

.user-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-choice__card {
  position: relative;
  min-height: 98px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  transition: border-color 160ms ease, background-color 160ms ease, transform 180ms var(--ease);
}

.user-choice:hover .user-choice__card {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.user-choice input:checked + .user-choice__card {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.user-choice input:focus-visible + .user-choice__card {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.user-choice__name {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.user-choice__check {
  position: absolute;
  top: 7px;
  right: 8px;
  color: var(--brand);
  font-size: 0.8rem;
  opacity: 0;
}

.user-choice input:checked + .user-choice__card .user-choice__check {
  opacity: 1;
}

.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--focus);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.avatar--large {
  width: 54px;
  height: 54px;
  font-size: 1.25rem;
}

/* Home */
.home-shell {
  padding-block: clamp(56px, 9vw, 112px);
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.action-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 180ms ease, box-shadow 220ms ease;
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--focus);
  box-shadow: var(--shadow-md);
}

.action-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.6rem;
}

.action-card__copy {
  display: grid;
  gap: 5px;
}

.action-card__copy strong {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.action-card__copy small {
  color: var(--muted);
  font-size: 0.95rem;
}

.action-card__arrow {
  color: var(--brand);
  font-size: 1.3rem;
}

/* Upload */
.upload-shell,
.play-shell,
.library-shell,
.public-week-shell {
  padding-block: 32px 80px;
}

.upload-shell .page-intro,
.play-shell .page-intro,
.public-week-shell .page-intro {
  margin-top: 24px;
}

.upload-form {
  display: grid;
  gap: 22px;
  margin-top: 40px;
}

.upload-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.upload-settings--single {
  grid-template-columns: 1fr;
}

.week-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.week-picker .button {
  min-height: 50px;
  white-space: nowrap;
}

.week-range-hint {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.url-stage {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--focus);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.url-stage__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.url-stage__count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.url-preview {
  display: block;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.url-stage p {
  color: var(--muted);
  font-size: 0.84rem;
}

.dropzone {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px 20px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, transform 200ms var(--ease);
}

.dropzone:hover,
.dropzone:focus-within,
.dropzone.is-dragging {
  border-color: var(--brand);
  background: var(--brand-softer);
}

.dropzone.is-dragging {
  transform: scale(1.008);
}

.dropzone__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.35rem;
}

.dropzone h2 {
  margin-top: 4px;
}

.dropzone p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.selected-files {
  display: grid;
  gap: 8px;
}

.selected-files:empty {
  display: none;
}

.selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.selected-file__info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.selected-file__info strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file__info small {
  color: var(--muted);
}

.selected-file.is-invalid {
  border-color: var(--focus);
  background: var(--brand-softer);
}

.selected-file.is-invalid small {
  color: var(--brand-dark);
  font-weight: 700;
}

.remove-file {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.25rem;
}

.remove-file:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.upload-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.check-field input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.check-field span {
  display: grid;
  gap: 2px;
}

.check-field small {
  color: var(--muted);
  font-size: 0.8rem;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.form-status.is-error {
  color: var(--brand-dark);
}

.upload-results {
  margin-top: 48px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading > div {
  display: grid;
  gap: 7px;
}

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

.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.result-card__info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.result-card__info strong,
.result-card__info a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card__info a,
.result-card__info small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.result-card__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.result-card.is-error {
  border-color: var(--focus);
  background: var(--brand-softer);
}

.result-card.is-error small {
  color: var(--brand-dark);
  font-family: var(--font-sans);
  font-weight: 700;
}

/* Profiles */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.profile-card {
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 180ms ease, box-shadow 220ms ease;
}

.profile-card:hover {
  transform: translateY(-3px);
  border-color: var(--focus);
  box-shadow: var(--shadow-md);
}

.profile-card__top {
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.profile-card h2 {
  margin-top: 18px;
  font-size: 1.45rem;
}

.profile-stats {
  display: flex;
  gap: 26px;
  margin-top: 18px;
}

.profile-stats div {
  display: grid;
  gap: 1px;
}

.profile-stats dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-stats dd {
  color: var(--text-strong);
  font-size: 1.2rem;
  font-weight: 900;
}

.profile-card__date {
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Library */
.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-strong);
}

.library-heading__identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.library-heading__identity > div {
  display: grid;
  gap: 6px;
}

.library-heading h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.library-heading__stats {
  display: grid;
  justify-items: end;
  color: var(--muted);
  font-size: 0.85rem;
}

.library-heading__stats strong {
  color: var(--brand);
  font-size: 1.65rem;
  line-height: 1;
}

.week-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.week-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.week-card__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid transparent;
}

.week-card:has(.week-toggle[aria-expanded='true']) .week-card__heading {
  border-bottom-color: var(--border);
}

.week-toggle {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.week-toggle > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.week-toggle strong {
  font-size: 1.18rem;
}

.week-toggle small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-toggle__chevron {
  color: var(--brand);
  font-size: 1.4rem;
  transition: transform 180ms var(--ease);
}

.week-toggle[aria-expanded='true'] .week-toggle__chevron {
  transform: rotate(180deg);
}

.week-card__content {
  padding: 16px;
}

.prototype-list,
.attachment-list {
  display: grid;
  gap: 8px;
}

.file-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.file-row__info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.file-row__info strong {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row__info span {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.file-row__info i {
  font-style: normal;
}

.file-row__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.file-row--prototype {
  grid-template-areas:
    'info actions'
    'vote vote';
}

.file-row--prototype .file-row__info {
  grid-area: info;
}

.file-row--prototype .file-row__actions {
  grid-area: actions;
}

.vote-panel {
  grid-area: vote;
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(240px, 360px);
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.vote-panel__controls {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.vote-panel__label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.vote-choice {
  display: flex;
  gap: 8px;
}

.vote-choice__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-strong);
  cursor: pointer;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.vote-choice__button:hover:not(:disabled) {
  border-color: var(--text-soft);
}

.vote-choice__button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.vote-choice__button--positive[aria-pressed='true'] {
  border-color: var(--vote-positive);
  background: var(--vote-positive-soft);
  color: var(--vote-positive);
}

.vote-choice__button--negative[aria-pressed='true'] {
  border-color: var(--vote-negative);
  background: var(--vote-negative-soft);
  color: var(--vote-negative);
}

.vote-panel__state {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.vote-chart {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
}

.vote-chart__bar {
  height: 10px;
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--vote-empty);
}

.vote-chart__segment {
  flex: 0 0 auto;
  transition: width 220ms var(--ease);
}

.vote-chart__segment--positive {
  width: var(--positive-share);
  background: var(--vote-positive);
}

.vote-chart__segment--negative {
  width: var(--negative-share);
  background: var(--vote-negative);
}

.vote-chart__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  color: var(--muted);
  font-size: 0.74rem;
}

.vote-chart__caption span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.vote-chart__sign {
  font-style: normal;
  font-weight: 900;
}

.vote-chart__sign--positive {
  color: var(--vote-positive);
}

.vote-chart__sign--negative {
  color: var(--vote-negative);
}

.vote-chart__caption strong {
  color: var(--text-strong);
}

.attachments {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.attachments summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  list-style: none;
}

.attachments summary::-webkit-details-marker {
  display: none;
}

.attachments summary::before {
  content: '+';
  width: 24px;
  color: var(--brand);
  font-size: 1.05rem;
}

.attachments[open] summary::before {
  content: '−';
}

.empty-inline {
  padding: 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.empty-state > .icon {
  width: 40px;
  height: 40px;
  color: var(--brand);
}

.confirm-dialog {
  width: min(calc(100% - 32px), 440px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.confirm-dialog::backdrop {
  background: var(--overlay);
}

.confirm-dialog form {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.week-dialog {
  width: min(calc(100% - 32px), 540px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.confirm-dialog :focus-visible {
  outline-color: var(--brand);
}

.week-dialog__dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.confirm-dialog .week-dialog__summary {
  min-height: 24px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
}

.confirm-dialog .alert--error {
  color: var(--brand-dark);
}

.confirm-dialog p {
  color: var(--muted);
}

.confirm-dialog p strong {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* Public week */
.public-week-shell {
  max-width: 900px;
}

.public-prototype-list {
  display: grid;
  gap: 10px;
  margin-top: 38px;
}

.public-prototype {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 160ms ease, transform 180ms var(--ease);
}

.public-prototype:hover {
  transform: translateY(-2px);
  border-color: var(--focus);
}

.public-prototype > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.public-prototype strong {
  overflow: hidden;
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-prototype small {
  color: var(--muted);
}

.public-prototype__action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
}

.public-footnote {
  margin-top: 26px;
  color: var(--placeholder);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
}

/* Feedback and errors */
.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--text-strong);
  color: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 200ms var(--ease);
}

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

.error-shell {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding-block: 60px;
  text-align: center;
}

.error-code {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.error-shell p {
  max-width: 520px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-row {
    grid-template-columns: 1fr;
  }

  .file-row__actions {
    justify-content: flex-start;
  }

  .file-row--prototype {
    grid-template-areas:
      'info'
      'actions'
      'vote';
  }

  .vote-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .site-header__inner,
  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand-lockup {
    font-size: 0.86rem;
  }

  .brand-lockup img {
    width: 29px;
    height: 29px;
  }

  .account__suffix {
    display: none;
  }

  .account {
    gap: 8px;
  }

  .main--login {
    align-items: start;
    padding: 40px 16px 64px;
  }

  .user-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-shell {
    padding-block: 48px 64px;
  }

  .home-actions {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .action-card {
    min-height: 142px;
  }

  .upload-settings {
    grid-template-columns: 1fr;
  }

  .week-picker,
  .week-dialog__dates {
    grid-template-columns: 1fr;
  }

  .week-dialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .week-dialog .dialog-actions .button {
    width: 100%;
  }

  .week-dialog form {
    padding: 20px;
  }

  .url-stage {
    min-height: 190px;
  }

  .dropzone {
    min-height: 230px;
  }

  .upload-submit-row,
  .result-card {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-submit-row .button,
  .result-card__actions,
  .result-card__actions .button {
    width: 100%;
  }

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

  .profile-card {
    min-height: 244px;
  }

  .library-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-heading__stats {
    justify-items: start;
  }

  .week-card__heading {
    grid-template-columns: 1fr;
    padding: 12px 14px 14px;
  }

  .week-share {
    width: 100%;
  }

  .week-card__content {
    padding: 12px;
  }

  .file-row__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }

  .file-row__actions .button {
    width: 100%;
    padding-inline: 9px;
  }

  .vote-choice__button {
    flex: 1;
  }

  .public-prototype {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .account__label {
    display: none;
  }

  .action-card {
    grid-template-columns: auto 1fr;
  }

  .action-card__arrow {
    display: none;
  }

  .file-row__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
﻿
/* ==========================================================================
   Danışman rolü: rozet, ayrı puan satırı, notlar ve değerlendirme ekranı
   ========================================================================== */

.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.choice-fieldset--advisor {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.user-choice--advisor .user-choice__card {
  border-style: dashed;
}

.user-choice--advisor input:checked + .user-choice__card {
  border-style: solid;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--advisor {
  color: var(--brand);
  background: var(--brand-soft);
}

.badge--noted {
  color: var(--vote-positive);
  background: var(--vote-positive-soft);
}

/* Danışman puanı ekip grafiğinin altında, ondan ayrı bir satırda durur. */
.vote-advisor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.vote-advisor--empty {
  color: var(--placeholder);
  font-style: italic;
}

.vote-advisor__value {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.vote-advisor__value--positive {
  color: var(--vote-positive);
  background: var(--vote-positive-soft);
}

.vote-advisor__value--negative {
  color: var(--vote-negative);
  background: var(--vote-negative-soft);
}

/* --- notlar --- */

.comment-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.comment-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.comment-panel__head .icon {
  width: 16px;
  height: 16px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.comment__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.comment__head time {
  margin-left: auto;
  color: var(--placeholder);
  font-size: 0.76rem;
}

.comment__body {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-empty {
  margin: 0;
  color: var(--placeholder);
  font-size: 0.88rem;
  font-style: italic;
}

.comment-form {
  margin-top: 12px;
}

.comment-form textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
}

.comment-form textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--brand);
}

.comment-form__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.comment-form__state {
  color: var(--muted);
  font-size: 0.82rem;
}

/* --- değerlendirme ekranı --- */

.review-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.field--search {
  flex: 1 1 260px;
  margin: 0;
}

.field--search input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
}

.field--search input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--brand);
}

.review-toolbar__count {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.review-list {
  display: grid;
  gap: 16px;
}

.review-item {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review-item[hidden] {
  display: none;
}

.review-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.review-item__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.review-item__title {
  min-width: 0;
}

.review-item__title strong {
  display: block;
  color: var(--text-strong);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-item__title small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.review-item__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.review-empty {
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.action-card--primary {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}

@media (max-width: 640px) {
  .review-item__head {
    flex-direction: column;
    align-items: stretch;
  }

  .review-item__actions {
    justify-content: flex-start;
  }

  .vote-advisor__value {
    margin-left: 0;
  }
}
