/* Large type and big touch targets: the people using this are mostly elderly,
   on old Android phones. Kept to CSS that Chrome ~60 already understands
   (so no flex gap, inset or aspect-ratio). No inline styles: the CSP forbids them.

   Each device type has its own colour, used for its tile, its screen and its
   big button: gate green, door blue, light yellow, camera purple. */

:root {
  --bg: #edf0f2;
  --card: #ffffff;
  --ink: #13171c;
  --muted: #4a5260;
  --line: #e3e7eb;
  --edge: #c9d0d8;
  --navy: #17263d;
  --brand: #1f3a63;
  --brand-edge: #0e1c33;
  --sun: #f5b700;
  --ok: #135c33;
  --ok-dot: #1e8a4f;
  --bad: #8f1c14;
  --bad-dot: #c2261b;
  --warn-bg: #fff4d6;
  --warn-line: #e0a100;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 16px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 20px/1.35 "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Roboto, "Segoe UI", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body.scr-login { background: var(--navy); }
body.noscroll { overflow: hidden; }

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

h1 { margin: 0 0 16px; font-size: 32px; line-height: 1.15; font-weight: 800; }
h2 { margin: 28px 0 12px; font-size: 24px; line-height: 1.2; font-weight: 800; }

.icon { display: block; width: 28px; height: 28px; flex: none; }

.loading, .empty { margin-top: 40px; color: var(--muted); text-align: center; }

/* ---- top bar: app name or back button on the left, PL/EN on the right ---- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

.brand { display: flex; align-items: center; font-size: 22px; font-weight: 800; }
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sun);
  color: var(--navy);
}
.brand .logo { width: 44px; height: 44px; margin-right: 12px; border-radius: 14px; }

.langbar { display: flex; padding: 4px; background: #dde2e8; border-radius: 999px; }
.langbar a {
  display: block;
  min-width: 52px;
  padding: 10px 6px;
  border-radius: 999px;
  color: #3a4250;
  font-size: 17px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}
.langbar a.on { background: var(--navy); color: #fff; }
.hero .langbar, .scr-login .langbar { background: #2a3b55; }
.hero .langbar a, .scr-login .langbar a { color: #fff; }
.hero .langbar a.on, .scr-login .langbar a.on { background: #fff; color: var(--navy); }

.back {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 22px 0 10px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}
.back .icon { margin-right: 6px; stroke-width: 5; }

/* ---- device type colours ---- */

.t-gate { background: #dcefe3; color: #17603d; }
.t-door { background: #dde7fb; color: #1f4c9e; }
.t-light { background: #ffedb8; color: #7a5200; }
.t-camera { background: #ebe2f6; color: #5e3790; }

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  margin-right: 14px;
  border-radius: 20px;
}
.chip .icon { width: 40px; height: 40px; }

/* ---- state labels: a coloured dot and a word ---- */

.pill {
  display: inline-block;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: #464e5a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.pill:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #8a929e;
  vertical-align: 1px;
}
.pill:empty { display: none; }
.pill.online { background: #e3f3e9; color: var(--ok); }
.pill.online:before { background: var(--ok-dot); }
.pill.offline { background: #fce6e3; color: var(--bad); }
.pill.offline:before { background: var(--bad-dot); }
.pill.on, .pill.unlocked { background: #fff1c7; color: #6b4800; }
.pill.on:before, .pill.unlocked:before { background: var(--warn-line); }
.pill.locked { background: #e5ecf8; color: #1f3f7a; }
.pill.locked:before { background: #2152b0; }

/* ---- home ---- */

.hero {
  margin: -16px -16px 0;
  padding: 20px 20px 72px;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 32px 32px;
}
.hero .topbar { margin-bottom: 28px; }
.hero .date { margin: 0 0 6px; color: #c9d3e3; font-size: 19px; }
.hero h1 { margin: 0; font-size: 36px; }

.tiles { margin-top: -44px; }

.tile {
  display: flex;
  align-items: center;
  min-height: 108px;
  margin: 0 0 14px;
  padding: 18px 14px 18px 18px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.tile:active { background: #f3f6fa; }
.tile .body { flex: 1 1 auto; min-width: 0; }
.tile .name { display: block; margin-bottom: 8px; font-size: 24px; font-weight: 800; line-height: 1.15; }
.tile .chev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-left: 14px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
}
.tile .chev .icon { width: 22px; height: 22px; stroke-width: 5; }

.card.empty { margin-top: 0; padding: 24px; }

.statusline { min-height: 1.4em; margin: 4px 0 0; color: var(--muted); font-size: 17px; text-align: center; }

.menu {
  margin: 24px 0 0;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menu a {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}
.menu a:first-child { border-top: 0; }
.menu a:active { background: #f3f6fa; }
.menu .icon { margin-right: 16px; color: var(--muted); }

/* ---- device screen ---- */

.devhero {
  margin: 0 0 16px;
  padding: 28px 20px;
  border-radius: 28px;
  text-align: center;
}
.bigicon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
}
.bigicon .icon { width: 60px; height: 60px; }
.devhero h1 { margin: 0 0 14px; color: var(--ink); }
.devhero .pill { background: #fff; font-size: 18px; }
.devhero .i-on { display: none; }
.devhero.s-on { background: #ffe9a8; }
.devhero.s-on .bigicon { background: var(--sun); color: #2a1e00; box-shadow: 0 0 0 14px rgba(245, 183, 0, 0.3); }
.devhero.s-on .i-off { display: none; }
.devhero.s-on .i-on { display: block; }
.devhero.t-light.s-off { background: #e1e5ea; color: #5b6472; }

.devhead { display: flex; align-items: center; margin: 0 0 16px; }
.devhead .body { min-width: 0; }
.devhead h1 { margin: 0 0 6px; font-size: 28px; }

/* Buttons sit on a darker bottom edge, so they look like something to press. */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 112px;
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 0;
  border-radius: 28px;
  background: var(--brand);
  box-shadow: 0 6px 0 var(--brand-edge);
  color: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn .icon { width: 36px; height: 36px; margin-right: 14px; }
.btn:active:not([disabled]) {
  -webkit-transform: translateY(6px);
  transform: translateY(6px);
  box-shadow: none;
}
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn.k-gate { background: #1c6b45; box-shadow: 0 6px 0 #0f4229; }
.btn.k-door { background: #2152b0; box-shadow: 0 6px 0 #163b82; }
.btn.k-light { background: var(--sun); box-shadow: 0 6px 0 #b98900; color: #2a1e00; }
.btn.secondary {
  border: 2px solid var(--edge);
  background: #fff;
  box-shadow: 0 6px 0 var(--edge);
  color: var(--ink);
}
.btn.secondary .icon { color: #5b6472; }
.btn.install { min-height: 80px; margin-top: 16px; font-size: 21px; }

.confirm {
  margin: 0 0 22px;
  padding: 22px 18px 16px;
  background: var(--warn-bg);
  border: 3px solid var(--warn-line);
  border-radius: 28px;
}
.confirm p { margin: 0 0 18px; font-size: 26px; font-weight: 800; line-height: 1.25; text-align: center; }
.btnrow { display: flex; }
.btnrow .btn { flex: 1 1 0; min-height: 88px; margin-bottom: 6px; border-radius: 24px; }
.btnrow .btn + .btn { margin-left: 12px; }
.btnrow .btn .icon { width: 30px; height: 30px; margin-right: 10px; stroke-width: 5; }

/* The device under the camera picture (usually the gate). */
.linked {
  margin: 0 0 16px;
  padding: 20px 18px 16px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.linkhead { display: flex; align-items: center; margin: 0 0 16px; }
.linkhead .chip { width: 48px; height: 48px; flex-basis: 48px; margin-right: 12px; border-radius: 16px; }
.linkhead .chip .icon { width: 30px; height: 30px; }
.linkhead h2 { flex: 1 1 auto; min-width: 0; margin: 0 8px 0 0; font-size: 22px; }
.linkhead .pill { flex: none; }
.linked .btn { min-height: 104px; }
.linked .btn:last-child { margin-bottom: 6px; }

/* ---- messages: "done" with a green tick, errors in red ---- */

.msg { margin: 0 0 16px; font-size: 23px; font-weight: 800; line-height: 1.25; }
.msg:empty { display: none; }
.msg.info { color: var(--muted); font-weight: 700; text-align: center; }
.msg.ok, .msg.bad {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
}
.msg.ok { background: var(--card); box-shadow: var(--shadow); color: var(--ok); }
.msg.bad { background: #fce6e3; color: var(--bad); }
.msgicon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  margin-right: 16px;
  border-radius: 50%;
  color: #fff;
}
.msgicon .icon { width: 30px; height: 30px; stroke-width: 5; }
.msg.ok .msgicon { background: var(--ok-dot); }
.msg.bad .msgicon { background: var(--bad-dot); }

/* ---- camera ---- */

.cam {
  position: relative;
  margin: 0 0 12px;
  background: #0e141b;
  border-radius: 24px;
  overflow: hidden;
}
.stage { position: relative; min-height: 210px; }
.cam img { display: block; width: 100%; height: auto; cursor: pointer; }
.cam img.wait { display: none; }
.camstatus {
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  margin: 0;
  padding: 0 14px;
  color: #fff;
  font-size: 20px;
  text-align: center;
}
.livebadge {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.livebadge:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff4a3d;
}
.cambtn, .camclose {
  display: none;
  position: absolute;
  align-items: center;
  min-height: 56px;
  padding: 0 20px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: var(--navy);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
.cambtn { right: 12px; bottom: 12px; }
.camclose { top: 16px; right: 16px; }
.cambtn .icon, .camclose .icon { width: 28px; height: 28px; margin-right: 8px; stroke-width: 4.5; }
.cam.live .stage { min-height: 0; }
.cam.live .livebadge { display: block; }
.cam.live .cambtn { display: flex; }

/* Enlarged: the whole screen, black around the picture. */
.cam.max {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  margin: 0;
  border-radius: 0;
  background: #000;
}
.cam.max .stage { height: 100%; min-height: 0; }
.cam.max img { width: 100%; height: 100%; object-fit: contain; cursor: default; }
.cam.max .cambtn { display: none; }
.cam.max .camclose { display: flex; }
/* The phone stays upright: turn the picture sideways to use the long side. */
@media (orientation: portrait) {
  .cam.max.rot .stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 100vw;
    -webkit-transform: translate(-50%, -50%) rotate(90deg);
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

.camnote { display: flex; align-items: center; margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.camnote .icon { width: 24px; height: 24px; margin-right: 10px; stroke-width: 4; }

/* ---- login ---- */

.scr-login #app { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 24px; }
.brandmark {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0 32px;
  color: #fff;
  text-align: center;
}
.brandmark .logo { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 30px; }
.brandmark .logo .icon { width: 60px; height: 60px; }
.brandmark h1 { margin: 0; font-size: 44px; line-height: 1.1; }

.logincard { padding: 28px 22px 22px; background: var(--card); border-radius: 32px; }
.logincard label { display: block; margin: 0 0 14px; font-size: 26px; font-weight: 800; line-height: 1.25; text-align: center; }
.code {
  display: block;
  width: 100%;
  height: 88px;
  margin: 0 0 18px;
  padding: 0 16px;
  border: 3px solid var(--edge);
  border-radius: 22px;
  background: #f6f8fa;
  color: var(--ink);
  font: inherit;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}
.code:focus { border-color: var(--navy); background: #fff; outline: none; }
.logincard .btn { min-height: 92px; font-size: 27px; }
.logincard .btn .icon { margin: 0 0 0 14px; stroke-width: 4; }
.hint { display: flex; align-items: flex-start; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.4; }
.hint .icon { margin-right: 12px; }

/* ---- admin ---- */

.tabs { display: flex; margin: 0 0 16px; padding: 4px; background: #dde2e8; border-radius: 18px; }
.tabs a {
  display: block;
  flex: 1 1 0;
  padding: 14px 4px;
  border-radius: 14px;
  color: #3a4250;
  font-size: 17px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}
.tabs a + a { margin-left: 4px; }
.tabs a.on { background: var(--navy); color: #fff; }

.card {
  margin: 0 0 14px;
  padding: 20px 18px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.card .title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.sub { margin: 4px 0 10px; color: var(--muted); font-size: 16px; }
.note { margin: 8px 0 12px; padding: 12px 14px; border-radius: 14px; background: #f3f5f7; color: #3a4250; font-size: 17px; }
.badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--sun);
  color: #2a1e00;
  font-size: 14px;
  font-weight: 800;
  vertical-align: middle;
}

.devcard { display: flex; align-items: flex-start; }
.devcard .chip { width: 48px; height: 48px; flex-basis: 48px; border-radius: 16px; }
.devcard .chip .icon { width: 30px; height: 30px; }
.devcard .body { flex: 1 1 auto; min-width: 0; word-wrap: break-word; }

.addform > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.addform > summary::-webkit-details-marker { display: none; }
.addform[open] > summary { margin-bottom: 18px; }
.plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-right: 14px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}
.plus .icon { width: 24px; height: 24px; stroke-width: 5; }
.addform .btn { min-height: 68px; margin: 12px 0 14px; border-radius: 20px; font-size: 22px; }

.notice {
  margin: 0 0 16px;
  padding: 20px 18px;
  background: var(--warn-bg);
  border: 3px solid var(--warn-line);
  border-radius: 24px;
  text-align: center;
}
.notice p { margin: 0 0 8px; }
.bigcode { font-size: 46px; font-weight: 800; line-height: 1.15; letter-spacing: 0.08em; }

form label { display: block; margin: 0 0 14px; font-size: 18px; font-weight: 700; }
input[type=text], input[type=number], select {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 10px 14px;
  border: 2px solid var(--edge);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  font-weight: 400;
}
input[type=text]:focus, input[type=number]:focus, select:focus { border-color: var(--navy); outline: none; }
input[readonly] { background: #eef0f3; color: var(--muted); }
input[type=checkbox] {
  width: 26px;
  height: 26px;
  flex: none;
  margin: 0 12px 0 0;
  vertical-align: middle;
  accent-color: var(--brand);
}
label.check { display: flex; align-items: flex-start; }
label.check input { margin-top: 1px; }
.checks { margin: 0 0 12px; }
.checks label {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
}
.checks label:last-child { border-bottom: 0; }

.actions { margin-top: 8px; }
.btn.small {
  display: inline-flex;
  width: auto;
  min-height: 48px;
  margin: 4px 8px 4px 0;
  padding: 0 16px;
  border: 2px solid var(--edge);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  color: var(--navy);
  font-size: 17px;
}
.btn.small .icon { width: 22px; height: 22px; margin-right: 8px; stroke-width: 5; }
.btn.small.danger { border-color: #f0c4bf; color: #a3221a; }
.btn.small:active:not([disabled]) { -webkit-transform: none; transform: none; background: #f3f6fa; }
.camstatus .btn.small { margin: 12px 0 0; }

details.phones { margin: 8px 0; border-radius: 16px; background: #f3f5f7; }
details.phones > summary {
  min-height: 52px;
  padding: 13px 16px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.phone { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 18px; }

.logcard { padding: 6px 14px; }
.log { width: 100%; border-collapse: collapse; font-size: 15px; }
.log td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log tr:last-child td { border-bottom: 0; }
.log .t { white-space: nowrap; color: var(--muted); }

/* ---- admin: System tab ---- */

.systab { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 17px; }
.systab td { padding: 8px 4px; border-top: 1px solid rgba(0, 0, 0, 0.08); vertical-align: top; }
.systab tr:first-child td { border-top: 0; }
.systab td.k { width: 42%; color: var(--muted); }
.systab .pill { font-size: 15px; }

/* Device name per language: the PL/EN switch in the name's line */
.namerow { display: flex; gap: 8px; align-items: stretch; }
.namerow input { flex: 1 1 auto; min-width: 0; }
.namelang {
  flex: 0 0 auto; min-width: 52px; padding: 0 10px; border: 2px solid var(--edge); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 800; letter-spacing: .04em; cursor: pointer;
}
.namelang:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.namehint { margin-top: -6px; }

/* ---- protocol v1: more device types, locations, calm "maintenance", camera arrows, feeding ---- */

.t-lock { background: #dde7fb; color: #1f4c9e; }
.t-switch { background: #e4ecef; color: #2d4a57; }
.t-feeder { background: #f3e6d6; color: #7a4a12; }
.t-hub { background: #e6e8eb; color: #3a4250; }
.btn.k-lock { background: #2152b0; box-shadow: 0 6px 0 #163b82; }
.btn.k-switch { background: #2d4a57; box-shadow: 0 6px 0 #1b2f38; }
.btn.k-feeder { background: #9a5a17; box-shadow: 0 6px 0 #6b3d0d; }

/* Grey and calm on purpose: an unreachable device shown as a short break, not an alarm. */
.pill.maint { background: #eceef1; color: #4a5260; }
.pill.maint:before { background: #9aa3ad; }
.pill.off { background: #eceef1; color: #4a5260; }
.pill.off:before { background: #9aa3ad; }

/* The tabs take the list's place under the header's curve; the list follows them. */
.loctabs {
  position: relative;
  display: flex;
  margin: -44px 0 16px;
  padding: 4px;
  background: #dde2e8;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.loctabs + .tiles { margin-top: 0; }
.loctabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 8px;
  border-radius: 14px;
  color: #3a4250;
  font-size: 19px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}
.loctabs a + a { margin-left: 4px; }
.loctabs a.on { background: var(--navy); color: #fff; }

.ptzpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: ". up ." "left home right" ". down .";
  gap: 8px;
  max-width: 300px;
  margin: 6px auto 14px;
}
.ptzpad .btn { min-height: 64px; margin: 0; padding: 0; border-radius: 18px; }
.ptzpad .btn .icon { width: 30px; height: 30px; margin: 0; stroke-width: 5; }
.ptzpad .p-up { grid-area: up; }
.ptzpad .p-left { grid-area: left; }
.ptzpad .p-home { grid-area: home; }
.ptzpad .p-right { grid-area: right; }
.ptzpad .p-down { grid-area: down; }

.feedrow { display: flex; align-items: center; justify-content: center; margin: 4px 0 6px; font-size: 19px; font-weight: 700; }
.feedrow .btn { width: 56px; min-height: 56px; margin: 0 12px; padding: 0; }
.feedrow .btn .icon { margin: 0; }
.feedrow .portions { min-width: 32px; font-size: 28px; text-align: center; }

.devform { border: 2px solid var(--brand); }
h3 { margin: 18px 4px 8px; font-size: 18px; color: var(--muted); }
.locname { margin-top: 8px; font-weight: 800; }

.systab td { overflow-wrap: anywhere; }
