@font-face {
  font-family: Inter;
  src: url('/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap
}

@font-face {
  font-family: Inter;
  src: url('/fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap
}

:root {
  --pine: #183e34;
  --ink: #223931;
  --muted: #64726a;
  --line: #dde2d9;
  --paper: #f7f8f3;
  --white: #fff;
  --clay: #bb633d;
  --soft: #edf1e9;
  --side: 222px;
  color: var(--ink);
  font: 16px/1.5 Inter, Arial, sans-serif;
  background: var(--paper)
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
summary,
input[type=range] {
  touch-action: manipulation
}

button,
a {
  color: inherit
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  text-align: inherit
}

a {
  text-decoration: none
}

button:disabled {
  opacity: .55;
  cursor: not-allowed
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d78d58;
  outline-offset: 3px
}

h1,
h2,
h3,
p {
  margin: 0
}

h1,
h2 {
  font-family: Inter, Arial, sans-serif;
  font-weight: normal;
  letter-spacing: -.035em;
  line-height: 1.15
}

h1 {
  font-size: clamp(2.25rem, 3.1vw, 3.15rem)
}

h2 {
  font-size: 1.63rem
}

h3 {
  font-size: 1rem;
  font-weight: 600
}

.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle
}

.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  background: white;
  padding: 10px;
  z-index: 15
}

.skip:focus {
  top: 10px
}

.loading,
.offline {
  padding: 8vw
}

.offline h2,
.offline a {
  margin: 1rem 0
}

.side {
  width: var(--side);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--pine);
  color: #eff2e8;
  display: flex;
  flex-direction: column;
  padding: 30px 15px 16px;
  z-index: 5
}

.brandlink {
  padding: 0 12px;
  align-self: flex-start
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 650 1.84rem/1 Inter, sans-serif;
  letter-spacing: -.06em;
  white-space: nowrap
}

.brand img {
  display: block;
  flex: none;
}

.nav-caption,
.day-label,
.eyedate {
  font-size: .74rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .105em
}

.nav-caption {
  margin: 49px 14px 12px;
  color: #b2c5b6
}

.side nav,
.utility {
  display: grid;
  gap: 4px
}

.navlink {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 7px;
  color: #d5e2d6;
  font-size: .93rem;
  min-height: 44px
}

.navlink .icon {
  color: #b7cec1
}

.navlink.active {
  background: #34564a;
  color: #fff;
  font-weight: 650;
  box-shadow: inset 3px 0 #e8a377
}

.navlink.active .icon {
  color: #efb686
}

.navlink:hover,
.side-profile:hover {
  background: #2c5042
}

.side-bottom {
  margin-top: auto;
  padding-top: 32px
}

.utility {
  border-top: 1px solid #436053;
  padding-top: 16px;
  gap: 0
}

.utility .navlink {
  font-size: .88rem
}

.side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 4px 3px;
  margin: 14px 5px 0;
  border-top: 1px solid #436053;
  width: calc(100% - 10px);
  color: #f2f4ed
}

.side-profile span:nth-child(2) {
  flex: 1;
  text-align: left;
  min-width: 0
}

.side-profile b,
.side-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis
}

.side-profile b {
  font-size: .89rem
}

.side-profile small {
  color: #bdd0c2;
  font-size: .75rem
}

.side-profile .face {
  width: 36px;
  height: 36px;
  background: #d7dfc9;
  color: #284638
}

.workspace {
  margin-left: var(--side)
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(22px, 3vw, 54px);
  background: #fcfcf8
}

.crumb,
.topdate,
.actions,
.panel-title,
.primary,
.secondary,
.textbtn,
.iconbtn,
.badge,
.metric-label,
.top-actions {
  display: inline-flex;
  align-items: center
}

.crumb {
  gap: 12px;
  font-size: .88rem;
  color: var(--muted)
}

.crumb b {
  font-weight: 600;
  color: var(--ink)
}

.topdate {
  gap: 8px;
  color: var(--muted);
  font-size: .88rem
}

.primary,
.secondary,
.textbtn,
.iconbtn {
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 7px;
  font-size: .88rem;
  line-height: 1.35
}

.primary,
.secondary {
  padding: 11px 15px;
  min-height: 41px
}

.primary {
  background: #214b3d;
  color: white;
  border: 1px solid #214b3d
}

.primary:hover {
  background: #30634e
}

.secondary,
.iconbtn {
  background: white;
  border: 1px solid #d6ded4
}

.secondary:hover,
.iconbtn:hover {
  background: #edf2eb
}

.textbtn {
  color: #35604a;
  padding: 5px 0
}

.textbtn:hover {
  text-decoration: underline
}

.iconbtn {
  width: 36px;
  height: 36px;
  flex: none
}

.compact {
  min-height: 33px;
  padding: 6px 10px
}

.actions {
  gap: 8px;
  flex-wrap: wrap
}

.mobile-menu,
#scrim {
  display: none
}

#main {
  margin: 0 auto;
  max-width: 1640px;
  padding: 28px clamp(22px, 3vw, 54px) 50px;
  outline: none
}

.hero {
  isolation: isolate;
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(105deg, #eef3e6 15%, #e6efdf 60%, #d8e6d8);
  border: 1px solid #d8e2d2;
  min-height: 198px;
  display: flex;
  align-items: center
}

.hero-copy {
  position: relative;
  padding: 29px 35px;
  max-width: 66%;
  overflow-wrap: anywhere
}

.eyedate {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #506751;
  font-size: .7rem;
  letter-spacing: .12em
}

.eyedate i {
  width: 24px;
  height: 2px;
  background: #bd7649
}

.hero h1 {
  font-size: clamp(2.65rem, 3.9vw, 4.3rem);
  letter-spacing: -.055em;
  margin: .17em 0 .13em;
  color: #223f31
}

.hero p {
  color: #445343;
  font-size: .94rem
}

.hero p b {
  font-weight: 600
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 25px
}

.metric,
.panel,
.studentcard,
.goalgrid .goal-tile {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px 18px 15px;
  transition: border-color .15s
}

.metric:hover,
.studentcard:hover,
.goal-tile:hover {
  border-color: #8da493;
  background: #fcfdf9
}

.metric-label {
  font-size: .86rem;
  font-weight: 600;
  gap: 9px;
  line-height: 1.2
}

.metric-icon {
  border-radius: 8px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center
}

.sage {
  background: #e4eee2;
  color: #436448
}

.clay {
  background: #f6e6d9;
  color: #995834
}

.lilac {
  background: #eae7f1;
  color: #756087
}

.sand {
  background: #f3ecd8;
  color: #7e673b
}

.blue {
  background: #dfeef3;
  color: #3d6776
}

.metric strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 2.16rem;
  font-weight: normal;
  letter-spacing: -.045em;
  line-height: 1.15;
  margin: 11px 0 3px;
  white-space: nowrap
}

