:root {
  color-scheme: light;
  --ink: #202d26;
  --muted: #667169;
  --line: #dde2d9;
  --green: #244d3c;
  font:
    16px/1.55 Inter,
    'PingFang SC',
    'Microsoft YaHei',
    system-ui,
    sans-serif;
  color: var(--ink);
  background: #f9faf6;
  -webkit-font-smoothing: antialiased;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #427b60;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #d9edb6;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: #fdfefa;
}
.mast-inner,
.board {
  width: min(100% - 80px, 948px);
  margin: auto;
}
.mast-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
  font-size: 22px;
  font-weight: 770;
  letter-spacing: -0.06em;
}
.brand img {
  width: 34px;
  height: 34px;
}
#account {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-width: 0;
}
.plain-action,
.solid-action,
.account-button,
.menu-action {
  border: none;
  color: var(--ink);
  min-height: 44px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
}
.plain-action {
  background: transparent;
  padding: 0 12px;
}
.solid-action {
  background: var(--green);
  color: #fff;
  padding: 0 23px;
}
.plain-action:hover,
.account-button:hover,
.menu-action:hover {
  background: #eaf0e5;
}
.solid-action:hover {
  background: #143825;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 4px 8px;
  max-width: min(58vw, 270px);
}
.short-name,
.user-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e9cb;
  color: #36503b;
  flex: none;
}
.chevron {
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
  margin: 0 3px;
}
.account-panel {
  z-index: 3;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 202px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px #23342616;
  padding: 6px;
  border-radius: 14px;
}
.user-handle {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.menu-action {
  display: block;
  width: 100%;
  background: transparent;
  text-align: left;
  padding: 0 10px;
}

.board {
  padding: clamp(32px, 5vw, 66px) 0 max(50px, env(safe-area-inset-bottom));
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.board h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.065em;
  line-height: 1.22;
}
.lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.board-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.group-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #bdcbbd;
  color: var(--green);
  padding: 0 14px;
}
.group-content p {
  margin: 0;
  line-height: 1.65;
}
.group-content p:last-child {
  color: var(--muted);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.group-code {
  margin: 18px 0;
  text-align: center;
}
.group-code img {
  display: block;
  max-width: min(100%, 300px);
  max-height: 46vh;
  max-height: 46dvh;
  margin: 0 auto;
  object-fit: contain;
}
.group-code figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.group-code figcaption:empty {
  display: none;
}
.write {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.write > span {
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}
.tabs {
  display: flex;
  gap: 28px;
  margin: 30px 0 0;
  border-bottom: 1px solid var(--line);
}
.area-tab {
  border: 0;
  position: relative;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  min-height: 50px;
  font-size: 16px;
  font-weight: 550;
}
.area-tab[aria-selected='true'] {
  color: var(--green);
  font-weight: 720;
}
.area-tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
}
.area-tab:hover {
  color: var(--green);
}
.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.find {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  max-width: 365px;
  width: 100%;
  min-width: 0;
}
.find:focus-within {
  outline: 2px solid #57836c;
  outline-offset: 1px;
}
.glass {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.6px solid #65786b;
  border-radius: 50%;
  flex: none;
}
.glass::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 1.5px;
  right: -4px;
  bottom: -2px;
  background: #65786b;
  transform: rotate(45deg);
}
.find input {
  border: 0;
  min-height: 43px;
  appearance: none;
  outline: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--ink);
}
.find input::placeholder {
  color: #718074;
}
#count,
.history-count {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}
.feed-pages {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.feed-pages button {
  border: 1px solid var(--line);
}
.rows {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.rows:empty {
  display: none;
}
.report-row + .report-row {
  border-top: 1px solid var(--line);
}
.report-row {
  overflow-wrap: anywhere;
}
.report-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 89px;
  list-style: none;
  padding: 16px 21px;
  cursor: pointer;
}
.report-summary::-webkit-details-marker {
  display: none;
}
.report-summary:focus-visible {
  outline: 2px solid #57836c;
  outline-offset: -3px;
  border-radius: 10px;
}
.row-copy {
  display: block;
  min-width: 0;
  flex: 1;
}
.report-title {
  display: block;
  font-size: 17px;
  font-weight: 660;
  line-height: 1.5;
}
.report-summary:hover .report-title {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  gap: 2px 0;
  margin-top: 4px;
}
.metadata > span:not(:first-child)::before {
  content: '·';
  margin: 0 7px;
}
.admin-reply-label {
  color: #9e2024;
}
.metadata > .admin-reply-label::before {
  color: var(--muted);
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
  color: #74644c;
  background: #f6f1e7;
  border-radius: 6px;
  font-size: 12px;
  padding: 2px 8px;
}
.state::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aa8e62;
}
.state.confirmed {
  color: #386849;
  background: #edf4eb;
}
.state.confirmed::before {
  background: #63916c;
}
.state.settled {
  color: #9e2024;
  background: #fbe1de;
  font-weight: 700;
}
.state.settled::before {
  background: #c83a3f;
}
.state.cancelled {
  color: #5b655e;
  background: #edf0eb;
}
.state.cancelled::before {
  background: #737e76;
}
.report-states {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-width: 0;
}
.development {
  display: inline-flex;
  min-width: 0;
}
.development-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f0f2ee;
  color: #515e54;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  min-width: 0;
}
.development-badge[data-stage='in_progress'] {
  background: #eaf2f5;
  color: #28596c;
}
.development-badge[data-stage='completed'] {
  background: #eef2e8;
  color: #405b41;
}
.development-action {
  border-color: currentColor;
}
.settlement-action {
  position: relative;
  box-shadow: inset 0 0 0 1px currentColor;
}
.development-action:hover {
  filter: brightness(.96);
}
.development-action:focus-within,
.settlement-action:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.development-owner {
  max-width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.development-action::before,
.development-action select,
.settlement-action select {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  width: 100%;
  min-height: 44px;
}
.development-action::before {
  content: '';
}
.development-action select,
.settlement-action select {
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.development-arrow {
  flex: none;
  width: 6px;
  height: 6px;
  margin-inline: 2px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: translateY(-1px) rotate(45deg);
}
.row-chevron {
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 1.5px solid #778578;
  border-bottom: 1.5px solid #778578;
  transform: rotate(45deg);
  margin: 0 3px;
}
details[open] .row-chevron {
  transform: rotate(225deg);
}
.row-body {
  padding: 0 21px 20px;
}
.report-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 15px;
}
.media {
  margin-top: 13px;
}
.review-thread {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}
.review-thread:empty {
  display: none;
}
.review-entry {
  min-width: 0;
  padding: 10px 14px;
  border-left: 3px solid #afc6a2;
  border-radius: 0 9px 9px 0;
  background: #f4f7f1;
}
.review-entry.author-entry {
  border-color: #c9d2cc;
  background: #f6f7f6;
}
.review-entry.reason {
  border-color: #c5b89c;
  background: #f7f5ef;
}
.review-entry.unread {
  border-color: #996d40;
}
.review-notice {
  margin: 12px 0 6px;
  color: #805126;
  font-size: 14px;
  font-weight: 600;
}
.review-entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  color: #355540;
  font-size: 13px;
}
.review-entry-head strong,
.review-entry-text {
  overflow-wrap: anywhere;
}
.floor-number,
.review-reason {
  font-size: 12px;
}
.floor-number {
  color: var(--muted);
}
.reason .review-entry-head {
  color: #6a5840;
}
.review-entry time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.review-entry-text {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid #e6eae2;
}
.review-reply {
  color: var(--green);
  background: white;
  border: 1px solid #c7d2c7;
}
.review-cancel {
  margin-left: auto;
  padding-inline: 7px;
  color: #885040;
}
.empty {
  min-height: 128px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty strong {
  font-size: 15px;
}
.empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.history {
  color: var(--ink);
  width: min(620px, calc(100% - 30px));
  max-height: 86dvh;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9faf6;
}
.history::backdrop {
  background: #1b262444;
}
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.history h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.04em;
}
.history-close {
  background: transparent;
  border: 0;
  font-size: 25px;
  color: var(--muted);
  width: 44px;
  height: 44px;
}
.history-count {
  margin: 2px 0 13px;
}
html:has(.history[open]) {
  overflow: hidden;
}
.media {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.photo {
  display: block;
  width: 86px;
  height: 76px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.video {
  width: min(275px, 100%);
  max-height: 220px;
  background: #202922;
  border-radius: 8px;
}
.media-original {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  text-underline-offset: 3px;
  font-size: 13px;
}
.media-player {display: grid; justify-items: start; max-width: 100%;}
.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 18px;
  background: #213e30;
  color: white;
  border-radius: 12px;
  max-width: 90vw;
  width: max-content;
  font-size: 14px;
  z-index: 15;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 700px) {
  .mast-inner,
  .board {
    width: calc(100% - 36px);
  }
  .mast-inner {
    height: 60px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  #account {
    gap: 2px;
  }
  .solid-action {
    padding: 0 14px;
  }
  .board {
    padding-top: 28px;
  }
  .lead {
    font-size: 13px;
  }
  .write {
    gap: 3px;
  }
  .board-head {
    flex-wrap: wrap;
  }
  .tabs {
    justify-content: space-between;
    gap: 3px;
    margin-top: 20px;
  }
  .area-tab {
    flex: auto;
    font-size: 15px;
    padding: 0 3px;
    min-height: 46px;
  }
  .area-tab[aria-selected='true']::after {
    left: 18%;
    right: 18%;
  }
  .list-tools {
    margin-top: 15px;
  }
  .find {
    padding: 0 10px;
  }
  .find input {
    font-size: 16px;
  }
  .report-summary {
    padding: 14px 12px;
    gap: 8px;
    min-height: 82px;
  }
  .has-development .report-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
  }
  .has-development .report-states {
    grid-column: 1;
    justify-self: start;
    max-width: 100%;
  }
  .has-development .row-chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .development-badge {
    padding-inline: 6px;
  }
  .report-title {
    font-size: 16px;
  }
  .state {
    font-size: 11px;
    padding: 2px 6px;
    gap: 4px;
  }
  .row-body {
    padding: 0 12px 15px;
  }
  .metadata {
    font-size: 12px;
  }
  .metadata > span:not(:first-child)::before {
    margin: 0 4px;
  }
  .history {
    width: 100%;
    max-width: none;
    max-height: 93dvh;
    margin: auto 0 0;
    padding: 16px 14px max(20px, env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
