:root {
  --ink: #263d36;
  --muted: #697970;
  --paper: #f6f3eb;
  --white: #fffefa;
  --line: #dedfd4;
  --green: #3e6855;
  --orange: #d78c59;
  --gold: #dec68d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c48554;
  outline-offset: 2px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.serif {
  font-family: Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 29px;
  line-height: 1.1;
}
h3 {
  font-size: 16px;
}
.shell {
  max-width: 1220px;
  margin: auto;
  padding: 0 28px 100px;
}
.top {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  color: var(--ink);
  padding: 0;
}
.mark {
  width: 37px;
  height: 37px;
  border: 1px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia;
  font-style: italic;
  font-size: 19px;
}
.brand strong {
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  margin-top: 3px;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user {
  background: #e7ebdf;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.text-button {
  background: none;
  color: var(--green);
  font-weight: 700;
  padding: 9px;
}
.desktop-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 50px;
}
.desktop-nav button {
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 26px 0;
  border-bottom: 2px solid transparent;
}
.desktop-nav button.active {
  color: var(--ink);
  border-color: var(--green);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
}
.hero {
  margin-top: 34px;
  border-radius: 16px;
  overflow: hidden;
  min-height: 270px;
  background: #d8ddcc url("/art/cover.webp") center/cover;
  display: flex;
  align-items: stretch;
}
.hero-copy {
  padding: 35px;
  max-width: 530px;
  background: linear-gradient(
    90deg,
    rgba(241, 241, 226, 0.98),
    rgba(241, 241, 226, 0.88) 70%,
    transparent
  );
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}
.hero p {
  line-height: 1.55;
  max-width: 360px;
  color: #52655b;
}
.hero .eyebrow {
  color: #7b684e;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 39px 0 18px;
}
.section-head p,
.subtle {
  color: var(--muted);
  line-height: 1.5;
}
.section-head h2 {
  margin-top: 7px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.stat {
  background: var(--white);
  border: 1px solid #e8e8df;
  border-radius: 12px;
  padding: 19px 20px;
  min-height: 100px;
}
.stat strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 29px;
  display: block;
  margin-bottom: 7px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.columns {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
}
.panel {
  background: var(--white);
  border: 1px solid #e8e8df;
  border-radius: 14px;
  overflow: hidden;
}
.task {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  text-align: left;
  color: var(--ink);
  padding: 16px 18px;
  border-bottom: 1px solid #ebede5;
}
.task:last-child {
  border: 0;
}
.task:hover,
.room:hover {
  background: #f4f6ef;
}
.check {
  width: 22px;
  height: 22px;
  border: 1.5px solid #adbbb0;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
}
.check.done {
  background: var(--green);
  border-color: var(--green);
}
.task-body {
  min-width: 0;
  flex: 1;
}
.task-title {
  font-weight: 600;
  line-height: 1.35;
}
.task-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.arrow {
  color: #91a096;
  font-size: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  background: #edf1e8;
  color: #526c5b;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.blocked {
  background: #f7e9df;
  color: #9d593b;
}
.badge.done {
  background: #e0ece2;
  color: #417052;
}
.badge.in_progress {
  background: #f5efde;
  color: #826e37;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.room {
  background: var(--white);
  border: 1px solid #e8e8df;
  border-radius: 13px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  padding: 0;
}
.room-art {
  height: 150px;
  background: #dce1d1 center/cover;
}
.room-info {
  padding: 16px;
}
.room-info h3 {
  margin-bottom: 7px;
}
.room-info p {
  font-size: 12px;
  color: var(--muted);
}
.progress {
  height: 4px;
  background: #e9ede5;
  border-radius: 5px;
  margin-top: 14px;
  overflow: hidden;
}
.progress span {
  height: 100%;
  display: block;
  background: var(--green);
}
.page-head {
  margin: 40px 0 25px;
}
.page-head h1 {
  margin-top: 8px;
}
.page-head p {
  margin-top: 10px;
  color: var(--muted);
}
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.field,
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe0d5;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
}
.filters input,
.filters select {
  font-size: 13px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}
.back {
  background: none;
  color: var(--green);
  padding: 0;
  font-weight: 700;
  margin-bottom: 22px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.8fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid #e8e8df;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 15px;
}
.card h3 {
  margin-bottom: 16px;
}
.label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 17px 0 7px;
}
.label:first-child {
  margin-top: 0;
}
textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}
textarea.short {
  min-height: 80px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 13px;
}
.button.secondary {
  background: #e9eee5;
  color: var(--green);
}
.button.outline {
  background: transparent;
  border: 1px solid #cbd5c9;
  color: var(--green);
}
.button-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.person-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.person-choice {
  position: relative;
}
.person-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.person-choice span {
  display: block;
  border: 1px solid #dbe0d5;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}
.person-choice input:checked + span {
  background: #e5eee4;
  border-color: #82a48b;
  color: #315c42;
}
.person-choice input:focus-visible + span {
  outline: 3px solid #c48554;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}
.nav-mobile {
  display: none;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #dbe1d3 url("/art/cover.webp") center/cover;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 30px;
}
.login {
  width: min(100%, 390px);
}
.login h1 {
  margin: 36px 0 12px;
}
.login p {
  color: var(--muted);
  line-height: 1.6;
}
.login form {
  margin-top: 25px;
}
.login .button {
  width: 100%;
  margin-top: 18px;
}
.error {
  color: #a04f38;
  font-size: 13px;
  margin-top: 12px;
}
.loading {
  padding: 50px;
  font-family: Georgia, serif;
}
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #263d36;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
.room-banner {
  display: flex;
  align-items: end;
  min-height: 200px;
  background: #dce1d1 center/cover;
  border-radius: 14px;
  overflow: hidden;
}
.room-banner > div {
  padding: 25px;
  width: 100%;
  background: linear-gradient(transparent, rgba(26, 47, 36, 0.8));
  color: white;
}
.room-banner h1 {
  font-size: 38px;
}
.modal-shade {
  position: fixed;
  inset: 0;
  background: #172a22a8;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 10;
}
.modal {
  background: var(--paper);
  border-radius: 15px;
  width: min(100%, 600px);
  max-height: 90vh;
  overflow: auto;
  padding: 25px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close {
  background: none;
  font-size: 25px;
  color: var(--ink);
}
@media (max-width: 700px) {
  .shell {
    padding: 0 17px 100px;
  }
  .top {
    height: 68px;
  }
  .desktop-nav {
    display: none;
  }
  .top-actions .text-button {
    font-size: 12px;
  }
  .hero {
    min-height: 250px;
    margin-top: 20px;
    background-position: 60% center;
  }
  .hero-copy {
    width: 85%;
    padding: 23px;
    background: linear-gradient(
      90deg,
      rgba(241, 241, 226, 0.96),
      rgba(241, 241, 226, 0.83) 67%,
      transparent
    );
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero p {
    font-size: 13px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .stat {
    min-height: 86px;
    padding: 15px;
  }
  .stat strong {
    font-size: 25px;
  }
  .columns,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .room-art {
    height: 110px;
  }
  .room-info {
    padding: 13px;
  }
  .room-info h3 {
    font-size: 14px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters input {
    grid-column: 1/-1;
  }
  .section-head {
    margin-top: 30px;
  }
  .page-head {
    margin: 30px 0 20px;
  }
  .nav-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffefaf5;
    border-top: 1px solid #e0e4da;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    z-index: 5;
  }
  .nav-mobile button {
    background: none;
    color: #7c8b80;
    min-width: 70px;
    font-size: 10px;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 3px;
  }
  .nav-mobile button.active {
    color: var(--green);
    font-weight: 700;
  }
  .nav-mobile svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
  }
  .task {
    padding: 14px 13px;
  }
  .task .badge {
    display: inline-flex;
    font-size: 9px;
    padding: 4px 6px;
  }
  .login-wrap {
    display: block;
  }
  .login-art {
    height: 30vh;
    min-height: 190px;
  }
  .login-main {
    padding: 30px 24px;
  }
  .login h1 {
    margin-top: 24px;
  }
  .room-banner {
    min-height: 180px;
  }
  .card {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.stat {
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.stat:hover {
  border-color: #aab9a7;
}
.stats {
  grid-template-columns: repeat(5, 1fr);
}
details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-side {
    grid-row: 1;
  }
  .detail-main {
    grid-row: 2;
  }
}
.task-title,
.task-meta {
  display: block;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ai-preview {
  margin-top: 18px;
  padding: 16px;
  background: #f2f5ed;
  border-radius: 10px;
}
.ai-preview p {
  white-space: pre-wrap;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.ai-preview .button {
  margin-top: 18px;
}
