@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f6ef;
  --ink: #202820;
  --muted: #60695d;
  --border: #dbdfd3;
  --leaf: #394e32;
  --rail: #273427;
  --control-size: 40px;
  --control-radius: 8px;
  --control-outline: #446440;
  --control-stroke: #aab8a6;
  --toolbar-gap: 8px;
  --caption-size: 0.857143rem;
  --accent: #c8dfa0;
  font-family:
    "DM Sans",
    "Avenir Next",
    Avenir,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
p {
  margin: 0;
}
a {
  color: var(--leaf);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1 {
  font-family: inherit;
  letter-spacing: -0.055em;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.08;
}
h2 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.035em;
  font-weight: 650;
}
p,
small {
  color: var(--muted);
}
p {
  line-height: 1.6;
}
small {
  display: block;
  font-size: 12px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
.app {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--rail);
  color: #f6f7e9;
  padding: 26px 14px 12px;
}
aside .icon,
.btn:not(.secondary) .icon,
button:not(.secondary) .icon {
  filter: invert(1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 1.1;
}
.brand > .icon {
  padding: 7px;
  width: 39px;
  height: 39px;
  background: var(--accent);
  border-radius: 12px;
  filter: none;
  color: var(--ink);
}
.brand small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 550;
  color: inherit;
  opacity: 0.78;
  margin-top: 3px;
}
.brand,
.identity,
.switch {
  margin-inline: 7px;
}
.switch,
.identity {
  display: flex;
  align-items: center;
  gap: 6px;
}
.switch {
  background: #344434;
  border: 1px solid #52604d;
  padding: 9px 10px;
  border-radius: 10px;
}
.switch label {
  flex: 1;
  color: #c1cabc;
  font-size: 11px;
}
.switch select {
  min-height: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font-weight: 700;
  width: 100%;
  color-scheme: dark;
}
.switch button,
.identity button {
  padding: 5px;
  background: transparent;
}
.switch button:hover,
.identity button:hover {
  background: #475a42;
}
nav {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #5d6a56 transparent;
}
.nav-group {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b2c2a9;
  margin: 20px 12px 6px;
}
.nav-group:first-child {
  margin-top: 0;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 6px 12px;
  color: #e5eadf;
  margin: 1px 0;
  border-radius: 7px;
}
nav a:hover {
  background: #354534;
  text-decoration: none;
}
nav a.current {
  background: #d5e6ba;
  color: #263722;
  font-weight: 650;
}
nav a.current .icon {
  filter: none;
}
.identity {
  border-top: 1px solid #4a5945;
  padding-top: 12px;
  justify-content: space-between;
}
.identity small {
  color: #b7c5af;
}
.identity strong {
  text-transform: capitalize;
}
.body {
  min-width: 0;
}
header {
  min-height: 65px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 10px clamp(18px, 3.7vw, 58px);
  gap: 10px;
  background: #fbfbf7;
}
.crumb {
  font-size: 12px;
  font-weight: 600;
}
.crumb i {
  margin: 0 9px;
  color: #a9ad9f;
}
.find {
  margin-left: auto;
}
.mobile {
  display: none !important;
}
main {
  max-width: 1580px;
  margin: auto;
  padding: 34px clamp(16px, 3.7vw, 58px) 60px;
  display: grid;
  gap: 20px;
  align-content: start;
}
.heading,
.panel-head,
.inline,
.panel-head > a,
.btn,
button {
  display: flex;
  align-items: center;
  gap: 9px;
}
.heading,
.panel-head {
  justify-content: space-between;
  flex-wrap: wrap;
}
.heading {
  margin: 2px 0 7px;
}
.heading p {
  margin-top: 7px;
}
.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
  background: #fefefa;
}
.panel h2 + p,
.panel > p {
  margin-top: 6px;
}
.panel-head > p,
.panel-head > div > p {
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metrics a {
  color: var(--ink);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fefefa;
  display: grid;
  gap: 17px;
}
.metrics a:first-child {
  background: #e5edce;
  border-color: #d5dfbc;
}
.metrics a div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #505e49;
  font-size: 13px;
}
.metrics .icon {
  width: 14px;
}
.metrics strong,
.total {
  font-size: clamp(26px, 3vw, 43px);
  letter-spacing: -0.07em;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
}
.chart .panel-head > .icon {
  width: 25px;
  height: 25px;
  color: var(--leaf);
}
.plot {
  display: flex;
  justify-content: space-around;
  gap: 4px;
  margin-top: 24px;
  background: repeating-linear-gradient(
    to top,
    transparent 0 37px,
    #e9ece1 37px 38px
  );
  border-bottom: 1px solid var(--border);
}
.day {
  text-align: center;
  flex: 1;
  min-width: 0;
}
.day small {
  font-size: 10px;
  margin: 6px 0;
  white-space: nowrap;
}
.track {
  height: 86px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.track span {
  width: 55%;
  min-height: 2px;
  background: #829658;
  border-radius: 5px 5px 0 0;
}
.day:last-child .track span {
  background: var(--leaf);
}
.focus {
  background: #edf1e5;
}
.focus > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #d9dfcd;
  color: var(--ink);
}
.focus > a:last-child {
  border: 0;
}
.focus h2 {
  margin-bottom: 5px;
}
.focus b {
  margin-left: auto;
}
.focus .icon {
  width: 14px;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf);
  color: white;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  min-height: var(--control-size);
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn {
  justify-self: start;
}
.btn:hover,
button:hover {
  background: #293e24;
  text-decoration: none;
}
.secondary {
  background: #fefef9;
  color: var(--ink);
  border: 1px solid var(--border);
}
.secondary:hover {
  background: #e9ede1;
}
.mobile .icon,
.find .icon {
  width: 15px;
}
kbd {
  font-size: 10px;
  border: 1px solid var(--border);
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--muted);
}
label {
  font-size: 12px;
  font-weight: 600;
  display: grid;
  gap: 5px;
}
input,
select,
textarea {
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  min-height: var(--control-size);
  border: 1px solid var(--control-stroke);
  border-radius: var(--control-radius);
  max-width: 100%;
}
textarea {
  resize: vertical;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--control-outline);
  outline-offset: 2px;
}
.stack {
  display: grid;
  gap: 12px;
}
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  align-items: end;
  margin-top: 18px;
}
.stack button,
.form-grid button {
  justify-self: start;
}
.actions {
  display: grid;
  gap: 9px;
}
.action {
  padding: 0;
}
.action summary {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 19px;
  color: var(--leaf);
  font-weight: 600;
}
.action summary > .icon:last-child {
  margin-left: auto;
}
.action[open] summary {
  border-bottom: 1px solid var(--border);
}
.action form {
  margin: 0;
  padding: 18px;
}
summary {
  cursor: pointer;
  color: var(--leaf);
}
.scroll {
  max-width: 100%;
  overflow-x: auto;
}
table {
  min-width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  margin-top: 15px;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  background: #f3f5ed;
}
th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
td:first-child {
  font-weight: 550;
}
td small {
  margin-top: 4px;
}
td .stack {
  padding-top: 8px;
}
.status {
  background: #e6eed9;
  color: #394d30;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 99px;
  text-transform: capitalize;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 30px 8px;
  margin-top: 14px;
  background: #f7f8f2;
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}
.empty .icon {
  margin-bottom: 4px;
}
.empty p {
  font-size: 13px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}
