/*
 * Tokens, reset, and app shell. Widget styles use CSS @scope.
 */

/*
 * Colour is OKLCH. The accent ramp is teal, hue 171. The neutrals and the
 * bronze ramp take hue 76 from the bronze in the logo; --bronze-500 is its
 * main colour. Components use the role tokens below the ramps, never a ramp
 * step directly. Text pairs meet WCAG AA in both schemes, and input
 * borders 3:1. A role token holds both schemes in light-dark(); the
 * system picks, unless the header's theme control set data-theme.
 */
:root {
  color-scheme: light dark;

  --stone-0: oklch(99.0% 0.005 76);
  --stone-50: oklch(97.2% 0.01 76);
  --stone-100: oklch(94.5% 0.013 76);
  --stone-200: oklch(90.0% 0.016 76);
  --stone-300: oklch(83.0% 0.018 76);
  --stone-400: oklch(70.0% 0.018 76);
  --stone-450: oklch(63.5% 0.018 76);
  --stone-500: oklch(58.0% 0.017 76);
  --stone-600: oklch(48.0% 0.015 76);
  --stone-700: oklch(38.0% 0.013 76);
  --stone-800: oklch(28.0% 0.011 76);
  --stone-850: oklch(23.5% 0.01 76);
  --stone-900: oklch(19.5% 0.009 76);
  --stone-950: oklch(15.5% 0.008 76);

  --teal-50: oklch(96.5% 0.025 171);
  --teal-100: oklch(92.5% 0.045 171);
  --teal-200: oklch(86.0% 0.075 171);
  --teal-300: oklch(78.0% 0.1 171);
  --teal-400: oklch(69.0% 0.11 171);
  --teal-500: oklch(59.0% 0.105 171);
  --teal-600: oklch(50.0% 0.09 171);
  --teal-700: oklch(42.0% 0.075 171);
  --teal-800: oklch(34.0% 0.06 171);
  --teal-900: oklch(26.0% 0.045 171);
  --teal-950: oklch(20.0% 0.035 171);

  --red-100: oklch(94% 0.028 27);
  --red-300: oklch(78% 0.11 27);
  --red-600: oklch(50% 0.17 27);
  --red-900: oklch(28% 0.06 27);

  --bronze-100: oklch(93.0% 0.03 76);
  --bronze-300: oklch(80.0% 0.09 76);
  --bronze-500: oklch(68.0% 0.084 76);
  --bronze-600: oklch(52.0% 0.085 76);
  --bronze-800: oklch(35.0% 0.04 76);

  --bg: light-dark(var(--stone-50), var(--stone-950));
  --surface: light-dark(var(--stone-0), var(--stone-900));
  --text: light-dark(var(--stone-950), var(--stone-50));
  --muted: light-dark(var(--stone-600), var(--stone-400));
  --border: light-dark(var(--stone-200), var(--stone-800));
  --border-strong: light-dark(var(--stone-450), var(--stone-500));
  --accent: light-dark(var(--teal-700), var(--teal-300));
  --accent-strong: light-dark(var(--teal-800), var(--teal-200));
  --accent-contrast: light-dark(var(--stone-0), var(--teal-950));
  --accent-tint: light-dark(var(--teal-50), var(--teal-950));
  --accent-tint-strong: light-dark(var(--teal-100), var(--teal-900));
  --danger: light-dark(var(--red-600), var(--red-300));
  --danger-bg: light-dark(var(--red-100), var(--red-900));
  --notice-bg: light-dark(var(--teal-50), var(--teal-900));
  --flag: light-dark(var(--bronze-600), var(--bronze-300));
  --scrim: light-dark(oklch(15.5% 0.008 76 / 0.45), oklch(0% 0 0 / 0.6));
  --shadow: light-dark(oklch(15.5% 0.008 76 / 0.18), oklch(0% 0 0 / 0.5));

  --radius: 8px;
  --space: 1rem;
  /* The default typeface; a user preference may later swap it. */
  --font: "Atkinson Hyperlegible Next Variable", system-ui, -apple-system, "Segoe UI", Roboto,
    Ubuntu, Cantarell, sans-serif;
  /* Code, and Markdown source where columns must line up. The named faces
     have the box-drawing characters drawn tables need, which Consolas lacks;
     elsewhere the system's own monospace. */
  --font-mono: ui-monospace, Menlo, "Cascadia Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.app {
  min-height: 100vh;
}

.app-body {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
}

.app-body.has-inspector {
  grid-template-columns: 16rem minmax(0, 1fr) 22.5rem;
}

