/* Greenplot workspace. Root rules are scoped to .uwapp-root.uwapp-greenplot (the body carries the app class too).
   Light and dark tokens follow html[data-theme] / prefers-color-scheme. No inline styles (CSP): colours are classes. */
.uwapp-root.uwapp-greenplot {
  --gp-bg: #f2f5ee; --gp-surface: #ffffff; --gp-surface-2: #eaf0e4; --gp-ink: #1d2a1f; --gp-muted: #4d5a4f; --gp-line: #cfd8c8;
  --gp-control: #6c7a6c; --gp-accent: #2f6f3e; --gp-accent-ink: #245a31; --gp-on-accent: #ffffff; --gp-warn: #9b2b17; --gp-warn-bg: #fde6df;
  --gp-ok: #1f6a35; --gp-focus: #b45309; --gp-plot: #eef4e6; --gp-grid: #c4cdb8; --gp-chip: #dfe9d6; --gp-sel: #b45309;
  --gp-leg: #2f7d32; --gp-bra: #1d6fa3; --gp-pot: #a8432b; --gp-oni: #8a5a00; --gp-any: #6b4fa0;
  background: var(--gp-bg); color: var(--gp-ink); color-scheme: light;
}
:root[data-theme="dark"] .uwapp-root.uwapp-greenplot {
  --gp-bg: #121812; --gp-surface: #1b231c; --gp-surface-2: #253026; --gp-ink: #e9f0e6; --gp-muted: #b6c3b5; --gp-line: #374536;
  --gp-control: #8a9a88; --gp-accent: #8fd19e; --gp-accent-ink: #b4e3bf; --gp-on-accent: #0f2414; --gp-warn: #ffb4a3; --gp-warn-bg: #4a1f17;
  --gp-ok: #9be3b0; --gp-focus: #fbbf24; --gp-plot: #1f2a1f; --gp-grid: #364536; --gp-chip: #2b3a2c; --gp-sel: #fbbf24;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .uwapp-root.uwapp-greenplot {
    --gp-bg: #121812; --gp-surface: #1b231c; --gp-surface-2: #253026; --gp-ink: #e9f0e6; --gp-muted: #b6c3b5; --gp-line: #374536;
    --gp-control: #8a9a88; --gp-accent: #8fd19e; --gp-accent-ink: #b4e3bf; --gp-on-accent: #0f2414; --gp-warn: #ffb4a3; --gp-warn-bg: #4a1f17;
    --gp-ok: #9be3b0; --gp-focus: #fbbf24; --gp-plot: #1f2a1f; --gp-grid: #364536; --gp-chip: #2b3a2c; --gp-sel: #fbbf24;
    color-scheme: dark;
  }
}

/* Platform element defaults leak into app workspaces: reset them at zero specificity. */
:where(.gp-app, .gp-dlg) button { font: inherit; font-size: .9rem; font-weight: 600; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; width: auto; min-height: 0; margin: 0; }
:where(.gp-app, .gp-dlg) button:hover { background: none; }
:where(.gp-app, .gp-dlg) :is(input, select, textarea) { font: inherit; font-size: .9rem; color: var(--gp-ink); background: var(--gp-surface); border: 1px solid var(--gp-control); border-radius: 8px; padding: .3rem .45rem; width: auto; max-width: 100%; margin: 0; box-sizing: border-box; }
:where(.gp-app, .gp-dlg) table { border-collapse: collapse; width: 100%; margin: 0; font-size: .88rem; }
:where(.gp-app, .gp-dlg) :is(th, td) { text-align: start; padding: 5px 7px; border-bottom: 1px solid var(--gp-line); vertical-align: top; color: var(--gp-ink); }
:where(.gp-app, .gp-dlg) thead th { background: var(--gp-surface-2); color: var(--gp-ink); }
:where(.gp-app, .gp-dlg) caption { text-align: start; font-weight: 700; padding: 0 0 .3rem; color: var(--gp-ink); }
:where(.gp-app, .gp-dlg) kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; padding: 1px 6px; border: 1px solid var(--gp-control); border-bottom-width: 2px; border-radius: 5px; background: var(--gp-surface-2); color: var(--gp-ink); white-space: nowrap; }
:where(.gp-app, .gp-dlg) a { color: var(--gp-accent-ink); }
:where(.gp-app, .gp-dlg) :is(h2, h3, h4) { color: var(--gp-ink); margin: 0 0 .5rem; line-height: 1.25; }
:where(.gp-app, .gp-dlg) h2 { font-size: 1.1rem; }
:where(.gp-app, .gp-dlg) h3 { font-size: 1rem; }
:where(.gp-app, .gp-dlg) h4 { font-size: .92rem; }
:where(.gp-app, .gp-dlg) p { margin: .3rem 0; }

