:root {
  --brand-pink: #D4537E;
  --brand-pink-light: #F5D4E0;
  --brand-pink-text: #FBEAF0;
  --logo-pink: #F0407A;
  --accent-bg: #E6F1FB;
  --accent-text: #185FA5;
  --success-bg: #EAF3DE;
  --success-text: #3B6D11;
  --warning-bg: #FAEEDA;
  --warning-text: #854F0B;
  --danger-bg: #FCEBEB;
  --danger-text: #A32D2D;
  --text-primary: #1a1a18;
  --text-secondary: #5F5E5A;
  --text-muted: #888780;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --surface-page: #F7F6F3;
  --surface-card: #FFFFFF;
  --surface-inset: #F1EFE8;
  --radius: 8px;
  --radius-card: 12px;
  --bar-blue: #378ADD;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-popover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-header: 0 1px 0 rgba(0, 0, 0, 0.05), 0 2px 12px rgba(0, 0, 0, 0.04);
  --content-max: 1080px;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--surface-page);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 83, 126, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(55, 138, 221, 0.06), transparent),
    linear-gradient(180deg, #FAF9F7 0%, var(--surface-page) 100%);
  line-height: 1.45;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ——— Header ——— */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-header);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px 24px;
  width: 100%;
}

.app-header .left,
.app-header .right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-lockup:hover {
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.logo-divider {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
}

.logo-product {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}

.back-link:hover {
  background: var(--surface-inset);
  color: var(--text-primary);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  background: transparent;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-pink) 0%, #C23D68 100%);
  color: var(--brand-pink-text);
  border-color: var(--brand-pink);
  box-shadow: 0 1px 2px rgba(212, 83, 126, 0.25);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow: 0 2px 8px rgba(212, 83, 126, 0.3);
}

.btn-outline {
  border-color: var(--border-strong);
  background: var(--surface-card);
  color: var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--surface-inset);
}

.btn-ghost {
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-inset);
  color: var(--text-primary);
}

.btn-danger-text {
  color: var(--danger-text);
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--surface-inset);
  color: var(--text-primary);
}

/* ——— Layout ——— */
.page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 24px 56px;
  flex: 1;
}

.page-wide {
  max-width: var(--content-max);
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

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

.search-bar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FAFAF9 0%, var(--surface-card) 100%);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
  padding: 9px 12px 9px 36px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar input:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(212, 83, 126, 0.12);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* ——— Stats ——— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  background: var(--surface-card);
}

.stat-card--success .stat-value {
  color: var(--success-text);
}

.stat-card--accent .stat-value {
  color: var(--accent-text);
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ——— Meeting rows ——— */
.day-group {
  padding: 0 8px 8px;
}

.day-group:first-child {
  padding-top: 8px;
}

.day-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}

.meeting-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meeting-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.meeting-row:hover {
  background: var(--surface-inset);
  border-color: var(--border);
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.meeting-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent-bg);
  color: var(--accent-text);
}

.meeting-row--ready .meeting-row-icon {
  background: var(--success-bg);
  color: var(--success-text);
}

.meeting-row--failed .meeting-row-icon {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.meeting-row--recording .meeting-row-icon,
.meeting-row--processing .meeting-row-icon {
  background: var(--accent-bg);
  color: var(--accent-text);
}

.meeting-row-body {
  min-width: 0;
}

.meeting-row .title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meeting-row .meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meeting-row .right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.pill-ready {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(59, 109, 17, 0.15);
}

.pill-processing,
.pill-recording {
  background: var(--accent-bg);
  color: var(--accent-text);
  border-color: rgba(24, 95, 165, 0.15);
}

.pill-failed {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: rgba(163, 45, 45, 0.15);
}

.pill-muted {
  background: var(--surface-inset);
  color: var(--text-secondary);
}

.pill-accent {
  background: var(--accent-bg);
  color: var(--accent-text);
}

/* ——— Empty ——— */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state--hero {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 80px 32px;
}

.empty-state--compact {
  padding: 48px 24px;
}

.empty-state .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--brand-pink-light) 0%, var(--accent-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-pink);
  border: 1px solid rgba(212, 83, 126, 0.15);
}

.empty-state h1 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ——— Modal ——— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-popover);
  padding: 20px 22px 18px;
}

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

.modal-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field label .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: var(--surface-card);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-text);
  outline-offset: 0;
  border-color: transparent;
}

.field .helper {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.field .error {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--danger-text);
}

.form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--danger-bg);
  color: var(--danger-text);
  border-radius: var(--radius);
  font-size: 13px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
}

/* ——— Toast ——— */
.toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-popover);
  padding: 10px 14px;
  font-size: 13px;
  min-width: 200px;
}

/* ——— Avatar / menu ——— */
.avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--accent-bg);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 230px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-popover);
  padding: 6px;
  z-index: 60;
}