.module-grid .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.module-grid .panel-head {
  width: 100%;
}
.module-grid p {
  margin: 0;
  flex: 1;
}
.symbol {
  background: #eaf0e0;
  padding: 8px;
  border-radius: 9px;
}
.notice {
  border: 1px solid #d4dfc5;
  border-radius: 8px;
  padding: 10px 15px;
  background: #eef2e5;
}
.notice a {
  margin-left: 8px;
  text-decoration: underline;
}
.entry {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #dfe6d3;
}
.login-card {
  width: min(92vw, 400px);
  padding: 36px;
  background: #fafbf5;
  border: 1px solid var(--border);
  border-radius: 18px;
  gap: 14px;
}
.login-card .brand {
  margin: 0 0 15px;
}
.login-card h1 {
  font-size: 44px;
}
.public {
  max-width: 970px;
}
.public .brand {
  margin: 0;
}
.public .heading {
  margin-top: 20px;
}
dialog {
  width: min(94vw, 540px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #16211499;
}
dialog input {
  width: 100%;
  margin: 12px 0;
}
.hits {
  max-height: 50vh;
  overflow: auto;
}
.hits a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
.hits small {
  margin-left: auto;
}
[hidden] {
  display: none !important;
}
.inline {
  flex-wrap: wrap;
}
@media (max-width: 1000px) {
  .app {
    grid-template-columns: 202px minmax(0, 1fr);
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .app {
    display: block;
  }
  aside {
    display: none;
  }
  .rail-open aside {
    display: flex;
    position: fixed;
    z-index: 5;
    top: 58px;
    left: 0;
    width: min(82vw, 280px);
    height: calc(100dvh - 58px);
    box-shadow: 8px 8px 30px #1113;
  }
  header {
    min-height: 58px;
    position: sticky;
    top: 0;
    z-index: 6;
  }
  .mobile {
    display: inline-flex !important;
  }
  .find kbd {
    display: none;
  }
  main {
    gap: 14px;
    padding-top: 24px;
  }
  .panel {
    padding: 15px;
  }
  .action {
    padding: 0;
  }
  .metrics {
    gap: 8px;
  }
  .metrics a {
    padding: 13px;
    gap: 9px;
  }
  .panel-head {
    align-items: flex-start;
  }
  .crumb {
    font-size: 10px;
  }
  .find {
    font-size: 12px;
  }
  .heading .btn {
    min-height: 33px;
  }
  .plot {
    gap: 2px;
  }
}
.h0 {
  height: 0%;
}
.h1 {
  height: 1%;
}
.h2 {
  height: 2%;
}
.h3 {
  height: 3%;
}
.h4 {
  height: 4%;
}
.h5 {
  height: 5%;
}
.h6 {
  height: 6%;
}
.h7 {
  height: 7%;
}
.h8 {
  height: 8%;
}
.h9 {
  height: 9%;
}
.h10 {
  height: 10%;
}
.h11 {
  height: 11%;
}
.h12 {
  height: 12%;
}
.h13 {
  height: 13%;
}
.h14 {
  height: 14%;
}
.h15 {
  height: 15%;
}
.h16 {
  height: 16%;
}
.h17 {
  height: 17%;
}
.h18 {
  height: 18%;
}
.h19 {
  height: 19%;
}
.h20 {
  height: 20%;
}
.h21 {
  height: 21%;
}
.h22 {
  height: 22%;
}
.h23 {
  height: 23%;
}
.h24 {
  height: 24%;
}
.h25 {
  height: 25%;
}
.h26 {
  height: 26%;
}
.h27 {
  height: 27%;
}
.h28 {
  height: 28%;
}
.h29 {
  height: 29%;
}
.h30 {
  height: 30%;
}
.h31 {
  height: 31%;
}
.h32 {
  height: 32%;
}
.h33 {
  height: 33%;
}
.h34 {
  height: 34%;
}
.h35 {
  height: 35%;
}
.h36 {
  height: 36%;
}
.h37 {
  height: 37%;
}
.h38 {
  height: 38%;
}
.h39 {
  height: 39%;
}
.h40 {
  height: 40%;
}
.h41 {
  height: 41%;
}
.h42 {
  height: 42%;
}
.h43 {
  height: 43%;
}
.h44 {
  height: 44%;
}
.h45 {
  height: 45%;
}
.h46 {
  height: 46%;
}
.h47 {
  height: 47%;
}
.h48 {
  height: 48%;
}
.h49 {
  height: 49%;
}
.h50 {
  height: 50%;
}
.h51 {
  height: 51%;
}
.h52 {
  height: 52%;
}
.h53 {
  height: 53%;
}
.h54 {
  height: 54%;
}
.h55 {
  height: 55%;
}
.h56 {
  height: 56%;
}
.h57 {
  height: 57%;
}
.h58 {
  height: 58%;
}
.h59 {
  height: 59%;
}
.h60 {
  height: 60%;
}
.h61 {
  height: 61%;
}
.h62 {
  height: 62%;
}
.h63 {
  height: 63%;
}
.h64 {
  height: 64%;
}
.h65 {
  height: 65%;
}
.h66 {
  height: 66%;
}
.h67 {
  height: 67%;
}
.h68 {
  height: 68%;
}
.h69 {
  height: 69%;
}
.h70 {
  height: 70%;
}
.h71 {
  height: 71%;
}
.h72 {
  height: 72%;
}
.h73 {
  height: 73%;
}
.h74 {
  height: 74%;
}
.h75 {
  height: 75%;
}
.h76 {
  height: 76%;
}
.h77 {
  height: 77%;
}
.h78 {
  height: 78%;
}
.h79 {
  height: 79%;
}
.h80 {
  height: 80%;
}
.h81 {
  height: 81%;
}
.h82 {
  height: 82%;
}
.h83 {
  height: 83%;
}
.h84 {
  height: 84%;
}
.h85 {
  height: 85%;
}
.h86 {
  height: 86%;
}
.h87 {
  height: 87%;
}
.h88 {
  height: 88%;
}
.h89 {
  height: 89%;
}
.h90 {
  height: 90%;
}
.h91 {
  height: 91%;
}
.h92 {
  height: 92%;
}
.h93 {
  height: 93%;
}
.h94 {
  height: 94%;
}
.h95 {
  height: 95%;
}
.h96 {
  height: 96%;
}
.h97 {
  height: 97%;
}
.h98 {
  height: 98%;
}
.h99 {
  height: 99%;
}
.h100 {
  height: 100%;
}
.access-inner {
  padding: 0 20px 20px;
}
.access-inner h2 {
  margin: 22px 0 1px;
}
.access-inner form {
  padding: 8px 0;
  margin: 0;
}
.pages {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.languages {
  position: relative;
  flex: none;
  z-index: 8;
}
.languages summary {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-weight: 650;
  list-style: none;
  background: #fafbf4;
  font-size: 12px;
}
.languages > div {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  padding: 4px;
  min-width: 104px;
  background: #fffef7;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 5px 16px #24332119;
}
.languages a {
  display: block;
  padding: 8px;
}
.login-card > .languages,
.public > .languages {
  justify-self: end;
}
.body header > .languages {
  margin-left: auto;
}
.body header > .find {
  margin-left: 0;
}
@media (max-width: 560px) {
  .body header .crumb {
    display: none;
  }
  .body header .find {
    white-space: nowrap;
  }
  .body header > .languages {
    margin-left: auto;
  }
}
.rail-brand,
.rail-brand:hover {
  color: inherit;
  text-decoration: none;
}

/* Operational shell: the rail selects an area, the header selects a register. */
.app {
  grid-template-columns: 212px minmax(0, 1fr);
  background: #f4f6f2;
}
.app #rail {
  background: #fafcf9;
  color: #253c31;
  border-right: 1px solid #dce3da;
  padding: 23px 12px 16px;
}
#rail .rail-brand {
  margin: 0 0 6px;
}
#rail .switch {
  background: #eff3ed;
  border-color: #dae2d7;
}
#rail .switch label,
#rail .identity small {
  color: #627264;
}
#rail .switch select {
  color: #294031;
  color-scheme: light;
}
#rail .switch button .icon,
#rail .identity button .icon,
#rail nav .icon {
  filter: none;
}
#rail .switch button:hover,
#rail .identity button:hover {
  background: #dae6d6;
}
#rail nav {
  padding-top: 8px;
}
#rail nav a {
  min-height: 43px;
  color: #506055;
  font-size: 14px;
  margin-bottom: 4px;
}
#rail nav a.current {
  background: #e1eddf;
  color: #264c33;
}
#rail nav a:hover {
  background: #eaf1e7;
}
#rail .identity {
  border-color: #dae2d7;
}
.work-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(16px, 2.8vw, 44px);
  min-height: 72px;
  background: #f4f6f2;
  border: 0;
  position: relative;
  z-index: 3;
}
.tab-frame {
  display: flex;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: thin;
  background: #e7ebe5;
  border: 1px solid #dfe5dc;
  padding: 4px;
  gap: 3px;
  border-radius: 13px;
}
.tab-frame > a {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 9px;
  font-weight: 560;
  color: #556358;
  white-space: nowrap;
}
.tab-frame > a:hover {
  background: #eff3ed;
  text-decoration: none;
}
.tab-frame > a.current {
  color: #285338;
  background: #fff;
  box-shadow: 0 1px 3px #293c3021;
  font-weight: 680;
}
.tab-frame .icon {
  width: 16px;
  height: 16px;
}
.work-tools {
  display: flex;
  align-items: center;
  gap: var(--toolbar-gap);
  margin-left: auto;
  flex: none;
}
.work-tools button {
  width: var(--control-size);
  height: var(--control-size);
  padding: 8px;
  border-radius: 11px;
}
.create-record {
  background: #365e43;
}
.work-tools .create-record .icon {
  width: 20px;
  height: 20px;
}
.work-tools .languages summary {
  min-height: 38px;
  display: flex;
  align-items: center;
}
#work-content {
  padding: 8px clamp(16px, 2.8vw, 44px) 48px;
  gap: 14px;
}
.home-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.home-heading h1 {
  font:
    650 25px/1.25 "DM Sans",
    system-ui,
    sans-serif;
  letter-spacing: -0.025em;
}
.home-heading p {
  font-size: 13px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.list-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.list-search label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 9px;
  background: white;
  border: 1px solid #d7dfd5;
  width: min(100%, 410px);
  max-width: 75%;
  min-height: 40px;
}
.list-search label:focus-within {
  outline: 2px solid #637e58;
  outline-offset: 1px;
}
.list-search input {
  flex: 1;
  min-width: 0;
  outline: 0;
  border: 0;
  background: transparent;
  padding-inline: 0;
}
.list-search input:focus-visible {
  outline: none;
}
.register {
  padding: 0;
  overflow: hidden;
  background: white;
}
.register > h2,
.register > .panel-head {
  padding: 16px 20px;
}
.register h2 {
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.015em;
}
.register table {
  margin: 0;
}
.register th,
.register td {
  padding: 13px 16px;
}
.register td {
  vertical-align: middle;
}
.register th {
  background: #f4f6f2;
  font-size: 12px;
  color: #59665b;
}
.register .empty {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
  background: #fafbf8;
  margin: 0;
  padding: 40px 10px;
}
.register .pages {
  padding: 0 14px 12px;
}
[data-record-row] {
  cursor: pointer;
}
[data-record-row]:hover,
[data-record-row]:focus-within {
  background: #f2f7ef;
}
.row-open {
  display: inline;
  text-align: left;
  color: #2a4434;
  background: transparent;
  border: 0;
  border-radius: 3px;
  padding: 0;
  font: inherit;
  font-weight: 620;
  min-height: 24px;
}
.row-open:hover {
  background: transparent;
  text-decoration: underline;
}
#record-sheet {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(480px, 100vw);
  max-width: 100vw;
  border: 0;
  border-left: 1px solid #d6dfd4;
  border-radius: 16px 0 0 16px;
  padding: 0;
  background: #fbfcf9;
}
.sheet-head {
  position: sticky;
  top: 0;
  background: #fbfcf9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #dce3da;
  z-index: 1;
}
.sheet-head h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.sheet-close {
  font-size: 24px;
  line-height: 1;
  padding: 4px 11px;
}
.sheet-body {
  padding: 23px;
  display: grid;
  gap: 18px;
}
.sheet-body form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 0;
}
.sheet-body button {
  justify-self: start;
}
.sheet-body details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.sheet-body summary {
  font-weight: 640;
}
.sheet-body details form {
  padding-top: 14px;
}
.record-fields {
  margin: 0;
}
.record-fields > div {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(0, 1.3fr);
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #e4e8df;
}
.record-fields dt {
  color: #59675b;
}
.record-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 550;
}
@media (max-width: 1000px) {
  .app {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .tab-frame > a {
    padding: 9px;
  }
}
@media (max-width: 720px) {
  .app {
    display: block;
  }
  .work-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 6;
    padding: 9px 14px;
    background: #f4f6f2;
  }
  .work-bar > .mobile {
    grid-row: 1;
    grid-column: 1;
  }
  .work-tools {
    grid-row: 1;
    grid-column: 2;
  }
  .tab-frame {
    grid-row: 2;
    grid-column: 1/-1;
    justify-self: start;
  }
  .rail-open #rail {
    top: 55px;
    z-index: 9;
    height: calc(100dvh - 55px);
  }
  #work-content {
    padding-top: 6px;
  }
  .register td,
  .register th {
    padding: 11px 12px;
  }
  .sheet-body,
  .sheet-head {
    padding: 18px;
  }
  .list-search label {
    width: auto;
    flex: 1;
  }
}

