/* Material 3 look (https://m3.material.io/), loaded after app.css for everyone.
   It maps app.css's tokens onto M3 colour roles in a monochrome scheme, then restyles
   the shared pieces: buttons, the top bar and menu drawer, chips, outlined cards,
   fields, dialogs and the snackbar. Spacing follows the themes' scale (see the end).
   menu.js adds the hamburger that opens the drawer. */

@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,300..500,0..1,0&display=swap");

/* Google Sans Flex, Material 3's own font, self-hosted as on the support docs
   (troop--support-docs assets/css/site.css). It has no italic, so browsers slant it. */
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 300 700;
  font-display: fallback;
  src: url("fonts/google-sans-flex-300-700-latin-ext.9f7f52d76e49.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 300 700;
  font-display: fallback;
  src: url("fonts/google-sans-flex-300-700-latin.306cc1943b05.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Monochrome, with the greys and whites of Shopify's admin (its Polaris tokens):
   a white page, #f7f7f7 for secondary areas such as board columns, #f2f2f2 for
   selected, #ebebeb for fills, #ddd borders, and white cards lifted by a faint ring
   and a soft shadow rather than a border. */
:root {
  --md-primary: #101010; --md-on-primary: #fff;
  --md-secondary-container: #ebebeb; --md-on-secondary-container: #101010;
  --md-surface: #fff; --md-surface-lowest: #fff; --md-surface-low: #f7f7f7;
  --md-surface-container: #f7f7f7; --md-surface-high: #f2f2f2; --md-surface-highest: #ebebeb;
  --md-on-surface: #101010; --md-on-surface-variant: #4a4a4a;
  --md-outline: #c0c0c0; --md-outline-variant: #ddd;
  --md-inverse-surface: #303030; --md-inverse-on-surface: #fff;
  --md-error: #b3261e;
  /* Shopify admin's card: a crisp 2px edge and wide, very soft halos. */
  --shadow-card: 0 0 2px rgba(0,0,0,.24), 0 2px 12px rgba(0,0,0,.02), 0 4px 16px rgba(0,0,0,.02), 0 4px 48px rgba(0,0,0,.02);
  --shadow-card-hover: 0 0 2px rgba(0,0,0,.28), 0 2px 12px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05), 0 4px 48px rgba(0,0,0,.03);
  /* Its buttons: a white pill with a faint ring, or a near-black pill with a soft glow. */
  --shadow-button: 0 0 0 1px rgba(0,0,0,.07), 0 2px 20px rgba(0,0,0,.03), 0 5px 20px rgba(0,0,0,.03);
  --shadow-button-primary: 0 1px .5px -.5px rgba(0,0,0,.13), 0 1px 2px -.5px rgba(0,0,0,.13), 0 4px 6px -2px rgba(0,0,0,.13), 0 2px 3px -1.5px rgba(0,0,0,.13), inset 0 0 4px 1px #101010, inset 0 0 4px 2px rgba(255,255,255,.1), inset 0 0 12px -6px rgba(255,255,255,.75);
  /* Corner radii, on Shopify admin's scale. */
  --radius-xs: 4px;     /* thumbnails, tiny marks */
  --radius-sm: 8px;     /* pills, chips, fields, small buttons */
  --radius-md: 12px;    /* compact cards, menu items, top-bar buttons, messages */
  --radius-lg: 16px;    /* page-level panels: board columns, the drawer, the task panel */
  --radius-xl: 20px;    /* cards and dialogs */
  --radius-full: 9999px; /* buttons */
  --radius-card: var(--radius-xl);
  --radius-card-small: var(--radius-md);
}
@media (prefers-color-scheme: dark) {
  :root {
    --md-primary: #ededed; --md-on-primary: #1c1c1c;
    --md-secondary-container: #3a3a3a; --md-on-secondary-container: #ededed;
    --md-surface: #161616; --md-surface-lowest: #101010; --md-surface-low: #1c1c1c;
    --md-surface-container: #212121; --md-surface-high: #2b2b2b; --md-surface-highest: #363636;
    --md-on-surface: #ededed; --md-on-surface-variant: #c4c4c4;
    --md-outline: #8f8f8f; --md-outline-variant: #474747;
    --md-inverse-surface: #ededed; --md-inverse-on-surface: #2f2f2f;
    --md-error: #f2b8b5;
    --shadow-card: 0 0 0 1px rgba(255,255,255,.08);
    --shadow-card-hover: 0 0 0 1px rgba(255,255,255,.16), 0 4px 12px rgba(0,0,0,.4);
  }
}

/* app.css tokens, mapped to M3 roles. */

:root {
  --bg: var(--md-surface);
  --text: var(--md-on-surface);
  --muted: var(--md-on-surface-variant);
  --line: var(--md-outline-variant);
  --card: var(--md-surface-lowest);
  --card-hover: var(--md-surface-high);
  --primary: var(--md-primary);
  --primary-text: var(--md-on-primary);
  --link: var(--md-primary);
  --danger: var(--md-error);
  --field: transparent;
  --radius: 12px;
  --sans: "Google Sans Flex", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --gray-bg: var(--md-surface-container);
  --elev-1: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px 1px rgba(0,0,0,.15);
  --elev-2: 0 1px 2px rgba(0,0,0,.3), 0 2px 6px 2px rgba(0,0,0,.15);
  --elev-3: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.3);
}

