/* Inventorium's look: warm paper, ink, an indigo accent for things you
   can click, and garnet as the brand colour. Garnet is decoration only
   (the name, the header rule, the current page); errors use a brighter
   vermilion with a tinted box and an icon, so the two aren't confused. */
:root {
  /* Colours are light-dark(light, dark): color-scheme picks which. It
     follows the device, unless someone chose on their Account page
     (<html data-theme>, below). */
  color-scheme: light dark;
  --bg: light-dark(#faf8f4, #17161d); --surface: light-dark(#fff, #201f28); --fg: light-dark(#1d1b26, #ecebf2);
  --muted: light-dark(#6b6878, #a19fb0); --line: light-dark(#e6e1d8, #34323f); --line-strong: light-dark(#cfc8bc, #4a4757);
  --accent: light-dark(#4338a8, #a9a3ff); --accent-hover: light-dark(#2f2783, #c8c4ff);
  --accent-soft: light-dark(#eeedfa, #2c2a4d); --on-accent: light-dark(#fff, #17161d);
  --brand: light-dark(#9b1b30, #e27186);
  --danger: light-dark(#c0341d, #ff8a6e); --danger-soft: light-dark(#fdeee9, #3a211c);
  --ok: light-dark(#2f6b3a, #8fd39a); --ok-soft: light-dark(#e7f2e8, #1f3324);
  --warn: light-dark(#8a5a00, #f0c35a); --warn-soft: light-dark(#fdf3d8, #3a3020); --warn-line: light-dark(#e8cf86, #6b5527);
  --row-hover: light-dark(#f6f3ee, #26252f);
  --shadow: 0 1px 2px light-dark(rgba(40, 30, 20, .05), transparent);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); border-top: 4px solid var(--brand); }
body { font-family: var(--sans); color: var(--fg); background: var(--bg); max-width: 68rem; margin: 0 auto; padding: 0 1rem 3rem; line-height: 1.45; }

/* Header: the name in garnet, a quiet menu with the current page marked. */
header { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; padding: .9rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; color: var(--brand); text-decoration: none; }
header nav { display: flex; gap: 1.1rem; flex: 1; }
header nav a { color: var(--muted); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; font-weight: 500; }
header nav a:hover { color: var(--fg); }
header nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--brand); }
header .who a { color: var(--muted); text-decoration: none; }
header .who a:hover, header .who button.link:hover { color: var(--accent); }
header .who button.link { color: var(--muted); text-decoration: none; }

/* Links: underlined lightly in text; plain ink in tables and lists. */
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
td a, li a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); }
td a:hover, li a:hover { color: var(--accent); text-decoration-color: currentColor; }
tbody td:first-child:not(.cover) a, tbody td.cover + td a { font-weight: 600; text-decoration: none; }
tbody td:first-child:not(.cover) a:hover, tbody td.cover + td a:hover { text-decoration: underline; }

/* An item's photo in lists (the 120 px copy, shown at 48 px). Items without
   one leave the space empty, so names line up. */
th.cover, td.cover { width: calc(48px + 1.5rem); padding-right: 0; }
td.cover a { display: block; width: 48px; height: 48px; border-radius: 6px; }
td.cover img { display: block; width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--row-hover); }
tbody tr:has(td.cover) > td { vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: .005em; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: .4rem 0 1rem; }
h2 { margin: 2rem 0 .6rem; font-size: 1.35rem; }
h1 .pill { font-family: var(--sans); vertical-align: middle; }

/* Tables sit on white cards. */
table { border-collapse: separate; border-spacing: 0; width: 100%; margin: .5rem 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > *, table.details tr:last-child > * { border-bottom: none; }
thead th { white-space: nowrap; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tbody tr:hover { background: var(--row-hover); }
table.details tr:hover { background: none; }
table.details th { width: 10rem; color: var(--muted); font-weight: 500; }
/* Kinds, in capitals (stored lowercase): filled if Inventorium describes
   them, outlined if they're the household's own. */
.kind-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.6; padding: 0 .5rem; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.kind-tag.described { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
input[name=kind] { text-transform: uppercase; letter-spacing: .03em; }
input[name=kind]::placeholder { text-transform: none; letter-spacing: normal; }

.muted { color: var(--muted); }
.error { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); border-left: 4px solid var(--danger);
  color: var(--danger); padding: .6rem .9rem; border-radius: 6px; font-weight: 500; }
.error::before { content: "⚠\fe0e  "; }
.error-text { color: var(--danger); }
.notice { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); border-left: 4px solid var(--ok);
  padding: .6rem .9rem; border-radius: 6px; }
.pre { white-space: pre-wrap; }
code { font-family: var(--mono); font-size: .85em; }
code.id { color: var(--muted); }

/* Small labels: statuses, and tags. */
.pill { display: inline-block; font-size: .72rem; font-weight: 600; line-height: 1.5; padding: 0 .5rem; border-radius: 999px;
  letter-spacing: .02em; white-space: nowrap; vertical-align: .1em; }
.pill.late { background: var(--danger-soft); color: var(--danger); }
.pill.soon { background: var(--warn-soft); color: var(--warn); }
.pill.quiet { background: var(--line); color: var(--muted); }
.tag { display: inline-block; font-size: .8rem; line-height: 1.6; padding: 0 .55rem; margin: .05rem .3rem .05rem 0; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); text-decoration: none; }
a.tag:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }

/* Forms. */
form.filters, form.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; }
form.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .7rem 1rem; align-items: end; margin-top: .7rem; }
form.grid .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: .4rem; }
form.inline label { flex-direction: row; align-items: center; gap: .4rem; }
input, select, textarea, button { font: inherit; padding: .4rem .6rem; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--fg); background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
textarea { width: 100%; }
button { background: var(--accent); color: var(--on-accent); border-color: var(--accent); cursor: pointer; font-weight: 500; }
button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Buttons in lists are secondary: outlined, so a page of them stays calm. */
td button:not(.link):not(.danger) { background: var(--surface); color: var(--accent); padding: .25rem .6rem; font-size: .9rem; }
td button:not(.link):not(.danger):hover { background: var(--accent-soft); }
button.danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
button.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
/* A choice of a few (Appearance): joined buttons, the current one filled. */
form.segmented { gap: 0; }
form.segmented button { background: var(--surface); color: var(--fg); border-color: var(--line-strong); border-radius: 0; margin-left: -1px; }
form.segmented button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
form.segmented button:last-child { border-radius: 0 6px 6px 0; }
form.segmented button:hover { background: var(--accent-soft); }
form.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); position: relative; }
button.link { background: none; border: none; color: var(--accent); padding: 0; text-decoration: underline; font-weight: inherit; }

