/* Projects' own styles, on top of sttark-shared.css (the guide's shared
   file: tokens, page base, top bar, buttons, page title, section headings).
   Tokens only: no raw color values here. Spacing steps are 4, 8, 12, 16,
   24, 32 and 48 px. One breakpoint: 760 px.

   Each page's own styles go in web/pages/<page>.css, linked from
   index.html; the shared parts of the app stay here. */

/* ---------- type: the two licensed weights (Look › Type in apps) ---------- */

@font-face {
  font-family: 'Founders Grotesk';
  src: url('/fonts/founders-grotesk-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Founders Grotesk';
  src: url('/fonts/founders-grotesk-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
b,
strong,
th {
  font-weight: 600;
}
/* Only the upright faces ship with Projects, so nothing asks for italic. */
i,
em,
cite,
dfn,
var,
address {
  font-style: normal;
}

/* ---------- page base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  margin: 0;
  min-height: 100vh;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
/* Links in text are ink and underlined, green on hover. */
main :is(p, li, td, dd) a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
main :is(p, li, td, dd) a:not(.btn):hover {
  color: var(--green-text);
}

/* Skip to content: off screen until reached by keyboard. */
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus {
  top: 8px;
}

/* ---------- top bar: what the shared file leaves to the app ---------- */

/* The nav's links sit in the bar itself, and in the phone menu's column. */
.topnav {
  display: contents;
}
/* The section's name shows in the app-name slot at phone width only. */
.brand .app-section {
  display: none;
}

/* On a wide screen the bar reads, left to right: logo and app name, search,
   nav, the main action (New), who is working, the theme switch (Look › Top
   bar). New sits outside the menu so it stays on the bar at phone width. */
/* Search is a link to the Search page, drawn as the bar's search control. */
.topbar .search-open {
  text-decoration: none;
}
@media (min-width: 761px) {
  .topbar .search-open {
    order: 1;
  }
  .topbar .topnav a {
    order: 2;
  }
  .topbar .new-link {
    order: 3;
  }
  .topbar .who {
    order: 4;
  }
  .topbar .theme-toggle {
    order: 5;
  }
}

@media (max-width: 760px) {
  .brand .app.has-section .app-name {
    display: none;
  }
  .brand .app.has-section .app-section {
    display: inline;
  }
}

/* ---------- tab rows (Pages and Behavior › Tabs) ---------- */

/* A section's tab row (Settings, Reports), under the top bar, drawn by
   web/shell.js; and an item's tabs under its title (web/ui/tabs.js). The
   current tab is ink with a 2 px green underline 8 px below its words. */
.section-tabs {
  box-sizing: border-box;
  max-width: calc(var(--content-width) + 48px);
  margin: 0 auto;
  padding: 8px 24px 0;
}
.section-tabs,
.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.tab-row {
  margin: 16px 0;
  border-bottom: 1px solid var(--line);
}
.section-tabs[hidden] {
  display: none;
}
.section-tabs a,
.tab-row a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--steel);
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
}
.section-tabs a:hover,
.tab-row a:hover {
  color: var(--ink);
}
.section-tabs a[aria-current='page'],
.tab-row a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
@media (max-width: 760px) {
  .section-tabs {
    padding: 8px 16px 0;
  }
}

/* ---------- the page column ---------- */

main.page {
  box-sizing: border-box;
  max-width: calc(var(--content-width) + 48px);
  margin: 0 auto;
  padding: 24px;
}
/* A page that needs the whole window (a wide drawing) adds .wide. */
main.page.wide {
  max-width: none;
}
main:focus {
  outline: none;
}
.lede {
  color: var(--steel);
  margin-bottom: 16px;
  max-width: 70ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 760px) {
  main.page {
    padding: 16px;
  }
}

/* ---------- forms (Look › Forms) ---------- */

/* Every field looks like a field: card ground, 1 px gray border, 6 px
   corners, 44 px tall, 16 px text. Text fields that are not logins also
   carry autocomplete="off" data-form-type="other" data-1p-ignore
   data-lpignore="true" in their markup. */
:is(
    input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='hidden'], [type='submit'], [type='button'], [type='reset']),
    select,
    textarea
  ) {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
}
.field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}
.field-error {
  margin-top: 4px;
  color: var(--bad-text);
  font-size: 14px;
}