body { font: 400 14px/20px var(--sans); }

/* Buttons: full-round, 40px, label-large. Default is outlined, .primary filled,
   .quiet a text button. */

button {
  border-radius: 20px;
  border-color: var(--md-outline);
  min-height: 36px;
  padding: 6px 16px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .1px;
  transition: background-color .15s, box-shadow .15s;
}
button:hover { background: color-mix(in srgb, var(--md-primary) 8%, transparent); }
button.primary { background: var(--md-primary); border-color: var(--md-primary); color: var(--md-on-primary); padding-inline: 24px; }
button.primary:hover { opacity: 1; box-shadow: var(--elev-1); background: color-mix(in srgb, var(--md-on-primary) 8%, var(--md-primary)); }
button.quiet, a.quiet { color: var(--md-primary); border-radius: 20px; }
button.quiet:hover, a.quiet:hover { background: color-mix(in srgb, var(--md-primary) 8%, transparent); color: var(--md-primary); }
button.small { min-height: 28px; padding: 2px 12px; border-radius: 14px; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--md-primary); outline-offset: 2px; }

/* Top app bar: the hamburger, the section's name, and the open count. */
.top { background: var(--md-surface); border-bottom: 1px solid var(--md-surface-highest); margin: 0; gap: 4px; min-height: 64px; align-items: center; }
.menu-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  color: var(--md-on-surface-variant); font-family: "Material Symbols Rounded"; font-size: 24px; font-weight: 400;
  position: relative; z-index: 42;
}
.menu-button:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); }
.menu-title { font-size: 22px; line-height: 28px; margin-left: 4px; }

/* Navigation drawer: the sections slide out when the hamburger is hovered or clicked. */
.tabs {
  position: fixed; inset: 0 auto 0 0; z-index: 41; width: 300px; max-width: calc(100vw - 56px);
  display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 12px 12px;
  background: var(--md-surface-low); border-radius: 0 16px 16px 0; box-shadow: var(--elev-3);
  transform: translateX(-110%); visibility: hidden;
  transition: transform .25s cubic-bezier(.2, 0, 0, 1), visibility 0s .25s;
}
.tabs::before {
  content: "Troop Projects"; padding: 0 0 12px 60px; line-height: 48px; font-size: 14px; font-weight: 500;
  color: var(--md-on-surface-variant);
}
.menu-open .tabs { transform: none; visibility: visible; transition: transform .25s cubic-bezier(.2, 0, 0, 1); }
.tab {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px 0 16px;
  border: 0; border-radius: 28px; color: var(--md-on-surface-variant); font-weight: 500; text-align: left;
}
.tab:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); color: var(--md-on-surface); }
.tab.active { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-bottom-color: transparent; }
.tab::before { font-family: "Material Symbols Rounded"; font-weight: 400; font-size: 24px; line-height: 1; font-variation-settings: "FILL" 0; }
.tab.active::before { font-variation-settings: "FILL" 1; }
.tab[data-tab="home"]::before { content: "home"; }
.tab[data-tab="projects"]::before { content: "folder"; }
.tab[data-tab="tasks"]::before { content: "view_kanban"; }
.tab[data-tab="pipelines"]::before { content: "account_tree"; }
.tab[data-tab="planning"]::before { content: "event_note"; }
.tab[data-tab="map"]::before { content: "map"; }
.tab[data-tab="feedback"]::before { content: "forum"; }
.menu-scrim { display: none; }
.menu-pinned .menu-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .32); }

