/* IYKONECT Workforce Monitor — dashboard design system.
   Brand colours are sampled from the official IY CONNECT logo and stay constant
   across light/dark; only the neutral surfaces flip. */

:root {
  /* brand (mode-independent) */
  --brand-orange: #F09838;
  --brand-orange-dk: #D9822B;
  --brand-blue: #1058A8;
  --brand-blue-dk: #084890;
  --brand-green: #12A050;
  --danger: #D64545;

  /* light neutrals */
  --canvas: #EEF2F7;
  --surface: #FFFFFF;
  --surface-2: #F6F9FC;
  --header: #FFFFFF;
  --field: #FFFFFF;
  --line: #DCE3ED;
  --ink: #16233A;
  --ink-muted: #5B6B82;
  --ink-faint: #8A99AD;
  --title-fg: #084890;
  --green-text: #0C6A34;
  --shadow: 0 1px 2px rgba(16, 35, 58, .06), 0 8px 24px rgba(16, 35, 58, .06);
  --ok-bg: #DCFCE7; --ok-fg: #166534;
  --warn-bg: #FEF3C7; --warn-fg: #92400E;
  --high-bg: #FEE2E2; --high-fg: #991B1B;
  --none-bg: #EEF2F7; --none-fg: #64748B;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #0F141C;
  --surface: #171E29;
  --surface-2: #1E2733;
  --header: #171E29;
  --field: #1E2733;
  --line: #2C3644;
  --ink: #E8EDF4;
  --ink-muted: #A6B2C2;
  --ink-faint: #6D7C90;
  --title-fg: #8FB8E8;
  --green-text: #3DBB6E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --ok-bg: #12321F; --ok-fg: #5FD08A;
  --warn-bg: #3A2A10; --warn-fg: #E8B45C;
  --high-bg: #3A1A1A; --high-fg: #F08A8A;
  --none-bg: #232D3A; --none-fg: #8A99AD;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--title-fg); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.topbar {
  background: var(--header);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-accent { height: 3px; background: var(--brand-orange); }
.topbar-inner {
  max-width: 1460px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* white chip keeps the logo legible on the dark header too */
.brand-logo { background: #fff; border-radius: 8px; padding: 6px 9px; display: flex; }
.brand-logo img { height: 26px; display: block; }
.brand-divider { width: 1px; align-self: stretch; background: var(--line); }
.brand-name { font-size: 14px; font-weight: 700; color: var(--title-fg);
              line-height: 1.15; white-space: nowrap; }
.brand-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em;
             color: var(--ink-faint); white-space: nowrap; }

.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topnav a {
  color: var(--ink-muted); font-size: 13px; font-weight: 600;
  padding: 8px 9px; border-radius: 8px; white-space: nowrap;
}
.topnav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.topnav a.active { color: var(--title-fg); background: var(--surface-2); }

.user-chip {
  display: flex; align-items: center; gap: 9px; padding-left: 14px;
  margin-left: 8px; border-left: 1px solid var(--line);
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-blue);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-meta { line-height: 1.2; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; }
.role-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-orange);
}

.icon-btn {
  background: transparent; border: 1px solid var(--line); color: var(--ink-muted);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 13px;
  font-weight: 600; font-family: inherit; line-height: 1; white-space: nowrap;
}
.icon-btn:hover { border-color: var(--brand-blue); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { max-width: 1460px; margin: 0 auto; padding: 26px 20px 64px; }
.page-head { margin-bottom: 18px; }
h1 { font-size: 25px; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 26px 0 10px; letter-spacing: .01em; }
.sub { color: var(--ink-muted); font-size: 14px; margin: 0; }
.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-orange); margin-bottom: 6px;
}

/* ---------- cards / stat tiles ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.card .label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint); font-weight: 700;
}
.card .value { font-size: 26px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.02em; }
.card .sub2 { font-size: 12px; color: var(--ink-faint); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 18px 14px; margin: 16px 0; box-shadow: var(--shadow);
}
.panel-title {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); padding: 14px 0 2px;
}

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
th {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint); font-weight: 700;
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.strong { font-weight: 600; }

/* ---------- badges ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.review { background: var(--warn-bg); color: var(--warn-fg); }
.badge.high { background: var(--high-bg); color: var(--high-fg); }
.badge.none { background: var(--none-bg); color: var(--none-fg); }

/* ---------- forms ---------- */
form.filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
  background: var(--surface); border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow); margin: 10px 0;
}
form.filters label, .field {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
}
input, select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; font-weight: 400;
  background: var(--field); color: var(--ink); letter-spacing: 0; text-transform: none;
}
input:focus, select:focus { outline: 2px solid var(--brand-blue); outline-offset: -1px; border-color: var(--brand-blue); }

