:root {
  --ink: #1f2a22;
  --muted: #56645a;
  --cream: #f6f4ea;
  --paper: #fffdf8;
  --leaf: #24583a;
  --leaf-dark: #18402a;
  --leaf-mid: #3e7a4f;
  --leaf-soft: #e1ebd9;
  --leaf-wash: #eef3e8;
  --line: #e3e3d6;
  --clay: #a14a24;
  --clay-soft: #fbeee3;
  --sun: #f5e7b4;
  --shadow: 0 1px 2px rgb(31 42 34 / 6%), 0 6px 18px rgb(31 42 34 / 7%);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #cfdcc4;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--leaf);
}

:focus-visible {
  outline: 3px solid #2f6e45;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Stage: a soft, sunlit garden behind the device on large screens. */
.stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 32px;
  background:
    radial-gradient(circle at 12% 18%, rgb(255 250 214 / 90%) 0 6%, transparent 22%),
    radial-gradient(circle at 85% 12%, rgb(236 245 205 / 85%) 0 5%, transparent 20%),
    radial-gradient(circle at 70% 85%, rgb(180 206 160 / 90%) 0 10%, transparent 30%),
    radial-gradient(circle at 20% 90%, rgb(120 160 110 / 55%) 0 12%, transparent 34%),
    linear-gradient(160deg, #e7efd6 0%, #b9cfa6 55%, #8fae84 100%);
}

.guide {
  width: 260px;
  flex: none;
  color: var(--ink);
}

.guide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 24px/1 var(--serif);
  color: var(--leaf-dark);
}

.guide-brand em {
  font-style: normal;
  color: var(--leaf-mid);
}

.guide-logo svg {
  width: 34px;
  height: 34px;
  display: block;
}

.guide-tag {
  display: inline-block;
  margin: 18px 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 253 248 / 80%);
  font-size: 13px;
  font-weight: 600;
  color: var(--leaf-dark);
}

.guide-note {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #34453a;
}

.guide h2 {
  margin: 18px 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3c4f42;
}

.guide ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide li a {
  display: block;
  padding: 7px 12px;
  margin-left: -12px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}

.guide li a:hover {
  background: rgb(255 253 248 / 60%);
}

.guide li a[aria-current="page"] {
  background: var(--paper);
  font-weight: 600;
  color: var(--leaf-dark);
}

/* Device frame */
.device {
  width: 414px;
  height: 868px;
  flex: none;
  padding: 12px;
  border-radius: 56px;
  background: #1b1f1c;
  box-shadow:
    0 0 0 2px #3a403b,
    0 30px 60px rgb(20 40 25 / 35%),
    0 8px 20px rgb(20 40 25 / 20%);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

/* Staff view uses a wide browser-style panel instead of the phone. */
.stage.is-wide .device {
  width: min(1180px, 100%);
  height: auto;
  min-height: 760px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 30px 60px rgb(20 40 25 / 30%);
}

.stage.is-wide .screen {
  border-radius: 18px;
  min-height: 760px;
}

.stage.is-wide .guide {
  display: none;
}

@media (max-width: 1000px) {
  .guide {
    display: none;
  }
}

@media (max-width: 560px) {
  .stage {
    padding: 0;
    display: block;
    background: var(--cream);
  }

  .device,
  .stage.is-wide .device {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--cream);
  }

  .screen,
  .stage.is-wide .screen {
    border-radius: 0;
    min-height: 100dvh;
  }

  .stage.is-wide .screen {
    height: auto;
  }
}

/* App chrome */
.app-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 22px 18px 10px;
  background: var(--cream);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font: 600 20px/1 var(--serif);
  color: var(--leaf-dark);
  text-decoration: none;
}

.wordmark svg {
  width: 30px;
  height: 30px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.icon-btn:hover {
  background: var(--leaf-wash);
}

.badge-dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--clay);
  border: 2px solid var(--cream);
}

.sub-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 22px 14px 6px;
}