@media (max-width: 64rem) {
  .app-body.has-inspector {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
}

.sidebar {
  padding: 1rem 1rem 2rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.sidebar:focus {
  outline: none;
}

.sidebar-backdrop,
.sidebar-account,
.app-header__menu,
.tab-bar {
  display: none;
}

/* Phones: the sidebar is a drawer behind the menu button, and a tab bar at
   the bottom holds the main views. */
@media (max-width: 720px) {
  .app-body,
  .app-body.has-inspector {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-header {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .app-header__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: -0.25rem 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
  }

  .app-header__menu .icon {
    width: 1.375rem;
    height: 1.375rem;
  }

  .app:has(.sidebar) .app-header__account {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 41;
    width: min(20rem, 85vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(2rem + env(safe-area-inset-bottom));
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 0.5rem 0 1.5rem var(--shadow);
  }

  body.nav-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--scrim);
  }

  body.nav-open {
    overflow: hidden;
  }

  .sidebar-links a,
  .nav-tree a {
    min-height: 2.5rem;
  }

  .sidebar-links a.in-tab-bar {
    display: none;
  }

  .sidebar-account {
    display: grid;
    gap: 0.25rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .sidebar-account .who {
    margin: 0 0 0.25rem;
    overflow-wrap: anywhere;
  }

  .sidebar-account a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
  }

  .tab-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    background: var(--surface);
  }

  .tab-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3.5rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
  }

  .tab-bar .icon {
    width: 1.375rem;
    height: 1.375rem;
  }

  .tab-bar a.is-current {
    color: var(--accent);
    font-weight: 650;
  }

  .app:has(.tab-bar) .app-main {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}

.sidebar-links,
.nav-tree {
  display: grid;
  gap: 0.25rem;
}

.nav-tree {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.nav-tree ul {
  list-style: none;
  margin: 0.25rem 0 0.25rem 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

/* Sidebar rows keep a gutter for the toggle that collapses a folder or tag;
   what it holds lines up under its name. */
.sidebar .nav-tree li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: center;
}

.sidebar .nav-tree li > a,
.sidebar .nav-tree li > ul {
  grid-column: 2;
}

.sidebar .nav-tree li > ul {
  margin-left: 0;
}

.nav-toggle {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--accent-tint);
  color: var(--accent);
}

.nav-toggle[aria-expanded="true"] .icon {
  transform: rotate(90deg);
}

.nav-toggle[aria-expanded="false"] ~ ul {
  display: none;
}

@media (max-width: 720px) {
  .sidebar .nav-tree li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.sidebar a {
  color: var(--text);
  text-decoration: none;
}

.icon {
  flex-shrink: 0;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: -0.125em;
}

.icon-spin {
  animation: icon-spin 1s linear infinite;
}

@keyframes icon-spin {
  to {
    transform: rotate(360deg);
  }
}

.sidebar-heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.sidebar-section {
  margin-top: 1.25rem;
}

.sidebar-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.sidebar-add:hover,
.sidebar-add:focus-visible,
.sidebar-add[aria-expanded="true"] {
  background: var(--accent-tint);
  color: var(--accent);
}

.sidebar-section .add-form {
  margin: 0.35rem 0 0;
}

@media (max-width: 720px) {
  .sidebar-add {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.sidebar-links a,
.nav-tree a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar a.is-current {
  font-weight: 650;
}

.inspect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  border-radius: 6px;
}

.nav-tree a.inspect-row {
  display: flex;
  gap: 0.4rem;
}

.inspect-row.is-selected {
  background: var(--accent-tint-strong);
}

.app-inspector {
  position: sticky;
  top: 3.25rem;
  height: calc(100vh - 3.25rem);
  max-height: calc(100vh - 3.25rem);
  overflow-y: auto;
  padding: 0.85rem 0.85rem 2rem;
  border-left: 1px solid var(--border);
  background: var(--surface);
}

.app-inspector:focus {
  outline: none;
}

.app-inspector:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.app-inspector__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.app-inspector__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.app-inspector__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.app-inspector__back {
  display: none;
}

.app-inspector__close {
  order: 2;
}

.app-inspector__close:hover,
.app-inspector__close:focus-visible {
  background: var(--accent-tint);
  color: var(--accent);
}

.app-inspector__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-inspector__empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-inspector__empty p {
  margin: 0;
}

.app-inspector__backdrop {
  display: none;
}

@media (max-width: 64rem) {
  .app-inspector {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 32;
    height: auto;
    max-height: none;
    width: min(24rem, 92vw);
    transform: translateX(105%);
    transition: transform 0.2s ease;
    padding-top: 3.75rem;
  }

  .app.is-inspector-open .app-inspector {
    transform: translateX(0);
    box-shadow: -0.5rem 0 1.5rem var(--shadow);
  }

  .app.is-inspector-open .app-inspector__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 31;
    background: var(--scrim);
  }

  body.inspector-open {
    overflow: hidden;
  }
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header__brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.app-header__logo {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.app-nav,
.app-header__account {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.theme-toggle {
  display: inline-flex;
  gap: 0.125rem;
  margin-left: auto;
  padding: 0.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.theme-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.theme-toggle button:hover {
  color: var(--text);
}

.theme-toggle button[aria-pressed="true"] {
  background: var(--accent-tint-strong);
  color: var(--accent);
}

@media (max-width: 720px) {
  .theme-toggle button {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.app-nav a {
  text-decoration: none;
  color: var(--muted);
}

.app-nav a.is-current {
  color: var(--text);
  font-weight: 650;
}

.who {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-main {
  max-width: 88ch;
  padding: 1.5rem 1.25rem 3rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

button,
.btn {
  font: inherit;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

button[type="submit"],
.btn-primary:not(.btn-soft) {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
}

a.btn {
  display: inline-block;
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.capture {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.field-error {
  color: var(--danger);
  margin: 0;
  font-size: 0.85rem;
}

.empty {
  color: var(--muted);
}

/* Due and Planned side by side once each gets 22rem. */
.agenda-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem 2rem;
  align-items: start;
  margin-top: 1rem;
}

.agenda-section h2 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.agenda-section .empty {
  margin: 0.5rem 0;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

.empty-state__icon .icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  opacity: 0.7;
}

.empty-state__title {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.empty-state__hint {
  margin: 0;
  max-width: 36ch;
}

.empty-state__actions {
  justify-content: center;
  margin: 0.75rem 0 0;
}

.empty-state__actions button {
  min-height: 2.75rem;
  padding-inline: 1rem;
}

.auth {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
}

.flash {
  margin: 0 1.25rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
}

.flash-info {
  background: var(--notice-bg);
}

.flash-error {
  background: var(--danger-bg);
}

/* Toasts: flash messages, over the page under the header. */
#flash-group {
  position: fixed;
  top: 4rem;
  right: 1rem;
  z-index: 50;
  display: grid;
  gap: 0.5rem;
  width: min(24rem, calc(100% - 2rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.4rem 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0.5rem 1.5rem var(--shadow);
  pointer-events: auto;
  cursor: pointer;
}

.toast[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: toast-in 0.2s ease-out;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

.toast--info {
  border-color: var(--accent-tint-strong);
  background: var(--notice-bg);
}

.toast--error {
  border-color: color-mix(in oklch, var(--danger) 35%, transparent);
  background: var(--danger-bg);
}

.toast__icon {
  margin-top: 0.2rem;
  color: var(--accent);
}

.toast--error .toast__icon {
  color: var(--danger);
}

.toast__body {
  flex: 1;
  min-width: 0;
}

.toast__body p {
  margin: 0;
}

.toast__title {
  font-weight: 650;
}

.toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.toast__close:hover,
.toast__close:focus-visible {
  color: var(--text);
}

/* JS.show and JS.hide transitions, from CoreComponents.show/2 and hide/2. */
.fx-ease-out {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.fx-ease-in {
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

.fx-away {
  opacity: 0;
  transform: translateY(-0.5rem);
}

.fx-here {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-ease-out,
  .fx-ease-in {
    transition: none;
  }
}

/* Shown to a tab left open across a deploy (MarskalWeb.StaticChanged). */
.app-updated {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0.5rem 1.5rem var(--shadow);
  transform: translateX(-50%);
}

.app-updated[hidden] {
  display: none;
}

@media (max-width: 720px) {
  #flash-group {
    top: calc(3.75rem + env(safe-area-inset-top));
    right: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  /* Above the tab bar. */
  .app-updated {
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
}

.page-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0 0 0.25rem;
}

.page-heading__main {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  min-width: 0;
}

.page-heading h1 {
  flex: 0 0 auto;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-heading__details {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.page-heading__details:hover,
.page-heading__details:focus-visible {
  color: var(--accent);
  background: var(--accent-tint);
}

/* Phones: the inspector is a full-screen sheet with a back arrow. */
@media (max-width: 720px) {
  .app-inspector {
    width: 100%;
    border-left: 0;
    padding: 0 1rem calc(2rem + env(safe-area-inset-bottom));
  }

  .app.is-inspector-open .app-inspector {
    box-shadow: none;
  }

  .app-inspector:focus-visible {
    outline: none;
  }

  .app-inspector__chrome {
    position: sticky;
    top: 0;
    z-index: 1;
    justify-content: flex-start;
    margin: 0 -1rem 0.85rem;
    padding: calc(0.5rem + env(safe-area-inset-top)) 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }

  .app-inspector__close {
    order: 0;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--text);
  }

  .app-inspector__back {
    display: inline-block;
    width: 1.375rem;
    height: 1.375rem;
  }

  .app-inspector__x {
    display: none;
  }

  .app-inspector__title {
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* CoreComponents.add_form/1: a quiet line, not a block of controls. */
.add-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 0.5rem;
  margin: 0 0 1rem;
  padding: 0 0 0 0.5rem;
  border-bottom: 1px solid var(--border-strong);
}

.add-form:focus-within {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.add-form__icon {
  color: var(--muted);
}

.add-form:focus-within .add-form__icon {
  color: var(--accent);
}

.add-form input[type="text"] {
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.add-form input[type="text"]:focus-visible {
  outline: none;
}

.add-form button[type="submit"] {
  padding: 0.25rem 0.75rem;
}

.add-form:has(input:placeholder-shown) button[type="submit"] {
  visibility: hidden;
}

.add-form .field-error {
  grid-column: 2 / -1;
  padding-bottom: 0.35rem;
}
