/* =========================================================================
   views/files.css — Files manager (Drive-style) + file preview modal
   Split from the old monolithic styles/views.css. LOAD ORDER MATTERS:
   the <link> order in Magnet CRM.html / Client App.html reproduces the
   original file order, so the cascade is unchanged — add new rules to the
   matching feature file, not the end of the list.
   ========================================================================= */
/* ---- Files manager (Google Drive-style) ---------------------------- */
.cfiles { display: flex; flex-direction: column; gap: var(--space-5); }
.cfiles[hidden] { display: none; }
/* the Drive page (DriveView): the client page's gutter, and the view fills the height (the empty state centres,
   the whole page takes a drop) */
.drive { display: flex; flex-direction: column; min-height: 100%; padding: var(--space-5) var(--space-6) var(--space-6); }
.drive > .cfiles { flex: 1; min-height: 0; }
.drive .cfiles-grid { flex: 1; }
/* the Drive's search (DriveView). While typing, the best matches in a list under the shell's box (.dsq); on Enter,
   every match in place of the folder (.dres: name with the words found inside, location, owner, last modified) and
   the toolbar row carries the count and a dropdown per filter (.dfind-*). Matches are bold, never tinted. */
.dfind-bar { display: flex; align-items: center; gap: var(--space-2); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.dfind-bar[hidden] { display: none; }
.dfind-bar::-webkit-scrollbar { display: none; }
.dfind-bar > * { flex-shrink: 0; }
.dfind-count { margin-right: var(--space-2); font-size: var(--text-sm); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--text-strong); }
.dfind-chip svg { width: 15px; height: 15px; color: var(--text-soft); }
.dfind-chip.is-set { border-color: color-mix(in srgb, var(--primary-500) 32%, var(--border)); background: color-mix(in srgb, var(--primary-500) 7%, var(--surface)); color: var(--primary-700); }
.dfind-chip.is-set svg { color: inherit; }
#mainToolbar[data-route="drive"].is-finding .files-viewseg { display: none; }

.dsq { position: fixed; z-index: var(--z-popover); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-1-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); animation: dsqIn var(--dur) var(--ease-enter); }
@keyframes dsqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dsq-opt { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: var(--space-1-5) var(--space-2-5); border-radius: var(--radius-md); cursor: pointer; }
.dsq-opt[aria-selected="true"] { background: var(--surface-hover-strong); }
.dsq-opt--skel { cursor: default; }
.dsq-opt--skel .dsq-text { gap: var(--space-1-5); }
/* "All results": under the matches, a faint rule above it */
.dsq-opt--all { position: relative; min-height: 38px; margin-top: var(--space-2); }
.dsq-opt--all::before { content: ""; position: absolute; left: var(--space-2-5); right: var(--space-2-5); top: calc(var(--space-1) * -1); height: 1px; background: var(--border-faint); }
.dsq-ico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; color: var(--text-soft); }
.dsq-ico > svg { width: 17px; height: 17px; }
.dsq-ico .cfile-ico { width: 22px; height: 22px; background: none; }
.dsq-ico .cfile-ico svg { width: 18px; height: 18px; }
.dsq-ico .cfile-ico.fk-folder svg { width: 21px; height: 21px; }
.dsq-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dsq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); font-weight: var(--fw-regular); color: var(--text-strong); }
.dsq-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); color: var(--text-soft); }
.dsq-snip { color: var(--text-muted); }
.dsq-kbd { flex: 0 0 auto; padding: 1px var(--space-1-5); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--radius-xs); background: var(--surface); font: var(--fw-medium) var(--text-2xs) / 1.4 var(--font-sans); color: var(--text-muted); }
.dsq-note { margin: 0; padding: var(--space-3) var(--space-2-5); font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); }
.dsq b, .dres b { font-weight: var(--fw-semibold); color: var(--text-strong); }

