/* Home (js/home/): where everyone lands. Every colour is one of styles.css's
   tokens; text is never --text-faint, which is too faint to read. Linked
   after styles.css and templates.css (Home's first-design cards are the New
   dialog's own). Laptop: a 12-column grid up to 1280px wide. 701 to 1099px:
   one column. A phone (700px and below, modeAccess.js's breakpoint): one
   column, a finger's room for every button. The page reads in the order
   it's laid out at every size. */

/* The lockup is a link Home, and looks as it always has. */
a.brand { text-decoration: none; color: var(--text); border-radius: 4px; }
a.brand:hover .brand-name { color: var(--accent-hover); }

/* Positioned, so what's placed absolutely inside it (the words only a
   screen reader hears, .home-visually-hidden) scrolls with it: unpositioned,
   they sat at their place far down the page outside the panel, and a phone
   could scroll the whole page, top bar and all, past the panel's end. */
#home-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-deep);
  padding: 24px;
  overflow-y: auto;
}
.home { width: 100%; max-width: 1280px; margin: 0 auto; }

/* --- The head --- */
.home-head { display: grid; grid-template-columns: 1fr; gap: 12px 16px; align-items: start; margin-bottom: 20px; }
.home-head.with-tools { grid-template-columns: minmax(0, 1fr) auto minmax(260px, 440px); grid-template-areas: "hello new search"; }
.home-hello { min-width: 0; }
.home-head.with-tools .home-hello { grid-area: hello; }
.home-hello h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.home-sub { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; }
.home-new-wrap { grid-area: new; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.home-new { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.home-next-opp { margin: 0; font-size: 12px; white-space: nowrap; }
.home-next-opp:empty { display: none; }
.home-search { grid-area: search; position: relative; min-width: 0; }
.home-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.home-search-input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px 8px 32px;
  font-size: 13px;
}
.home-search-input::placeholder { color: var(--text-dim); }

/* --- The grid --- */
.home-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.home-slot { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home-span-12 { grid-column: span 12; }
.home-span-8 { grid-column: span 8; }
.home-span-4 { grid-column: span 4; }
.home-slot.home-span-8 > .home-card, .home-slot.home-span-4 > .home-card { height: 100%; }
/* Continue is as tall as its own content: the row's other card (Needs you) can be much taller, and stretching Continue left empty card under its buttons. */
.home-slot.home-span-8 > .home-card.home-continue { height: auto; }

/* --- Cards --- */
.home-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}
.home-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.home-card h3:focus-visible { outline-offset: 3px; }
.home-text { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.home-dim { color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
p.home-dim { margin: 6px 0 0; }
.home-empty { margin: 0 0 4px; font-size: 13px; }
.home-label { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.home-meta { margin: 0 0 10px; color: var(--text-dim); font-size: 12.5px; overflow-wrap: anywhere; }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.home-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}
.home-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.home-icon { flex: none; vertical-align: -3px; }

/* --- Buttons --- */
.home-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.home-primary:hover { background: var(--accent-hover); }
.home-primary:disabled { opacity: 0.6; cursor: default; }
.home-linkbutton {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 12.5px;
}
.home-linkbutton:hover { background: none; color: var(--accent-hover); text-decoration: underline; }
.home-linkbutton:active { background: none; }

/* --- Continue --- */
.home-continue { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.home-continue.no-picture { grid-template-columns: minmax(0, 1fr); }
.home-continue-picture {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  overflow: hidden;
}
.home-continue-picture .new-design-picture { width: 100%; height: 100%; margin: 0; border-radius: 0; }
.home-continue-text { min-width: 0; }
.home-continue-name { font-size: 20px !important; margin: 0 0 6px !important; overflow-wrap: anywhere; }
.home-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 13px; }
.home-facts dt { color: var(--text-dim); }
.home-facts dd { margin: 0; overflow-wrap: anywhere; }
.home-open-on { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.home-open-on button { padding: 7px 14px; }
.home-open-label { margin-right: 2px; }
.home-last-on { margin-top: 10px !important; }

/* --- Needs you --- */
.home-needs-list { list-style: none; margin: 0; padding: 0; }
.home-need {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "mark mark" "text action";
  gap: 4px 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.home-need:first-child { border-top: none; padding-top: 2px; }
.home-mark { grid-area: mark; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.home-mark-shared { color: var(--accent); }
.home-mark-library { color: var(--ok-fg); }
.home-need-text { grid-area: text; min-width: 0; }
.home-need-title { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.home-need > button { grid-area: action; }
.home-needs > .home-linkbutton { margin-top: 8px; }

/* --- Your designs --- */
.home-designs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.home-designs-head h3 { margin: 0; }
.home-tabs { display: flex; gap: 4px; background: var(--bg); padding: 3px; border-radius: var(--radius); }
.home-tab { background: transparent; border: none; color: var(--text-dim); padding: 5px 10px; display: inline-flex; align-items: center; gap: 6px; }
.home-tab[aria-pressed="true"] { background: var(--accent-dim); color: var(--on-fill); }
.home-tab-count { font-size: 11px; padding: 0 6px; border-radius: 9px; background: var(--panel-alt); color: var(--text); }
.home-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.home-sort-select {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12.5px;
}
/* Name, Design #, Opp #, (Owner,) Last edited, a badge and the ⋯ menu. The
   Design # column is as wide as the longest Design # listed, in the head
   and every row alike (--home-design-chars, set by yourDesigns.js; each
   character of its 12 px monospace is at most 7.3 px), so none is ever
   cut ("Design-2026-0001", a new team's, or OM's "DSN-2026-0025"). The Opp
   # is on one line and at least as wide as an older design's, its old
   number ("OPP-2026-0016"), a longer one cut with its whole in the
   tooltip; the badge is never narrower than "shared with 12"; Last edited
   wraps only where it did before Design #s; the name gives up the room. */
.home-rows-head, .home-row {
  --home-design-col: calc(var(--home-design-chars, 16) * 7.3px);
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) var(--home-design-col) minmax(100px, 1fr) minmax(0, 1.3fr) minmax(96px, 0.9fr) 40px;
  grid-template-areas: "name design opp when badge more";
  gap: 4px 14px;
  align-items: center;
}
.home-rows-head.with-owner, .home-rows.with-owner .home-row {
  grid-template-columns: minmax(0, 1.5fr) var(--home-design-col) minmax(100px, 0.9fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(96px, 0.9fr) 40px;
  grid-template-areas: "name design opp owner when badge more";
}
.home-rows-head {
  padding: 0 4px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.home-rows-head .home-col-name { grid-area: name; }
.home-rows-head .home-col-design { grid-area: design; }
.home-rows-head .home-col-opp { grid-area: opp; }
.home-rows-head .home-col-owner { grid-area: owner; }
.home-rows-head .home-col-when { grid-area: when; }
.home-rows { list-style: none; margin: 0; padding: 0; }
.home-row { padding: 4px; border-bottom: 1px solid var(--border); min-height: 40px; }
.home-row.current { background: var(--panel-alt); }
.home-row-name {
  grid-area: name;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 6px 2px;
  text-align: left;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}
.home-row-name:hover { background: none; color: var(--accent-hover); }
.home-row-name:hover .home-row-title { text-decoration: underline; }
.home-row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-open-tag { flex: none; font-size: 10.5px; color: var(--accent); border: 1px solid var(--accent-dim); border-radius: 8px; padding: 0 6px; }
.home-row-design { grid-area: design; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-row-opp { grid-area: opp; font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-row-opp.has { color: var(--accent-hover); }
.home-row-opp-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-row-owner { grid-area: owner; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-row-when { grid-area: when; font-size: 12.5px; color: var(--text-dim); }
.home-row-badge { grid-area: badge; min-width: 0; }
.home-badge {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
}
.home-badge.view { border-color: var(--warn-border); color: var(--warn-fg); }
.home-row .home-menu-wrap { grid-area: more; justify-self: end; }
.home-designs-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; }
.home-nomatch { padding: 8px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.home-nomatch .home-empty { margin: 0; }
.home-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
}
.home-notice > span { flex: 1; min-width: 0; }
.home-notice-close { background: none; border: none; color: var(--text-dim); font-size: 16px; padding: 2px 8px; }

/* The ⋯ menu */
.home-menu-wrap { position: relative; }
.home-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  padding: 0;
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
}
.home-more:hover, .home-more[aria-expanded="true"] { border-color: var(--border); color: var(--text); }
.home-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 190px;
  padding: 4px 0;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow-dialog);
}
.home-menu-group + .home-menu-group { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.home-menu-label { padding: 4px 12px 2px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.home-menu-note { padding: 2px 12px 6px; font-size: 12px; color: var(--text-dim); }
.home-menu [role="menuitem"] {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 7px 12px;
}
.home-menu [role="menuitem"]:hover, .home-menu [role="menuitem"]:focus { background: var(--accent-dim); outline: none; }
.home-menu .home-menu-danger { color: var(--danger-text); }
.home-menu .home-menu-danger:hover, .home-menu .home-menu-danger:focus { color: var(--on-fill); background: var(--danger-fill); }

/* --- Get started --- */
.home-get-started-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.home-get-started-head h3 { margin: 0; }
.home-get-started-head .home-linkbutton { margin-left: auto; }
.home-progress { width: 180px; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.home-progress > span { display: block; height: 100%; background: var(--ok-stroke); border-radius: 3px; }
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
  min-width: 0;
}
.home-step-top { display: flex; align-items: flex-start; gap: 8px; }
.home-step-mark {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.home-step.done .home-step-mark { color: var(--ok-fg); border-color: var(--ok-border); background: var(--ok-bg); }
.home-step-title { flex: 1; font-weight: 600; font-size: 13px; }
.home-step.done .home-step-title { color: var(--text-dim); }
.home-step-number { font-size: 11px; color: var(--text-dim); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.home-step-text { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); overflow-wrap: anywhere; }
.home-step:not(.done) .home-step-text { color: var(--text); }
.home-step-action { margin-top: auto; padding-top: 4px; }
.home-steps-more { margin-top: 8px; }
.home-step-action .account-form { margin: 0; }
/* The type of business's "Saving…" line takes room only while it says something. */
.home-step-action .account-status:empty { display: none; }
.home-step-action .account-row select { max-width: 100%; }
.home-tag {
  align-self: flex-start;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-fg);
}

/* --- Locked, support, warnings --- */
.home-lock {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--warn-fg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  background: var(--warn-bg);
}
.home-locked, .home-welcome, .home-support, .home-reporting, .home-welcome-card { max-width: 860px; }
.home-warn {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--warn-fg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  background: var(--warn-bg);
}
.home-error p { margin: 0 0 10px; color: var(--danger-text); font-size: 13px; }

/* --- The first design: the New dialog's cards, larger --- */
.home-templates { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.home-templates .new-design-picture { height: 130px; }

/* --- Help, at the foot --- */
.home-help { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.home-help-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.home-dot { color: var(--text-dim); }

/* --- The Design Queue band (a team with the queue) --- */
.home-queue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; }
.home-queue-head { display: contents; }
.home-queue h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.home-queue-open { order: 3; margin-left: auto; white-space: nowrap; }
.home-chips { order: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  font-size: 13px;
}
.home-chip:hover { border-color: var(--accent-dim); }
.home-chip.quiet { background: transparent; color: var(--text-dim); }
.home-chip.danger { border-color: var(--danger-text); color: var(--disc-fg); background: var(--disc-bg); }
.home-chip.danger:hover { border-color: var(--disc-fg); }
.home-chip.loading { color: var(--text-dim); background: transparent; cursor: default; }
.home-chip-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--bg);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}
.home-chip.danger .home-chip-count { background: var(--danger-fill); color: var(--on-fill); }
.home-chip-aside { font-size: 12px; color: var(--text-dim); }
.home-queue-error { order: 2; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.home-queue-error p { margin: 0; color: var(--danger-text); font-size: 13px; }

/* Needs you's queue rows: overdue stands out; the rest say when. */
.home-mark-overdue { color: var(--disc-fg); }
.home-mark-today { color: var(--warn-fg); }
.home-mark-tomorrow, .home-mark-soon { color: var(--accent); }
.home-need-overdue { box-shadow: inset 3px 0 0 var(--danger-text); padding-left: 10px; margin-left: -4px; }

/* The Queue tab's count, and its dot while one of the person's requests is
   overdue. */
#tab-design-queue .tab-count {
  display: inline-block;
  position: relative;
  min-width: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--panel-alt);
  color: var(--text);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
#tab-design-queue .tab-count.hidden { display: none; }
#tab-design-queue .tab-count.overdue::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger-text);
  box-shadow: 0 0 0 1.5px var(--bg);
}

/* The topbar on a laptop. Home's tab (about 67px) and the Queue tab's
   count (24px) must never make the bar wrap at a width where it was one
   row before Home (244ecd2), for anyone's tabs: so where the bar is tight
   (designQueue.css's 1699px), every tab is narrower while Home's tab shows
   (6px a side, a phone's, which also wins over the queue's 8px), and on a
   team with the queue, whose tabs had already given their room, the count
   sits on the tab's corner and the bar's groups are a little closer. A
   phone (700px and below) keeps its own rules above. */
@media (min-width: 701px) and (max-width: 1699px) {
  .mode-switch:has(#tab-home:not(.hidden)) .mode-btn { padding-left: 6px; padding-right: 6px; }
  #topbar:has(#tab-home:not(.hidden)):has(#tab-design-queue:not(.hidden)) { column-gap: 12px; }
  #topbar:has(#tab-home:not(.hidden)):has(#tab-design-queue:not(.hidden)) .topbar-actions { gap: 6px; }
  #topbar:has(#tab-home:not(.hidden)):has(#tab-design-queue:not(.hidden)) .topbar-user { gap: 6px; padding-left: 10px; margin-left: 4px; }
  #tab-design-queue { position: relative; }
  #tab-design-queue .tab-count { position: absolute; top: -7px; right: -8px; margin: 0; box-shadow: 0 0 0 1.5px var(--bg); }
}
/* Wider, the count stays beside "Design Queue" without making the bar a
   pixel taller; and Riser Draft staff, whose team switcher makes theirs
   the widest bar, keep the narrower tabs. */
@media (min-width: 1700px) {
  #tab-design-queue .tab-count { margin-top: -1px; margin-bottom: -1px; }
  #topbar:has(#team-switch:not(.hidden)) .mode-switch:has(#tab-home:not(.hidden)) .mode-btn { padding-left: 6px; padding-right: 6px; }
}

/* --- Your team (a team's own admins) --- */
.home-team h3 { flex-wrap: wrap; }
.home-team-only { font-size: 12px; font-weight: normal; }
.home-team-list { list-style: none; margin: 0; padding: 0; }
.home-team-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.home-team-row:first-child { border-top: none; padding-top: 2px; }
.home-team-words { min-width: 0; }
.home-team-title { font-size: 13px; font-weight: 600; }
.home-team-text { margin-top: 2px; overflow-wrap: anywhere; }
.home-team-link { flex: none; white-space: nowrap; padding-top: 1px; }
.home-team-error { color: var(--danger-text); }
/* Across the page (no design yet beside it): its lines side by side. */
.home-slot-teamStatus.home-span-12 .home-team-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.home-slot-teamStatus.home-span-12 .home-team-row:nth-child(-n + 4) { border-top: none; padding-top: 2px; }

/* --- Loading --- */
.home-skeleton { background: var(--panel-alt); border-radius: 4px; position: relative; overflow: hidden; }
.home-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: home-shimmer 1.4s infinite;
}
@keyframes home-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .home-skeleton::after { animation: none; display: none; } }
.home-skeleton-line { height: 14px; margin: 10px 0; width: 55%; }
.home-skeleton-line.wide { height: 20px; width: 80%; }
.home-skeleton-row { height: 34px; margin: 8px 0; }

/* --- Wide: Get started's six steps in a row --- */
@media (min-width: 1280px) {
  .home-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* --- 701 to 1099px: one column --- */
@media (max-width: 1099px) {
  .home { max-width: 900px; }
  .home-span-8, .home-span-4 { grid-column: span 12; }
  .home-slot.home-span-8 > .home-card, .home-slot.home-span-4 > .home-card { height: auto; }
  .home-head.with-tools { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "hello new" "search search"; }
}

/* --- A phone --- */
@media (max-width: 700px) {
  #home-panel { padding: 16px; }
  .home-hello h2 { font-size: 21px; }
  .home-new-wrap { align-items: stretch; }
  .home-next-opp { display: none; }
  .home-head button, .home-body button, .home-search-input, .home-body select { min-height: 44px; }
  .home-body .home-linkbutton, .home-body .home-row-name { min-height: 44px; }
  /* Contact Riser Draft, a link where there's a support address. */
  .home-body a.account-link { min-height: 44px; display: inline-flex; align-items: center; }
  .home-open-on { flex-direction: column; align-items: stretch; }
  .home-need { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mark" "text" "action"; }
  .home-need > button { justify-self: stretch; }
  .home-designs-head { gap: 8px; }
  .home-tabs { order: 0; width: 100%; overflow-x: auto; }
  .home-sort { margin-left: 0; }
  .home-rows-head { display: none; }
  /* A card: the name, its Design #, "Opp 7301" only when it has one, the
     owner (not on Mine), then when it was edited. */
  .home-row, .home-rows.with-owner .home-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name more" "design more" "opp more" "when badge";
    gap: 0 10px;
    padding: 8px 4px;
  }
  .home-rows.with-owner .home-row { grid-template-areas: "name more" "design more" "opp more" "owner more" "when badge"; }
  .home-row-design { font-size: 12.5px; }
  .home-row-opp.is-none { display: none; }
  .home-row-opp-word { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .home-row-badge { justify-self: end; }
  .home-more { width: 44px; height: 44px; border-color: var(--border); }
  .home-steps { grid-template-columns: minmax(0, 1fr); }
  .home-progress { width: 100%; order: 3; }
  .home-menu { min-width: 220px; }
  .home-menu [role="menuitem"] { padding: 12px 14px; }
  .home-help { flex-direction: column; }
  .home-help-links { flex-direction: column; align-items: flex-start; gap: 0; }
  .home-help .home-dot { display: none; }
}

/* --- A phone: the Design Queue band and Your team --- */
@media (max-width: 700px) {
  .home-queue { padding: 12px; }
  .home-queue-open { order: 1; }
  .home-chips { flex-basis: 100%; }
  .home-chip { min-height: 44px; }
  .home-team-row { flex-direction: column; gap: 2px; }
  .home-team-link { min-height: 44px; display: inline-flex; align-items: center; }
  span.home-team-link { min-height: 0; padding-top: 2px; }
  /* The Queue tab's count takes its room from every tab's padding, so the
     tabs and the menu button keep to one row. */
  .mode-switch:has(#dq-tab-count:not(.hidden)) .mode-btn { padding-left: 6px; padding-right: 6px; }
  #tab-design-queue .tab-count { margin-left: 4px; min-width: 16px; padding: 0 4px; }
  .home-need-overdue { margin-left: 0; }
}