.sub-header h1 {
  flex: 1;
  margin: 0;
  font: 600 22px/1.2 var(--serif);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

.page-title {
  margin: 6px 0 0;
  font: 600 34px/1.1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-intro {
  margin: -6px 0 4px;
  font-size: 15px;
  color: var(--muted);
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.section-title {
  margin: 0;
  font: 600 22px/1.2 var(--serif);
}

.tabbar {
  display: flex;
  padding: 6px 6px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 54px;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 14px;
}

.tab:hover {
  color: var(--leaf);
}

.tab[aria-current="page"] {
  color: var(--leaf);
  font-weight: 600;
}

.tab[aria-current="page"] svg {
  fill: var(--leaf-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 4px 12px rgb(36 88 58 / 25%);
}

.btn-primary:hover {
  background: var(--leaf-dark);
  color: #fff;
}

.btn-primary:disabled {
  background: #c9d3c6;
  color: #4c5a50;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-outline {
  background: rgb(255 253 248 / 85%);
  color: var(--leaf-dark);
  border: 1.5px solid var(--leaf);
}

.btn-outline:hover {
  background: var(--leaf-wash);
}

.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-quiet {
  background: transparent;
  color: var(--leaf);
  min-height: 44px;
}

.btn-danger {
  background: transparent;
  color: var(--clay);
  border: 1.5px solid #e2b9a3;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--leaf-soft);
  color: var(--leaf-dark);
}

.chip-clay {
  background: var(--clay-soft);
  color: #7a3516;
}

.chip-button {
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  min-height: 36px;
}

/* Cards */
.card {
  background: var(--paper);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 600 15px/1 var(--sans);
  flex: none;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-name {
  font-weight: 600;
  font-size: 15.5px;
}

.post-meta {
  font-size: 13px;
  color: var(--muted);
}

.post-text {
  margin: 12px 0;
  font-size: 15.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.reaction svg {
  width: 16px;
  height: 16px;
  color: var(--leaf-mid);
}

.reaction[aria-pressed="true"] {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.reaction[aria-pressed="true"] svg {
  color: #fff;
}

.comment-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

/* Check-in hero card */
.checkin-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #dceccf 0%, #e9f1df 60%, #f4f0d6 100%);
  box-shadow: var(--shadow);
}

.checkin-card .btn {
  grid-column: 1 / -1;
}

.check-badge {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkin-card h2 {
  margin: 0;
  font: 600 20px/1.2 var(--serif);
}

.checkin-card p {
  margin: 3px 0 0;
  font-size: 14px;
  color: #3f5045;
}

/* List rows (Circles) */
.list-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.list-open {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.list-card > .btn,
.list-card > .chip {
  flex: none;
}

.list-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.list-title {
  font-weight: 600;
  font-size: 16px;
}

.list-meta {
  font-size: 13px;
  color: var(--muted);
}

.list-desc {
  font-size: 13.5px;
  line-height: 1.4;
  color: #3f4d43;
}

/* Segmented control */
.segmented {
  display: flex;
  gap: 8px;
}

.segmented button {
  flex: 1;
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid #b8c7b2;
  background: var(--paper);
  font-weight: 600;
  font-size: 15px;
  color: var(--leaf-dark);
  cursor: pointer;
}

.segmented button[aria-selected="true"] {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

/* Event rows */
.event {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.date-tile {
  width: 66px;
  flex: none;
  padding: 10px 0;
  border-radius: 16px;
  background: var(--leaf-wash);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--leaf-dark);
}

.date-tile .dow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.date-tile .day {
  font: 600 17px/1.1 var(--serif);
  text-align: center;
}

.event h3 {
  margin: 0 0 4px;
  font: 600 18px/1.25 var(--serif);
}

.event-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #3f4d43;
  margin-top: 4px;
}

.event-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.fine-print {
  margin: 4px 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.legend {
  font-weight: 600;
  font-size: 15px;
}

.input,
.textarea {
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid #a9b6a8;
  border-radius: 14px;
  background: var(--paper);
  font-size: 16px;
}

.textarea {
  padding: 14px 16px;
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.textarea.short {
  min-height: 88px;
}

.input:focus,
.textarea:focus {
  border-color: var(--leaf);
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.hint-error {
  color: var(--clay);
  font-weight: 500;
}

.check-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.check-row:has(input:checked) {
  border-color: var(--leaf);
  background: #f5f9f1;
}

.check-row input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--leaf);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bar {
  padding: 12px 18px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* Switch */
.switch {
  width: 52px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  border: 0;
  background: #8b968e;
  position: relative;
  cursor: pointer;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  transition: left 0.15s ease;
}

.switch[aria-checked="true"] {
  background: var(--leaf);
}

.switch[aria-checked="true"]::after {
  left: 24px;
}

.setting {
  display: flex;
  gap: 14px;
  align-items: center;
}

.setting-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setting-title {
  font-weight: 600;
  font-size: 15px;
}

.setting-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.menu-list {
  padding: 4px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.menu-item + .menu-item {
  border-top: 1px solid var(--line);
}

.menu-item span {
  flex: 1;
}

.menu-item:hover {
  background: var(--leaf-wash);
}

.menu-item.danger {
  color: var(--clay);
}

/* Welcome */
.welcome {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, #fffbe8 0 18%, transparent 52%),
    radial-gradient(circle at 18% 6%, rgb(212 232 180 / 80%) 0 8%, transparent 26%),
    radial-gradient(circle at 88% 10%, rgb(198 224 170 / 70%) 0 6%, transparent 24%),
    linear-gradient(180deg, #f4f1dc 0%, #f7f3e3 45%, #e6eed6 70%, #c6d9b4 100%);
}

.welcome-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 30px 0;
  gap: 10px;
}

.welcome-logo svg {
  width: 112px;
  height: 112px;
}

.welcome h1 {
  margin: 4px 0 0;
  font: 700 50px/0.98 var(--serif);
  letter-spacing: -0.015em;
  color: var(--leaf-dark);
}

.welcome .tagline {
  margin: 8px 0 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

.welcome .lede {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: #3c4c41;
  max-width: 290px;
}

.welcome-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 32px 0;
}

.welcome-actions .btn-outline {
  min-height: 46px;
}

.welcome-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 500;
}

.welcome-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--leaf-dark);
}

.welcome-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 250px;
  z-index: 1;
  pointer-events: none;
}

.welcome-scene svg {
  width: 100%;
  height: 100%;
  display: block;
}

.prototype-pill {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(255 253 248 / 85%);
  font-size: 12px;
  font-weight: 600;
  color: var(--leaf-dark);
}

/* Status steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #9aa89d;
  background: var(--paper);
}

.step.done .step-dot {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.step.now .step-dot {
  border: 2.5px solid var(--leaf);
}

.step.now .step-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--leaf);
}

.step-title {
  font-weight: 600;
  font-size: 15px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* Milestones */
.milestone {
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgb(255 244 200 / 35%) 0 10%, transparent 40%),
    linear-gradient(140deg, #2c6a44 0%, #1d4a2f 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone .label {
  font-size: 13px;
  font-weight: 500;
  color: #d5e6d6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.milestone .big {
  font: 700 54px/1 var(--serif);
}

.milestone p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #e8f1e8;
}

.milestone .btn {
  align-self: flex-start;
  margin-top: 6px;
  background: #fff;
  color: var(--leaf-dark);
  min-height: 44px;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mood {
  min-height: 54px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mood:last-child {
  grid-column: 1 / -1;
}

.mood[aria-checked="true"] {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.marks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
}

.support-note {
  background: var(--clay-soft);
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #5a2a13;
}

.support-note strong {
  display: block;
  margin-bottom: 4px;
  color: #6e3216;
}

/* Bottom sheet */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgb(20 30 22 / 40%);
  display: flex;
  align-items: flex-end;
}

.sheet {
  width: 100%;
  max-height: 85%;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  padding: 10px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet-grip {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #d3d6cb;
  align-self: center;
}

.sheet h2 {
  margin: 0;
  font: 600 22px/1.2 var(--serif);
}

.toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 96px;
  z-index: 30;
  padding: 14px 16px;
  border-radius: 14px;
  background: #1f2a22;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 20%);
}

/* Comments */
.comment {
  display: flex;
  gap: 12px;
}

.comment .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.comment-bubble {
  flex: 1;
  background: var(--paper);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.comment-bubble p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.comment-actions .reactions {
  flex: 1;
}

.note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.composer {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.composer .input {
  flex: 1;
  border-radius: 999px;
  min-height: 46px;
  font-size: 15px;
}

.compose-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.compose-trigger .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

/* Swatches */
.swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.swatch {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
}

.swatch[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 2.5px var(--ink);
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 10px 0 4px;
}

.profile-hero .avatar {
  width: 84px;
  height: 84px;
  font-size: 30px;
  font-family: var(--serif);
}

.profile-hero h2 {
  margin: 0;
  font: 600 26px/1.2 var(--serif);
}

/* Admin */
.admin {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--cream);
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 16px 26px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.admin-body {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding: 26px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.admin-nav {
  flex: 1 1 190px;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.admin-nav a[aria-current="page"] {
  background: var(--leaf-soft);
  color: var(--leaf-dark);
  font-weight: 600;
}

.admin-main {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-main h1 {
  margin: 0;
  font: 600 32px/1.15 var(--serif);
}

.intake {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.intake-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: none;
}

.table-wrap {
  overflow-x: auto;
  padding: 0;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

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

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
}

.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.code-box {
  padding: 14px;
  border-radius: 12px;
  background: var(--leaf-wash);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  word-break: break-all;
}

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