/* A field with a problem (formerrors.go): its message under it, and the
   input outlined. */
.field-error { color: var(--danger); font-size: .8rem; font-weight: 500; }
.field-error:empty { display: none; }
label:has(> .field-error:not(:empty)) :is(input, select, textarea) {
  border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.form-errors:empty { display: none; }

/* Editing a record or a photo in place: "Edit" opens a small panel over
   the table (or inside the card, on phones), without reflowing it. */
td.row-actions { position: relative; white-space: nowrap; }
td.row-actions > details, td.row-actions > form { display: inline-block; vertical-align: top; margin: 0; }
/* Edit (a summary) and Delete (a button) side by side, the same size. */
details.row-edit > summary, td.row-actions button.danger, ul.attachments button.danger {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  padding: .25rem .6rem; border: 1px solid; border-radius: 6px; font: inherit; font-size: .9rem; font-weight: 500;
  line-height: 1.4; cursor: pointer; }
details.row-edit > summary { list-style: none; border-color: var(--accent); color: var(--accent); }
/* Under a photo's name: "list photo", or "use in list" to make it so. */
ul.attachments li > .pill, form.cover-choice { display: block; width: fit-content; margin: .25rem 0 0; }
form.cover-choice button.link { font-size: .8rem; }
td.row-actions > details, td.row-actions > form { margin-right: .3rem; }
details.row-edit > summary::-webkit-details-marker { display: none; }
details.row-edit[open] > summary { background: var(--accent-soft); }
td.row-actions details.row-edit[open] > form { position: absolute; right: .5rem; top: 100%; z-index: 5; width: min(36rem, 90vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15); white-space: normal; text-align: left; }
/* A photo's Edit and Delete sit side by side under it; an open Edit takes
   the whole width. */
.file-actions { margin-top: .3rem; }
.file-actions > details.row-edit, .file-actions > form { display: inline-block; vertical-align: top; margin: 0 .3rem 0 0; }
.file-actions > details.row-edit[open] { display: block; margin-right: 0; }
ul.attachments details.row-edit[open] > form { margin-top: .5rem; }

/* Items by location: a heading per location, nested as they are, each
   folding away; its items' table beneath. Tables share column widths, so
   names line up from one location to the next. */
nav.view-toggle { display: inline-flex; margin: .2rem 0 .6rem; }
nav.segmented a { padding: .3rem .8rem; border: 1px solid var(--line-strong); margin-left: -1px; color: var(--fg);
  text-decoration: none; background: var(--surface); font-size: .9rem; }
nav.segmented a:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
nav.segmented a:last-child { border-radius: 0 6px 6px 0; }
nav.segmented a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
details.loc-group { margin: .4rem 0; }
details.loc-group details.loc-group { margin-left: 1.4rem; padding-left: .8rem; border-left: 2px solid var(--line); }
details.loc-group > summary { cursor: pointer; padding: .3rem 0; font-family: var(--serif); font-weight: 650; font-size: 1.1rem; }
details.loc-group > summary::marker { color: var(--brand); }
.loc-count { font-family: var(--sans); font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--line);
  border-radius: 999px; padding: 0 .45rem; vertical-align: .15em; }