.btn {
  background: var(--brand-blue); color: #fff; border: none; border-radius: 8px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; display: inline-block;
}
.btn:hover { background: var(--brand-blue-dk); text-decoration: none; color: #fff; }
.btn.ghost { background: var(--surface); color: var(--title-fg); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface-2); color: var(--title-fg); border-color: var(--brand-blue); }
.btn.warn { background: var(--brand-orange); color: #fff; }
.btn.warn:hover { background: var(--brand-orange-dk); }
.link {
  background: none; border: 1px solid var(--line); color: var(--ink-muted);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px;
  font-weight: 600; font-family: inherit;
}
.link:hover { border-color: var(--brand-blue); color: var(--ink); }
.actions { display: flex; gap: 10px; margin: 12px 0; }

/* ---------- progress ---------- */
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--brand-green); border-radius: 999px; }

/* ---------- screenshots ---------- */
.shots { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 0; }
.shot { width: 220px; }
.shot img { width: 220px; border: 1px solid var(--line); border-radius: 8px; }
.shot .cap { font-size: 11px; color: var(--ink-faint); margin-top: 5px; }
.withheld, .sealed {
  width: 220px; height: 124px; border-radius: 8px; display: flex; text-align: center;
  align-items: center; justify-content: center; color: var(--ink-muted);
  font-size: 12px; padding: 10px; border: 1px dashed var(--line); background: var(--surface-2);
}
.withheld { border-color: var(--brand-orange); color: var(--warn-fg); background: var(--warn-bg); }

/* ---------- live state (§5 idle alerting) ---------- */
.badge.live-active { background: var(--ok-bg); color: var(--ok-fg); }
.badge.live-idle { background: var(--warn-bg); color: var(--warn-fg); }
.badge.live-paused { background: var(--none-bg); color: var(--none-fg); }
.badge.live-offline { background: transparent; color: var(--ink-faint); border: 1px solid var(--line); }
.muted-inline { color: var(--ink-faint); font-size: 12px; margin-left: 4px; }
.muted-cell { color: var(--ink-muted); }

/* day states — the answer to "where is this person in their working day?" */
.badge.day-working { background: var(--ok-bg); color: var(--ok-fg); }
.badge.day-idle { background: var(--warn-bg); color: var(--warn-fg); }
.badge.day-paused { background: var(--none-bg); color: var(--none-fg); }
.badge.day-between_sessions { background: #E4EDFA; color: #1E4B85; }
.badge.day-finished { background: var(--none-bg); color: var(--none-fg); }
.badge.day-not_started { background: transparent; color: var(--ink-faint); border: 1px solid var(--line); }
/* On leave is an explanation, not a problem — reads calm, never alarming. */
.badge.day-on_leave { background: var(--none-bg); color: var(--brand-blue-dk); border: 1px solid var(--brand-blue); }
:root[data-theme="dark"] .badge.day-between_sessions { background: #1B2C42; color: #8FB8E8; }

.live-card.day-working { border-left-color: var(--brand-green); }
.live-card.day-idle { border-left-color: var(--brand-orange); }
.live-card.day-paused { border-left-color: var(--ink-faint); }
.live-card.day-between_sessions { border-left-color: var(--brand-blue); }
.live-card.day-finished { border-left-color: var(--ink-faint); opacity: .8; }
.live-card.day-not_started { border-left-color: var(--line); opacity: .65; }
.live-card.day-on_leave { border-left-color: var(--brand-blue); opacity: .85; }

.live-day {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-muted);
}
.live-day b { color: var(--ink-faint); font-weight: 700; font-size: 10px;
              text-transform: uppercase; letter-spacing: .06em; margin-right: 3px; }
.live-source { font-size: 11px; color: var(--ink-faint); margin-top: 6px; font-style: italic; }

.alert-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--warn-bg); color: var(--warn-fg);
  border: 1px solid var(--brand-orange); border-left-width: 4px;
  border-radius: 10px; padding: 12px 16px; margin: 4px 0 14px; font-size: 14px;
}
.alert-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand-orange);
  flex: none; animation: pulse 2s ease-in-out infinite;
}
.alert-names { color: var(--ink-muted); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .alert-dot { animation: none; } }

