/* ============================================================
   Delta-V Student Hosting Platform — Design System
   Palette: Midnight (dark navy + light blue accents)
   Font:    Inter (Clean & Modern)
   Layout:  Card Grid
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- 1. Tokens (CSS custom properties) ---------- */
:root {
  /* Backgrounds — deep evening sky gradient */
  --bg-deepest: #0b1220;
  --bg-dark:    #101a30;
  --bg-panel:   #17233c;
  --bg-card:    #1c2b48;
  --bg-card-hover: #223356;

  /* Lines & dividers */
  --border: rgba(122, 162, 255, 0.14);
  --border-strong: rgba(122, 162, 255, 0.30);

  /* Light blue accents (the "sky" tones) */
  --accent:      #6ea8fe;
  --accent-bright: #a5c8ff;
  --accent-dark:  #2f6fd6;

  /* Status colors */
  --ok:     #34d399;   /* green — active / enough space */
  --warn:   #fbbf24;   /* amber — getting close to quota */
  --danger: #f87171;   /* red — over quota / suspended */

  /* Text */
  --text-main: #e6edf7;
  --text-muted: #93a7c7;
  --text-faint: #61749b;

  /* Type */
  --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-panel: 0 10px 30px rgba(2, 6, 23, 0.5);
  --shadow-card:  0 4px 16px rgba(2, 6, 23, 0.35);

  /* Layout widths */
  --shell-max: 1100px;
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(47, 111, 214, 0.28), transparent 60%),
    radial-gradient(900px 450px at -10% 10%, rgba(37, 99, 235, 0.18), transparent 55%),
    var(--bg-deepest);
  background-attachment: fixed;
  line-height: 1.5;
}

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

/* ---------- 3. Layout shell ---------- */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 1.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* the brand is a link: keep it looking like before, but clickable */
a.brand { color: var(--text-main); text-decoration: none; cursor: pointer; }
a.brand:hover { color: var(--accent-bright); }
a.brand:hover .dot { box-shadow: 0 0 16px var(--accent); }

.brand .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.topbar .nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent-dark);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.btn:hover { background: var(--accent); box-shadow: 0 0 14px rgba(110, 168, 254, 0.45); }
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-main);
}
.btn.ghost:hover { background: var(--bg-card); }

.btn.small { padding: 0.35rem 0.75rem; font-size: 0.85rem; }

.btn.danger { background: #b91c1c; }
.btn.danger:hover { background: var(--danger); box-shadow: 0 0 14px rgba(248, 113, 113, 0.4); }

.btn.ok { background: #059669; }
.btn.ok:hover { background: var(--ok); box-shadow: 0 0 14px rgba(52, 211, 153, 0.4); }

.btn.wide { width: 100%; }

/* ---------- 5. Panels & cards ---------- */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

/* ---------- 6. Card grid (the chosen layout) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.grid.tight { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem; }

/* ---------- 7. Typography helpers ---------- */
h1, h2, h3 { margin: 0 0 0.75rem; font-weight: 700; line-height: 1.2; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: 0.85rem; }

.mono { font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace; }

.center { text-align: center; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0 1rem;
}
.section-title h2 { margin: 0; }

/* ---------- 8. Forms ---------- */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input, select.input, textarea.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--text-main);
  background: var(--bg-deepest);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline-offset: 2px;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.2); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- 9. Status pills / badges ---------- */
.pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pill.active  { background: rgba(52, 211, 153, 0.15); color: var(--ok);   border: 1px solid rgba(52, 211, 153, 0.4); }
.pill.suspend{ background: rgba(248, 113, 113, 0.15); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.4); }
.pill.warn   { background: rgba(251, 191, 36, 0.15);  color: var(--warn);  border: 1px solid rgba(251, 191, 36, 0.4); }

/* ---------- 10. Quota bar ---------- */
.quota {
  height: 8px;
  background: var(--bg-deepest);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.6rem 0 0.25rem;
}
.quota > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ok);
  transition: width 0.3s ease;
}
.quota > span.warn   { background: var(--warn); }
.quota > span.danger { background: var(--danger); }