.gp-app { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; background: var(--gp-bg); color: var(--gp-ink); position: relative; }
.gp-app :focus-visible, .gp-dlg :focus-visible { outline: 3px solid var(--gp-focus); outline-offset: 2px; }
.gp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.gp-hint, .gp-muted { color: var(--gp-muted); font-size: .84rem; }
.gp-muted { display: block; }
.gp-error { color: var(--gp-warn); font-weight: 600; }
.gp-empty { color: var(--gp-muted); padding: 1.5rem 1rem; }
.gp-source { color: var(--gp-muted); font-size: .8rem; overflow-wrap: anywhere; }

/* ---------- buttons */
.gp-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .3rem .7rem; border: 1px solid var(--gp-control); border-radius: 8px; background: var(--gp-surface); color: var(--gp-ink); font-size: .86rem; white-space: nowrap; }
.gp-btn:hover:not([disabled]) { background: var(--gp-surface-2); }
.gp-btn[disabled], .gp-icon-btn[disabled] { opacity: .5; cursor: not-allowed; }
.gp-btn[aria-pressed="true"] { border-color: var(--gp-accent); box-shadow: inset 0 0 0 2px var(--gp-accent); background: var(--gp-surface-2); }
.gp-btn-small { min-height: 28px; padding: .15rem .5rem; font-size: .8rem; }
.gp-btn-primary, :is(.gp-app, .gp-dlg) button[type=submit].gp-btn-primary { background: var(--gp-accent); border-color: var(--gp-accent); color: var(--gp-on-accent); }
.gp-btn-primary:hover:not([disabled]), :is(.gp-app, .gp-dlg) button[type=submit].gp-btn-primary:hover:not([disabled]) { background: var(--gp-accent-ink); border-color: var(--gp-accent-ink); color: var(--gp-on-accent); }
.gp-btn-danger { color: var(--gp-warn); border-color: var(--gp-warn); }
.gp-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; color: var(--gp-ink); flex: none; }
.gp-icon-btn:hover:not([disabled]) { background: var(--gp-surface-2); border-color: var(--gp-line); }
.gp-link-btn { display: inline-flex; align-items: center; gap: .4rem; text-align: start; color: var(--gp-accent-ink); text-decoration: underline; padding: .15rem 0; }
.gp-link-btn.gp-current { color: var(--gp-ink); font-weight: 800; text-decoration: none; }