.metric strong em {
  font: 600 .89rem Inter, sans-serif;
  letter-spacing: 0
}

.metric small,
.lesson-info small,
.time small,
table small,
.goal-person,
.studentcard p,
.card-stats,
.panel small,
.pagehead p,
.settings-grid p,
.release li,
.faq p {
  color: var(--muted)
}

.metric small {
  font-size: .78rem
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 19px;
  align-items: start
}

.panel {
  min-width: 0
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line)
}

.panel-title {
  gap: 9px
}

.panel-title .icon {
  color: #59745d
}

.panel-title h2 {
  font-size: 1.5rem
}

.panel-head select {
  font-size: .8rem;
  min-height: 32px;
  padding: 5px 25px 5px 10px
}

.agenda-inner {
  padding: 0 20px 10px
}

.day-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #67756b;
  padding: 14px 0 5px;
  font-size: .68rem
}

.day-label span {
  color: #42614a
}

.day-label i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a9b2a6
}

.agenda-line {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  width: 100%;
  border-bottom: 1px solid #e9ece4
}

.agenda-line:last-child {
  border-bottom: 0
}

.agenda-line:hover .lesson-info strong {
  color: #467354;
  text-decoration: underline
}

.agenda-line>.icon {
  color: #7a897d
}

.time,
.lesson-info {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.time {
  min-width: 40px
}

.time b,
.lesson-info strong {
  font-size: .89rem
}

.time small,
.lesson-info small {
  font-size: .77rem
}

.lesson-info {
  flex: 1
}

.lesson-info strong,
.lesson-info small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.line-mark {
  width: 3px;
  height: 37px;
  border-radius: 3px;
  flex: none
}

.line-mark.sage {
  background: #8daa85
}

.line-mark.clay {
  background: #d99d79
}

.line-mark.lilac {
  background: #ab9cbd
}

.line-mark.sand {
  background: #c6b185
}

.line-mark.blue {
  background: #8eabba
}

.badge {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 9px;
  line-height: 1.5;
  border-radius: 6px;
  max-width: 100%;
  overflow-wrap: anywhere
}

.panel-foot {
  padding: 11px 20px;
  border-top: 1px solid var(--line)
}

.panel-foot .textbtn {
  font-size: .82rem
}

.progress-items {
  padding: 0 20px
}

.goal-tile {
  display: block;
  padding: 15px 0;
  width: 100%;
  border-bottom: 1px solid #e5e9df
}

.goal-tile:last-child {
  border-bottom: 0
}

.goal-person {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem
}

.goal-tile>strong {
  display: block;
  font-size: .92rem;
  margin: 3px 0 8px
}

.progress-line {
  display: flex;
  align-items: center;
  gap: 11px
}

.progress-line b {
  font-size: .73rem;
  font-weight: 600;
  color: #536357;
  min-width: 35px;
  text-align: right
}

progress {
  flex: 1;
  min-width: 0;
  width: 60%;
  height: 6px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  appearance: none;
  --bar: #819c79;
  background: #edf0e8
}

progress.clay {
  --bar: #d19975
}

progress.lilac {
  --bar: #a193b3
}

progress.blue {
  --bar: #82a6b1
}

progress::-webkit-progress-bar {
  background: #edf0e8;
  border-radius: 99px
}

progress::-moz-progress-bar {
  background: var(--bar);
  border-radius: 99px
}

progress::-webkit-progress-value {
  background: var(--bar);
  border-radius: 99px
}

.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 5px 0 23px
}

.pagehead p {
  margin-top: 7px
}

.padded {
  padding: 24px
}

.padded h2 {
  margin: 0 0 14px
}

.padded h3 {
  margin: 17px 0 7px
}

.padded p {
  margin-bottom: 14px
}

.settings-grid,
.twocol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start
}

.billingmetrics,
.cardgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.billingmetrics h2 {
  margin: 8px 0 0;
  font-size: 2rem
}

.back {
  margin-bottom: 12px
}

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  flex-wrap: wrap
}

.search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  padding-left: 12px;
  border-radius: 7px;
  width: min(100%, 365px);
  color: var(--muted)
}

.search input {
  border: 0;
  background: none;
  margin: 0
}

.card-top,
.card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between
}

.face {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e9da;
  color: #3e5a43;
  font-size: .85rem;
  font-weight: 650
}

.tone-1,
.tone-3 {
  background: #ece3d4;
  color: #715534
}

.tone-2,
.tone-4 {
  background: #e6e3ec;
  color: #625674
}

.studentcard {
  padding: 19px
}

.studentcard h2 {
  font-size: 1.45rem;
  margin: 17px 0 4px
}

.studentcard p {
  font-size: .9rem
}

.card-stats {
  justify-content: flex-start;
  font-size: .75rem;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap
}

.card-stats span {
  margin-left: auto
}

.goalgrid .goal-tile {
  padding: 21px
}

.goalgrid .goal-person {
  font-size: .82rem;
  flex-wrap: wrap
}

.goalgrid .goal-tile strong {
  margin: 16px 0
}

.goal-person .badge {
  margin-left: auto
}

dl {
  margin: 12px 0 20px
}

dt {
  font-size: .81rem;
  color: var(--muted);
  margin-top: 12px
}

dd {
  margin: 1px 0;
  overflow-wrap: anywhere
}

