:root {
  color-scheme: light;
  --paper: #f5f5ef;
  --white: #ffffff;
  --ink: #1f342c;
  --muted: #576860;
  --green: #365d4f;
  --mint: #e5eee4;
  --line: #dce3d9;
  --rust: #903f31;
  --pink: #f8eae5;
  font: 100%/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, p, h1, h2, h3, dl { margin: 0; }
h1, h2, .wordmark { font-family: Georgia, serif; font-weight: 400; line-height: 1.13; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.8rem, 6vw, 4.25rem); }
h2 { font-size: 2rem; }
h3 { font-size: 1.05rem; }
button, input, textarea { font: inherit; }
button {
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: .6rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--mint); }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover { background: #294a3e; }
.quiet { border-color: transparent; background: transparent; color: var(--green); }
input, textarea {
  min-width: 0;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: .65rem .75rem;
  color: var(--ink);
}
textarea { resize: vertical; }
input[type="file"]::file-selector-button {
  background: var(--mint);
  border: 0;
  border-radius: .4rem;
  color: var(--green);
  padding: .35rem .6rem;
  margin-inline-end: .6rem;
  font: inherit;
}
label { display: grid; gap: .35rem; font-weight: 600; font-size: .94rem; }
.login { display: grid; place-items: center; min-height: 100svh; padding: 1rem; }
.login-panel, dialog { background: var(--white); border: 1px solid var(--line); border-radius: 1.25rem; }
.login-panel { max-width: 29rem; width: 100%; padding: clamp(1.5rem, 6vw, 2.75rem); display: grid; gap: 1.15rem; }
.login-panel p { color: var(--muted); }
.login-panel form, #task-form { display: grid; gap: .95rem; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .layout { max-width: 76rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.4rem); }
.top-inner { min-height: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wordmark { font-size: 1.5rem; }
.layout { padding-block: clamp(1.8rem, 5vw, 3.5rem); }
.heading { display: flex; gap: 1.2rem; justify-content: space-between; align-items: end; margin-bottom: 1.6rem; }
.today { color: var(--muted); margin-bottom: .3rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.45rem; }
.metrics button {
  display: grid;
  gap: .5rem;
  text-align: left;
  padding: .9rem clamp(.65rem, 3vw, 1.2rem);
  font-size: .91rem;
  font-weight: 500;
  border-radius: .95rem;
}
.metrics strong { font-size: 1.9rem; font-weight: 600; line-height: 1; }
.metrics .overdue strong { color: var(--rust); }
.metrics button[aria-pressed="true"] { background: var(--mint); border-color: var(--green); }
.board { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.board-tools, .board-footer { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .8rem 1rem; }
.board-tools { flex-wrap: wrap; }
.board-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; min-height: 3.3rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .2rem; }
.tabs button { border-color: transparent; font-size: .9rem; padding: .42rem .7rem; }
.tabs button[aria-pressed="true"] { background: var(--mint); color: var(--green); }
.search { width: min(100%, 16rem); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; min-width: 40rem; }
th, td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); background: #f8faf7; font-size: .88rem; font-weight: 600; }
td { font-size: .92rem; overflow-wrap: anywhere; }
td:first-child { width: 39%; }
td:nth-child(2) { width: 23%; }
td:nth-child(3) { width: 22%; }
.task-link { background: transparent; border: 0; padding: 0; text-align: left; font-size: 1rem; }
.task-link:hover { background: transparent; text-decoration: underline; }
.excerpt, .hint { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.excerpt { margin-top: .2rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; }
.badge { display: inline-block; white-space: nowrap; background: var(--mint); border-radius: 1rem; padding: .16rem .5rem; color: var(--green); font-size: .875rem; }
.badge.late { color: var(--rust); background: var(--pink); }
.empty { padding: 3.5rem 1rem; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
#board-notice { padding: .4rem 1rem .7rem; color: var(--rust); }
dialog { width: min(39rem, calc(100% - 1.5rem)); max-height: 90dvh; padding: clamp(1rem, 4vw, 1.65rem); color: var(--ink); }
dialog::backdrop { background: rgb(24 42 34 / 50%); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: .7rem; margin-bottom: 1.05rem; }
.error, .login-panel .error { color: var(--rust); margin-bottom: .6rem; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 1rem; }
#detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: .75rem; background: var(--paper); border-radius: .7rem; padding: .85rem; }
dt { font-size: .88rem; color: var(--muted); }
dd { margin: .18rem 0 0; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); padding: .25rem 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }
#detail-files, #settings h3 { margin-top: 1rem; }
#detail-files h3 { margin-bottom: .4rem; }
#settings-notice { margin-top: .5rem; }
.inbox { overflow-wrap: anywhere; font-weight: 600; margin-block: .3rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 42rem) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody, table { display: block; }
  tr { display: grid; grid-template-columns: 1fr auto; gap: .4rem .75rem; padding: .85rem 1rem; border-top: 1px solid var(--line); }
  td, td:first-child, td:nth-child(2), td:nth-child(3) { padding: 0; border: 0; width: auto; }
  td:first-child { grid-column: 1 / -1; }
  td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 30rem) {
  .heading { align-items: start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
}

:root {
  --paper: #f4f6f2;
  --mint: #e1ece3;
  --green: #2c5949;
  --line: #dbe4dc;
  --muted: #526458;
}
#workspace { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); min-height: 100svh; }
.sidebar {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 1.7rem;
  padding: 1.4rem .8rem; background: #eaf0e9; border-right: 1px solid var(--line);
}
.sidebar .wordmark { padding-inline: .65rem; font-size: 2rem; }
.sidebar .tabs { display: grid; gap: .3rem; }
.sidebar .tabs button {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  background: transparent; font-size: .96rem; padding: .66rem .7rem; min-height: 44px;
}
.sidebar .tabs button:hover, .sidebar .tabs button[aria-pressed="true"] { background: #d6e6d9; color: #234f3c; }
.sidebar .tabs button span { width: 1rem; text-align: center; font-size: 1.1rem; }
.account { margin-top: auto; text-align: left; overflow-wrap: anywhere; }
.account small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; }
.layout { width: 100%; max-width: 100rem; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.heading { align-items: center; }
.heading h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.heading .primary { min-height: 44px; }
.metrics button {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; min-height: 4.65rem; border-radius: .85rem; color: var(--green);
}
.metrics .overdue { color: var(--rust); }
.board-tools { background: #fcfdfb; }
.search { width: min(100%, 22rem); }
.sort { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
select {
  border: 1px solid var(--line); border-radius: .55rem; background: var(--white);
  padding: .52rem .65rem; color: var(--ink); font: inherit; min-height: 42px;
}
tbody tr:hover, tbody tr.selected { background: #f0f6ef; }
.task-link { min-height: 34px; color: #244d3c; }
.file-count { display: inline-block; margin-top: .28rem; color: var(--muted); font-size: .85rem; }
#task-form .actions { position: sticky; bottom: -1px; background: white; padding-block: .65rem .25rem; }
#task-dialog {
  width: min(53rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
}
#task-dialog > .dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: start;
  margin: 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
#task-heading { min-width: 0; }
#close-task { flex: none; }
#task-dialog > #task-detail, #task-dialog > #task-form {
  padding: clamp(1rem, 3vw, 1.6rem);
}
#task-dialog > .error { margin: 1rem 1.6rem 0; }
#task-detail .description { line-height: 1.65; }
#task-detail .actions { margin-top: 1.2rem; }
@media (max-width: 42rem) {
  #task-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  #task-heading { font-size: 1.6rem; }
}
@media (max-width: 58rem) {
  #workspace { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; gap: .55rem; padding: .65rem 1rem; border: 0; border-bottom: 1px solid var(--line); }
  .sidebar .wordmark { padding: 0; }
  .sidebar .tabs { display: flex; gap: .2rem; }
  .sidebar .tabs button { width: auto; }
  .account { position: absolute; top: .6rem; right: .6rem; max-width: 60%; }
  .account small { display: none; }
}
@media (max-width: 30rem) {
  .heading { flex-direction: row; align-items: center; }
  .heading .primary { padding-inline: .55rem; white-space: nowrap; }
  .sidebar .tabs button { padding-inline: .42rem; gap: .28rem; font-size: .86rem; }
  .sidebar .tabs button span { display: none; }
  .sort span { display: none; }
  .search { flex: 1; }
  .metrics button { align-content: space-between; flex-direction: column-reverse; align-items: start; }
}
#profile-form { display: grid; gap: .95rem; }
.assignee-fields { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; display: grid; gap: .55rem; }
.assignee-fields legend { padding-inline: .22rem; font-weight: 600; }
.assignee-fields input[readonly] { background: var(--paper); }
.employee-results { list-style: none; margin: 0; padding: 0; max-height: 12rem; overflow: auto; border: 1px solid var(--line); border-radius: .55rem; }
.employee-results button { border: 0; width: 100%; text-align: left; }
.employee-results button small { display: block; color: var(--muted); overflow-wrap: anywhere; }
#clear-assignee { justify-self: start; }
#reschedule-task { margin-top: .4rem; }
#deadline-history { margin-top: 1rem; }
#deadline-changes { list-style: none; margin: .35rem 0 0; padding: 0; }
#deadline-changes li { display: grid; gap: .15rem; padding: .55rem 0; border-top: 1px solid var(--line); }
#deadline-changes small { color: var(--muted); }

:root {
  --paper: #f2f5f9;
  --white: #fff;
  --ink: #202a3a;
  --muted: #4e5e73;
  --green: #aa1730;
  --mint: #e9eff7;
  --line: #dbe2eb;
  --rust: #8f172a;
  --pink: #f9e9ec;
  --blue: #29486f;
  --focus: #245b9c;
}
.government-header { background: white; border-bottom: 3px solid var(--green); }
.government-inner { display: flex; align-items: center; gap: .85rem; min-height: 5.15rem; padding: .65rem clamp(1rem, 3vw, 2.3rem); }
.government-inner img { width: clamp(2.15rem, 5vw, 2.9rem); height: auto; flex: none; }
.government-title { font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 750; line-height: 1.2; }
.government-department { font-size: clamp(.8rem, 1.5vw, .95rem); color: var(--muted); line-height: 1.3; margin-top: .2rem; }
h1, h2, .wordmark { font-family: inherit; font-weight: 730; letter-spacing: -.025em; }
.login { min-height: calc(100svh - 5.15rem); }
#workspace { min-height: calc(100svh - 5.15rem); }
.sidebar { background: #fff; height: calc(100svh - 5.15rem); }
.sidebar .wordmark { font-size: 1.5rem; }
.sidebar .tabs button { color: var(--ink); border-radius: .4rem; }
.sidebar .tabs button:hover, .sidebar .tabs button[aria-pressed="true"] { background: var(--mint); color: var(--blue); }
.sidebar .tabs button[aria-pressed="true"] { box-shadow: inset 3px 0 var(--green); }
.account, .quiet { color: var(--blue); }
.primary { border-radius: .5rem; }
.primary:hover { background: #8f1329; }
.metrics button { color: var(--ink); border-radius: .65rem; }
.metrics strong { color: var(--blue); }
.metrics button[aria-pressed="true"] { border-color: var(--blue); }
.task-link { color: var(--blue); }
.board-tools, th { background: #f7f9fc; }
tbody tr:hover, tbody tr.selected { background: #eef3f9; }
.badge { color: var(--blue); }
.badge.done { color: #23523b; background: #e1f1e7; }
dialog::backdrop { background: rgb(20 33 54 / 46%); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 58rem) {
  .sidebar { height: auto; position: relative; }
}
.dictation-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.dictation-controls button { color: var(--blue); }
.files li.audio-file { flex-wrap: wrap; }
.audio-file audio { max-width: 100%; min-width: 0; height: 36px; }