.menu-identity {
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.menu-identity .name {
  font-size: 14px;
  font-weight: 500;
}

.menu-identity .email {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  word-break: break-all;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.menu-item:hover,
.menu-item[aria-selected="true"] {
  background: var(--surface-inset);
}

.menu-item.danger {
  color: var(--danger-text);
}

.avatar-wrap {
  position: relative;
}

/* ——— Detail ——— */
.detail-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
  position: sticky;
  top: 0;
  z-index: 30;
}

.detail-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.detail-title-block {
  flex: 1;
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.title-row h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.title-row input {
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 4px 8px;
  min-width: 220px;
  max-width: 100%;
}

.chip {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-inset);
  padding: 2px 7px;
  border-radius: 999px;
}

.meta-line {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}

.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  margin: 0 auto;
  max-width: var(--content-max);
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
}

.tab {
  border: none;
  background: none;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  font-weight: 600;
  color: var(--brand-pink);
  border-bottom-color: var(--brand-pink);
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.section-label--with-action {
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-copy-btn {
  width: 26px;
  height: 26px;
  color: var(--text-muted);
}

.section-copy-btn:hover {
  color: var(--text-primary);
}

.content-card--detail {
  padding: 24px 28px;
  margin-top: 0;
}

.page--detail {
  padding-top: 20px;
}

.notes-section {
  margin-top: 1.75rem;
}

.notes-section:first-child {
  margin-top: 0;
}

.notes-section p,
.notes-section li {
  font-size: 14px;
  line-height: 1.55;
}

.notes-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.ts-suffix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}

/* Agenda panel */
.agenda-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  margin-top: 20px;
}

.agenda-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
}

.agenda-panel-header .left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
}

.agenda-panel-body {
  padding: 0 12px 12px;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.agenda-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: 20px;
  background: transparent;
  width: 100%;
  text-align: left;
}

.agenda-add:hover {
  background: var(--surface-inset);
}

.agenda-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.agenda-edit-actions .btn-dark {
  background: var(--text-primary);
  color: var(--surface-card);
  border-color: var(--text-primary);
}

/* Action items */
.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.action-row:last-child {
  border-bottom: none;
}

.action-task-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-owner-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-task {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  color: var(--text-primary);
  cursor: text;
  line-height: 1.45;
}

.action-task:hover {
  background: var(--surface-inset);
}

.action-owner {
  cursor: text;
  border: none;
  font: inherit;
}

.action-owner:hover {
  filter: brightness(0.97);
}

.action-edit-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 5px 8px;
  font: inherit;
  font-size: 14px;
  background: var(--surface-card);
  color: var(--text-primary);
}

.action-owner-wrap .action-edit-input {
  width: 120px;
  flex: 0 1 auto;
}

.action-row .action-delete {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  opacity: 0.55;
}

.action-row:hover .action-delete,
.action-row.editing .action-delete {
  opacity: 1;
}

.action-row .action-delete:hover {
  color: var(--danger-text);
  background: var(--danger-bg);
}

.action-row .action-save {
  width: 28px;
  height: 28px;
  color: var(--success-text);
}

.action-row .action-save:hover {
  background: var(--success-bg);
  color: var(--success-text);
}

.action-row .ts-suffix {
  color: var(--text-muted);
  font-size: 12px;
}

/* Transcript */
.transcript-toolbar {
  position: sticky;
  top: 73px;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.transcript-toolbar input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 7px 10px;
  background: var(--surface-card);
}

.utterance {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.55;
  scroll-margin-top: 120px;
}

.utterance .who {
  font-weight: 500;
}

.utterance mark {
  background: var(--warning-bg);
  color: inherit;
}

/* Participation table */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 16px;
}

.stats-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 8px 10px 0;
  border-bottom: 1px solid var(--border);
}

.stats-table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-track {
  flex: 1;
  height: 6px;
  background: var(--surface-inset);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

.share-fill {
  height: 100%;
  background: var(--bar-blue);
  border-radius: 3px;
}

.footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* States */
.skeleton-line {
  height: 12px;
  background: var(--surface-inset);
  border-radius: 4px;
  margin-bottom: 10px;
  animation: pulse 1.2s ease-in-out infinite;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.error-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-card);
}

.error-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--danger-text);
}

.error-card p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.caption {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 13px;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px 32px;
  text-align: center;
}

.login-card .logo-lockup {
  justify-content: center;
  margin-bottom: 20px;
}

.login-card p {
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.login-card .error {
  color: var(--danger-text);
  font-size: 13px;
  margin-bottom: 16px;
}

.hidden { display: none !important; }

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

@media (max-width: 640px) {
  .app-header-inner, .search-bar, .detail-header, .detail-header-inner, .tabs, .page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .detail-header {
    flex-direction: column;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .page-hero {
    margin-bottom: 16px;
  }
  .page-title {
    font-size: 20px;
  }
}