.multiline {
  white-space: pre-line
}

.mt {
  margin-top: 20px
}

.tablewrap {
  overflow: auto;
  border-radius: inherit
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .89rem
}

th {
  font-size: .75rem;
  color: #5b6e5e;
  font-weight: 600;
  background: #f2f5ef
}

td,
th {
  padding: 13px 15px;
  border-bottom: 1px solid #e2e7de
}

tr:last-child td {
  border-bottom: 0
}

td small {
  display: block;
  font-size: .76rem;
  white-space: nowrap
}

td .badge {
  text-transform: capitalize
}

.empty {
  min-height: 145px;
  padding: 22px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  color: var(--muted)
}

.empty strong {
  font-size: .93rem;
  font-weight: 400
}

.empty>.icon {
  color: #769178
}

.empty>.secondary {
  margin: 8px
}

.faq details {
  padding: 0 22px;
  border-bottom: 1px solid var(--line)
}

.faq details:last-child {
  border: 0
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  list-style: none;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer
}

.faq summary::-webkit-details-marker {
  display: none
}

.faq details[open] .icon {
  transform: rotate(180deg)
}

.faq p {
  margin: 0 0 20px;
  max-width: 80ch
}

.release {
  max-width: 850px
}

.release .day-label {
  padding: 0 0 8px
}

.release li {
  margin: 8px 0
}

.settings-grid code {
  overflow-wrap: anywhere;
  font-size: .88rem
}

.settings-grid hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line)
}

input,
select,
textarea {
  accent-color: #547650;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd9ce;
  border-radius: 6px;
  padding: 9px 11px;
  min-height: 40px;
  max-width: 100%;
  font-size: .94rem
}

input,
textarea {
  width: 100%
}

select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23546959' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding-right: 32px
}

textarea {
  resize: vertical;
  min-height: 70px
}

label {
  font-weight: 600;
  font-size: .87rem
}

label>input,
label>select,
label>textarea {
  display: block;
  margin-top: 5px;
  font-weight: 400;
  width: 100%
}

label input[type=range] {
  border: 0;
  padding: 0;
  min-height: 20px
}

#range-value {
  float: right
}

.calendar-panel {
  overflow: hidden
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  flex-wrap: wrap
}

.periodnav,
.segmented {
  display: flex;
  align-items: center;
  gap: 8px
}

.periodnav strong {
  font-size: .94rem
}

.segmented {
  gap: 0;
  padding: 3px;
  background: #edf1ea;
  border-radius: 7px
}

.segmented button {
  font-size: .83rem;
  padding: 5px 9px;
  border-radius: 5px;
  color: #596c60
}

.segmented button[aria-pressed=true] {
  background: white;
  box-shadow: 0 1px 3px #203a3023;
  color: var(--pine);
  font-weight: 600
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line)
}

.month-label,
.time-head {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  background: #f4f6f0;
  padding: 8px
}

.month-cell {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 99px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 4px;
  gap: 3px
}

.month-cell.muted {
  background: #f7f8f5;
  color: #6f7a71
}

.datebutton {
  align-self: start;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  font-size: .85rem
}

.current .datebutton,
.time-head.current b {
  background: var(--pine);
  color: white
}

.datebutton:hover {
  background: #cee1ca;
  color: var(--ink)
}

.cal-event {
  border-radius: 5px;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 4px 5px;
  text-align: left;
  font-size: .73rem;
  line-height: 1.3
}

.cal-event b,
.cal-event span,
.cal-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis
}

.month-cell .cal-event b {
  white-space: nowrap
}

.cal-event[draggable=true] {
  cursor: grab
}

.cal-event small {
  font-size: .7rem;
  color: inherit
}

.time-scroll {
  overflow: auto
}

.time-grid {
  display: grid;
  grid-template-columns: 51px repeat(var(--days), minmax(72px, 1fr));
  border-top: 1px solid var(--line)
}

.time-head,
.time-col {
  border-left: 1px solid var(--line)
}

.time-head {
  border-bottom: 1px solid var(--line);
  white-space: nowrap
}

.time-head b {
  border-radius: 50%;
  padding: 4px
}

.time-col {
  position: relative
}

.time-labels div,
.slot {
  height: 64px;
  border-bottom: 1px solid #e5eae1
}

.slot {
  display: block;
  width: 100%
}

.slot:hover,
.drop-ready {
  background-color: #e4eedf
}

.time-labels div {
  font-size: .69rem;
  text-align: center;
  padding-top: 4px;
  color: var(--muted)
}

.positioned-event {
  position: absolute;
  left: 2px;
  right: 2px;
  overflow: hidden
}

.positioned-event .cal-event {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  border-left: 3px solid currentColor
}

dialog {
  padding: 0;
  border: 1px solid #d2dacd;
  border-radius: 13px;
  width: min(545px, calc(100% - 24px));
  max-height: min(88dvh, 860px);
  color: var(--ink);
  box-shadow: 0 24px 90px #10261e38;
  overflow: hidden
}

dialog::backdrop {
  background: #14271f70
}

dialog form {
  display: flex;
  flex-direction: column;
  max-height: min(87dvh, 856px)
}

.modal-head,
.modal-foot {
  padding: 17px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: #fafbf7;
  flex: none
}

.modal-head {
  border-bottom: 1px solid var(--line)
}

.modal-head h2 {
  font-size: 1.65rem
}

.modal-head .iconbtn {
  border: 0;
  background: transparent
}

.modal-body {
  padding: 21px 22px;
  overflow: auto;
  min-height: 0
}

.modal-body>label,
.formgroup>label,
.modal-body fieldset>label,
.auth label {
  display: block;
  margin: 0 0 14px
}

.modal-body label:last-of-type,
.formgroup>label:last-child {
  margin-bottom: 0
}

.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0
}

.formrow>* {
  min-width: 0
}

.formgroup {
  border-top: 1px solid var(--line);
  margin: 19px 0 0;
  padding: 15px 0 0
}

.formgroup h3 {
  margin-bottom: 12px
}

.modal-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line)
}