/* ---------- top bar */
.gp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .4rem .6rem; background: var(--gp-surface); border-bottom: 1px solid var(--gp-line); }
.gp-bar-start, .gp-bar-end { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; min-width: 0; }
.gp-bar-end { margin-inline-start: auto; }
.gp-name { font-weight: 700; padding: 0 .3rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-tabs { display: flex; flex-wrap: wrap; gap: .15rem; }
.gp-tab { padding: .35rem .65rem; border-radius: 8px; color: var(--gp-ink); border: 1px solid transparent; }
.gp-tab[aria-selected="true"] { background: var(--gp-accent); color: var(--gp-on-accent); }
.gp-tab:hover:not([aria-selected="true"]) { background: var(--gp-surface-2); }
.gp-menu-wrap { position: relative; }
.gp-menu-btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 34px; padding: .3rem .6rem; border: 1px solid var(--gp-control); border-radius: 8px; background: var(--gp-surface); color: var(--gp-ink); }
.gp-menu { position: fixed; z-index: 50; min-width: 15rem; max-width: min(24rem, 94vw); max-height: min(80vh, 640px); overflow: auto; background: var(--gp-surface); color: var(--gp-ink); border: 1px solid var(--gp-line); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); padding: .3rem; }
.gp-menu-item { display: flex; width: 100%; justify-content: space-between; gap: 1rem; padding: .45rem .6rem; border-radius: 6px; text-align: start; color: var(--gp-ink); }
.gp-menu-item:hover, .gp-menu-item:focus { background: var(--gp-surface-2); }
.gp-menu-item[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.gp-menu-key { color: var(--gp-muted); font-weight: 400; font-size: .8rem; }
.gp-menu-sep { height: 1px; background: var(--gp-line); margin: .25rem 0; }
.gp-status { margin: 0; padding: .35rem .7rem; font-size: .85rem; background: var(--gp-surface); border-top: 1px solid var(--gp-line); min-height: 1.6rem; color: var(--gp-ink); }
.gp-status-error { color: var(--gp-warn); font-weight: 600; }

/* ---------- views */
.gp-view { flex: 1; min-height: 0; overflow: auto; padding: .7rem; position: relative; }
.gp-panel { background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 12px; padding: .7rem .8rem; margin: 0 0 .7rem; min-width: 0; }
.gp-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .7rem; margin: 0 0 .7rem; }
.gp-toolbar .gp-field { margin: 0; }
.gp-field { display: flex; flex-direction: column; gap: .2rem; margin: 0 0 .5rem; min-width: 0; }
.gp-field label { font-size: .82rem; font-weight: 700; color: var(--gp-ink); }
.gp-field :is(input, select, textarea) { max-width: 100%; }
.gp-form .gp-field :is(input:not([type=checkbox]), select, textarea) { width: 100%; }
.gp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: 0 .6rem; }
.gp-check { display: flex; align-items: center; gap: .45rem; }
.gp-seg { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.gp-side { min-width: 0; }
.gp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 0 .7rem; align-items: start; }
.gp-lib-detail > .gp-btn { margin: .3rem 0 .8rem; }
.gp-table-wrap { overflow-x: auto; max-width: 100%; position: relative; }
.gp-table-wide { min-width: 36rem; }
.gp-actions { white-space: nowrap; }
.gp-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; padding: .1rem .45rem; border-radius: 999px; background: var(--gp-chip); color: var(--gp-ink); white-space: nowrap; }
.gp-badge-warn { background: var(--gp-warn-bg); color: var(--gp-warn); }
.gp-badge-rain { background: var(--gp-surface-2); }
.gp-issues { list-style: none; margin: .3rem 0; padding: 0; display: grid; gap: .35rem; }
.gp-issues li { display: flex; gap: .4rem; align-items: flex-start; font-size: .88rem; }
.gp-issues svg, .gp-issue svg { flex: none; margin-top: .15rem; }
.gp-issue { color: var(--gp-warn); }
.gp-row-warn th, .gp-row-warn td { background: var(--gp-warn-bg); }
.gp-locked .gp-btn-primary { opacity: .6; }

