:root {
  --bg: #05070f;
  --fg: #e8edf2;
  --muted: #8b97a5;
  --accent: #e89ab8;
  --accent-contrast: #1a0a12;
  --card: #14181d;
  --line: #232a32;
  --well: #0f1216;
  --calm: #7ee0a8;
  --warn: #e0b87e;
  --alert: #e0937e;
  --read: 46rem;
  --wide: 80rem;
  --bar-start: 0px;
  --bar-end: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar > .bar-inner { margin-left: var(--bar-start); margin-right: var(--bar-end); }
:root[data-window="mac-app"] { --bar-start: 4rem; }
@media (display-mode: window-controls-overlay) {
  :root { --bar-start: max(0px, calc(env(titlebar-area-x, 0px) - 1rem)); --bar-end: max(0px, calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) - 1rem)); }
  .bar { min-height: env(titlebar-area-height, 0px); -webkit-app-region: drag; app-region: drag; }
  .bar a, .bar button, .bar select, .bar input, .bar label { -webkit-app-region: no-drag; app-region: no-drag; }
}
.bar-inner { display: flex; align-items: center; gap: 1rem; }
.spacer { flex: 1; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.4rem; margin-left: -0.4rem; border: 0; border-radius: 0.5rem; background: none; color: var(--fg); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.brand:hover { background: var(--card); }
.brand::after { content: ""; width: 0.35rem; height: 0.35rem; margin: -0.2rem 0 0 0.1rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.mark { width: 0.9rem; height: 0.9rem; border-radius: 0.3rem; background: var(--accent); flex: none; }
.me { width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.me:hover { color: var(--fg); }
.me svg { width: 1.1rem; height: 1.1rem; }
.menu { position: fixed; inset: auto; top: 3.6rem; bottom: auto; width: max-content; height: auto; max-height: calc(100vh - 4.5rem); overflow-y: auto; margin: 0; min-width: 14rem; padding: 0.35rem; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 0.75rem; box-shadow: 0 12px 30px rgb(0 0 0 / 0.5); }
.menu:popover-open { display: grid; align-content: start; gap: 2px; }
.menu-start { left: calc(0.6rem + var(--bar-start)); }
.menu-end { right: calc(0.6rem + var(--bar-end)); }
.menu > a, .menu > button { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.5rem 0.7rem; border: 0; border-radius: 0.5rem; background: none; color: var(--fg); font: inherit; font-size: 0.92rem; text-align: left; text-decoration: none; cursor: pointer; }
.menu > a:hover, .menu > button:hover { background: var(--line); }
.menu > [aria-current] { font-weight: 600; }
.menu > a > i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--muted); }
.menu hr { width: 100%; margin: 0.25rem 0; border: 0; border-top: 1px solid var(--line); }
.menu .to-sluice > i { background: #7ec4e0; }
.menu .to-scan > i { background: #b8a0e8; }
.menu .to-iris > i { background: #d0dc7e; }
.menu .to-streamline > i { background: #e0877e; }
.menu .to-exchange > i { background: #7ee0a8; }
.menu .to-cadence > i { background: #e0b07e; }
.menu .to-account > i { background: #e89ab8; }
.menu .to-home > i { background: #9fb8e8; border-radius: 50%; }
.shell { flex: 1 0 auto; width: 100%; max-width: calc(var(--shell) + 14.5rem); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) 12.5rem; gap: 2rem; }
.nav { position: sticky; top: 3.5rem; align-self: start; padding: 1.5rem 0; display: grid; gap: 0.15rem; }
.nav a, .nav button { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; border: 0; border-radius: 0.55rem; background: none; color: var(--muted); font: inherit; font-size: 0.93rem; text-align: left; text-decoration: none; cursor: pointer; }
.nav a:hover, .nav button:hover { color: var(--fg); background: var(--card); }
.nav [aria-current="page"], .nav [aria-pressed="true"] { color: var(--fg); background: var(--card); box-shadow: inset 2px 0 0 var(--accent); }
.nav .count { font-size: 0.75rem; color: var(--accent-contrast); background: var(--accent); border-radius: 999px; padding: 0 0.45rem; font-weight: 700; }
.nav hr { border: 0; border-top: 1px solid var(--line); margin: 0.75rem 0.5rem; }
.tabbar { display: none; }
@media (max-width: 1100px) {
  .shell { max-width: var(--shell); grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nav { display: none; }
  body:has(.tabbar:not([hidden])) { padding-bottom: 4.5rem; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line); padding: 0.35rem env(safe-area-inset-right) calc(0.35rem + env(safe-area-inset-bottom)) env(safe-area-inset-left); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 0.1rem; padding: 0.3rem 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.7rem; text-decoration: none; position: relative; cursor: pointer; }
  .tabbar b { font-size: 1.05rem; font-weight: 400; }
  .tabbar [aria-current="page"], .tabbar [aria-pressed="true"] { color: var(--accent); }
  .tabbar .count { position: absolute; top: 0; left: 55%; font-size: 0.65rem; background: var(--accent); color: var(--accent-contrast); border-radius: 999px; padding: 0 0.35rem; font-weight: 700; }
}
img[data-turn="90"] { rotate: 90deg; }
img[data-turn="180"] { rotate: 180deg; }
img[data-turn="270"] { rotate: 270deg; }
.freshtoast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 2rem); padding: 0.55rem 1.1rem; background: var(--card); color: var(--fg); border: 1px solid var(--accent); border-radius: 999px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.45); font-size: 0.9rem; text-align: center; }
@media (max-width: 1100px) { .freshtoast { bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); } }
.installbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 1rem; background: var(--card); border-bottom: 1px solid var(--accent); color: var(--fg); font-size: 0.875rem; }
.installbar-text { margin: 0; flex: 1 1 20rem; }
.installbar-actions { display: flex; gap: 0.5rem; }
.installbar-actions button { font: inherit; border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; }
.installbar-install { background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent); font-weight: 600; }
.installbar-dismiss { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.skel { display: grid; gap: 0.75rem; }
.skel > i { display: block; height: 0.95rem; width: 100%; border-radius: 0.4rem; background: linear-gradient(90deg, var(--card) 25%, var(--line) 50%, var(--card) 75%); background-size: 300% 100%; animation: skel 1.4s ease-in-out infinite; }
.skel > .skel-title { height: 2rem; width: 55%; margin-bottom: 0.25rem; }
.skel > .skel-line { width: 75%; }
.skel > .skel-short { width: 35%; }
.skel > .skel-block { height: 6.5rem; border-radius: 0.75rem; }
.skel > .skel-row { height: 3.25rem; border-radius: 0.6rem; }
.skel-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem; }
.skel-tiles > i { display: block; height: 6.5rem; border-radius: 0.75rem; background: linear-gradient(90deg, var(--card) 25%, var(--line) 50%, var(--card) 75%); background-size: 300% 100%; animation: skel 1.4s ease-in-out infinite; }
.skel > .skel-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel > i, .skel-tiles > i { animation: none; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.muted { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.75rem; }
.muted:last-child { margin-bottom: 0; }
.section-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0 0 0.75rem; font-weight: 600; }
.field { display: block; margin-bottom: 1rem; }
.field > span, .field > label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 3.2rem; }
button.ghost, button.primary, a.ghost, a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}
a.ghost { text-decoration: none; }
a.primary { text-decoration: none; }
button.ghost, a.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
@media (hover: hover) { .ghost:hover { background: var(--accent); color: var(--accent-contrast); } }
button.primary, a.primary { background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent); font-weight: 600; }
button.primary:disabled, button.ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.notice { border-left: 2px solid var(--accent); padding-left: 0.75rem; margin: 0 0 1rem; font-size: 0.875rem; color: var(--muted); }
:root {
  --shell: var(--read);
}
html { height: 100%; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, sans-serif;
}
h1 { font-size: 1.3rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
h3 { font-size: 1rem; margin: 1rem 0 0.4rem; }
.bar { padding: 0.75rem 1rem; }
main { padding: 1rem; flex: 1; }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
a:hover { text-decoration-color: var(--accent); }
footer { padding: 1rem; border-top: 1px solid var(--line); margin-top: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.875rem; }
footer a { color: var(--muted); }
.hero { font-size: 3rem; font-weight: 600; line-height: 1.1; margin: 0 0 0.25rem; }
.notice.alert { border-left-color: var(--alert); color: var(--fg); }
.actions { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.actions > button, .actions > a { margin: 0; }
.add-email { flex: 1 1 100%; align-items: flex-end; margin: 0; }
.add-email .field { flex: 1 1 14rem; margin: 0; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top-up { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 0.5rem; }
.chips { border: 0; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: 0.875rem; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); cursor: pointer; }
.chip:has(input:checked) { border-color: var(--accent); }
.chip input { accent-color: var(--accent); margin: 0 0.3rem 0 0; }
.field { max-width: 16rem; }
.field select { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; font: inherit; }
.auto { border-top: 1px solid var(--line); margin-top: 1rem; }
.auto p { margin: 0 0 0.5rem; font-size: 0.9rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; }
.tile-label { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.25rem; }
.tile-value { font-size: 1.5rem; font-weight: 600; margin: 0; }
.tile-note { font-size: 0.8rem; color: var(--muted); margin: 0.25rem 0 0; }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; margin: 0 0 0.5rem; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.facts .total { color: var(--fg); font-weight: 600; border-top: 1px solid var(--line); padding-top: 0.35rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { text-align: left; padding: 0.35rem 0.25rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines tbody tr:last-child td { border-bottom: 0; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 0.75rem; margin: 1rem 0; }
.principle { border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; }
.principle h3 { margin: 0 0 0.35rem; }
.principle p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.figure { margin: 0 0 1.5rem; }
.figure:last-child { margin-bottom: 0; }
.figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.figure figcaption h3 { margin: 0.5rem 0; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; font-size: 0.8rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend .swatch { width: 0.75rem; height: 0.75rem; border-radius: 3px; display: inline-block; }
.plot { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.chart:focus:not(:focus-visible) { outline: none; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: #3a434d; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .empty { fill: var(--muted); font-size: 13px; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: 0.1; }
.chart .dot, .chart .focus { stroke: var(--card); stroke-width: 2; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.chart .hit, .chart .overlay { fill: transparent; }
.chart .hit.active { fill: rgba(255, 255, 255, 0.05); }
@media (hover: hover) { .chart .hit:hover { fill: rgba(255, 255, 255, 0.05); } }
.chart .bar.dim { opacity: 0.55; }
details { margin-top: 0.5rem; font-size: 0.85rem; }
summary { color: var(--muted); cursor: pointer; }
.table-wrap { max-height: 16rem; overflow: auto; margin-top: 0.5rem; }
.tooltip { position: absolute; z-index: 10; pointer-events: none; background: #1d232a; border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; font-size: 0.8rem; min-width: 9rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.tooltip .tt-date { color: var(--muted); margin: 0 0 0.25rem; }
.tooltip .tt-row { display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.tooltip .tt-key { width: 0.75rem; height: 2px; display: inline-block; }
.tooltip .tt-value { font-weight: 600; color: var(--fg); }
.tooltip .tt-name { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.column { max-width: var(--shell); margin-left: auto; margin-right: auto; width: 100%; }
.invoice { list-style: none; padding: 0; margin: 0.5rem 0; font-size: 0.9rem; }
.invoice li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.invoice-math { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.invoice-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-table { overflow-x: auto; }
.invoice-table table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.invoice-table th, .invoice-table td { text-align: left; vertical-align: top; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.invoice-table thead th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.invoice-table :is(th, td):first-child { padding-left: 0; }
.invoice-table :is(th, td):last-child { padding-right: 0; }
.invoice-table :is(.col-used, .col-price, .col-amount) { text-align: right; }
.invoice-table tbody th { min-width: 8rem; color: var(--fg); font-size: inherit; }
.invoice-table td.col-amount { white-space: nowrap; }
.invoice-table td.col-amount { font-weight: 600; }
.invoice-table .invoice-math { font-weight: 400; margin: 0; }
.invoice-table .col-sent .invoice-math { display: none; }
.invoice-table .ok { color: var(--calm); }
.invoice-table .differs { color: var(--warn); }
@media (max-width: 40rem) {
  .invoice-table thead, .invoice-table .empty { display: none; }
  .invoice-table :is(table, tbody, tr, th, td) { display: block; }
  .invoice-table tr { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  .invoice-table :is(th, td) { border: 0; padding: 0.1rem 0; }
  .invoice-table tbody th { font-size: 0.95rem; }
  .invoice-table td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 0.75rem; text-align: left !important; white-space: normal !important; }
  .invoice-table td::before { content: attr(data-label); color: var(--muted); }
  .invoice-table .invoice-math, .invoice-table .col-sent .invoice-math { display: block; grid-column: 2; }
}
.invoice-totals li { color: var(--muted); padding: 0.3rem 0; }
.invoice-totals li.due { color: var(--fg); font-weight: 600; border-bottom: 0; }
.plain { list-style: none; padding: 0; margin: 0.4rem 0; font-size: 0.9rem; color: var(--muted); }
.charges-job { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.charges-job p { margin: 0.2rem 0; }
#charges h3 { margin: 1rem 0 0.25rem; font-size: 0.9rem; color: var(--muted); }
.agents { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.agents li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.agents li > div { min-width: 0; overflow-wrap: anywhere; }
.agents li > button { flex: none; }

.check { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.check input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.pair { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.pair .field { flex: 1 1 8rem; }
.kinds { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.kinds li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.kinds .field { margin: 0.4rem 0 0.2rem; }
.hours { display: grid; grid-template-columns: 2.4rem repeat(48, minmax(0, 1fr)); gap: 2px 0; margin: 0.5rem 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hours-row { display: contents; }
.hours-time { font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: visible; visibility: hidden; padding-bottom: 0.2rem; }
.hours-time.h3 { visibility: visible; }
.hours-day { font-size: 0.8rem; color: var(--muted); align-self: center; }
.hours-tile { height: 1.75rem; margin-right: 1px; background: var(--line); cursor: pointer; }
.hours-tile.h { margin-left: 1px; }
.hours-tile.on { background: var(--accent); }
.hours-tile:hover { outline: 1px solid var(--muted); }
.hours-tile:focus-visible { outline-offset: 0; position: relative; }
.painting .hours-tile { cursor: crosshair; }
@media (max-width: 40rem) {
  .hours { grid-auto-flow: column; grid-template-columns: 3rem repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(48, 1.1rem); gap: 0 3px; }
  .hours-time { visibility: hidden; line-height: 1; padding: 0; transform: translateY(-0.35em); }
  .hours-time.h { visibility: visible; }
  .hours-corner { height: 1.4rem; }
  .hours-day { text-align: center; }
  .hours-tile { height: auto; margin: 0 0 1px; }
  .hours-tile.h { margin: 1px 0 1px; }
}

.last-used { display: inline-flex; align-items: center; margin-left: 0.5rem; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--accent); color: var(--accent-contrast); }
.shell { max-width: calc(var(--shell) + 31.5rem); }
.shell > main { grid-column: 2; }
@media (max-width: 1100px) {
  .shell { max-width: var(--shell); padding: 0; }
  .shell > main { grid-column: 1; }
}
:root[data-member]:not([data-settled]) #signed-out { display: none !important; }
:root[data-member]:not([data-settled]) #loading { display: grid !important; }
#loading { padding-top: 1.5rem; }
.feedback-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.feedback-link:hover, .feedback-link:focus-visible { color: var(--fg); }
dialog.feedback { width: min(32rem, calc(100vw - 2rem)); background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
dialog.feedback::backdrop { background: rgb(0 0 0 / 0.6); }
.feedback-form h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.feedback-note, .feedback-status { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.75rem; }
.feedback-status:empty { display: none; }
.feedback-field { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; font-size: 0.875rem; }
.feedback-field textarea, .feedback-field select { font: inherit; color: var(--fg); background: var(--well); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem; width: 100%; box-sizing: border-box; }
.feedback-field textarea { resize: vertical; }
.feedback-shared { border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.75rem 0.25rem; margin: 0 0 0.75rem; font-size: 0.875rem; }
.feedback-shared legend { padding: 0 0.25rem; }
.feedback-details { list-style: none; margin: 0; padding: 0; }
.feedback-details li { margin-bottom: 0.5rem; }
.feedback-details label { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.5rem; align-items: baseline; cursor: pointer; }
.feedback-details code { grid-column: 2; color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.feedback-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.feedback-actions button { font: inherit; border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; }
.feedback-cancel { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.feedback-send { background: var(--accent); color: var(--accent-contrast); border: 1px solid var(--accent); font-weight: 600; }
.feedback-send:disabled { opacity: 0.45; cursor: not-allowed; }
.feedback-signin { display: flex; gap: 0.5rem; margin: 0 0 0.75rem; }
.feedback-signin[hidden] { display: none; }
.feedback-shot-chosen { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0.5rem 0; }
.feedback-shot-preview { display: block; max-width: 60%; max-height: 10rem; border: 1px solid var(--line); border-radius: 8px; }