.dangerlink {
  color: #9d4737;
  margin-right: auto;
  font-size: .86rem;
  padding: 6px 0
}

.formerror:not(:empty) {
  padding: 10px 12px;
  background: #faeae5;
  color: #943e2c;
  font-size: .87rem;
  border-radius: 6px;
  margin-top: 12px
}

.notice {
  background: #eef3e9;
  color: #475f4a;
  font-size: .89rem;
  padding: 13px 15px;
  border-radius: 7px;
  margin: 13px 0
}

.modal-body fieldset {
  border: 0;
  margin: 0;
  padding: 0
}

.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #eff3ea
}

.authbox {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 9px 35px #23432e0c
}

.authart {
  height: 135px;
  position: relative;
  overflow: hidden;
  background: #e3eddd;
}

.authart .desk-art {
  right: calc(50% - 7em);
  font-size: 12px
}

.authbody {
  padding: 28px 32px 34px
}

.auth .brand {
  font-size: 1.7rem
}

.auth h1 {
  font-size: 2rem;
  margin: 25px 0 17px
}

.auth .primary {
  width: 100%;
  margin-top: 15px
}

.auth .secondary {
  margin-top: 10px
}

.authbody .formerror:empty {
  display: none
}

#main.login-page {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  min-height: 100vh;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #faf7ef;
}

.login-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding: clamp(28px, 4vw, 72px) clamp(32px, 5vw, 96px);
}

.login-brand .brand {
  gap: 12px;
  font-size: 1.2rem;
}

.login-fields {
  width: min(100%, 25rem);
  justify-self: center;
  padding-block: clamp(40px, 8vh, 96px);
}

.login-fields h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.15rem, 3.3vw, 3.3rem);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.login-fields form { display: grid; gap: 1.15rem }
.login-fields label { display: block }
.login-fields input { min-height: 48px; margin-top: 7px; padding-inline: 14px; font-size: 1rem }
.login-fields .primary { margin-top: .4rem; min-height: 48px; gap: 12px }
.login-fields .formerror { margin: 0 }
.login-fields .formerror:empty { display: none }
.login-art { position: relative; background: #b89c70 }
.login-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }

[data-theme=dark] #main.login-page { background: var(--white) }
[data-theme=dark] .login-fields input { background-color: var(--paper) }
[data-theme=dark] .login-art img { filter: brightness(.85) }

@media (max-width: 700px) {
  #main.login-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(120px, 30svh, 260px) 1fr;
  }
  .login-art { grid-row: 1 }
  .login-art img { object-position: center 46% }
  .login-panel {
    align-content: start;
    justify-items: center;
    grid-template-rows: auto auto;
    padding: 27px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }
  .login-brand { width: min(100%, 25rem) }
  .login-brand img { width: 32px; height: 32px }
  .login-fields { padding-block: 24px 0 }
  .login-fields h1 { margin-bottom: 1.45rem }
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  max-width: calc(100% - 24px);
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #214436;
  opacity: 0;
  pointer-events: none;
  transition: .18s;
  font-size: .9rem
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

@media(min-width:1600px) {
  :root {
    --side: 244px
  }

  .hero {
    min-height: 230px
  }

  .metrics {
    gap: 20px
  }

  .metric {
    padding: 22px
  }

  .dashboard-grid {
    gap: 24px
  }
}

@media(max-width:1150px) {
  :root {
    --side: 198px
  }

  .side {
    padding-left: 12px;
    padding-right: 12px
  }

  .navlink {
    font-size: .87rem;
    gap: 10px
  }

  .brand {
    font-size: 1.85rem
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(235px, 1fr);
    gap: 14px
  }

  .metrics {
    gap: 10px
  }

  .metric {
    padding: 14px 12px
  }

  .metric-label {
    gap: 7px;
    font-size: .82rem
  }

  .hero-copy {
    padding: 26px
  }

  .agenda-line {
    gap: 8px
  }

  .agenda-inner,
  .progress-items {
    padding-left: 15px;
    padding-right: 15px
  }

  .panel-head {
    padding: 16px
  }

  .panel-title h2 {
    font-size: 1.37rem
  }

  .cardgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:920px) {
  :root {
    --side: 0px
  }

  .side {
    width: 235px;
    transform: translateX(-100%);
    transition: transform .18s;
    z-index: 9
  }

  .nav-open .side {
    transform: translateX(0)
  }

  .nav-open #scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #19332570;
    z-index: 8
  }

  .mobile-menu {
    display: inline-flex;
    background: transparent;
    border: 0
  }

  .topbar {
    height: 63px
  }

  .hero {
    min-height: 177px
  }

  .hero-copy {
    max-width: 70%
  }

  .nav-caption {
    margin-top: 36px
  }

  .mobile-menu+.crumb {
    gap: 8px
  }

  .side {
    overflow-y: auto
  }

  .brand {
    font-size: 1.9rem
  }

  .side-profile {
    padding-bottom: 12px
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr)
  }
}