/* ---------- live view ---------- */
.live-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.sum-chip {
  display: flex; align-items: baseline; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 10px; padding: 9px 14px; box-shadow: var(--shadow);
}
.sum-count { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-label { font-size: 11px; font-weight: 700; letter-spacing: .06em;
             text-transform: uppercase; color: var(--ink-faint); }
.sum-working { border-left-color: var(--brand-green); }
.sum-idle { border-left-color: var(--brand-orange); }
.sum-paused { border-left-color: var(--ink-faint); }
.sum-between_sessions { border-left-color: var(--brand-blue); }
.sum-finished { border-left-color: var(--ink-faint); }
.sum-not_started { border-left-color: var(--line); }

.live-panel { padding: 0; overflow: hidden; }
.live-table { table-layout: fixed; }
.live-table thead th {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}
.live-table td { padding: 12px 14px; vertical-align: middle; }
.live-table .col-person { width: 22%; }
.live-table .col-status { width: 16%; }
.live-table .col-project { width: 17%; }
.live-table .col-time { width: 9%; }
.live-table .col-sess { width: 9%; }

/* the status colour reads down the left edge, so a scan finds people fast */
.live-row td:first-child { border-left: 3px solid transparent; }
.live-row.day-working td:first-child { border-left-color: var(--brand-green); }
.live-row.day-idle td:first-child { border-left-color: var(--brand-orange); }
.live-row.day-paused td:first-child { border-left-color: var(--ink-faint); }
.live-row.day-between_sessions td:first-child { border-left-color: var(--brand-blue); }
.live-row.day-finished td:first-child { border-left-color: var(--ink-faint); }
.live-row.day-not_started { opacity: .7; }
.live-row.live-flash { background: var(--surface-2); }
.live-row { transition: background-color .6s ease; }

.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-blue);
  color: #fff; font-size: 12px; font-weight: 700; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.person-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.person-name { font-size: 14px; font-weight: 700; }
.person-dept { font-size: 10px; font-weight: 700; letter-spacing: .07em;
               text-transform: uppercase; color: var(--ink-faint); }