/* ---------- plan */
.gp-plan-grid, .gp-beds-grid, .gp-cal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: .7rem; align-items: start; }
.gp-canvas { background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 12px; padding: .4rem; min-width: 0; }
.gp-svg { display: block; width: 100%; height: auto; max-height: 78vh; touch-action: none; margin: 0 auto; }
.gp-plot { fill: var(--gp-plot); stroke: var(--gp-control); stroke-width: 2; }
.gp-grid { stroke: var(--gp-grid); stroke-width: 1; }
.gp-sun-cell { opacity: .6; }
.gp-obj { cursor: grab; }
.gp-obj:focus { outline: none; }
.gp-obj:focus-visible > :first-child, .gp-obj-sel > :first-child { stroke: var(--gp-sel); stroke-width: 4; }
.gp-obj-label { fill: #1d2a1f; font-weight: 600; pointer-events: none; }
.gp-handle { fill: var(--gp-sel); cursor: nwse-resize; }
.gp-north circle { fill: var(--gp-surface); stroke: var(--gp-ink); }
.gp-north line { stroke: #c0392b; stroke-width: 3; }
.gp-north text { fill: var(--gp-ink); font-size: 16px; font-weight: 700; }
.gp-objlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; max-height: 14rem; overflow: auto; }
.gp-swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; border: 1px solid rgb(0 0 0 / .35); flex: none; }
.gp-sw-bed { background: #c9a27a; } .gp-sw-greenhouse { background: #d8eef0; } .gp-sw-path { background: #d9d4c7; } .gp-sw-lawn { background: #cfe6b8; } .gp-sw-tree { background: #7fb069; border-radius: 50%; }
.gp-sw-shrub { background: #9cc68a; border-radius: 50%; } .gp-sw-hedge { background: #5f9450; } .gp-sw-building { background: #b9bcc4; } .gp-sw-shed { background: #c8b8a0; } .gp-sw-fence { background: #8f7a5f; }
.gp-sw-compost { background: #8b6b4a; } .gp-sw-water { background: #9cc9e8; border-radius: 50%; } .gp-sw-pond { background: #a9d3ef; border-radius: 50%; } .gp-sw-seating { background: #e6dccb; }
.gp-legend { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .8rem; margin: .3rem 0; }
.gp-legend > span { display: inline-flex; align-items: center; gap: .3rem; }
.gp-legend-sw { display: inline-block; width: 1.2rem; height: .8rem; border-radius: 3px; border: 1px solid rgb(0 0 0 / .25); }
.gp-sunline { display: flex; gap: .35rem; align-items: center; }

/* ---------- beds */
.gp-g-legumes { background: var(--gp-leg); color: #fff; } .gp-g-brassicas { background: var(--gp-bra); color: #fff; } .gp-g-potatoes { background: var(--gp-pot); color: #fff; }
.gp-g-onions-roots { background: var(--gp-oni); color: #fff; } .gp-g-any { background: var(--gp-any); color: #fff; }
.gp-bedgrid-wrap { overflow-x: auto; position: relative; padding: 2px; }
.gp-bedgrid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(2.6rem, 4.2rem)); gap: 3px; width: max-content; padding: 6px; background: #8a6a4a; border-radius: 8px; }
.gp-sq { aspect-ratio: 1; min-height: 2.6rem; border-radius: 5px; background: #f5efe4; color: #1d2a1f; border: 1px solid #b59a7c; font-size: .66rem; font-weight: 700; line-height: 1.05; display: grid; place-items: center; overflow: hidden; padding: 2px; word-break: break-word; }
.gp-sq.gp-g-legumes { background: var(--gp-leg); } .gp-sq.gp-g-brassicas { background: var(--gp-bra); } .gp-sq.gp-g-potatoes { background: var(--gp-pot); }
.gp-sq.gp-g-onions-roots { background: var(--gp-oni); } .gp-sq.gp-g-any { background: var(--gp-any); }
.gp-sq.gp-g-legumes, .gp-sq.gp-g-brassicas, .gp-sq.gp-g-potatoes, .gp-sq.gp-g-onions-roots, .gp-sq.gp-g-any { color: #fff; border-color: rgb(0 0 0 / .3); }
.gp-sq:hover { outline: 2px solid var(--gp-focus); }
.gp-legend-list { display: flex; flex-wrap: wrap; gap: .3rem .9rem; list-style: none; padding: 0; margin: .5rem 0 0; font-size: .82rem; }
.gp-legend-list li { display: inline-flex; gap: .35rem; align-items: center; }
.gp-rows { display: flex; gap: 2px; min-height: 6rem; background: #8a6a4a; padding: 4px; border-radius: 8px; overflow-x: auto; }
.gp-row { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; font-size: .75rem; font-weight: 700; padding: .3rem .1rem; border-radius: 4px; min-width: 1.6rem; }
.gp-rot { font-size: .8rem; }
.gp-rot-next { background: var(--gp-surface-2); color: var(--gp-ink); font-style: italic; }
.gp-rot.gp-g-legumes, .gp-rot.gp-g-brassicas, .gp-rot.gp-g-potatoes, .gp-rot.gp-g-onions-roots, .gp-rot.gp-g-any { color: #fff; }
.gp-preview { background: var(--gp-surface-2); border-radius: 8px; padding: .3rem .6rem; margin: .4rem 0; }

/* ---------- library */
.gp-lib { display: grid; grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr); gap: .7rem; align-items: start; }
.gp-plantlist { list-style: none; padding: 0; margin: 0; max-height: 60vh; overflow: auto; display: grid; gap: .05rem; }
.gp-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .8rem; margin: .3rem 0 .7rem; font-size: .9rem; }
.gp-facts dt { font-weight: 700; }
.gp-facts dd { margin: 0; }

/* ---------- calendar */
.gp-month-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .4rem; }
.gp-month-head h3 { margin: 0; flex: 1; min-width: 8rem; }
.gp-month { table-layout: fixed; min-width: 34rem; }
.gp-month th { text-align: center; font-size: .78rem; }
.gp-day { height: 5.2rem; vertical-align: top; border: 1px solid var(--gp-line); padding: 3px; overflow: hidden; }
.gp-day-empty { background: var(--gp-surface-2); }
.gp-today { box-shadow: inset 0 0 0 2px var(--gp-accent); }
.gp-daynum { display: block; font-size: .75rem; font-weight: 700; }
.gp-chip { display: block; font-size: .68rem; line-height: 1.2; margin-top: 2px; padding: 1px 3px; border-radius: 4px; background: var(--gp-chip); color: var(--gp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-k-sow, .gp-k-transplant { border-inline-start: 3px solid #2f7d32; }
.gp-k-harvest { border-inline-start: 3px solid #a8432b; }
.gp-k-water { border-inline-start: 3px solid #1d6fa3; }
.gp-k-prune, .gp-k-weed, .gp-k-fertilise, .gp-k-protect, .gp-k-other { border-inline-start: 3px solid #8a5a00; }
.gp-chip-done { text-decoration: line-through; opacity: .75; }
.gp-more { font-size: .68rem; color: var(--gp-muted); }
.gp-tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.gp-task { display: flex; align-items: center; gap: .5rem; padding: .35rem .4rem; border-radius: 8px; background: var(--gp-surface-2); flex-wrap: wrap; }
.gp-task input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--gp-accent); }
.gp-task-main { flex: 1; min-width: 10rem; }
.gp-task-done .gp-task-main strong { text-decoration: line-through; }

/* ---------- harvest */
.gp-metrics { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; padding: 0; margin: 0 0 .7rem; }
.gp-metrics li { background: var(--gp-surface); border: 1px solid var(--gp-line); border-radius: 12px; padding: .5rem .7rem; display: grid; }
.gp-metrics span { font-size: .8rem; color: var(--gp-muted); }
.gp-metrics strong { font-size: 1.25rem; }
.gp-pos strong { color: var(--gp-ok); } .gp-neg strong { color: var(--gp-warn); }
.gp-bars { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 9rem; padding: 0; margin: 0; }
.gp-bar-item { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; font-size: .7rem; min-width: 0; }
.gp-bar-track { display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.gp-bar-fill { display: block; width: 70%; background: var(--gp-accent); border-radius: 4px 4px 0 0; min-height: 1px; }
.gp-bar-val, .gp-bar-label { overflow: hidden; }

/* ---------- journal */
.gp-entries { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.gp-entry { background: var(--gp-surface); border: 1px solid var(--gp-line); border-inline-start: 5px solid var(--gp-accent); border-radius: 10px; padding: .6rem .8rem; }
.gp-entry-pest, .gp-entry-disease { border-inline-start-color: var(--gp-warn); }
.gp-entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.gp-entry-head h3 { margin: 0; }
.gp-entry-actions { margin-inline-start: auto; display: inline-flex; }
.gp-entry-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.gp-photos { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.gp-photos img { display: block; max-width: 11rem; max-height: 8rem; border-radius: 8px; object-fit: cover; }
.gp-photos-edit li { position: relative; }

/* ---------- dialogs */
.gp-dlg { border: 1px solid var(--gp-line); border-radius: 14px; padding: 0; width: min(34rem, 94vw); max-height: 90vh; background: var(--gp-surface); color: var(--gp-ink); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.gp-dlg-wide { width: min(52rem, 96vw); }
.gp-dlg::backdrop { background: rgb(10 20 10 / .45); }
.gp-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; border-bottom: 1px solid var(--gp-line); position: sticky; top: 0; background: var(--gp-surface); z-index: 1; }
.gp-dlg-head h2 { margin: 0; font-size: 1.05rem; }
.gp-dlg-lede { margin: .5rem .9rem 0; color: var(--gp-muted); font-size: .88rem; }
.gp-dlg-body { padding: .7rem .9rem .9rem; }
.gp-dlg-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.gp-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .5rem; }
.gp-card { display: grid; gap: .25rem; text-align: start; padding: .7rem; border: 1px solid var(--gp-line); border-radius: 10px; background: var(--gp-surface-2); color: var(--gp-ink); width: 100%; height: 100%; }
.gp-card span { font-weight: 400; font-size: .84rem; color: var(--gp-ink); }
.gp-card:hover { border-color: var(--gp-accent); }
.gp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.gp-list-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.gp-wide-input { width: 100%; }

/* ---------- small screens */
@media (max-width: 860px) {
  .gp-plan-grid, .gp-beds-grid, .gp-cal-grid, .gp-lib { grid-template-columns: minmax(0, 1fr); }
  .gp-name { max-width: 10rem; }
}
@media (max-width: 480px) {
  .gp-view { padding: .45rem; }
  .gp-bar { padding: .35rem; }
  .gp-tab { padding: .3rem .45rem; font-size: .82rem; }
  .gp-bedgrid { grid-template-columns: repeat(var(--cols), minmax(2.2rem, 2.8rem)); }
}
@media (prefers-reduced-motion: reduce) { .gp-app *, .gp-dlg * { transition: none !important; animation: none !important; } }
@media print { .gp-bar, .gp-status, .gp-toolbar { display: none; } }