/* View switcher: filter chips. */
.view {
  min-height: 32px; padding: 4px 16px; border-radius: 8px;
  border-color: var(--md-outline-variant); color: var(--md-on-surface-variant);
}
.view.active {
  background: var(--md-secondary-container); border-color: var(--md-secondary-container);
  color: var(--md-on-secondary-container); padding-left: 8px;
}
.view.active::before { content: "check"; font-family: "Material Symbols Rounded"; font-size: 18px; vertical-align: -4px; margin-right: 6px; }
.foot { border-top-color: var(--md-surface-highest); }

/* Status pills: label chips, 8px corners. */
.pill { border-radius: 8px; padding: 0 8px; line-height: 22px; font-weight: 500; letter-spacing: .3px; }

/* Board columns and outlined cards: white on the faint grey. */
.column { background: var(--md-surface-container); border: 0; border-radius: 16px; }
.column-head { font-weight: 500; font-size: 14px; }
.card { border-radius: 12px; border: 0; background: var(--md-surface-lowest); box-shadow: var(--shadow-card); }
.card:hover { background: var(--md-surface-lowest); box-shadow: var(--shadow-card-hover); }
/* Every white card, Shopify's way: a faint ring and a soft shadow, no border. */
.home-q, .home-done, .home-next-q, .home-task, .pipeline-card, .plan-card, .page-overview, .comment, .home-q-pictures {
  border: 0 !important; background: var(--md-surface-lowest); box-shadow: var(--shadow-card) !important;
}
/* Header rows and secondary areas. */
.funnel thead th, .dashboard-table thead th, .md-table th { background: var(--md-surface-low); }
.card-title { font-weight: 500; }
.add, .more { border-radius: 20px; }

/* Larger panels. */
.item, .pipeline-card, .home-q, .home-done, .dashboard { border-radius: 16px !important; }
.home-next-q, .home-task { border-radius: 12px !important; }

/* Headline sizes from the M3 type scale. */
.home-q h3, .home-done h3 { font-size: 20px; line-height: 28px; font-weight: 500; }
.home-project h3 { font-size: 20px; line-height: 28px; }
.board h2, .item-head h2 { font-size: 22px; line-height: 28px; font-weight: 400; }
dialog h2 { font-size: 24px; line-height: 32px; }

/* Stages strip: a segmented look. */
.stage { border-radius: 8px; }
.stage.current { background: var(--md-primary) !important; color: var(--md-on-primary) !important; }

/* Fields: outlined text fields. */
.fields input:not([type]), .fields input[type="text"], .fields select, .fields input[type="date"], textarea:not(.title-input),
.sign-in-form input {
  border: 1px solid var(--md-outline) !important;
  border-radius: 4px !important;
  background: transparent !important;
  padding: 10px 12px !important;
}
.fields input:focus, .fields select:focus, textarea:not(.title-input):focus, .sign-in-form input:focus {
  outline: none; border-color: var(--md-primary) !important; box-shadow: inset 0 0 0 1px var(--md-primary);
}

/* Dialogs: 28px corners on surface-container-high; the task peek is a side sheet. */
dialog { border-radius: 28px; background: var(--md-surface); box-shadow: var(--elev-3); }
dialog::backdrop { background: rgba(0, 0, 0, .32); }
dialog.peek { border-radius: 16px 0 0 16px; background: var(--md-surface); }
.prop select, .prop input:not([type="checkbox"]) { border-radius: 8px; }

/* Snackbar. */
.toast { background: var(--md-inverse-surface) !important; color: var(--md-inverse-on-surface) !important; border-radius: 4px !important; box-shadow: var(--elev-3); }