.status-note { display: block; font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.doing-app {
  display: block; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doing-detail {
  display: block; font-size: 11px; color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.col-project { color: var(--ink-muted); overflow: hidden;
               text-overflow: ellipsis; white-space: nowrap; }
.col-time, .col-sess { font-variant-numeric: tabular-nums; font-weight: 600; }
.inferred { color: var(--brand-orange); font-weight: 700; cursor: help; }

.stream-state { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
                background: var(--none-bg); color: var(--none-fg); }
.stream-state.stream-ok { background: var(--ok-bg); color: var(--ok-fg); }
.stream-state.stream-warn { background: var(--warn-bg); color: var(--warn-fg); }

@media (max-width: 1100px) {
  .live-table .col-project, .live-table .col-sess { display: none; }
}
@media (prefers-reduced-motion: reduce) { .live-row { transition: none; } }

/* ---------- toasts ---------- */
.toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px; max-width: 340px;
}
.toast {
  position: relative; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--brand-orange);
  border-radius: 10px; padding: 14px 34px 14px 16px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease;
}
.toast.toast-in { opacity: 1; transform: translateY(0); }
.toast-title { font-weight: 700; font-size: 14px; }
.toast-body { font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.toast-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; }
.toast-close {
  position: absolute; top: 8px; right: 8px; background: none; border: none;
  color: var(--ink-faint); cursor: pointer; font-size: 13px; line-height: 1; padding: 4px;
}
.toast-close:hover { color: var(--ink); }

.empty { color: var(--ink-faint); font-style: italic; }
.note { font-size: 12px; color: var(--ink-faint); padding: 6px 0 2px; margin: 10px 0 0; }
.cap { font-size: 11px; color: var(--ink-faint); margin-top: 5px; }

/* side-by-side panels (e.g. BPO calls per hour / per client) */
.split { display: flex; gap: 20px; flex-wrap: wrap; }
.split-col { flex: 1; min-width: 240px; }
.panel-h3 { font-size: 13px; color: var(--ink-muted); margin: 12px 2px 4px; }
.hr-case { margin: 10px 2px; font-weight: 600; }

.flaglist { list-style: none; padding: 0; margin: 0; }
.flaglist li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.flaglist li:last-child { border-bottom: none; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 32px; text-align: left;
}
.login-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.login-brand .brand-logo { padding: 10px 14px; }
.login-brand img { height: 34px; display: block; }
.login-card h1 { font-size: 21px; text-align: center; }
.login-card .sub { text-align: center; margin-bottom: 22px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form .btn { width: 100%; padding: 11px; font-size: 15px; margin-top: 4px; }
.err {
  background: var(--high-bg); color: var(--high-fg); padding: 10px 13px;
  border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.login-foot { text-align: center; font-size: 11px; color: var(--ink-faint); margin-top: 20px; }

@media (max-width: 860px) {
  .topnav a { padding: 8px; font-size: 13px; }
  .user-meta { display: none; }
}


/* ---------- guide page ---------- */
.guide-layout { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: start; }
.guide-side {
  position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.guide-side a {
  font-size: 13px; padding: 7px 0; color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.guide-side a:last-child { border-bottom: none; }
.guide-side a:hover { color: var(--title-fg); text-decoration: none; }
.guide-body h2 { margin-top: 26px; font-size: 16px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-list { margin: 12px 0; padding-left: 20px; }
.guide-list li { padding: 5px 0; font-size: 14px; color: var(--ink-muted); }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-side { position: static; }
}

/* ---------- guided tour ---------- */
.tour-overlay { position: fixed; inset: 0; background: rgba(8, 12, 20, .55); z-index: 80; }
.tour-pop {
  position: absolute; width: 320px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--brand-orange);
  border-radius: 12px; padding: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.tour-step { font-size: 10px; font-weight: 700; letter-spacing: .08em;
             text-transform: uppercase; color: var(--brand-orange); }
.tour-title { font-size: 16px; font-weight: 700; margin: 6px 0 4px; }
.tour-body { font-size: 13px; color: var(--ink-muted); }
.tour-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.tour-target {
  position: relative; z-index: 81; border-radius: 8px;
  box-shadow: 0 0 0 3px var(--brand-orange), 0 0 0 9999px rgba(8, 12, 20, .55);
}


/* ---------- variance + inline edit ---------- */
.over { color: var(--warn-fg); font-weight: 700; }
.under { color: var(--title-fg); font-weight: 700; }
:root[data-theme="dark"] .over { color: #E8B45C; }
.cell-input {
  width: 100%; padding: 5px 7px; font-size: 13px;
  background: var(--field); border: 1px solid var(--line); border-radius: 6px;
}
.cell-num { max-width: 90px; text-align: right; }
.row-actions { white-space: nowrap; }
td form { display: contents; }


/* ---------- recognised apps ---------- */
.check-label, .pick-label { justify-content: flex-end; }
.check-label span { text-transform: none; letter-spacing: 0; font-weight: 600;
                    font-size: 12px; color: var(--ink-muted); }
.check-label input { width: auto; margin-right: 6px; }
.app-picker { padding: 6px; font-size: 12px; max-width: 210px; }
.picked-app { font-size: 12px; color: var(--ink-faint); margin: 2px 0 10px; }
.picked-app.picked-ok { color: var(--green-text); font-weight: 600; }
.picked-app.picked-warn { color: var(--warn-fg); font-weight: 600; }
td.center { text-align: center; }
code { font-family: Consolas, monospace; font-size: 12px;
       background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* --- §3 Daily Worklog + §8 Client Timesheet Export layouts ---------------- */
.worklog-title { letter-spacing: .01em; }

.worklog-summary { padding: 20px 22px; }

.worklog-row {
  display: grid;
  grid-template-columns: 110px 90px 150px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.worklog-row:last-of-type { border-bottom: none; }
.wl-session  { font-weight: 700; }
.wl-source   { color: var(--ink-muted); }
.wl-times    { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.wl-billable { font-weight: 600; }

.worklog-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--brand-orange);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.worklog-actions { margin-top: 16px; flex-wrap: wrap; gap: 10px; }

.report-line {
  margin: 4px 0 16px;
  color: var(--ink-muted);
  font-size: 14px;
}
.report-line strong { color: var(--ink); }

@media (max-width: 720px) {
  .worklog-row { grid-template-columns: 1fr 1fr; }
}

/* Inline edit row on the project list (§9 add / edit / remove). */
.row-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.row-form input[type="text"] { min-width: 140px; }
.preset-row { margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }

/* Per-requirement how-to blocks in the role guide. */
.req-panel { margin-bottom: 16px; }
.req-asks {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.guide-steps { margin: 0; padding-left: 22px; }
.guide-steps li { margin-bottom: 8px; line-height: 1.55; }
.guide-steps li:last-child { margin-bottom: 0; }
.guide-side .sub-link {
  padding-left: 14px;
  font-size: 13px;
  opacity: .82;
}

/* Checkbox that sits inline with the other filter controls. */
/* Reads as a sentence, not a field caption — it must beat form.filters label. */
form.filters label.check,
.row-form label.check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
label.check input { width: auto; }

/* Field-width utilities. Inline style attributes are blocked by the CSP. */
.w-xs { width: 4.5rem; }
.w-sm { width: 9rem; }
.w-lg { min-width: 16rem; }