.quota-labels {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ---------- 11. Stat chips (student dashboard) ---------- */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.chip .num { font-size: 1.9rem; font-weight: 800; color: var(--accent-bright); }
.chip .lbl { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- 12. File cards ---------- */
.file-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 0.5rem; color: var(--accent); }
.card .file-name {
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 0.25rem;
}
/* Roster card action row: View / Manage / Extend / Suspend must all sit on
   ONE line. The four buttons need ~280px and a card gives ~297px, so they are
   compacted rather than wrapped; overflow-x is only a safety valve. */
.card .actions-row {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.9rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.card .actions-row > * { flex-shrink: 0; }
.card .actions-row .btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
}

/* ---------- 13. Auth screens (login) ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 2.2rem;
}
.auth-card .brand {
  justify-content: center;
  margin-bottom: 1.6rem;
  font-size: 1.3rem;
}

/* ---------- 13b. Login: where the public docs live ---------- */
.docshint {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.docshint-lead {
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.docshint p { margin: 0.3rem 0; }
.docshint ul {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.docshint li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.docshint a {
  color: var(--accent);
  word-break: break-all;
}
.docshint .faint { color: var(--text-faint); font-size: 0.8rem; }
.docshint-paste { margin-top: 0.6rem; }

/* ---------- 14. Tables ---------- */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
table.list thead th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
table.list tbody tr:hover { background: var(--bg-card); }
table.list td { word-break: break-word; }

/* ---------- 15. Messages & notice ---------- */
.notice {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  border: 1px solid;
}
.notice.ok      { background: rgba(52, 211, 153, 0.1);  border-color: rgba(52, 211, 153, 0.4); color: var(--ok); }
.notice.err     { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.4); color: var(--danger); }
.notice.warn    { background: rgba(251, 191, 36, 0.1);  border-color: rgba(251, 191, 36, 0.4); color: var(--warn); }

/* ---------- 16. Misc ---------- */
.spacer { flex: 1; }
.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }

hr.sep { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ---------- 17. Drop zone (upload) ---------- */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  background: rgba(11, 18, 32, 0.4);
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.dropzone.drag { border-color: var(--accent); background: rgba(110, 168, 254, 0.12); color: var(--accent-bright); }
.dropzone .big { font-size: 2.2rem; margin-bottom: 0.5rem; }
.dropzone label.linklike { color: var(--accent); cursor: pointer; }
.dropzone label.linklike:hover { color: var(--accent-bright); }

/* ---------- 17b. Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: .55rem 1.1rem; font: inherit; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
}
.tab:hover { color: var(--text-main); background: var(--bg-card); }
.tab.on { color: var(--accent-bright); border-bottom-color: var(--accent); background: var(--bg-card); }
.tabpane { display: none; }
.tabpane.on { display: block; }

/* ---------- 17c. File manager (compact scrollable list) ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.btn.tiny { padding: 0.25rem 0.55rem; font-size: 0.8rem; border-radius: 6px; }

.filelist-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: auto;
  max-height: 58vh;
  background: rgba(11, 18, 32, 0.35);
}
table.filelist { width: 100%; border-collapse: collapse; }
table.filelist thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-panel);
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
table.filelist td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: middle;
}
table.filelist tbody tr:hover { background: var(--bg-card); }
table.filelist tbody tr:last-child td { border-bottom: 0; }
table.filelist .col-check { width: 38px; text-align: center; }
table.filelist .col-size { width: 90px; white-space: nowrap; }
table.filelist .col-when { width: 110px; white-space: nowrap; color: var(--text-faint); font-size: 0.82rem; }
table.filelist .col-act { width: 1%; white-space: nowrap; text-align: right; }
table.filelist .col-name { word-break: break-word; }
table.filelist .col-name .ficon { margin-right: 0.35rem; }

input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  vertical-align: middle;
}

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); }
.empty .big { font-size: 2.4rem; margin-bottom: 0.4rem; }
.empty p { margin: 0.4rem 0 0; }

/* Dragging files onto the file list (same feedback as the dropzone). */
.tabpane.drag {
  outline: 2px dashed var(--accent);
  outline-offset: -6px;
  border-radius: var(--radius-md);
  background: rgba(110, 168, 254, 0.07);
}

/* ---------- 17d. Dialog (popup) ---------- */
dialog.dialog {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text-main);
  padding: 1.5rem;
  width: min(440px, calc(100% - 2rem));
  box-shadow: var(--shadow-panel);
}
dialog.dialog::backdrop { background: rgba(2, 6, 23, 0.65); }
dialog.dialog h2 { margin: 0 0 0.4rem; }
dialog.dialog p { margin-top: 0; }
dialog.dialog .field { margin-bottom: 0.8rem; }
dialog.dialog .row { margin-top: 0.4rem; }


/* ---------- 19. Collapsible section (admin file browser) ---------- */
details.collapse {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  margin: 1rem 0;
  overflow: hidden;
}
details.collapse > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  user-select: none;
}
details.collapse > summary::-webkit-details-marker { display: none; }
details.collapse > summary:hover { background: var(--bg-card); }
details.collapse > summary .chev {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}
details.collapse > summary .faint { font-weight: 500; }
details.collapse[open] > summary { border-bottom: 1px solid var(--border); }
details.collapse[open] > summary .chev { transform: rotate(90deg); }
details.collapse > .collapse-body { padding: 1.25rem; }

/* ---------- 20. AI Help ---------- */
/* Full-width glow under the storage cards. */
.btn-ai {
  display: block;
  width: 100%;
  margin: 0.25rem 0 1.35rem;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border: 1px solid rgba(165, 200, 255, 0.55);
  box-shadow: 0 0 18px rgba(110, 168, 255, 0.45);
  animation: aiGlow 2.4s ease-in-out infinite;
}
@keyframes aiGlow {
  50% { box-shadow: 0 0 32px rgba(165, 200, 255, 0.85); }
}
.btn-ai:hover { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); }
.btn-ai[disabled] {
  opacity: 0.7;
  animation: none;
  cursor: progress;
}

