@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #020817;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --selected: #f1f1f1;
  --button: #0f172a;
  --button-text: #fff;
  --violet: rgba(139, 92, 246, 0.1);
  --orange: rgba(194, 65, 12, 0.1);
  --green: rgba(21, 128, 61, 0.1);
  --sky: rgba(14, 165, 233, 0.1);
  --dialog-shadow: 0 8px 30px #0f172a25;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020817;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: #1e293b;
  --soft: #0f172a;
  --selected: #1e293b;
  --button: #e5eaf2;
  --button-text: #111827;
  --violet: rgba(139, 92, 246, 0.17);
  --orange: rgba(234, 120, 61, 0.15);
  --green: rgba(34, 197, 94, 0.13);
  --sky: rgba(14, 165, 233, 0.15);
  --dialog-shadow: 0 8px 30px #0008;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.quiet {
  background: transparent;
  color: var(--ink);
  padding: 8px;
  border: 0;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 24px 12px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  z-index: 10;
}
.brand {
  height: 184px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
}
.logo-icon {
  color: #b877df;
}
.logo-icon .icon {
  width: 46px;
  height: 46px;
  filter: drop-shadow(-3px -3px 0 #75c3e966);
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav a {
  height: 44px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  font-weight: 500;
}
.sidebar nav a.selected,
.sidebar nav a:hover {
  background: var(--selected);
}
.orders > .icon,
.orders .icon {
  color: #0ea5e9;
}
.bow > .icon,
.bow .section-symbol {
  color: #8b5cf6;
}
.ribbon > .icon {
  color: #be185d;
}
.accessory > .icon,
.accessory .section-symbol {
  color: #c2410c;
}
.flower > .icon,
.flower .section-symbol {
  color: #15803d;
}
.test-mark {
  position: absolute;
  bottom: 22px;
  left: 24px;
  font-size: 12px;
  color: var(--muted);
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.test-mark small {
  font-size: 11px;
}
main {
  margin-left: 240px;
  padding: 0 32px 75px;
  min-width: 0;
}
.topbar {
  height: 72px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}
.topbar #theme-toggle {
  min-width: 78px;
}
.mobile-menu {
  display: none;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 16px 0 32px;
}
.heading-group {
  display: flex;
  gap: 12px;
  align-items: center;
}
.heading-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--sky);
  flex: none;
}
.heading-icon .icon {
  width: 36px;
  height: 36px;
}
h1 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  margin: 0;
}
h2 {
  font-size: 18px;
  line-height: 24px;
  margin: 0;
  font-weight: 700;
}
p {
  margin: 8px 0 16px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 12px;
}
.muted {
  color: var(--muted);
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 400;
}
input:disabled,
select:disabled {
  opacity: 0.5;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}
.check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--button);
}
.filters {
  margin-top: 56px;
}
.search-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.filter-primary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.filter-extra {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0 14px;
}
.site-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.site-filter select {
  width: 180px;
}
.print-button {
  margin-left: auto;
}
.date-picker {
  position: relative;
}
.date-picker summary {
  height: 40px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}
