/* ============================================================
   AC REGISTRY — Design System (Dark Theme)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:           #0d1117;
  --surface:      #161b22;
  --surface-2:    #1c2230;
  --surface-3:    #21262d;

  /* Borders */
  --border:       #30363d;
  --border-soft:  #21262d;

  /* Text */
  --text:         #e6edf3;
  --text-2:       #8b949e;
  --text-3:       #484f58;

  /* Accent */
  --primary:      #58a6ff;
  --primary-hover:#79c0ff;
  --primary-dim:  rgba(88, 166, 255, 0.12);

  /* Semantic colours */
  --green:        #3fb950;
  --green-dim:    rgba(63, 185, 80, 0.12);
  --red:          #f85149;
  --red-dim:      rgba(248, 81, 73, 0.12);
  --yellow:       #e3b341;
  --yellow-dim:   rgba(227, 179, 65, 0.12);
  --blue-dim:     rgba(88, 166, 255, 0.12);
  --purple:       #bc8cff;
  --purple-dim:   rgba(188, 140, 255, 0.12);

  /* Shape */
  --radius-sm:    5px;
  --radius:       8px;
  --radius-lg:    12px;

  /* Elevation */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
  --shadow:       0 3px 8px rgba(0,0,0,.5);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.6);

  /* Motion */
  --t:            140ms ease;

  /* Typography */
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", "Fira Code", monospace;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: var(--font-mono);
  font-size: .8125em;
  background: var(--surface-3);
  color: var(--text);
  padding: .1em .35em;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}

/* ── Utilities ──────────────────────────────────────────────── */
.hidden      { display: none !important; }
.text-2      { color: var(--text-2); }
.text-3      { color: var(--text-3); }
.text-secondary  { color: var(--text-2); }
.text-tertiary   { color: var(--text-3); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastIn   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.view:not(.hidden) { animation: fadeIn .15s ease; }

/* ============================================================
   LAYOUT
   ============================================================ */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
}

.header-left  { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.header-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content {
  padding: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-2);
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--text-3);
  color: var(--text);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #0d1117;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #0d1117;
}

.btn-block { width: 100%; justify-content: center; }

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  flex-shrink: 0;
}

.btn-danger {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover:not(:disabled) {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red);
}

.btn-sm {
  padding: .2rem .5rem;
  font-size: .75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--t);
}
.btn-sm:hover { background: var(--surface-3); color: var(--text); }
.btn-sm.btn-danger  { color: var(--red);    border-color: var(--red);    }
.btn-sm.btn-danger:hover  { background: var(--red-dim); }
.btn-sm.btn-warning { color: var(--yellow); border-color: var(--yellow); }
.btn-sm.btn-warning:hover { background: var(--yellow-dim); }
.btn-sm.btn-success { color: var(--green);  border-color: var(--green);  }
.btn-sm.btn-success:hover { background: var(--green-dim); }

.btn-download {
  padding: .3rem .7rem;
  font-size: .75rem;
  background: var(--primary);
  color: #0d1117;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background var(--t);
  white-space: nowrap;
}
.btn-download:hover:not(:disabled) { background: var(--primary-hover); }
.btn-download:disabled { opacity: .45; cursor: not-allowed; }

.btn-copy {
  padding: .3rem .65rem;
  font-size: .75rem;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--t);
}
.btn-copy:hover { background: var(--primary); color: #0d1117; }

.btn-microsoft {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  gap: .75rem;
}
.btn-microsoft:hover { background: var(--surface-3); border-color: var(--text-3); }
.btn-microsoft:disabled { opacity: .5; cursor: not-allowed; }

.btn-header {
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--t);
  text-decoration: none;
}
.btn-header:hover { background: var(--surface-3); color: var(--text); }
.btn-header.btn-danger { color: var(--red); border-color: var(--red); }
.btn-header.btn-danger:hover { background: var(--red-dim); }

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .75rem;
}

.form-group label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
}

.form-group input,
.input-sm {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  padding: .45rem .75rem;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.form-group input:focus,
.input-sm:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-group input::placeholder { color: var(--text-3); }

.input-sm { width: auto; padding: .3rem .5rem; font-size: .8125rem; }

.form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-direction: row;
}
.form-check input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); }