/* Spacing framework. The scale is the themes' (troop--themes core/styles/_spacing.scss);
   the roles follow its section, block and item, plus page and panel:
     page    the edge margin of the screen (Material's 16 on phones)
     section the gap between the big parts of a page: Home's two panes, each person's board
     panel   the padding inside a card or panel; panel--small for compact cards and rows
     block   the gap between blocks inside a section or panel: heading, chips, text, list
     item    the gap between items in one group: list rows, cards in a column, chips
   Desktop values first; phones (700px and under) get the smaller set. */

:root {
  --spacing--0: 4px; --spacing--1: 8px; --spacing--2: 12px; --spacing--3: 16px; --spacing--4: 24px;
  --spacing--5: 32px; --spacing--6: 48px; --spacing--7: 64px; --spacing--8: 72px; --spacing--9: 96px;

  --spacing--page: var(--spacing--5);
  --spacing--section: var(--spacing--7);
  --spacing--panel: var(--spacing--5);
  --spacing--panel--small: var(--spacing--3);
  --spacing--block: var(--spacing--4);
  --spacing--item: var(--spacing--2);
}
@media (max-width: 700px) {
  :root {
    --spacing--page: var(--spacing--3);
    --spacing--section: var(--spacing--6);
    --spacing--panel: var(--spacing--4);
    --spacing--panel--small: var(--spacing--2);
    --spacing--block: var(--spacing--3);
    --spacing--item: var(--spacing--1);
  }
}

/* Page frame */
.top { padding: var(--spacing--item) var(--spacing--page) var(--spacing--item) calc(var(--spacing--page) - 12px); }
main { padding: var(--spacing--page) var(--spacing--page) var(--spacing--section); }
.views { padding: var(--spacing--page) var(--spacing--page) 0; gap: var(--spacing--item); }
.views:not(:empty) + main { padding-top: var(--spacing--block); }
.foot { padding: var(--spacing--block) var(--spacing--page); gap: var(--spacing--item); }

/* Boards */
.board h2 { margin: var(--spacing--section) 0 var(--spacing--block); }
.board:first-child h2 { margin-top: 0; }
.columns { gap: var(--spacing--block); }
.column { padding: var(--spacing--panel--small); }
.column-head { margin: 0 0 var(--spacing--item); }
.column-body { gap: var(--spacing--item); }
.card { padding: var(--spacing--panel--small); }
.card-meta { margin-top: var(--spacing--0); }
.add, .more { margin-top: var(--spacing--item); }

/* Home */
.home-ai { padding: 0 calc(var(--spacing--section) / 2) var(--spacing--section) 0; }
.home-mine, .home-detail { padding: 0 0 var(--spacing--section) calc(var(--spacing--section) / 2); }
.home-head { margin: 0 0 var(--spacing--block); }
.home-tabs { gap: var(--spacing--item); margin: 0 0 var(--spacing--block); }
.home-how { margin: 0 0 var(--spacing--block); }
.home-q, .home-done { padding: var(--spacing--panel) !important; }
.home-q h3, .home-done h3 { margin: var(--spacing--block) 0 var(--spacing--block); }
.home-q-rec, .home-q-opts { margin: 0 0 var(--spacing--item); }
.home-q-pictures { margin: var(--spacing--item) 0 var(--spacing--block); }
.home-q-data { margin: 0; padding-top: var(--spacing--item); }
.home-label { margin: var(--spacing--panel) 0 var(--spacing--item); }
.home-label:first-child { margin-top: 0; }
.home-next { margin-top: var(--spacing--panel); }
.home-next ul, .home-tasks, .home-answers { gap: var(--spacing--item); }
.home-next-q, .home-task { padding: var(--spacing--panel--small) !important; }
.home-project { margin: 0 0 var(--spacing--panel); }
.home-project h3 { margin: 0 0 var(--spacing--0); }
.home-project-wait { margin: 0 0 var(--spacing--item); }
.home-add { margin-top: var(--spacing--block); }
.home-detail-grid { gap: var(--spacing--block); }
.person-projects { gap: var(--spacing--item) var(--spacing--section); }