@media(max-width:700px) {
  #main {
    padding: 16px 14px 36px
  }

  .topbar {
    padding: 0 14px 0 6px;
    height: 58px
  }

  .crumb {
    gap: 6px
  }

  .crumb>span,
  .crumb>.icon {
    display: none
  }

  .topdate {
    font-size: .77rem
  }

  .top-actions .primary {
    padding: 8px 11px;
    min-height: 36px;
    font-size: .8rem
  }

  .hero {
    min-height: 165px;
    border-radius: 10px
  }

  .hero .desk-art {
    right: 4%;
    font-size: clamp(8px, 2.2vw, 14px);
  }

  .hero-copy {
    max-width: 63%;
    padding: 20px 0 20px 18px;
  }

  .hero h1 {
    font-size: 2.55rem
  }

  .hero p {
    font-size: .84rem;
    max-width: 23ch
  }

  .eyedate {
    font-size: .61rem;
    gap: 6px
  }

  .eyedate i {
    width: 15px
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 13px 0 17px;
    gap: 9px
  }

  .metric {
    padding: 13px 14px
  }

  .metric strong {
    font-size: 1.85rem;
    margin: 8px 0 2px
  }

  .metric small {
    font-size: .73rem
  }

  .metric-icon {
    width: 27px;
    height: 27px
  }

  .metric-icon .icon {
    width: 16px;
    height: 16px
  }

  .dashboard-grid,
  .twocol,
  .settings-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .panel-title h2 {
    font-size: 1.42rem
  }

  .agenda-line {
    gap: 9px
  }

  .agenda-line>.icon {
    display: none
  }

  .pagehead {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
    gap: 12px
  }

  .pagehead h1 {
    font-size: 2.25rem
  }

  .billingmetrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px
  }

  .billingmetrics .padded {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px
  }

  .billingmetrics h2 {
    font-size: 1.5rem;
    margin: 0
  }

  .cardgrid {
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr))
  }

  .padded {
    padding: 18px
  }

  .cal-toolbar {
    padding: 10px;
    gap: 10px
  }

  .periodnav {
    gap: 5px
  }

  .periodnav strong {
    font-size: .81rem
  }

  .month-cell {
    min-height: 76px;
    padding: 2px
  }

  .month-cell .datebutton {
    font-size: .73rem;
    min-width: 24px;
    height: 24px
  }

  .month-cell .cal-event {
    font-size: .61rem;
    padding: 3px 1px
  }

  .time-grid:not(.oneday) {
    min-width: 620px
  }

  .modal-head,
  .modal-foot {
    padding: 12px 16px
  }

  .modal-body {
    padding: 16px
  }

  .modal-foot {
    gap: 7px
  }

  .modal-foot .primary,
  .modal-foot .secondary {
    font-size: .82rem
  }

  .modal-head h2 {
    font-size: 1.45rem
  }

  input,
  select,
  textarea {
    font-size: 1rem
  }

  .authbody {
    padding: 22px
  }

  .authart {
    height: 110px
  }

  .faq details {
    padding: 0 15px
  }

  .datebutton {
    padding: 0
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none !important
  }
}

@media(max-width:920px) {
  .side {
    visibility: hidden
  }

  .nav-open .side {
    visibility: visible
  }
}