.form-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 140px; }

.form-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .875rem;
  padding: .5rem 0;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  color: var(--text);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); }

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
  padding: .6rem .875rem;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  border-left: 3px solid transparent;
}
.alert-error   { background: var(--red-dim);    color: var(--red);    border-left-color: var(--red);    }
.alert-warning { background: var(--yellow-dim); color: var(--yellow); border-left-color: var(--yellow); }

/* ============================================================
   LOGIN
   ============================================================ */

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(88,166,255,.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(188,140,255,.07) 0%, transparent 60%),
    var(--bg);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  animation: fadeInUp .3s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-icon { font-size: 2.25rem; margin-bottom: .5rem; }
.login-header h1 { font-size: 1.375rem; font-weight: 700; color: var(--text); }
.login-header p  { color: var(--text-2); font-size: .8125rem; margin-top: .2rem; }

.login-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--text-3);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-error { margin-bottom: .75rem; }

/* ============================================================
   HEADER / USER MENU
   ============================================================ */

.header-user-menu { display: flex; align-items: center; gap: .375rem; }

.header-username {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0 .25rem;
}

/* ============================================================
   SEARCH
   ============================================================ */

.search-box input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .8125rem;
  padding: .4rem .75rem;
  width: 200px;
  transition: all var(--t);
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
  width: 260px;
}
.search-box input::placeholder { color: var(--text-3); }

/* ============================================================
   SUMMARY BAR
   ============================================================ */

.summary-bar {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem 1.125rem;
  flex: 1;
  min-width: 110px;
}

.stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: .6875rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .2rem;
}

/* ============================================================
   MAIN TABLE
   ============================================================ */

.table-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  padding: .625rem 1rem;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: .625rem 1rem;
  font-size: .8125rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--text);
}

tr:last-child td { border-bottom: none; }

tr.clickable { cursor: pointer; transition: background var(--t); }
tr.clickable:hover td { background: var(--surface-2); }

td strong { font-weight: 600; }

/* ============================================================
   COMPACT TABLE (admin)
   ============================================================ */

.table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}
.table-compact th,
.table-compact td {
  padding: .5rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.table-compact th {
  font-weight: 600;
  color: var(--text-3);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--surface-3);
}
.table-compact tbody tr:hover td { background: var(--surface-2); }
.table-compact tbody tr:last-child td { border-bottom: none; }

.actions-cell {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-block;
  padding: .1rem .45rem;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 99px;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-collection { background: var(--blue-dim);   color: var(--primary); border: 1px solid rgba(88,166,255,.25); }
.badge-tag        { background: var(--purple-dim);  color: var(--purple);  border: 1px solid rgba(188,140,255,.25); }
.badge-latest     { background: var(--green-dim);   color: var(--green);   border: 1px solid rgba(63,185,80,.25); }
.badge-admin      { background: var(--yellow-dim);  color: var(--yellow);  border: 1px solid rgba(227,179,65,.25); }
.badge-user       { background: var(--blue-dim);    color: var(--primary); border: 1px solid rgba(88,166,255,.2); }
.badge-active     { background: var(--green-dim);   color: var(--green);   border: 1px solid rgba(63,185,80,.25); }
.badge-inactive   { background: var(--red-dim);     color: var(--red);     border: 1px solid rgba(248,81,73,.25); }
.badge-readonly   { background: var(--yellow-dim);  color: var(--yellow);  border: 1px solid rgba(227,179,65,.2); }
.badge-readwrite  { background: var(--green-dim);   color: var(--green);   border: 1px solid rgba(63,185,80,.2); }
.badge-sm { font-size: .675rem; padding: .075rem .4rem; }

.badges { display: flex; flex-wrap: wrap; gap: .25rem; }

/* ============================================================
   DETAIL VIEW — PACKAGE SUMMARY
   ============================================================ */

.detail-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.detail-summary h2 {
  font-size: 1.125rem;
  margin-bottom: .625rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.detail-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--text-2);
  font-size: .8125rem;
  flex-wrap: wrap;
}
.detail-meta strong { color: var(--text); }

/* ============================================================
   DETAIL VIEW — VERSION CARDS
   ============================================================ */

.version-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .625rem;
  overflow: hidden;
}