.dres { display: flex; flex-direction: column; }
.dres-head, .dres-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px) 168px 104px; column-gap: var(--space-4); align-items: center; }
.dres-head { padding: 0 var(--space-3) var(--space-2); border-bottom: 1px solid var(--border-faint); font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-soft); }
.dres-list { margin: 0; padding: 0; list-style: none; }
.dres-list > li + li { border-top: 1px solid var(--border-faint); }
.dres-row { width: 100%; min-height: 52px; padding: var(--space-2-5) var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; font: inherit; text-align: left; color: inherit; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .dres-row:hover { background: var(--surface-hover); } }
.dres-row:focus-visible { outline: none; box-shadow: var(--ring-primary); }
.dres-row--skel { cursor: default; }
.dres-name { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.dres-name .cfile-ico { width: 28px; height: 28px; background: none; }
.dres-name .cfile-ico svg { width: 19px; height: 19px; }
.dres-name .cfile-ico.fk-folder svg { width: 24px; height: 24px; }
.dres-id { min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.dres-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); color: var(--text-strong); }
/* the words found inside: under the name, a thin rule to their left (up to two lines) */
.dres-snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-left: var(--space-2); border-left: 2px solid var(--border); font-size: var(--text-xs); line-height: 1.5; color: var(--text-muted); }
.dres-where { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-size: var(--text-sm); color: var(--text-muted); }
.dres-where-ico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; color: var(--text-soft); }
.dres-where-ico svg { width: 16px; height: 16px; }
.dres-where-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dres-where-path { color: var(--text-soft); }
.dres-owner { min-width: 0; font-size: var(--text-sm); color: var(--text-soft); }
.dres-mod { font-size: var(--text-sm); color: var(--text-soft); white-space: nowrap; }
.dres-more { margin: 0; padding: var(--space-4) var(--space-3); font-size: var(--text-xs); color: var(--text-soft); }
.dres-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); max-width: 440px; margin: var(--space-12) auto 0; text-align: center; font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); }
.dres-empty b { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-strong); }
.dres-empty p { margin: 0; }
.dres-empty .btn { margin-top: var(--space-2); }
@media (max-width: 1000px) {
  .dres-head, .dres-row { grid-template-columns: minmax(0, 1fr) minmax(0, 200px) 96px; }
  .dres-head > :nth-child(3), .dres-owner { display: none; }
}
@media (max-width: 640px) {
  .dres-head, .dres-row { grid-template-columns: minmax(0, 1fr); }
  .dres-head, .dres-where, .dres-mod { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dsq { animation: none; } }
.cfiles--topcrumb .cfiles-bar { display: none; }
.cfiles-bar { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.cfiles-crumb { display: flex; align-items: center; gap: var(--space-1-5); flex-wrap: wrap; }
.cfiles-crumb-link { font-size: var(--text-md); font-weight: var(--fw-medium); color: var(--text-soft); border-radius: var(--radius-sm); padding: var(--space-0-5) var(--space-1-5); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .cfiles-crumb-link:hover { background: var(--surface-hover); color: var(--text); }
}
.cfiles-crumb-link.cur { color: var(--text-strong); font-weight: var(--fw-semibold); }
.cfiles-crumb-sep { color: var(--gray-300); }

.cfiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); position: relative; min-height: 320px; align-content: start; user-select: none; }
/* with no files, centre the empty state instead of dropping it in the top-left
   grid cell — the .empty-state already centres its own content. */
.cfiles-grid:has(> .empty-state) { display: flex; align-items: center; justify-content: center; }
.cfile-card { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2-5) var(--space-2) var(--space-2-5) var(--space-3); border-radius: var(--radius-lg); background: var(--gray-50); cursor: pointer; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); height: max-content; }
@media (hover: hover) and (pointer: fine) {
  .cfile-card:hover { background: var(--gray-100); }
}
.cfile-card.sel { background: var(--info-bg); }
.cfile-card.sel .cfile-name { color: var(--info-600); }

/* created-by / size / modified columns — only shown in list view */
.cfile-col { display: none; }