.date-popover {
  position: absolute;
  z-index: 8;
  right: 0;
  top: 46px;
  width: 360px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--dialog-shadow);
}
.date-popover > label {
  margin-bottom: 14px;
}
.date-popover button {
  margin-top: 16px;
}
.table-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
}
.order-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
  min-width: 1000px;
}
.order-table th {
  font-weight: 500;
  color: var(--muted);
  height: 40px;
  white-space: nowrap;
  padding: 8px 16px;
}
.order-table td {
  padding: 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.order-table tbody tr:hover {
  background: var(--soft);
}
.order-name {
  display: block;
  font-weight: 700;
  min-width: 115px;
}
.site-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.nowrap,
.pickup {
  white-space: nowrap;
}
.pickup {
  font-weight: 700;
}
.payment-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.unpaid {
  background: #f43f5e;
}
.partial {
  background: #facc15;
  color: #513f00;
}
.paid {
  background: #22c55e;
  color: #052e16;
}
.payment-badge.paid {
  color: #fff;
}
.payment-badge.partial {
  color: #4b3900;
}
.provisional {
  color: #d97706;
}
.ready {
  color: #10b981;
}
.state-icon {
  display: inline-flex;
}
.row-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 22px;
  width: 28px;
  text-align: center;
}
.row-menu-content {
  position: absolute;
  right: 24px;
  z-index: 6;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: var(--dialog-shadow);
  padding: 5px;
}
.row-menu-content strong {
  display: block;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.row-menu-content a,
.row-menu-content button {
  width: 100%;
  text-align: left;
  justify-content: start;
  display: block;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  border: 0;
  min-height: 32px;
}
.row-menu-content a:hover,
.row-menu-content button:hover {
  background: var(--soft);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.pagination > div {
  display: flex;
  gap: 5px;
}
.page-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
}
.page-number.current {
  border: 1px solid var(--line);
  background: var(--soft);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  margin-top: 8px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.legend .icon {
  width: 16px;
  height: 16px;
}
.snapshot-info {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
}
.empty {
  padding: 50px;
  text-align: center;
}
.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.order-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: stretch;
}
#order-form {
  display: contents;
}
#order-form > input,
#order-form > textarea[hidden] {
  display: none;
}
.customer-panel {
  grid-column: 1;
  grid-row: 1;
}
.customer-fields {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.2fr 0.75fr;
  gap: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dates-row {
  margin: 12px 0;
}
.dates-row .check {
  margin-top: 6px;
  font-size: 13px;
  gap: 6px;
}
.financial-panel {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.payment-dot {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.large-total {
  font-size: clamp(36px, 4.7vw, 72px);
  line-height: 1.2;
  letter-spacing: -3px;
  font-weight: 700;
  white-space: nowrap;
}
.payment-overview {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.method-chip {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.danger {
  color: #be185d;
}
.shipping-panel,
.composition-panel,
.extras-pair,
.notes-panel,
.save-bar,
#form-message {
  grid-column: 1/-1;
}
.shipping-panel > label {
  margin-bottom: 12px;
}
.shipping-panel > label:last-child {
  margin-bottom: 0;
}
.shipping-panel .two-col {
  margin-top: 12px;
}
.composition-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.composition-panel.bow {
  background: var(--violet);
}
.composition-panel.accessory {
  background: var(--orange);
}
.composition-panel.flower {
  background: var(--green);
}
.composition-panel > summary {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 24px;
  cursor: pointer;
  min-height: 88px;
}
.section-symbol {
  width: 40px;
  height: 40px;
  background: #64748b1a;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
}
.section-symbol .icon {
  width: 24px;
  height: 24px;
}
.bow .section-symbol {
  background: #8b5cf61a;
}
.accessory .section-symbol {
  background: #c2410c1a;
}
.flower .section-symbol {
  background: #15803d1a;
}
.composition-panel small,
.section-title small {
  font-style: italic;
}
.expand-sign {
  margin-left: auto;
}
.expand-sign:after {
  content: "＋";
}
.composition-panel[open] .expand-sign:after {
  content: "−";
}
.section-body {
  padding: 0 24px 24px;
}
.inline-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  white-space: nowrap;
}
.inline-label input {
  flex: 1;
  min-width: 0;
}
.add-item {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.add-item select {
  flex: 1;
}
.item-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 75px 100px 30px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}
.item-row label {
  font-size: 11px;
}
.item-row strong {
  font-weight: 500;
}
.extras-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.section-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}
.notes-panel textarea {
  min-height: 90px;
}
.base-setting {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.base-setting summary {
  cursor: pointer;
}
.base-setting label {
  margin-top: 8px;
  max-width: 230px;
}
.save-bar {
  position: sticky;
  bottom: 20px;
  z-index: 7;
  grid-column: 1/-1;
}
.save-bar button {
  width: 100%;
}
#form-message:empty {
  display: none;
}
.state-panel {
  margin-top: 16px;
}
.state-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.wide {
  grid-column: 1/-1;
}
.notice,
.error {
  padding: 15px;
  background: var(--orange);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.catalog-row {
  display: flex;
  gap: 16px;
  align-items: end;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.catalog-row .grow {
  flex: 1;
}
.catalog-row .check {
  align-self: center;
}
.small-input {
  width: 100px;
}
.catalog-section {
  margin-bottom: 16px;
}
.catalog-section h2 {
  margin-bottom: 16px;
}
.inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-top: 20px;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
dialog {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: min(640px, calc(100vw - 32px));
  padding: 24px;
  box-shadow: var(--dialog-shadow);
}
dialog::backdrop {
  background: #0007;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dialog-head button {
  font-size: 24px;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
[hidden] {
  display: none !important;
}
summary::-webkit-details-marker {
  display: none;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login-card {
  max-width: 450px;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.login-card label {
  margin: 20px 0;
}
.login-card {
  width: min(450px, calc(100% - 32px));
  margin: 24px 0;
}
.login-logo {
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.login-logo img {
  width: 220px;
  height: 220px;
  max-width: none;
}
.account-panel {
  max-width: 600px;
  margin-bottom: 24px;
}
.account-panel label {
  display: block;
  margin: 16px 0;
}
.account-panel input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
@media (max-width: 1100px) {
  .page-head {
    flex-wrap: wrap;
  }
  .order-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-layout .customer-fields,
  .order-layout .two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .order-layout input,
  .order-layout select {
    min-width: 0;
    max-width: 100%;
  }
  .financial-panel {
    grid-column: 1;
    grid-row: 2;
  }
  .customer-fields {
    grid-template-columns: 1fr 1fr;
  }
  .filter-extra {
    flex-wrap: wrap;
  }
  .large-total {
    font-size: 48px;
  }
  .checks {
    gap: 12px;
  }
  .item-row {
    grid-template-columns: 1fr 1fr 70px 90px 28px;
  }
}
@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.15s;
  }
  .menu-open .sidebar {
    transform: translateX(0);
    box-shadow: var(--dialog-shadow);
  }
  main {
    margin: 0;
    padding: 0 16px 70px;
  }
  .topbar {
    height: 64px;
  }
  .mobile-menu {
    display: inline-flex;
    margin-right: auto;
  }
  .page-head {
    align-items: start;
    flex-wrap: wrap;
  }
  .heading-icon {
    width: 44px;
    height: 44px;
  }
  .heading-icon .icon {
    width: 30px;
    height: 30px;
  }
  h1 {
    font-size: 24px;
    line-height: 30px;
  }
  .filters {
    margin-top: 32px;
  }
  .filter-primary {
    grid-template-columns: 1fr 1fr;
  }
  .date-picker {
    grid-column: 1/-1;
  }
  .date-popover {
    left: 0;
    right: auto;
    width: min(360px, calc(100vw - 32px));
  }
  .checks {
    gap: 12px;
  }
  .check {
    white-space: normal;
  }
  .print-button {
    margin-left: 0;
  }
  .order-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-layout .customer-fields,
  .order-layout .two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .order-layout input,
  .order-layout select {
    min-width: 0;
    max-width: 100%;
  }
  .customer-panel {
    grid-column: 1;
    grid-row: 1;
  }
  .financial-panel {
    grid-column: 1;
    grid-row: 2;
    min-height: 180px;
  }
  .extras-pair,
  .form-columns {
    grid-template-columns: 1fr;
  }
  .item-row {
    grid-template-columns: 1fr 1fr;
  }
  .item-row strong {
    grid-column: 1/-1;
  }
  .panel,
  .composition-panel > summary {
    padding: 18px;
  }
  .section-body {
    padding: 0 18px 18px;
  }
  .catalog-row {
    flex-wrap: wrap;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .save-bar {
    bottom: 12px;
  }
  .date-popover .two-col {
    gap: 8px;
  }
}

.brand-logo {
  width: 260px;
  height: 260px;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
}
.order-table td:nth-child(4) {
  white-space: nowrap;
}
.large-total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.large-total .whole {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.1;
}
.large-total .currency,
.large-total .fraction {
  font-size: 30px;
  letter-spacing: -1px;
}
.large-total .currency {
  margin-right: 6px;
}
:root[data-theme="dark"] .flower > .icon,
:root[data-theme="dark"] .flower .section-symbol {
  color: #4ade80;
}
:root[data-theme="dark"] .accessory > .icon,
:root[data-theme="dark"] .accessory .section-symbol {
  color: #fb923c;
}
:root[data-theme="dark"] .ribbon > .icon,
:root[data-theme="dark"] .danger {
  color: #f472b6;
}

/* Operational signals: same layout in both themes. */
.order-name.provisional {
  color: #d97706;
}
.dates-row > div:has(input[type="checkbox"]:checked) {
  color: #d97706;
}
.dates-row > div:has(input[type="checkbox"]:checked) input {
  color: #d97706;
  accent-color: #d97706;
}
.work-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #d9770640;
  border-top-color: #d97706;
  border-right-color: #d97706;
  border-radius: 50%;
  animation: work-spin 1s linear infinite;
}
@keyframes work-spin {
  to {
    transform: rotate(360deg);
  }
}
.print-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: progress;
}
.row-menu {
  position: relative;
}
.row-menu-content {
  right: 100%;
  top: 0;
}
.selected-item {
  position: relative;
  padding: 12px 44px 14px 0;
  border-bottom: 1px solid var(--line);
}
.selected-item > strong {
  display: block;
  margin-bottom: 8px;
}
.selected-item-fields label {
  display: block;
}
.selected-item-fields input {
  width: 100%;
  margin-top: 4px;
}
.selected-item-fields > label {
  margin-top: 8px;
}
.flower-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
}
.item-remove {
  position: absolute;
  right: 0;
  top: 38px;
}
.personalization-flag {
  margin-top: 20px;
}
#personalization-specs {
  margin-top: 12px;
}
.add-item {
  display: block;
}
.add-item select {
  width: 100%;
}
.date-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.row-menu-content a,
.row-menu-content button {
  display: flex;
  align-items: center;
  gap: 9px;
}
.action-blue {
  color: #0284c7;
}
.action-orange {
  color: #d97706;
}
.action-green {
  color: #16a34a;
}
.delete-confirm {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}
#delete-order-dialog h2 {
  font-size: 20px;
  margin-bottom: 24px;
}
.flower-fields input[type="number"]::-webkit-inner-spin-button {
  opacity: 1;
}
.row-menu-content.floating-actions {
  position: fixed;
  z-index: 1000;
  right: auto;
  margin: 0;
  width: 184px;
  max-width: calc(100vw - 16px);
  padding: 4px;
  font-size: 13px;
}
.floating-actions strong {
  padding: 6px 8px;
  font-size: 12px;
}
.floating-actions a,
.floating-actions button {
  min-height: 36px;
  font-size: 13px;
  padding: 6px 8px;
  gap: 8px;
}
.floating-actions .icon {
  width: 16px;
  height: 16px;
}
.floating-actions .work-spinner {
  width: 14px;
  height: 14px;
}
@media (pointer: coarse) {
  .floating-actions a,
  .floating-actions button {
    min-height: 44px;
  }
}

.row-menu-content.floating-actions {
  width: max-content;
  min-width: 128px;
}
.floating-actions a,
.floating-actions button {
  white-space: nowrap;
}
.save-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  max-width: min(380px, calc(100vw - 32px));
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--dialog-shadow);
  font-weight: 500;
}
.save-toast.toast-error {
  border-left-color: #dc2626;
}
@media (max-width: 767px) {
  .save-toast {
    right: 16px;
    bottom: 16px;
  }
}

/* Compact controls at the bottom of the navigation. */
.sidebar { display:flex; flex-direction:column; overflow-y:auto; }
.sidebar > .brand, .sidebar > nav { flex-shrink:0; }
.sidebar .test-mark { position:static; margin:20px 12px 0; }
.sidebar-actions { margin-top:auto; padding:20px 10px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sidebar-actions form { margin:0; }
.sidebar-actions button { min-height:40px; padding:8px 10px; border:1px solid var(--line); background:transparent; color:var(--muted); border-radius:10px; font-size:12px; gap:7px; }
.sidebar-actions button:hover { color:var(--ink); background:var(--selected); }
.sidebar-actions button:focus-visible { outline:2px solid #0ea5e9; outline-offset:3px; }
.sidebar-actions .icon { width:18px; height:18px; }
.sidebar-actions .theme-control { width:40px; padding:9px; }
.theme-sun { display:none; }
:root[data-theme="dark"] .theme-sun { display:inline; }
:root[data-theme="dark"] .theme-moon { display:none; }