a.loc-only { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: .4rem; }
/* The Locations page's nested view: each location's items link, and Edit
   (rename, move, delete) beneath its heading. */
.loc-items { font-family: var(--sans); font-size: .8rem; font-weight: 400; margin-left: .4rem; }
details.loc-group > details.loc-edit { margin: 0 0 .3rem; }
details.loc-edit > summary { font-size: .8rem; padding: .1rem .5rem; }
details.loc-edit[open] > .loc-edit-panel { margin: .4rem 0 .6rem; padding: .6rem .8rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.loc-edit-panel p { margin: .2rem 0; font-size: .85rem; }
a.loc-name { color: inherit; text-decoration: none; }
a.loc-name:hover { text-decoration: underline; }
.loc-desc { margin: 0 0 .3rem; font-size: .85rem; white-space: pre-line; }
details.loc-group > .loc-desc { margin-left: .2rem; }
/* A location's page: where it is, above its name. */
p.breadcrumbs { margin: .8rem 0 -.4rem; font-size: .85rem; color: var(--muted); }
/* The item list, showing one location: a link to its page. */
a.place { display: flex; align-items: center; gap: .75rem; margin: .5rem 0 1rem; padding: .5rem .8rem; color: inherit;
  text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
a.place img { border-radius: 5px; object-fit: cover; flex: none; }
a.place > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.place .place-more { color: var(--accent); font-size: .85rem; white-space: nowrap; }
a.place:hover .place-more { text-decoration: underline; }
details.loc-group table.items { table-layout: fixed; margin: .2rem 0 .5rem; }
/* The headings say where; the columns speak for themselves (headers kept
   for screen readers). */
details.loc-group table.items thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
details.loc-group table.items col.cover { width: calc(48px + 1.5rem); }
details.loc-group table.items col.name { width: 45%; }
details.loc-group table.items col.kind-col { width: 9rem; }

/* Panels (Add an item, Edit, ...): white cards that open. */
details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .7rem 1rem; margin: 1rem 0; }
details summary { cursor: pointer; font-weight: 600; }
details summary::marker { color: var(--brand); }
details.panel[open] summary { margin-bottom: .3rem; }
section { margin-top: 1.5rem; }
ul.attachments { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
ul.attachments li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; overflow-wrap: anywhere; box-shadow: var(--shadow); }
ul.attachments img { display: block; width: 100%; height: 9rem; object-fit: cover; border-radius: 5px; margin-bottom: .3rem; }
ul.attachments .caption { font-weight: 500; margin-bottom: .15rem; }
/* An item's page: its photos beside its details (above them on phones),
   the list photo large; receipts and documents stay at the bottom. */
.item-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.item-top:has(> .item-photos) { grid-template-columns: 22rem minmax(0, 1fr); }
.item-details > table.details { margin-top: 0; }
.item-photos ul.photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.item-photos ul.photos li { box-shadow: none; }
.item-photos ul.photos img { height: 7rem; }
.item-photos ul.photos li.main { grid-column: 1 / -1; }
.item-photos ul.photos li.main img { height: auto; max-height: 26rem; object-fit: contain; background: var(--bg); }
.item-photos .no-photos { border: 2px dashed var(--line); border-radius: var(--radius); padding: 2.5rem 1rem; text-align: center; margin: 0; }
details.add-photos { margin-top: .6rem; }
details.add-photos > form { margin-top: .5rem; }
td.indent-1 { padding-left: 1.6rem; } td.indent-2 { padding-left: 2.6rem; } td.indent-3 { padding-left: 3.6rem; }
td.indent-4, td.indent-5, td.indent-6 { padding-left: 4.6rem; }

/* The login page: a card in the middle. */
main.narrow { max-width: 24rem; margin: 4rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 1.5rem 1.75rem; }
main.narrow h1.brand { font-size: 2rem; margin-top: 0; }
main.narrow p.brand { margin: 0; }
main.narrow h1:not(.brand) { font-size: 1.6rem; margin-top: .3rem; }
form.stack { display: flex; flex-direction: column; gap: .8rem; }
code.token { user-select: all; word-break: break-all; font-size: 1rem; }
code.id { user-select: all; word-break: break-all; }

/* Offline (see sw.js): a saved copy has a banner, and no forms. */
.offline-banner { background: var(--warn-soft); border: 1px solid var(--warn-line); padding: .6rem .8rem; border-radius: 4px; margin: .8rem 0; }
.offline-banner ~ header form, .offline-banner ~ main form { display: none; }
.net-status { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); max-width: 40rem; margin: 0;
  background: var(--warn-soft); border: 1px solid var(--warn-line); padding: .6rem .9rem; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
table.sortable th a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
table.sortable th a:hover { text-decoration: underline solid; }
table.sortable th[aria-sort="ascending"] a::after { content: " ▲"; font-size: .75em; }
table.sortable th[aria-sort="descending"] a::after { content: " ▼"; font-size: .75em; }
td.next-audit form.inline { display: inline-flex; flex-wrap: nowrap; gap: .3rem; align-items: center; margin: 0; }
td.next-audit input[type=date] { padding: .2rem .3rem; }
/* Audits: keep amounts, dates and buttons on one line; Reschedule is secondary to "Audited today". */
table.sortable td:nth-child(3), table.sortable td:nth-child(4), table.sortable td:nth-child(5),
td.next-audit, table.sortable button { white-space: nowrap; }
td.next-audit button:not(.link) { background: var(--surface); color: var(--accent); border-color: var(--accent); padding: .25rem .5rem; }
/* A kind's fields (internal/kinds), in the add and edit forms. */
.kind-fields fieldset { border: 1px solid var(--line); border-radius: 4px; padding: .6rem .8rem; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem 1rem; }
.kind-fields legend { padding: 0 .3rem; color: var(--muted); font-size: .9rem; }
.kind-fields small { font-size: .8rem; }
.kind-fields:empty { display: none; }

/* ---- Phones and touch screens ---- */
.toggle, .toggle-label { display: none; }
.more-filters { display: contents; } /* its inputs flow in the filter row */
header .who { display: flex; gap: 1rem; align-items: baseline; }

/* Touch screens: fingers need bigger targets (about 44px), and iOS
   Safari zooms into fields with text under 16px. (The camera needs nothing:
   phones offer it in the file picker.) */
@media (pointer: coarse) {
  button, select, input:not([type=checkbox]):not([type=radio]), nav a, details.row-edit > summary { min-height: 2.75rem; }
  nav a { display: inline-flex; align-items: center; }
  button.link { padding: .5rem .25rem; }
  input, select, textarea { font-size: 16px; }
}

/* Narrow screens (phones). */
@media (max-width: 40rem) {
  body { padding: 0 .75rem 2rem; }
  input, select, textarea { font-size: 16px; }
  h1 { font-size: 1.5rem; margin: .5rem 0; }
  .wide-only { display: none; }

  /* Header: the brand and you on one line, the menu below it (wrapping
     rather than scrolling, so every page stays in sight). */
  header { gap: 0 .75rem; padding: .5rem 0 0; }
  header .who { margin-left: auto; }
  header nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 0 1rem; }
  header nav a { padding: .45rem 0; white-space: nowrap; }

  /* Items: search, with the other filters behind "Filters". */
  form.filters input[type=search] { flex: 1 1 100%; }
  .toggle-label { display: inline-block; padding: .4rem 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
  .more-filters { display: none; }
  .toggle:checked ~ .more-filters { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
  .more-filters input:not([type=checkbox]) { flex: 1 1 100%; }

  /* Tables become cards: each row a card, each cell a labelled line. The
     header row stays for screen readers. */
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: auto; }
  table.stack { background: none; border: none; box-shadow: none; }
  table.stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: .6rem .8rem; margin-bottom: .6rem; }
  table.stack tbody tr:hover { background: var(--surface); }
  table.stack td, table.stack td:nth-child(n) { border: none; padding: .15rem 0 .15rem 7.5rem; position: relative; white-space: normal; }
  table.stack td::before { content: attr(data-label); position: absolute; left: 0; width: 7rem; color: var(--muted); font-size: .85rem; }
  table.stack td[data-label=""] { padding-left: 0; }
  table.stack td:first-child:not(.cover), table.stack td.cover + td { font-weight: 600; }
  /* The photo sits at the card's top right; the name leaves room for it. */
  table.stack tr:has(td.cover) { position: relative; }
  table.stack td.cover { position: absolute; top: .6rem; right: .8rem; padding: 0; width: auto; }
  table.stack td.cover:empty { display: none; }
  table.stack tr:has(td.cover img) td.cover + td { padding-right: 3.75rem; min-height: 48px; }
  table.stack td:empty { display: none; }
  table.stack td form { margin: .3rem 0; }
  table.stack td.next-audit form.inline { flex-wrap: wrap; }
  table.details th { width: 7rem; }
  .item-top:has(> .item-photos) { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  table.stack .wide-only { display: none; }
  details.loc-group details.loc-group { margin-left: .5rem; padding-left: .5rem; }
  details.loc-group table.items { table-layout: auto; }
  td.row-actions { white-space: normal; }
  table.stack td.row-actions > form { margin: 0; }
  td.row-actions details.row-edit[open] { display: block; }
  td.row-actions details.row-edit[open] > form { position: static; width: auto; box-shadow: none; margin: .5rem 0; }
}