/* Projects, pipelines, map, feedback */
.projects, .map { gap: var(--spacing--block); padding-bottom: var(--spacing--section); }
.plan-card { padding: var(--spacing--panel); }
.plan-card > h2 { margin: 0 0 var(--spacing--block); }
.plan-card > p { margin: 0 0 var(--spacing--item); }
.project-head { margin: 0 0 var(--spacing--block); }
.project-page { gap: var(--spacing--panel); }
.item { margin: 0 0 var(--spacing--section); }
.item-meta { margin: var(--spacing--item) 0 var(--spacing--block); }
.part-head { margin: var(--spacing--section) 0 0; }
.part-head.part-first, .context-head.part-head { margin-top: 0; }
.pipeline-cards { gap: var(--spacing--block); margin: var(--spacing--block) 0 var(--spacing--section); }
.pipeline-card, .page-overview, .map-side { padding: var(--spacing--panel--small) var(--spacing--block); }
.context { margin: 0 0 var(--spacing--section); }
.feedback-list { margin: var(--spacing--block) 0 var(--spacing--section); }

/* Dialogs and comments */
dialog { padding: var(--spacing--panel); }
.fields { gap: var(--spacing--block); margin-bottom: var(--spacing--block); }
.comments { margin-top: var(--spacing--block); padding-top: var(--spacing--block); }
.comment-list { gap: var(--spacing--item); }
.comment { padding: var(--spacing--panel--small); }

@media (max-width: 800px) {
  .home-ai { padding: 0 0 var(--spacing--section); }
  .home-mine { padding: var(--spacing--section) 0; }
  .home-detail { padding: var(--spacing--block) var(--spacing--page) var(--spacing--section); }
}

/* Motion, after Material 3's (https://m3.material.io/styles/motion/overview): short,
   eased, and only where it says something changed. Easing: standard for state changes,
   emphasized-decelerate for things arriving. Off for anyone who asks for less motion. */
:root {
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-enter: cubic-bezier(.05, .7, .1, 1);
  --motion-short: 150ms;
  --motion-medium: 250ms;
}

/* State layers: a soft overlay on hover, a stronger one on press. */
button, a.quiet, .view, .tab, .menu-button {
  transition: background-color var(--motion-short) var(--ease-standard),
              border-color var(--motion-short) var(--ease-standard),
              color var(--motion-short) var(--ease-standard),
              box-shadow var(--motion-short) var(--ease-standard);
}
button:active, a.quiet:active, .tab:active, .menu-button:active { background: color-mix(in srgb, var(--md-on-surface) 12%, transparent); }
button.primary:active { background: color-mix(in srgb, var(--md-on-primary) 14%, var(--md-primary)); box-shadow: none; }
.view:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); }
.view.active:hover { background: color-mix(in srgb, var(--md-on-secondary-container) 8%, var(--md-secondary-container)); }

/* Selected chip: the check slides in. */
.view.active::before { display: inline-block; animation: chip-check var(--motion-medium) var(--ease-enter); }
@keyframes chip-check { from { opacity: 0; transform: scale(.4); margin-right: -12px; } }

/* Cards: the border darkens and the card lifts a little. */
.card, .home-next-q, .home-task, .pipeline-card, .home-q-pictures {
  transition: border-color var(--motion-short) var(--ease-standard),
              box-shadow var(--motion-medium) var(--ease-standard),
              background-color var(--motion-short) var(--ease-standard);
}
.card:hover, .home-next-q:hover, .home-task:hover, .pipeline-card:hover, .home-q-pictures:hover { box-shadow: var(--shadow-card-hover) !important; }
.card:active { box-shadow: var(--shadow-card); }
.card.dragging { opacity: .5; box-shadow: none; }

/* The task panel slides in from the right; dialogs fade and grow a little. */
dialog.peek[open] { animation: peek-in var(--motion-medium) var(--ease-enter); }
@keyframes peek-in { from { transform: translateX(48px); opacity: 0; } }
dialog:not(.peek)[open] { animation: dialog-in var(--motion-medium) var(--ease-enter); }
@keyframes dialog-in { from { transform: scale(.94); opacity: 0; } }
dialog[open]::backdrop { animation: scrim-in var(--motion-medium) var(--ease-standard); }
@keyframes scrim-in { from { opacity: 0; } }

/* Messages rise from the bottom. */
.toast:not([hidden]) { animation: toast-in var(--motion-medium) var(--ease-enter); }
@keyframes toast-in { from { transform: translate(-50%, 16px); opacity: 0; } }