/* ---------- the ⓘ and its note (web/ui/info.js) ---------- */

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--steel);
  vertical-align: middle;
  cursor: pointer;
}
.info-btn:hover,
.info-btn[aria-expanded='true'] {
  color: var(--ink);
}
.info-note {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 44px;
  margin: 8px 0 12px;
  padding: 8px 56px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
}
.info-note[hidden] {
  display: none;
}
.info-body {
  display: grid;
  gap: 8px;
}
.info-body p {
  margin: 0;
  max-width: 78ch;
}
.info-close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--steel);
  cursor: pointer;
}
.info-close:hover {
  color: var(--ink);
}

/* ---------- segmented control (web/ui/segmented.js) ---------- */

/* The chosen option is an ink chip, never green (Look › Color rules, 3). */
.segments {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--card);
}
.segments button {
  appearance: none;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--steel);
  font: 600 15px/1.2 var(--font);
  cursor: pointer;
}
.segments button:hover {
  color: var(--ink);
  background: var(--hover-wash);
}
.segments button[aria-checked='true'] {
  background: var(--ink);
  color: var(--card);
}
@media (max-width: 760px) {
  .segments button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ---------- toast (web/ui/toast.js) ---------- */

.toasts {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--chrome) 22%, transparent);
  pointer-events: auto;
}
/* Status words with a dot: a soft wash, colored text, a 1 px border. */
.toast.good,
.toast.bad {
  padding-left: 12px;
}
.toast.good::before,
.toast.bad::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.toast.good {
  border-color: var(--good-border);
  background: var(--good-soft);
  color: var(--good-text);
}
.toast.bad {
  border-color: var(--bad-border);
  background: var(--bad-soft);
  color: var(--bad-text);
}
.toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: inherit;
  cursor: pointer;
}

/* ---------- zoom for a drawing (web/ui/zoom-control.js) ---------- */

/* Zoom in and out joined into one control, Fit 8 px below it (Pages and
   Behavior › Maps and drawings), the look of the shared map client. On a
   desktop Zoom in sits over Zoom out; on a phone they sit side by side. */
.zoom-ctl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.zoom-ctl-pair {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--chrome) 16%, transparent);
}
.zoom-ctl button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: 600 15px var(--font);
  cursor: pointer;
}
.zoom-ctl > .zoom-ctl-fit {
  box-shadow: 0 2px 8px color-mix(in srgb, var(--chrome) 16%, transparent);
}
.zoom-ctl-pair button {
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.zoom-ctl-pair button + button {
  border-top: 1px solid var(--gray);
}
.zoom-ctl button svg {
  width: 20px;
  height: 20px;
}
.zoom-ctl button:disabled {
  opacity: 0.55;
  cursor: default;
}
.zoom-ctl-pair:hover,
.zoom-ctl > button:hover {
  border-color: var(--ink);
}
.zoom-ctl-pair button:not(:disabled):hover {
  background: var(--hover-wash);
}
@media (max-width: 760px) {
  .zoom-ctl-pair {
    flex-direction: row-reverse;
  }
  .zoom-ctl-pair button + button {
    border-top: 0;
    border-right: 1px solid var(--gray);
  }
}

/* ---------- a toast's action (web/ui/action-toast.js) ---------- */

.toast-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 2px -8px 2px 8px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.2 var(--font);
  cursor: pointer;
}
.toast-action:hover {
  background: var(--hover-wash);
}
@media (max-width: 760px) {
  .toast-action {
    min-height: 44px;
  }
}

/* ---------- words for screen readers only ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- status chip (web/ui/status.js) ---------- */

/* A status in words: a soft wash, colored text, a 1 px border and a dot
   (Look › Color rules in apps, rule 4). Chips are fully rounded. */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--steel);
  font: 600 13px/1.2 var(--font);
  white-space: nowrap;
  vertical-align: middle;
}
.status-chip::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray);
}
.status-chip.good {
  border-color: var(--good-border);
  background: var(--good-soft);
  color: var(--good-text);
}
.status-chip.warn {
  border-color: var(--warn-border);
  background: var(--warn-soft);
  color: var(--warn-text);
}
.status-chip.bad {
  border-color: var(--bad-border);
  background: var(--bad-soft);
  color: var(--bad-text);
}
.status-chip.info {
  border-color: var(--info-border);
  background: var(--info-soft);
  color: var(--info-text);
}
.status-chip.good::before,
.status-chip.bad::before,
.status-chip.info::before {
  background: currentColor;
}
.status-chip.warn::before {
  background: var(--warn-mark);
}

