@font-face {
  font-family: Inter;
  src: url('/assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #183326;
  background: #f7f8f4;
  --ink: #183326;
  --muted: #55665a;
  --line: #dbe2d8;
  --deep: #20523f;
  --soft: #f0f5e8;
  --focus: #52873e;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--deep);
  text-underline-offset: 0.2em;
}
button,
a,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
svg {
  flex: none;
}
.shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}
aside {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 32px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: #edf1e8;
  border-right: 1px solid #d7dfd1;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 32px;
  letter-spacing: -0.035em;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 730;
  line-height: 1;
}
.wordmark img {
  margin-right: 8px;
}
.brand-row {
  padding: 4px 11px;
}
aside nav {
  display: grid;
  gap: 5px;
}
aside nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  font-size: 14px;
  font-weight: 540;
  border-radius: 8px;
  color: #43574a;
  text-decoration: none;
}
aside nav a.active {
  background: #dce8cb;
  color: #234e35;
  font-weight: 670;
}
aside nav a:hover {
  background: #e0e9d6;
}
.identity {
  margin-top: auto;
  border-top: 1px solid #d1dbcf;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.identity strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.avatar,
.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: #e8f0dd;
  color: #355d40;
}
.avatar {
  width: 30px;
  height: 30px;
  background: #d6e5c6;
  font-weight: 650;
}
.icon-box {
  width: 35px;
  height: 35px;
}
.workspace {
  width: min(1180px, 100%);
  padding: clamp(26px, 5vw, 75px) clamp(20px, 4vw, 62px) 70px;
  margin: 0 auto;
  min-width: 0;
  outline: none;
}
.page-title {
  margin: 0 0 30px;
}
.page-title h1,
.access h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.065em;
  font-weight: 620;
}
.page-title p,
.card-heading p,
.muted,
small,
.field span {
  color: var(--muted);
}
.page-title p {
  margin: 12px 0 0;
  line-height: 1.6;
}
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
h2 {
  font-size: 21px;
  font-weight: 640;
}
h3 {
  font-size: 16px;
  font-weight: 640;
}
p {
  line-height: 1.55;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(17px, 2.2vw, 27px);
  box-shadow: 0 2px 5px #203a2405;
}
.card-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 17px;
}
.card-heading h2 {
  margin: 4px 0;
}
.card-heading p,
.card p,
.card small {
  font-size: 14px;
}
.card-heading p {
  margin: 6px 0 0;
  line-height: 1.55;
}
.card p {
  margin: 10px 0 15px;
}
.card-heading p:last-child {
  margin-bottom: 0;
}
.card strong {
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.primary,
.secondary,
.danger,
.textbtn,
.danger-link,
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  line-height: 1.25;
  text-align: center;
}
.primary {
  color: white;
  background: var(--deep);
}
.primary:hover {
  background: #173e2e;
}
.secondary {
  color: var(--ink);
  border-color: #becdbc;
  background: white;
}
.secondary:hover {
  background: #f4f7f0;
}
.textbtn,
.danger-link,
.iconbtn {
  background: transparent;
  color: var(--deep);
  padding: 6px 4px;
}
.textbtn:hover,
.danger-link:hover {
  text-decoration: underline;
}
.danger-link {
  color: #9b3836;
}
.danger {
  background: #a03d36;
  color: white;
}
.iconbtn {
  width: 36px;
  padding: 6px;
  min-height: 36px;
}
.iconbtn:hover {
  background: #d9e3d2;
}
.device,
.line-item {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.device strong {
  font-size: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 630;
  background: #eef0ed;
  color: #465748;
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78877b;
}
.pill.on {
  color: #235638;
  background: #e6f2dc;
}
.pill.on::before {
  background: #3d824a;
}
.email {
  font-size: 14px;
}
.seam {
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.plain {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.switch-row,
.line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.switch-row {
  cursor: pointer;
}
.switch-row strong,
.switch-row small,
.line-item strong,
.line-item small {
  display: block;
}
.switch-row small,
.line-item small {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.45;
}
.switch-row input {
  appearance: none;
  position: relative;
  flex: none;
  border-radius: 30px;
  border: 1px solid #96a397;
  width: 40px;
  height: 23px;
  background: #e5eae3;
  margin: 0;
  cursor: pointer;
}
.switch-row input::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  top: 3px;
  left: 4px;
  background: #68796b;
  border-radius: 50%;
}
.switch-row input:checked {
  background: var(--deep);
  border-color: var(--deep);
}
.switch-row input:checked::before {
  left: 19px;
  background: white;
}
.field {
  display: grid;
  gap: 7px;
  margin: 16px 0 7px;
  font-size: 14px;
  font-weight: 600;
}
.field span {
  font-size: 13px;
  font-weight: 400;
}
.inline-field,
.inline-form {
  display: flex;
  align-items: end;
  gap: 9px;
  flex-wrap: wrap;
}
.inline-field input,
.inline-form .field {
  flex: 1;
  min-width: 140px;
  margin-bottom: 0;
}
input:not([type='checkbox']):not([type='radio']),
select {
  border: 1px solid #b9c6b9;
  font-size: 14px;
  padding: 10px 11px;
  min-height: 41px;
  max-width: 100%;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}
select {
  width: 100%;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--deep);
}
.subgroup {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbf4;
  margin: 16px 0;
  padding: 10px 13px;
  min-width: 0;
}
.subgroup legend {
  font-size: 13px;
  font-weight: 650;
  color: #2e4e36;
  padding: 0 5px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.radio input {
  flex: none;
  width: 17px;
  height: 17px;
}
.chips,
.thread-list,
.roster {
  padding: 0;
  list-style: none;
  margin: 12px 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #edf3e6;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.chips button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--deep);
  background: transparent;
  width: 25px;
  height: 25px;
}
.notice,
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf5e9;
  color: #295339;
  line-height: 1.5;
  font-size: 14px;
  margin: 12px 0 0;
}
.notice.error {
  background: #fff0eb;
  color: #8c352d;
}
.privacy-note svg {
  margin-top: 2px;
}
.roster li,
.details div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 14px;
}
.roster span,
.details dt {
  color: var(--muted);
}
.thread-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--ink);
}
.thread-list small {
  display: block;
  margin: 5px 0;
}
.empty {
  padding: 15px 0;
}
.signals {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.signals dt,
.signals small {
  font-size: 13px;
  color: var(--muted);
}
.signals dd {
  font-weight: 650;
  font-size: 23px;
  margin: 5px 0;
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.skip {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 5;
  transform: translateY(-150%);
  background: white;
  padding: 8px;
}
.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  transform: none;
}
dialog {
  width: min(510px, calc(100% - 34px));
  border: 1px solid #c4d0c0;
  color: var(--ink);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 20px 60px #18332630;
}
dialog::backdrop {
  background: #15352160;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
}
.modal-head h2 {
  min-width: 0;
}
.access {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 30px;
  padding: 24px;
}
.access p {
  color: var(--muted);
}
.access .primary {
  margin-top: 8px;
}
@media (max-width: 920px) {
  .shell {
    grid-template-columns: 194px minmax(0, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .card {
    max-width: 720px;
  }
  .workspace {
    padding: 35px 22px;
  }
}
@media (max-width: 690px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand-row {
    padding: 0;
  }
  .wordmark {
    font-size: 28px;
  }
  .wordmark img {
    width: 27px;
    height: 27px;
  }
  .identity {
    grid-column: 2;
    grid-row: 1;
    border: 0;
    padding: 0;
    margin: 0;
    max-width: 43vw;
  }
  .avatar {
    display: none;
  }
  aside nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
  }
  aside nav a {
    padding: 8px;
    font-size: 12px;
    gap: 5px;
  }
  aside nav svg {
    width: 15px;
  }
  .workspace {
    padding: 27px 14px 48px;
  }
  .page-title {
    margin-bottom: 20px;
  }
  .page-title p {
    font-size: 14px;
    margin-top: 7px;
  }
  .stack,
  .columns {
    gap: 13px;
  }
  .device {
    align-items: flex-start;
  }
  .inline-field {
    align-items: stretch;
  }
  .inline-field input {
    min-width: 90px;
  }
  .modal-head h2 {
    font-size: 20px;
  }
}