/* A new section fades in (menu.js sets the class while the section loads). */
.section-enter main > * { animation: section-in var(--motion-medium) var(--ease-enter); }
@keyframes section-in { from { opacity: 0; transform: translateY(6px); } }

/* The drawer's scrim fades in too. */
.menu-pinned .menu-scrim { animation: scrim-in var(--motion-medium) var(--ease-standard); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop {
    animation: none !important;
    transition: none !important;
  }
}

/* Cards and buttons as Shopify's admin draws them (read from its metaobjects page,
   30 November 2026). Big panels get 20px corners, compact cards 12px. */
.card, .home-next-q, .home-task, .comment, .home-q-pictures { border-radius: var(--radius-card-small) !important; }
.home-q, .home-done, .plan-card, .pipeline-card, .page-overview, .item, .dashboard { border-radius: var(--radius-card) !important; }
.column { border-radius: var(--radius-card); }

button:not(.tab):not(.menu-button):not(.quiet):not(.view):not(.primary) {
  border: 0; background: var(--md-surface-lowest); box-shadow: var(--shadow-button); border-radius: 9999px;
}
button:not(.tab):not(.menu-button):not(.quiet):not(.view):not(.primary):hover { background: var(--md-surface-low); }
button.primary { border: 0; border-radius: 9999px; background: #101010; box-shadow: var(--shadow-button-primary); }
button.primary:hover { background: #2a2a2a; box-shadow: var(--shadow-button-primary); }
.view { border: 0; box-shadow: var(--shadow-button); background: var(--md-surface-lowest); }
.view.active { box-shadow: none; }

/* Type: slightly tight, as in the admin. */
body { letter-spacing: -.01em; }
h1, h2, h3, .home-head, .menu-title, .title-input { letter-spacing: -.02em; font-weight: 500; }

/* Corner radii, everywhere, from the scale above. */
:root { --radius: var(--radius-md); }
.pill, .view, .stage, .person, .home-how code { border-radius: var(--radius-sm); }
.fields input:not([type]), .fields input[type="text"], .fields select, .fields input[type="date"], textarea:not(.title-input),
.sign-in-form input, .prop select, .prop input:not([type="checkbox"]), .context-input, .decision-fields input, .comment-actions select, .foot #me, .person-add {
  border-radius: var(--radius-sm) !important;
}
.home-q-thumbs img, .home-detail-img { border-radius: var(--radius-xs); }
.menu-button { border-radius: var(--radius-md); }
.tab { border-radius: var(--radius-md); }
.tabs { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.column { border-radius: var(--radius-lg); }
dialog { border-radius: var(--radius-xl); }
dialog.peek { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.toast { border-radius: var(--radius-md) !important; }
button.small { border-radius: var(--radius-full); }
/* "+ New" and "+ Add your own task" stay quiet links, not white pills. */
button.add, button.more, button.home-add, .home-add button {
  background: transparent !important; box-shadow: none !important; border-radius: var(--radius-full);
}
button.add:hover, button.more:hover, button.home-add:hover, .home-add button:hover {
  background: color-mix(in srgb, var(--md-on-surface) 6%, transparent) !important;
}
/* Lists that scroll clip what is drawn outside them, so give the cards' shadows
   room inside, and pull the list out by the same amount so nothing moves. */
.comment-list, .open-list { padding: 6px; margin-left: -6px; margin-right: -6px; }

/* Breadcrumb in the top bar, on a project's page: Projects › Blockshop wine. */
.menu-title { display: flex; align-items: center; gap: 4px; min-width: 0; }
.menu-crumb { color: var(--md-on-surface-variant); text-decoration: none; border-radius: var(--radius-sm); padding: 0 4px; margin-left: -4px;
  transition: background-color var(--motion-short) var(--ease-standard), color var(--motion-short) var(--ease-standard); }
.menu-crumb:hover { color: var(--md-on-surface); background: color-mix(in srgb, var(--md-on-surface) 6%, transparent); }
.menu-crumb-sep { font-family: "Material Symbols Rounded"; font-size: 22px; color: var(--md-on-surface-variant); }
.menu-crumb-here { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* The breadcrumb does the "All projects" link's job. */
.project-back { display: none !important; }
.top { flex-wrap: nowrap; }
.top #show-open { white-space: nowrap; flex: none; }

/* Stage strip: a quiet stepper. Each stage is a label over a thin track; done
   stages are mid grey, the current one near-black, those ahead light grey. On the
   Sales card the dark segments are where the most drop off. */
.project-bar { gap: 6px; margin: 0 0 var(--spacing--block); }
.project-bar li {
  position: relative; padding: 10px 0 0; border-radius: 0; background: none !important;
  font-size: 12px; text-align: left; color: var(--md-on-surface-variant); font-weight: 400;
}
.project-bar li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius-full); background: var(--md-surface-highest);
}
.project-bar li.past { color: var(--md-on-surface-variant); }
.project-bar li.past::before { background: #b5b5b5; }
.project-bar li.current { color: var(--md-on-surface); font-weight: 500; }
.project-bar li.current::before { background: var(--md-primary); }
@media (max-width: 700px) { .project-bar li { padding-top: 4px; } }

/* The Pipelines page's stage tiles: current is a soft fill, not solid black. */
.stage.current { background: var(--md-secondary-container) !important; color: var(--md-on-secondary-container) !important; border-color: transparent !important; box-shadow: inset 0 -3px 0 var(--md-primary); }

/* Meta lines: 13px, up from 11-12, in the secondary text colour. */
.card-meta, .card-item, .task-id, .home-task-meta, .meta, .project-facts, .home-q-where, .stage-count,
.comment-head, .home-how, .home-label, .item-meta, .project-where, .home-project-wait, .feedback-list .muted {
  font-size: 13px;
}
.card-meta, .home-task-meta, .meta, .project-facts, .task-id { color: var(--md-on-surface-variant); }

/* Pills: one family, like Shopify's badges. Same shape, size and weight; the
   colour is a tint with darker text, and plain labels are a neutral tint. */
.pill {
  border-radius: var(--radius-sm); padding: 0 8px; line-height: 22px;
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  color: color-mix(in srgb, var(--col-text, #303030) 75%, #000);
}
.pill-gray { --col-pill: rgba(0, 0, 0, .06); --col-text: #303030; background: var(--col-pill); }
@media (prefers-color-scheme: dark) {
  .pill { color: var(--col-text, #e3e3e3); }
  .pill-gray { --col-pill: rgba(255, 255, 255, .1); --col-text: #e3e3e3; }
}

/* Foot of the drawer: who you are, Archived, Sign out. */
.tabs { overflow-y: auto; }
.menu-foot {
  margin-top: auto; padding-top: var(--spacing--item);
  border-top: 1px solid var(--md-surface-highest);
  display: flex; flex-direction: column;
}
.menu-me, .menu-item {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px;
  border-radius: var(--radius-md); color: var(--md-on-surface-variant); font: inherit; font-weight: 500;
  text-decoration: none; text-align: left; border: 0; background: none !important; box-shadow: none !important; width: 100%;
}
.menu-item::before, .menu-icon {
  font-family: "Material Symbols Rounded"; font-weight: 400; font-size: 24px; line-height: 1;
}
.menu-item::before { content: attr(data-icon); }
.menu-item:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent) !important; color: var(--md-on-surface); }
.menu-me #me {
  flex: 1; min-width: 0; height: 36px; padding: 0 8px; font: inherit; font-weight: 500;
  border: 1px solid var(--md-outline-variant); border-radius: var(--radius-sm); background: var(--md-surface-lowest); color: var(--md-on-surface);
}

/* Every dropdown draws its own chevron, cropped to the glyph and set in from the right
   edge by the same gap as its text on the left (--select-pad); the browser's own arrow
   ignores padding. Important so hover and field backgrounds don't drop it. */
:root { --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7.4' viewBox='240 -641 480 296' fill='%234a4a4a'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root { --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7.4' viewBox='240 -641 480 296' fill='%23c4c4c4'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/%3E%3C/svg%3E"); } }
select:not([multiple]) {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  --select-pad: 8px;
  padding-right: calc(var(--select-pad) + 24px) !important;
  background-image: var(--select-chevron) !important;
  background-repeat: no-repeat !important;
  background-position: right var(--select-pad) center !important;
  background-size: 12px 7.4px !important;
}
.fields select:not([multiple]), .menu-me #me { --select-pad: 12px; }
.menu-me #me { padding-left: 12px; }