.version-header {
  padding: .75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t);
  user-select: none;
}
.version-header:hover { background: var(--surface-2); }

.version-badge { font-weight: 600; font-size: .9375rem; margin-right: .625rem; }
.chevron { color: var(--text-3); font-size: .8rem; }

.version-body {
  padding: .125rem 1rem 1rem;
  border-top: 1px solid var(--border-soft);
}

/* ============================================================
   DETAIL VIEW — FILE ITEMS
   ============================================================ */

.file-item {
  padding: .75rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-top: .625rem;
  background: var(--bg);
}
.file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.file-name {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: .8125rem;
  word-break: break-all;
  color: var(--text);
}
.file-info-left { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.file-meta {
  display: flex;
  gap: .625rem;
  align-items: center;
  font-size: .75rem;
  color: var(--text-2);
  flex-wrap: wrap;
}

/* ── Checksums ─────────────────────────────────────────────── */
.checksums { margin-top: .625rem; border-top: 1px solid var(--border-soft); padding-top: .625rem; }
.checksums-toggle {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
}
.checksums-toggle:hover { color: var(--primary); }
.checksums-list { margin-top: .4rem; }
.checksum-row {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  font-size: .75rem;
  margin-bottom: .2rem;
}
.checksum-algo { font-weight: 600; color: var(--text-3); min-width: 48px; flex-shrink: 0; }
.checksum-value {
  font-family: var(--font-mono);
  color: var(--text-2);
  word-break: break-all;
  cursor: pointer;
  padding: .1rem .25rem;
  border-radius: 3px;
  transition: all var(--t);
}
.checksum-value:hover { color: var(--primary); background: var(--primary-dim); }

/* ============================================================
   LOADING & EMPTY STATES
   ============================================================ */

.loading { text-align: center; padding: 3rem; color: var(--text-2); }
.spinner {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-bottom: .75rem;
}
.empty-state { text-align: center; padding: 3rem; color: var(--text-2); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .5; }

/* ============================================================
   TOAST
   ============================================================ */

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: .6rem 1rem;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease;
  z-index: 9999;
  max-width: 320px;
}
.toast-error { background: var(--red-dim); border-color: var(--red); color: var(--red); }

/* ============================================================
   ADMIN — TABS
   ============================================================ */

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.tab-btn {
  padding: .625rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t);
}
.tab-btn:hover  { color: var(--text); background: var(--surface-2); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content        { display: block; }
.tab-content.hidden { display: none; }

/* ============================================================
   ADMIN — FORM CARD
   ============================================================ */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeInUp .2s ease;
}
.modal-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

/* ============================================================
   PROFILE
   ============================================================ */

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.profile-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .875rem; }

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.card-header-row h2,
.card-header-row h3 { margin-bottom: 0; font-size: 1rem; font-weight: 600; }

.profile-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem 1rem;
}
.profile-meta dt { font-size: .7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.profile-meta dd { font-size: .875rem; color: var(--text); margin-bottom: .5rem; }

.profile-collections { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }

.key-display {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .625rem .875rem;
  margin-top: .625rem;
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
}
.key-display code { font-size: .8125rem; word-break: break-all; flex: 1; background: transparent; border: none; padding: 0; }
.key-display .key-warning { font-size: .75rem; color: var(--yellow); font-weight: 500; }

/* ============================================================
   MISC
   ============================================================ */

.no-auth-banner {
  background: var(--yellow-dim);
  border-bottom: 1px solid rgba(227,179,65,.3);
  padding: .4rem 1.25rem;
  font-size: .75rem;
  color: var(--yellow);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .app-header { padding: 0 .875rem; }
  .header-title { font-size: .9rem; }
  .search-box input { width: 130px; }
  .search-box input:focus { width: 180px; }
  .content { padding: .875rem; }
  .summary-bar { gap: .5rem; }
  .stat-card { min-width: 90px; padding: .625rem .875rem; }
  .stat-value { font-size: 1.125rem; }
  td, th { padding: .5rem .625rem; }
  .file-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (max-width: 480px) {
  .summary-bar { flex-direction: column; }
  .header-right { gap: .25rem; }
  .login-card { padding: 1.5rem; }
  .detail-meta { gap: .75rem; }
}