/* AI Help sitting in a row (the admin file browser) rather than alone on the
   student dashboard: keep the glow, drop the full-width block sizing so it
   sits beside the other toolbar buttons instead of shoving them aside. */
.btn-ai.btn-ai-sm {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  /* Match .btn.small exactly — the toolbar buttons next to it are sized by
     it, so any difference here shows up as buttons sitting at two heights. */
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

dialog.dialog-wide { width: min(700px, calc(100% - 2rem)); }

.ai-explain { max-height: 45vh; overflow-y: auto; }
.ai-explain p { margin: 0 0 0.75rem; line-height: 1.55; }
.ai-explain p:last-child { margin-bottom: 0; }

.ai-cmd-wrap { display: flex; gap: 0.5rem; align-items: flex-start; }
.ai-cmd {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--accent-bright);
  background: var(--bg-deepest);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-cmd-wrap .btn { flex: 0 0 auto; }

/* admin: provider picker */
.field .ai-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}
.field .ai-pick:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 12px rgba(110, 168, 255, 0.25);
}

/* live "thinking" view inside the AI Help dialog */
.ai-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 0.75rem;
  font-weight: 600;
}
.ai-status #ai-elapsed { margin-left: auto; font-weight: 500; }
.ai-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: aiSpin 0.8s linear infinite;
  flex: 0 0 auto;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }

.ai-think {
  max-height: 34vh;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}
.ai-think:empty { display: none; }

.ai-think-box { margin: 0.9rem 0 0; }
.ai-think-box > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
}
.ai-think-box[open] > summary { margin-bottom: 0.5rem; }

/* ---------- 18. Responsive tweaks ---------- */
@media (max-width: 900px) {
  .shell { padding: 1.15rem; }
  .panel { padding: 1.5rem; }
  .topbar { padding: 0.7rem 1.15rem; }
}

@media (max-width: 640px) {
  /* header & title rows: stack instead of squeezing side by side */
  .section-title { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .section-title h1 { font-size: 1.35rem; }
  h1 { font-size: 1.5rem; }

  /* top bar: drop the "user · signed in" text so the buttons fit */
  .topbar { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 1rem; }
  .topbar .nav { flex-wrap: wrap; justify-content: flex-end; }
  .topbar .nav .faint { display: none; }
  .brand { font-size: 1.05rem; }

  .shell { padding: 1rem; }
  .panel { padding: 1.15rem; }

  /* stat cards */
  .chips { gap: 0.6rem; }
  .chip { padding: 0.8rem 0.9rem; }
  .chip .num { font-size: 1.45rem; }

  /* buttons: comfortable touch targets, tighter gutters */
  .btn.small { padding: 0.5rem 0.75rem; min-height: 36px; }
  .card .actions-row .btn { padding: 0.5rem 0.6rem; min-height: 36px; }
  .btn.tiny { padding: 0.45rem 0.6rem; min-height: 34px; }
  .toolbar { gap: 0.4rem; }

  /* file table: hide the two info columns, let the action buttons wrap
     instead of forcing the whole table to scroll sideways */
  table.filelist .col-size, table.filelist .col-when { display: none; }
  table.filelist .col-act { width: auto; white-space: normal; text-align: left; }
  table.filelist td { font-size: 0.85rem; padding: 0.55rem 0.6rem; }
  table.filelist thead th { padding: 0.5rem 0.6rem; }
  .filelist-wrap { max-height: 65vh; }

  /* admin tables (roster status, register, site check) */
  table.list th, table.list td { padding: 0.45rem 0.4rem; font-size: 0.85rem; }

  /* quota captions stack */
  .quota-labels { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }
  .dropzone { padding: 1.5rem 0.75rem; }
  .collapse-body { padding: 1rem; }
  details.collapse > summary { padding: 0.9rem 1rem; }
  .card { padding: 1rem; }
}