.mobile-area {
  display: none;
}
@media (max-width: 720px) {
  .work-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .mobile-area {
    display: block;
    grid-row: 1;
    grid-column: 2;
    font-weight: 650;
    color: var(--ink);
  }
  .work-tools {
    grid-column: 3;
  }
  .tab-frame {
    scrollbar-width: none;
  }
  .tab-frame::-webkit-scrollbar {
    display: none;
  }
  .register table {
    width: 100%;
    table-layout: fixed;
  }
  .register th,
  .register td {
    overflow-wrap: anywhere;
  }
  .register tr > :nth-child(n + 3):not(:last-child) {
    display: none;
  }
  .register tr > :first-child {
    width: 39%;
  }
}

/* Keep the list switch next to the search field on narrow screens. */
.register-toolbar {display:flex; align-items:center; gap:8px; min-width:0; margin-bottom:12px}
.register-toolbar .list-search {display:flex; flex-wrap:nowrap; gap:0; align-items:center; border:1px solid #cbd3c7; background:#fff; border-radius:10px; flex:0 1 390px; min-width:0; padding:0 4px; margin:0}
.register-toolbar .list-search:focus-within {outline:2px solid #627b59;outline-offset:1px}
.register-toolbar .list-search input {border:0; border-radius:0; margin:0; width:100%; min-width:0; min-height:40px; padding:0 6px; background:transparent; outline:0}
.register-toolbar .search-submit,.register-toolbar .search-clear {display:grid; place-items:center; flex:0 0 33px; min-height:36px; border:0; padding:0; color:#41553f; background:transparent}
.register-toolbar .search-submit .icon {filter:none}
.register-toolbar .search-clear {font-size:21px;text-decoration:none}
.view-chip {position:relative; flex:0 0 auto; max-width:52%}
.view-chip summary {min-height:40px; padding:0 12px; display:flex; gap:10px; align-items:center; cursor:pointer; color:#2b4933; border:1px solid #bfccba; background:#e4eadf; border-radius:10px; font-size:13px; font-weight:650; list-style:none}
.view-chip summary::-webkit-details-marker {display:none}
.view-chip-label {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.view-chip-chevron {border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; width:7px; height:7px; flex:none; transform:translateY(-2px) rotate(45deg)}
.view-chip[open] .view-chip-chevron {transform:translateY(2px) rotate(225deg)}
.view-chip nav {position:absolute; z-index:8; right:0; top:calc(100% + 5px); background:#fffefa; width:max-content; min-width:100%; max-width:min(260px,calc(100vw - 38px)); padding:4px; border:1px solid #ccd5c7; border-radius:10px; box-shadow:0 6px 18px #293b3021; display:grid; gap:2px}
.view-chip nav a {display:flex; justify-content:space-between; align-items:center; gap:15px; color:#344633; text-decoration:none; padding:9px 10px; border-radius:6px; font-size:13px; min-height:36px}
.view-chip nav a[aria-current=page] {background:#e6ede0;font-weight:650}
.view-chip nav a[aria-current=page]::after {content:"✓"}
.view-chip nav a:hover {background:#edf1e8}
.view-chip :focus-visible {outline:2px solid #456840;outline-offset:1px}
.register-toolbar .branch-filter {margin:0}
@media(max-width:600px) {
 .register-toolbar {gap:6px}
 .register-toolbar .list-search {flex:1 1 auto}
 .register-toolbar .branch-filter {flex:1; min-width:0}
 .register-toolbar .branch-filter label {font-size:12px}
 .view-chip summary {min-height:40px; padding:0 10px}
}
.branch-filter,.branch-filter label {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.branch-filter {margin:0 0 12px}.branch-filter select {width:auto}
.register-heading {display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between}
.register-heading .pages, .panel-head .pages {margin:0; padding:0; border:0}
.pages small {align-self:center}

.work-create-slot { display: contents; }

/* Keep action targets comfortable on touch devices without widening the data grid. */
@media (max-width: 720px), (pointer: coarse) {
  :root { --control-size: 44px; }
  .work-tools .wa-preview > summary,
  .work-bar > .mobile { min-width: var(--control-size); min-height: var(--control-size); }
  .tab-frame > a, .view-chip summary { min-height: var(--control-size); }
  .register-toolbar .list-search input { min-height: calc(var(--control-size) - 2px); }
}
.work-tools .wa-preview > summary { width: var(--control-size); height: var(--control-size); }