/* list view — full-width rows with Size + Modified columns */
.cfiles-view-list .cfiles-grid { grid-template-columns: 1fr; gap: var(--space-0-5); min-height: 220px; }
.cfiles-view-list .cfile-card { border-radius: var(--radius-md); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); }
.cfiles-view-list .cfile-ico { width: 32px; height: 32px; }
.cfiles-view-list .cfile-ico svg { width: 17px; height: 17px; }
.cfiles-view-list .cfile-id { flex: 1 1 auto; flex-direction: row; align-items: center; gap: var(--space-3); }
.cfiles-view-list .cfile-id .cfile-name { flex: 0 1 auto; min-width: 0; }
.cfiles-view-list .cfile-meta { display: none; }
.cfiles-view-list .cfile-col { display: block; flex: 0 0 auto; font-size: var(--text-sm); color: var(--text-soft); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfiles-view-list .cfile-size { width: 92px; }
/* a document / spreadsheet whose view-only link is on: a small link beside its name */
.cfile-linked { display: inline-flex; margin-left: var(--space-1-5); color: var(--text-soft); vertical-align: -1px; }
.cfile-linked svg { width: 13px; height: 13px; }
/* the Share dialog (fileShare.js): who can open it, the view-only link and Copy link */
.fshare { display: flex; flex-direction: column; gap: var(--space-3); }
.fshare-row { display: flex; align-items: center; gap: var(--space-3); }
.fshare-row--toggle { cursor: pointer; }
.fshare-ico { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--surface-sunk); color: var(--text-muted); }
.fshare-ico svg { width: 17px; height: 17px; }
.fshare-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fshare-text b { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.fshare-text small { font-size: var(--text-xs); color: var(--text-muted); }
.fshare-role { flex-shrink: 0; font-size: var(--text-xs); color: var(--text-soft); }
.fshare-sep { height: 1px; background: var(--border-faint); }
.fshare-link { display: flex; gap: var(--space-2); }
.fshare-link[hidden] { display: none; }
.fshare-url { flex: 1; min-width: 0; font-size: var(--text-sm); color: var(--text-muted); }
/* the Drive's Clients folder is pinned first: a small pin beside its name */
.cfile-pin { display: inline-flex; margin-left: var(--space-1-5); color: var(--text-soft); vertical-align: -1px; }
.cfile-pin svg { width: 13px; height: 13px; }
/* a pinned card with no menu: an empty slot of the menu button's size keeps its columns in line with the rest */
.cfile-kebab--ghost { visibility: hidden; pointer-events: none; }
/* who made it: their face and name (FilesView ownerHTML), read left to right */
.cfiles-view-list .cfile-owner { width: 168px; text-align: left; }
.cfile-owner-in { display: inline-flex; align-items: center; gap: var(--space-1-5); max-width: 100%; vertical-align: middle; }
.cfile-owner-av { width: 20px; height: 20px; font-size: var(--text-3xs); }
.cfile-owner-av img { width: 100%; height: 100%; object-fit: cover; }
.cfile-owner-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.cfiles-view-list .cfile-modified { width: 104px; padding-right: var(--space-2); }

/* Sync button — full-colour Drive logo */
.files-sync-ico { display: inline-flex; width: 16px; height: 14px; }
.files-sync-ico svg { width: 100%; height: 100%; }

/* files grid/list view switch */
.files-viewseg button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 0 var(--space-2); }
.files-viewseg button svg { width: 17px; height: 17px; }
.cfile-ico { flex-shrink: 0; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--surface); color: var(--text-soft); }
.cfile-ico svg { width: 19px; height: 19px; }
/* Google-Drive-style folder: a solid filled folder glyph, no tile, a touch larger. */
.cfile-ico.fk-folder { background: transparent; color: var(--primary-500); }
.cfile-ico.fk-folder svg { width: 30px; height: 30px; }
.cfile-ico.fk-pdf { color: var(--file-pdf); }
.cfile-ico.fk-doc { color: var(--file-doc); }
/* the New menu marks what each option makes, the way Drive colours Docs and Sheets */
.cfile-menu--new [data-act="newdoc"] .cfile-menu-ico { color: var(--file-doc); }
.cfile-menu--new [data-act="newsheet"] .cfile-menu-ico { color: var(--file-sheet); }
.cfile-ico.fk-sheet { color: var(--file-sheet); }
.cfile-ico.fk-img { color: var(--file-img); }
.cfile-ico.fk-video { color: var(--info-600); }
.cfile-ico.fk-fig { color: var(--file-fig); }
/* optimistic "uploading" card while a drop is saving */
.cfile-card.is-uploading { opacity: 0.55; }
/* Info / details modal */
.cfile-info { display: flex; flex-direction: column; }
.cfile-info-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 9px 0; border-bottom: 0.5px solid var(--border); font-size: var(--text-sm); }
.cfile-info-row:last-child { border-bottom: 0; }
.cfile-info-k { color: var(--text-soft); flex-shrink: 0; }
.cfile-info-v { color: var(--text-strong); text-align: right; word-break: break-word; font-variant-numeric: tabular-nums; }
.cfile-ico.cfile-ico--thumb { background: var(--gray-100); padding: 0; overflow: hidden; }
.cfile-ico.cfile-ico--thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- file preview modal (Drive-style) ---- */
.cfile-preview { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.cfile-preview--img { background: var(--gray-100); border-radius: var(--radius-md); padding: var(--space-3); }
.cfile-preview--img img { max-width: 100%; max-height: min(64vh, 560px); border-radius: var(--radius-sm); object-fit: contain; display: block; }
.cfile-preview--frame { width: 100%; }
.cfile-preview--frame iframe { width: 100%; height: min(64vh, 560px); border: 0; border-radius: var(--radius-md); background: var(--gray-100); }
.cfile-preview--none { flex-direction: column; gap: var(--space-3); color: var(--text-soft); text-align: center; padding: var(--space-5) 0; }
.cfile-preview-ico { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--surface); }
.cfile-preview-ico svg { width: 28px; height: 28px; }
.cfile-preview-actions { display: flex; justify-content: flex-end; gap: var(--space-2); width: 100%; }
.cfile-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-0-5); }
.cfile-name { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfile-meta { font-size: var(--text-xs); color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfile-kebab { flex-shrink: 0; border-color: transparent; background: transparent; opacity: 0; transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease); }
.cfile-card.sel .cfile-kebab { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cfile-card:hover .cfile-kebab { opacity: 1; }
}
.cfile-rename { flex: 1; min-width: 0; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text); padding: 3px 7px; border: 1px solid var(--primary-400); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--ring-primary); outline: none; }