/* ---------- a short dialog (web/ui/dialog.js) ---------- */

.dlg {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--chrome) 30%, transparent);
}
.dlg::backdrop {
  background: color-mix(in srgb, var(--chrome) 45%, transparent);
}
.dlg-title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}
.dlg-question {
  margin: 0;
}
.dlg-detail {
  margin: 8px 0 0;
  color: var(--steel);
  font-size: 14px;
}
.dlg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- the change record (web/ui/changelog.js) ---------- */

/* By day, then by the action that made the changes, each level indented
   one step behind a thin line (Pages and Behavior › Pages and navigation). */
.clog {
  display: grid;
  gap: 24px;
}
.clog-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}
.clog-count {
  color: var(--steel);
  font-size: 14px;
  font-weight: 400;
}
.clog-day-body {
  display: grid;
  gap: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.clog-action-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.clog-label {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.clog-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  color: var(--steel);
  font-size: 14px;
}
.clog-lines {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--line);
  list-style: none;
}
.clog-text {
  margin: 0;
  overflow-wrap: anywhere;
}
.clog-task {
  margin-right: 4px;
}
.clog-field {
  margin-right: 4px;
  color: var(--steel);
  font-size: 14px;
}
.clog-arrow svg {
  margin: 0 4px;
  color: var(--steel);
  vertical-align: -3px;
}
.clog-text .status-chip {
  margin-left: 4px;
}
.clog-message {
  margin: 2px 0 0;
  color: var(--bad-text);
  font-size: 14px;
}

/* ---------- part 2: comments, mentions, followers and files ----------
   web/pages/work-task/comments.js, files.js and web/ui/mention-picker.js.
   Appended by part 2 (PLAN.md); tokens only. */

/* A mention in a comment: the person's name, set apart in ink on a soft
   wash, never green (green is the screen's action and "you are here"). */
.mention {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--highlight);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.cmt,
.files {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.cmt-sub {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.cmt-n,
.cmt-meta,
.cmt-count,
.files-count {
  color: var(--steel);
  font-weight: 400;
}
.cmt-count,
.files-count {
  margin: 0;
  font-size: 14px;
}
.cmt-none,
.files-none {
  margin: 0;
  color: var(--steel);
}
.files-none {
  padding: 24px 16px;
  border: 1px dashed var(--gray);
  border-radius: var(--radius);
  text-align: center;
}

/* Followers: a heading with its ⓘ and two actions, then the people as chips. */
.cmt-followers {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.cmt-fhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cmt-factions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.cmt-followers .info-note {
  margin: 0;
}
.cmt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cmt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-left: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
}
.cmt-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--steel);
  cursor: pointer;
}
.cmt-chip-x:hover {
  color: var(--ink);
  background: var(--hover-wash);
}