/* Personal workspace */
.brand{gap:7px;font-size:1.12rem;letter-spacing:-.055em}.brand strong{font-weight:400}
.side nav{margin-top:34px}.side .brandlink{padding:0 4px}.side .brand img{width:33px}
.profile-actions{border-top:1px solid #436053;margin-top:12px;padding:14px 0 0;display:flex;align-items:center;gap:3px}
.side-profile{padding:4px;border:0;margin:0;min-width:0;flex:1}.logout-short{padding:7px;color:#e4eee5}
.hero{background:var(--white);min-height:0;border-color:var(--line);border-left:4px solid #6c997c}.hero-copy{padding:26px 30px;max-width:100%}.hero h1{font-size:clamp(2rem,3.1vw,3rem);font-weight:650;letter-spacing:-.06em;color:var(--ink)}.hero p{color:var(--muted)}
h1,h2,.metric strong{font-weight:600}.panel-title h2{font-size:1.24rem}.metric strong{font-size:1.8rem}.face{overflow:hidden}.face img,.avatar-preview{width:100%;height:100%;object-fit:cover}.avatar-editor{border:1px solid var(--line);border-radius:9px;padding:13px;margin:15px 0}.avatar-options,.format-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.avatar-options button,.format-tools button,.check-row button{padding:5px 8px;border:1px solid var(--line);border-radius:6px;color:var(--ink)}.avatar-options img{height:34px;width:34px;display:block}.avatar-options [aria-pressed=true]{outline:2px solid #6b9f7e}.avatar-editor .avatar-preview{width:48px;height:48px;border-radius:50%;margin-top:8px}.cropper canvas{width:140px;height:140px;border-radius:50%;margin:10px auto;display:block}.cropper input{width:100%}.lesson-plan{margin:16px 0}.lesson-plan h3{margin:14px 0 8px}.format-tools{margin-bottom:8px}.plan-preview{border:1px solid var(--line);border-radius:6px;padding:12px}.check-row{display:flex;align-items:center;gap:7px;margin:6px 0}.check-row input[type=checkbox]{width:18px;min-height:18px}.check-row input[type=text]{flex:1;min-width:0}.check-row input:checked+input{text-decoration:line-through}.time-col .slot{height:16px;touch-action:none;border-bottom:1px dotted var(--line)}.time-col .slot:nth-child(4n){border-bottom-style:solid}.slot.drawing{background:#a7d5b9}.time-labels{font-variant-numeric:tabular-nums}.settings-grid label:has(#feed-url){width:100%;min-width:0}dialog:has(.lesson-plan){width:min(760px,calc(100% - 24px))}[hidden]{display:none!important}
@media(min-width:921px){body.compact-nav{--side:72px}.compact-nav .brand span,.compact-nav .navlink span,.compact-nav .side-profile>span:nth-child(2){display:none}.compact-nav .side{padding:28px 10px 12px}.compact-nav .brandlink,.compact-nav .navlink{display:flex;justify-content:center;padding:11px 0}.compact-nav .profile-actions{flex-direction:column}}
@media(max-width:920px){.minimize{display:none}.side .brand{font-size:1.14rem}}
@media(max-width:700px){.hero-copy{max-width:100%;padding:20px}.hero h1{font-size:2rem}.time-grid{grid-template-columns:52px repeat(var(--days),minmax(72px,1fr))}}
:root[data-theme=dark]{color-scheme:dark;--ink:#e1ece4;--muted:#adbbb1;--line:#43554b;--paper:#16211b;--white:#202e26;--soft:#29392e;--pine:#183e34}
[data-theme=dark] :is(.topbar,.metric,.panel,.studentcard,.goalgrid .goal-tile,.hero,.authbox,dialog,.search,.secondary,.iconbtn,input,textarea,select){background-color:var(--white);border-color:var(--line);color:var(--ink)}
[data-theme=dark] :is(.modal-head,.modal-foot,.auth,.segmented,.month-cell.muted,.month-label,.time-head,th,.notice){background:var(--soft);color:var(--ink)}
[data-theme=dark] :is(.metric:hover,.studentcard:hover,.goal-tile:hover,.secondary:hover,.iconbtn:hover,.slot:hover,.drop-ready,.segmented button[aria-pressed=true]){background:#354b3d;color:var(--ink)}
[data-theme=dark] :is(.textbtn,.day-label,.day-label span,.eyedate,.panel-title .icon,.progress-line b,.segmented button,.agenda-line:hover .lesson-info strong){color:#b8d8bd}
[data-theme=dark] :is(.agenda-line,.goal-tile,td,th,.month-cell,.slot,.time-labels div){border-color:var(--line)}
[data-theme=dark] .sage{background:#324d39;color:#c2e0bf}[data-theme=dark] .clay{background:#543d32;color:#f3c4a4}[data-theme=dark] .lilac{background:#483e52;color:#e3d5f3}[data-theme=dark] .sand{background:#4d4630;color:#ebd9a7}[data-theme=dark] .blue{background:#304954;color:#c4e3ef}
[data-theme=dark] .slot.drawing{background:#426b50}[data-theme=dark] .dangerlink{color:#f1ac98}
.lesson-tabs{position:sticky;top:-21px;z-index:1;display:flex;gap:5px;background:var(--white);padding:.65rem 0;margin-bottom:12px;border-bottom:1px solid var(--line)}.lesson-tabs button{border-radius:5px;padding:7px 12px;color:var(--muted);font-weight:600}.lesson-tabs button[aria-pressed=true]{background:var(--soft);color:var(--ink)}[data-page]>label{display:block;margin-bottom:12px}.time-col .slot:not(:nth-child(4n)){border-bottom-color:transparent}.time-col:hover .slot:not(:nth-child(4n)){border-bottom-color:var(--line)}

/* Identical mark position in the expanded navigation and the icon rail. */
.side, .compact-nav .side { padding: 28px 12px 16px }
.side .brandlink, .compact-nav .side .brandlink { height:40px; padding:0 0 0 7px; display:flex; align-items:center; justify-content:flex-start }
.brand, .side .brand { font:600 1.06rem/1.2 Inter,Arial,sans-serif; letter-spacing:-.024em; gap:9px }
.side .brand img { width:34px; height:34px }
.profile-actions {display:grid;gap:3px;align-items:stretch}
.profile-actions .navlink {text-align:left;width:100%;min-width:0}
.account-link .face {display:inline-flex;width:27px;height:27px;min-width:27px;font-size:.62rem;margin-left:-4px;margin-right:-4px}
.account-link span:last-child {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:921px){.compact-nav .account-link .face{display:inline-flex}.compact-nav .profile-actions .navlink{justify-content:center}}
.hero {--hero-paper:#fae7c9; min-height:clamp(265px,19vw,328px); background:var(--hero-paper); border:1px solid var(--line)}
.hero::before {content:""; position:absolute; inset:0 0 0 auto; width:min(66%,720px);
  background:linear-gradient(to right,var(--hero-paper),transparent 31%),url('/unterricht.webp') right 52% / cover no-repeat}
.hero-copy {max-width:54%;padding:32px clamp(22px,3vw,50px)}
.hero-copy h1 {line-height:1.1;letter-spacing:-.045em;margin:.23em 0}
.hero-copy .primary {margin-top:18px}
.prefs-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(185px,100%),1fr));gap:14px}
.prefs-fields label {display:flex;flex-direction:column;justify-content:space-between;gap:6px}
.settings-grid>section:last-child {grid-column:1/-1}
.account-row,.release-link,.catalog-item,.subject-panel header,.portrait-header,.date-controls {display:flex;align-items:center;gap:14px}
.account-row {padding:14px 2px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.account-row:last-child {border:0}
.account-role {justify-self:end;color:var(--muted);font-size:.82rem;font-weight:600}
.account-row small,.release-link small,.portrait-header small {display:block;color:var(--muted);font-size:.8rem}
.account-row small {overflow-wrap:anywhere}
.subject-icon {display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:11px;flex:none}
.subject-icon:not(.sage,.clay,.lilac,.sand,.blue) {background:var(--soft)}
.catalog-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));gap:16px;align-items:start}
.subject-panel {padding:20px}
.subject-panel h2 {font-size:1.2rem;margin:0}
.subject-panel header {gap:10px}
.subject-panel header button {margin-left:auto;flex:none}
.subject-panel h3,.release-date {font-size:.74rem;font-weight:600;letter-spacing:.07em;color:var(--muted);margin:20px 0 5px}
.catalog-item {width:100%;justify-content:space-between;text-align:left;padding:10px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.catalog-item:hover {color:var(--clay)}
.subject-panel>.textbtn {margin-top:12px}
.release-link {max-width:760px;padding:18px 20px;margin-top:20px}
.release-link>.icon {margin-left:auto}
.release-link:hover {border-color:var(--muted)}
.timeline {list-style:none;padding:0 0 0 10px;max-width:820px;margin:24px 0}
.timeline>li {position:relative;padding:0 0 30px 28px;border-left:2px solid var(--line)}
.timeline>li:last-child {border-color:transparent;padding-bottom:0}
.timeline>li::before {content:"";position:absolute;left:-7px;top:2px;background:var(--paper);border:2px solid var(--muted);border-radius:100%;width:8px;height:8px}
.timeline>li:first-child::before {background:var(--clay);border-color:var(--clay)}
.timeline .release-date {margin:0 0 6px}
.timeline h2 {font-size:1.3rem}
.timeline article ul {padding-left:1.2em;margin:8px 0 0;color:var(--muted)}
.portrait-header {margin:8px 0 16px}
.portrait-sample {display:grid;place-items:center;flex:none;width:68px;height:68px;border-radius:50%;overflow:hidden;background:var(--soft);font-weight:600}
.portrait-sample .avatar-preview {width:100%;height:100%;margin:0}
.portrait-header small {margin-top:6px}
.portrait-choices {display:flex;gap:7px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px}
.portrait-choices button {border:2px solid transparent;border-radius:50%;padding:2px;width:41px;height:41px;background:var(--soft);font-weight:600}
.portrait-choices [aria-pressed=true] {border-color:var(--clay)}
.portrait-choices img {width:100%;height:100%;display:block;border-radius:50%}
.avatar-editor legend {padding:0 6px;font-weight:600}
.date-controls {position:relative;gap:0}
.date-controls>[type=text] {padding-right:46px}
.picker-trigger {position:absolute;right:1px;inset-block:1px;width:42px;display:grid;place-items:center;border-radius:5px}
.picker-trigger input {position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.picker-trigger input::-webkit-calendar-picker-indicator {position:absolute;inset:0;width:auto;height:auto;cursor:pointer}
.picker-trigger:focus-within {outline:2px solid var(--clay)}
:root[data-theme=dark]{--ink:#ebedf0;--muted:#b0b4bf;--line:#40444d;--paper:#181a1f;--white:#23252b;--soft:#2d3038;--pine:#202227;--clay:#e8ac83}
[data-theme=dark] .side {background:#1e2025;border-right:1px solid var(--line)}
[data-theme=dark] .navlink,[data-theme=dark] .navlink .icon {color:#d0d3dc}
[data-theme=dark] .navlink.active,[data-theme=dark] .navlink:hover {background:#363941}
[data-theme=dark] :is(.utility,.profile-actions){border-color:var(--line)}
[data-theme=dark] .primary {background:#e8b28d;color:#252025}
[data-theme=dark] .primary:hover {background:#f4c6a8}
[data-theme=dark] :is(.metric:hover,.studentcard:hover,.goal-tile:hover,.secondary:hover,.iconbtn:hover,.slot:hover,.drop-ready,.segmented button[aria-pressed=true]) {background:#363941}
[data-theme=dark] :is(.textbtn,.day-label,.day-label span,.eyedate,.panel-title .icon,.progress-line b,.segmented button,.agenda-line:hover .lesson-info strong) {color:#d4d3dd}
[data-theme=dark] .hero {--hero-paper:#27272b;background:var(--hero-paper)}
[data-theme=dark] .hero::before {filter:saturate(.74);opacity:.83}
[data-theme=dark] .hero p b {color:var(--ink)}
[data-theme=dark] .slot.drawing {background:#605975}
@media(max-width:700px){
  .hero{display:flex;flex-direction:column;align-items:stretch;min-height:0}
  .hero::before{position:relative;inset:auto;width:100%;height:clamp(135px,40vw,210px);
    background:linear-gradient(0deg,var(--hero-paper),transparent 18%),url('/unterricht.webp') right 44%/cover no-repeat}
  .hero-copy{padding:10px 20px 20px;max-width:100%}.hero-copy p{max-width:none}
  .hero-copy .primary{margin-top:12px}.hero-copy h1{font-size:1.95rem}
}

.hero {--hero-fade:linear-gradient(to right,transparent 0%,rgba(0,0,0,.04) 10%,rgba(0,0,0,.19) 23%,rgba(0,0,0,.49) 38%,rgba(0,0,0,.8) 52%,#000 68%)}
.hero::before {width:min(74%,900px);background:url('/unterricht.webp') right 52% / cover no-repeat;mask-image:var(--hero-fade)}
[data-theme=dark] .side {background:#183e34}
[data-theme=dark] .side .navlink.active,[data-theme=dark] .side .navlink:hover {background:#34564a}
[data-theme=dark] .side :is(.utility,.profile-actions){border-color:#416253}
.account-link .face,.compact-nav .account-link .face,.account-row .face{display:inline-grid;place-items:center;line-height:1;text-align:center}
.swatches{border:0;padding:0;margin:12px 0}.swatches legend{font-weight:600;margin-bottom:7px}
.swatches label{position:relative;display:inline-flex;margin:3px}.swatches input{opacity:0;position:absolute;width:1px;height:1px;min-height:0}
.swatches span{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:7px;padding:6px 9px}
.swatches input:checked+span{outline:2px solid var(--clay)}.swatches input:focus-visible+span{outline:3px solid var(--ink)}
.check-label,.transfer-list label{display:flex;align-items:center;gap:9px;padding:7px 0}
.check-label input,.transfer-list input{width:18px;height:18px;min-height:18px;margin:0}
.transfer-list{max-height:32vh;overflow:auto;margin-block:10px}
.all-day-cell{padding:3px;min-width:0;border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
.all-day-label{font-size:.6rem;align-content:center;color:var(--muted);text-align:center}
@media(max-width:700px){.hero::before{width:100%;background-position:right 44%;mask-image:linear-gradient(to bottom,#000 55%,rgba(0,0,0,.7) 78%,transparent)}}

/* Place the check and the pupil's details on a single selectable row. */
.pick-head,.pick-head label,.transfer-list .pick-row{display:flex;align-items:center;gap:12px}
.pick-head{justify-content:space-between;margin:18px 0 8px;padding:0 12px}
.pick-head output,.pick-person small{font-size:.79rem;color:var(--muted)}
.pick-head label{font-weight:600}
.pick-head input,.transfer-list .pick-row input{width:18px;height:18px;min-height:0;margin:0;flex:none}
.transfer-list{border:1px solid var(--line);border-radius:10px;max-height:42vh;scrollbar-gutter:stable}
.transfer-list .pick-row{padding:9px 12px;margin:0;border-bottom:1px solid var(--line);cursor:pointer}
.pick-row:last-child{border-bottom:0}
.pick-row:hover,.pick-row:focus-within{background:var(--soft)}
.pick-face,.initial-chip{display:grid;place-items:center;width:32px;height:32px;line-height:1;letter-spacing:0;text-align:center;font-weight:650;border-radius:50%;flex:none}
.pick-person{display:grid;gap:1px}
.modal-body .swatches{margin:20px 0}
.swatch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:7px;max-width:450px}
.swatch-grid.colors{grid-template-columns:repeat(6,minmax(34px,44px))}
.swatches legend output{margin-left:6px;color:var(--muted);font-size:.85rem;font-weight:400}
.swatch-grid label{display:block;margin:0;position:relative}
.swatch-grid .swatch-tile{width:100%;height:41px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:9px;color:var(--muted);cursor:pointer}
.swatch-tile i{height:22px;width:22px;border-radius:50%;background:var(--dot)}
.sample-sage{--dot:#79a283}.sample-blue{--dot:#6797b6}.sample-sand{--dot:#ceb06a}.sample-clay{--dot:#cd8668}.sample-lilac{--dot:#ab8bbe}
.swatch-grid input:checked+.swatch-tile{outline:none;box-shadow:inset 0 0 0 2px currentColor;background:var(--soft);color:var(--ink)}
.swatch-grid input:focus-visible+.swatch-tile{outline:2px solid var(--clay);outline-offset:2px}
.swatch-grid label:hover .swatch-tile{border-color:var(--muted)}
.portrait-modes{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.portrait-modes button{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;min-height:40px}
.portrait-modes button[aria-pressed=true],.portrait-modes button[aria-expanded=true]{background:var(--soft);border-color:var(--muted)}
.initial-chip{background:var(--white);border:1px solid var(--line);height:26px;width:26px;font-size:.65rem}
.portrait-sample [data-initials]{display:grid;place-items:center;height:100%;width:100%;line-height:1;text-align:center}
.face-builder{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px 12px;margin:10px 0}
.destructive{background:#943e3b;color:white;border-radius:6px;padding:9px 14px;font-weight:600}
.help-topics{display:grid;max-width:1200px;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 20px;align-items:start}
.help-topic h2{font-size:1.13rem;margin-bottom:10px}
.help-topic .faq{width:100%;max-width:none}
@media(max-width:850px){.help-topics{grid-template-columns:1fr}}
/* Carry the paper colour through the entire scene, with the image fully transparent at its left boundary. */
@media(min-width:701px){
  .hero{background:linear-gradient(104deg,#f6e7d3 0%,#f8e9d7 53%,#eed8b9 100%)}
  .hero::before{width:min(75%,860px);background-position:right 53%;mask-image:linear-gradient(to right,transparent 0% 6%,rgba(0,0,0,.015) 13%,rgba(0,0,0,.06) 20%,rgba(0,0,0,.16) 28%,rgba(0,0,0,.32) 36%,rgba(0,0,0,.52) 44%,rgba(0,0,0,.72) 52%,rgba(0,0,0,.88) 60%,rgba(0,0,0,.97) 68%,#000 77%)}
  [data-theme=dark] .hero{background:linear-gradient(104deg,#25272d 8%,#292b30 38%,#3c3937 66%,#645447 100%)}
  [data-theme=dark] .hero::before{filter:saturate(.83) brightness(.94);opacity:1}
}

.path,.help-topic h2,.theme-options,.backup-row,.account-tool{display:flex;align-items:center}
.path{gap:8px;min-width:0}.path a{color:var(--muted)}.path a:hover{text-decoration:underline}.path b{overflow:hidden;text-overflow:ellipsis}
.rail-toggle{position:absolute;right:0;top:50%;transform:translate(50%,-50%);width:28px;height:44px;padding:0;display:grid;place-items:center;background:transparent;border:0;border-radius:9px;color:#eff5ef;z-index:1}
.rail-toggle::before{content:"";position:absolute;inset:3px 7px;border:1px solid #567367;border-radius:10px;background:#264d41}
.rail-toggle .icon{position:relative;width:12px}
.rail-toggle:hover::before,.rail-toggle:focus-visible::before{background:#395f51}
.rail-toggle[aria-expanded=false] .icon{transform:rotate(180deg)}
.panel-foot .textbtn{flex-direction:row-reverse;gap:8px}
.cropper canvas{width:min(196px,85%);height:auto;touch-action:none;cursor:grab;outline-offset:3px}.cropper canvas:active{cursor:grabbing}.cropper p{font-size:.82rem;color:var(--muted);text-align:center}
#users-list{padding-block:4px}.account-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(118px,auto);gap:14px;padding:17px 0}.account-row .secondary{justify-content:center}
.account-tool{width:100%;text-align:left;gap:13px;border:1px solid var(--line);border-radius:9px;padding:14px;margin:10px 0;background:var(--white);color:var(--ink)}
.account-tool:hover{background:var(--soft)}.account-tool span{flex:1}.account-tool small,.backup-row small{display:block;color:var(--muted);margin-top:3px}.account-tool[data-action=remove-account]>.icon:first-child{color:var(--clay)}
.prefs-fields{display:block}.pref-block{min-width:0;border:0;margin:20px 0 0;padding:0}.pref-block legend{width:100%;padding-bottom:7px;border-bottom:1px solid var(--line);font-size:.78rem;font-weight:650;color:var(--muted)}.pref-block legend .icon{margin-right:8px;vertical-align:middle}
.prefs-fields .pref-block>label{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,46%);align-items:center;gap:12px;margin:10px 0}.pref-block select,.pref-block input{margin:0;min-width:0}
.theme-options{border-radius:8px;background:var(--soft);padding:4px;margin:12px 0;gap:3px}.theme-options label{position:relative;display:block;flex:1;cursor:pointer}.theme-options input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.theme-options span{display:block;text-align:center;border-radius:6px;padding:7px;font-weight:600;font-size:.87rem}.theme-options input:checked+span{background:var(--white);box-shadow:0 1px 4px #0002}.theme-options input:focus-visible+span{outline:2px solid var(--clay)}
.topic-icon{display:inline-grid;place-items:center;border-radius:8px;background:var(--soft);width:35px;height:35px;color:var(--muted)}.help-topic h2{gap:10px}
.release-area{border-top:1px solid var(--line);margin-top:36px;padding-top:20px;max-width:1200px}.release-area .release-link{max-width:none;margin:0;background:var(--soft)}
.backup-row{gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);padding:16px 0}.backup-row .actions{margin-left:auto}
@media(max-width:920px){.rail-toggle{display:none}}
@media(max-width:640px){.account-row{grid-template-columns:auto minmax(0,1fr) auto;gap:9px}.account-row>.secondary{grid-column:2/-1;justify-self:start}.backup-row .actions{width:100%;margin:0}.backup-row .subject-icon{display:none}}