/* context menu (reuses .filter-menu) */
.cfiles { position: relative; }
.cfile-menu { position: fixed; min-width: 184px; z-index: var(--z-popover); }
.cfile-menu-opt { justify-content: flex-start; gap: var(--space-3); }
.cfile-menu-ico { display: inline-flex; align-items: center; justify-content: center; color: var(--text-soft); }
.cfile-menu-ico svg { width: 16px; height: 16px; margin: 0; color: inherit; }
.cfile-menu-label { color: var(--text); }
.cfile-menu-opt.danger .cfile-menu-ico, .cfile-menu-opt.danger .cfile-menu-label { color: var(--danger-600); }
@media (hover: hover) and (pointer: fine) {
  .cfile-menu-opt.danger:hover { background: var(--danger-bg); }
}
.cfile-menu-sep { height: 1px; background: var(--border); margin: 5px var(--space-1); }
.menu-grouplabel { font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--text-muted); padding: var(--space-1) var(--space-2-5) 3px; }
.lead-actions-menu .filter-opt[data-stage-set] { justify-content: space-between; }
.lead-actions-menu .filter-opt[data-stage-set] svg { width: 15px; height: 15px; color: var(--primary-600); }

/* shared two-step stage picker (table / drawer / quick-actions) */
.stage-picker { min-width: 232px; }
.sp-stage { justify-content: space-between; }
.sp-stage > svg { width: 15px; height: 15px; color: var(--primary-600); flex: none; }
.sp-caret { display: inline-flex; margin-left: auto; }
.sp-caret svg { width: 15px; height: 15px; color: var(--text-soft); }
.sp-title { display: flex; align-items: center; gap: 7px; }
.sp-title-dot { display: inline-flex; }
.sp-fu { justify-content: space-between; background: var(--gray-50); }
@media (hover: hover) and (pointer: fine) {
  .sp-fu:hover { background: var(--gray-100); }
}
.sp-fu .cfile-menu-label { white-space: nowrap; }
.sp-fu[data-fu="custom"] { background: var(--gray-50); }
@media (hover: hover) and (pointer: fine) {
  .sp-fu[data-fu="custom"]:hover { background: var(--gray-100); }
}
.sp-when { margin-left: auto; padding-left: var(--space-3); font-size: var(--text-xs); color: var(--text-soft); font-weight: var(--fw-medium); white-space: nowrap; }
.sp-fu .sp-caret { margin-left: 0; }
.sp-back .cfile-menu-ico svg { width: 15px; height: 15px; }
/* Follow-Up custom date: the Design-System date picker, scaled down to fit */
.sp-dtp { padding: var(--space-0-5) var(--space-1-5) var(--space-1-5); }
.sp-dtp .cal-area--date { min-height: 0; }
.sp-dtp .cal-head { margin-bottom: var(--space-1); }
.sp-dtp .cal-head .month { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.sp-dtp .cal-nav { width: 24px; height: 24px; }
.sp-dtp .cal-nav svg { width: 15px; height: 15px; }
.sp-dtp .sched-cal { gap: 3px; }
.sp-dtp .sched-cal .dow { font-size: var(--text-3xs); padding: 1px 0; }
.sp-dtp .sched-cal .day { border-radius: var(--radius-sm); font-size: var(--text-xs); }
.sched-cal .day[data-disabled] { opacity: 0.3; pointer-events: none; color: var(--text-soft); background: transparent; }

/* account dropdown (sidebar) */
.account-menu { z-index: var(--z-popover); }
.account-menu-scrim,
.account-sheet-handle,
.account-mobile-only { display: none; }
.account-menu-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-3); }
.account-menu-id { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.account-menu-name { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.account-menu-email { font-size: var(--text-xs); color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* drag-and-drop upload affordances */
.cfiles-grid.cfiles-dropping { outline: 2px dashed var(--primary-400); outline-offset: 4px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--primary-500) 5%, transparent); }
.cfile-card.cfiles-drop-target { background: var(--primary-50); box-shadow: inset 0 0 0 2px var(--primary-400); }

/* the empty state spans the grid; looks come from the shared .empty-tile
   (components.css) — this is just the grid shim */
.cfiles-empty { grid-column: 1 / -1; }
.cfiles-empty--wrap { display: flex; justify-content: center; padding: var(--space-6) 0; }

/* "Client's website" — the pinned smart folder: the site's logo + photo library, shared with the client */
.cfile-card--shared { grid-column: 1 / -1; }
.cfile-ico--shared { background: var(--info-bg); color: var(--info-600); }
.cfile-pill { display: inline-block; margin-left: var(--space-1-5); padding: 1px var(--space-2); border-radius: var(--radius-full); background: var(--info-bg); color: var(--info-600); font-size: var(--text-2xs, 11px); font-weight: var(--fw-semibold); vertical-align: 1px; white-space: nowrap; }
.cfiles-shared { grid-column: 1 / -1; display: grid; gap: var(--space-3); }
.cfiles-shared-head { display: grid; gap: 2px; margin-bottom: var(--space-1); }
.cfiles-shared-head b { font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.cfiles-shared-head small { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.45; }
.cfiles-shared .is-busy { opacity: .6; pointer-events: none; }

/* (the .app-toast styles moved to styles/components.css — it's the app-wide
   toast, not a Files pattern; it only ever lived here by accident) */

/* drag-to-select marquee */
.cfiles-marquee { position: absolute; z-index: 5; border: 1px solid var(--primary-400); background: color-mix(in srgb, var(--primary-500) 12%, transparent); border-radius: var(--radius-xs); pointer-events: none; }

/* selection toolbar */
.cfiles-selbar { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: var(--z-popover); display: flex; align-items: center; gap: var(--space-4); padding: var(--space-2) var(--space-2-5) var(--space-2) var(--space-3-5); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: popIn var(--dur) var(--ease); }

@media (max-width: 980px) {
  .cd-grid { grid-template-columns: 1fr; }
}
.sched-alt { height: 36px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--fw-medium); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .sched-alt:hover { background: var(--nav-hover-bg); color: var(--text-strong); }
}