/* The view switch and the count above the thread. */
.cmt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* The thread, oldest first: one card a comment. */
.cmt-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cmt-item {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  scroll-margin-top: 96px;
}
/* The comment an Inbox link opened the thread at (#comment-<id>). */
.cmt-item.is-target {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--highlight);
}
.cmt-item.is-target .mention {
  background: var(--card);
}
.cmt-by {
  margin: 0 0 4px;
  font-size: 14px;
}
.cmt-author {
  font-weight: 600;
}
.cmt-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cmt-own {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cmt-edit {
  display: grid;
  gap: 8px;
}

/* The composer: label, field, who will be told, then the actions. */
.cmt-compose {
  display: grid;
  gap: 8px;
}
.cmt-compose[hidden] {
  display: none;
}
.cmt-compose .field-label {
  margin: 0;
}
.cmt-field {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
.cmt-told {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
}
.cmt-send {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* All activity: by day, one line an event, the time on the left. */
.cmt-feed {
  display: grid;
  gap: 16px;
}
.cmt-day-head {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.cmt-day-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--line);
  list-style: none;
}
.cmt-act {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.cmt-at {
  color: var(--steel);
  font-size: 14px;
}
.cmt-line {
  margin: 0;
  overflow-wrap: anywhere;
}
.cmt-act.is-comment .cmt-text {
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

/* The person picker (web/ui/mention-picker.js), opened in place. */
.mention-picker {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--card);
}
.mention-picker[hidden] {
  display: none;
}
.mp-head .field-label {
  margin: 0 0 4px;
}
.mp-row {
  display: flex;
  gap: 8px;
}
.mp-search {
  flex: 1;
  min-width: 0;
}
.mp-close {
  width: 44px;
  min-height: 44px;
  padding: 0;
}
.mp-close svg {
  width: 20px;
  height: 20px;
}
.mp-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  max-height: 352px;
  overflow-y: auto;
  list-style: none;
}
.mp-list[hidden] {
  display: none;
}
.mp-option {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-height: 44px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 4px;
  cursor: pointer;
}
.mp-option:hover {
  background: var(--hover-wash);
}
.mp-option[aria-selected='true'] {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.mp-name {
  font-weight: 600;
}
.mp-meta {
  color: var(--steel);
  font-size: 14px;
}
.mp-empty {
  margin: 0;
  padding: 8px 4px;
  color: var(--steel);
}

/* Files: the count and the one green action, then the list. */
.files-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.files-actions {
  margin-left: auto;
}
.files .info-note {
  margin: 0;
}
.files-errors:empty {
  display: none;
}
.files-errors .field-error {
  margin: 0;
}
.files-drop {
  display: grid;
  gap: 8px;
  padding: 8px;
  margin: -8px;
  border: 1px dashed transparent;
  border-radius: var(--radius);
}
.files-drop.over {
  border-color: var(--ink);
  background: var(--hover-wash);
}
.files-hint {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
}
.file-list {
  display: grid;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  list-style: none;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}
.file-row + .file-row {
  border-top: 1px solid var(--line);
}
.file-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}
.file-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.file-kind {
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
}
.file-main {
  flex: 1;
  min-width: 0;
}
.file-name,
.file-meta {
  margin: 0;
  overflow-wrap: anywhere;
}
.file-meta {
  color: var(--steel);
  font-size: 14px;
}

@media (hover: none), (max-width: 760px) {
  .files-hint {
    display: none;
  }
}
@media (max-width: 760px) {
  .cmt-followers {
    padding: 12px;
  }
  .cmt-factions {
    margin-left: 0;
    width: 100%;
  }
  .cmt-chip {
    min-height: 44px;
  }
  .cmt-chip-x {
    width: 44px;
    height: 44px;
  }
  .cmt-act {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .cmt-send .btn {
    flex: 1;
  }
  .file-row {
    flex-wrap: wrap;
  }
  .file-main {
    flex-basis: calc(100% - 60px);
  }
  .file-row .btn {
    margin-left: 60px;
  }
}

/* ---------- Refine: home ---------- */

/* Report issue on the bar: an outline like Search (the bar's one green
   button stays New), right after New on a desk; first in the phone menu. */
.topbar .report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--on-chrome) 50%, transparent);
  border-radius: var(--radius);
  color: var(--on-chrome);
  font: 600 15px var(--font);
  text-decoration: none;
  white-space: nowrap;
}
.topbar .report-link:hover,
.topbar .report-link[aria-current='page'] {
  border-color: var(--on-chrome);
}
/* On /issue: marked like the nav's current item. */
.topbar .report-link[aria-current='page'] span {
  text-decoration: underline;
  text-decoration-color: var(--green-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.topbar .report-link svg {
  width: 16px;
  height: 16px;
}
@media (min-width: 761px) {
  .topbar .report-link {
    order: 3;
  }
  .topbar .who {
    white-space: nowrap;
  }
}
/* A narrower desk: Report issue keeps its icon and its name for screen
   readers and the tooltip, so the bar stays on one line. */
@media (min-width: 761px) and (max-width: 1439px) {
  .topbar .report-link {
    padding: 0 11px;
  }
  .topbar .report-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .topbar[data-menu='open'] .report-link {
    justify-content: flex-start;
    min-height: 44px;
    margin: 4px 0 8px;
    font-size: 16px;
  }
  .topbar[data-menu='open'] .report-link svg {
    width: 20px;
    height: 20px;
  }
}

/* ---------- Refine: schedule ---------- */

/* A project's frame (web/pages/project/frame.js): the title, its ⓘ and the
   Board, List and Schedule tabs on one line, at the same place on all three
   tabs: the page's 24 px gutter (16 px on a phone), 16 px under the top bar.
   The List's page brings that padding itself; the Board and the Schedule
   fill the window with none, so the line brings it there. */
.project-head.pf-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 0 32px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.pf-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pf-row .tab-row {
  margin: 0;
  border-bottom: 0;
}
main.page:not(.kb-page, .tl-page):has(> .project-head.pf-row) {
  padding-top: 16px;
}
main.page.kb-page > .project-head.pf-row,
main.page.tl-page > .project-head.pf-row {
  flex: none;
  margin: 16px 24px 0;
}
main.page.kb-page > .pf-row + .info-note,
main.page.tl-page > .pf-row + .info-note {
  flex: none;
  margin: 8px 24px 0;
}
@media (max-width: 760px) {
  .project-head.pf-row {
    gap: 0 24px;
  }
  main.page.kb-page > .project-head.pf-row,
  main.page.tl-page > .project-head.pf-row {
    margin: 16px 16px 0;
  }
  main.page.kb-page > .pf-row + .info-note,
  main.page.tl-page > .pf-row + .info-note {
    margin: 8px 16px 0;
  }
}

/* ---------- Sign-in and access ---------- */

/* A copy nobody signs in to (local, not signed in) says so beside the name:
   in the phone's menu, and in the bar where it has room (the name carries
   the same words as its title in between). */
.topbar .who-note {
  font-size: 12px;
  color: var(--on-chrome);
  white-space: nowrap;
}
@media (min-width: 761px) {
  .topbar .who-note {
    order: 4;
  }
}
@media (min-width: 761px) and (max-width: 1439px) {
  .topbar .who-note {
    display: none;
  }
}
.topbar[data-menu='open'] .who-note {
  margin: -4px 0 8px;
}

/* The sign-in page: the black top bar with the lockup and the theme
   switch, then one green button. */
.signin-bar .theme-toggle {
  margin-left: auto;
}
main.page.signin {
  max-width: 480px;
  padding-top: 48px;
}
.signin .lede {
  margin: 0 0 24px;
  color: var(--steel);
}
.signin-error {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--bad-border);
  border-radius: var(--radius);
  background: var(--bad-soft);
  color: var(--bad-text);
}
@media (max-width: 760px) {
  .signin-bar .theme-toggle button {
    min-height: 44px;
  }
  .signin-btn {
    width: 100%;
    min-height: 44px;
  }
}

/* ---------- Scheduling rules (SPEC 3.7): today's plan in hours, open time, "Was due", clashes ---------- */

.sr-panel {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.sr-head {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sr-shift {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
}
.sr-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sr-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 14px;
  line-height: 1.3;
}
.sr-time {
  color: var(--steel);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.sr-name {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.sr-name:hover {
  text-decoration: underline;
}
.sr-meta {
  color: var(--steel);
  font-size: 13px;
}
.sr-late {
  color: var(--warn-text);
}
.sr-free {
  border-style: dashed;
  background: transparent;
}
.sr-sub {
  margin: 8px 0 0;
  font-size: 15px;
}
.sr-fit {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.sr-fit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sr-pull {
  min-height: 36px;
}
.sr-none {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
}
.cwb-was {
  color: var(--steel);
}
.cwb-clash-word {
  margin-right: 4px;
  color: var(--warn-text);
  font-weight: 600;
}
.cwb-clash-words {
  color: var(--warn-text);
}
.cwb-card.is-clash {
  outline: 1px dashed var(--warn-mark);
  outline-offset: -1px;
}
@media (max-width: 760px) {
  .sr-panel {
    margin-bottom: 16px;
  }
  .sr-pull {
    min-height: 44px;
    min-width: 44px;
  }
  a.sr-name {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
/* Settings › People: the working day's start and end, side by side. */
.adm-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.adm-pair-word {
  color: var(--steel);
}
@media (max-width: 760px) {
  .adm-pair select {
    min-height: 44px;
  }
}
