:root {
  --ink: #1b2925;
  --muted: #71807b;
  --line: #dfe5e1;
  --paper: #f4f3ed;
  --surface: #ffffff;
  --green: #1f5b4f;
  --green-deep: #153f38;
  --green-soft: #e7f0ed;
  --amber: #d88d35;
  --amber-soft: #faeedc;
  --red: #b34e43;
  --red-soft: #fae9e6;
  --blue: #2e6882;
  --blue-soft: #e5f0f4;
  --shadow: 0 16px 44px rgba(29, 52, 45, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  letter-spacing: -.01em;
}
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-weight: 700; }
.brand small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}
.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #f9f5e9;
  border-radius: 12px 4px 12px 4px;
  background: var(--green);
  font-family: "Songti SC", serif;
  font-size: 19px;
}
.brand--light { color: #f7f4e9; }
.brand--light .brand__mark { color: var(--green-deep); background: #f7f4e9; }
.brand--light small { color: rgba(255,255,255,.48); }

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(390px, 1.08fr) minmax(430px, .92fr);
}
.login-art {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 56px;
  align-items: flex-end;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(235, 171, 83, .48), transparent 24%),
    radial-gradient(circle at 12% 80%, rgba(131, 176, 158, .22), transparent 27%),
    linear-gradient(145deg, #173e36 0%, #286859 55%, #204c43 100%);
}
.login-art::before,
.login-art::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.login-art::before { width: 520px; height: 520px; right: -170px; top: 8%; }
.login-art::after { width: 340px; height: 340px; right: -80px; top: 23%; }
.login-art__content { position: relative; z-index: 1; max-width: 620px; }
.login-art h1 {
  margin: 76px 0 22px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(40px, 5.1vw, 72px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.17;
}
.login-art p { max-width: 480px; color: rgba(255,255,255,.7); font-size: 16px; }
.route-line {
  display: flex;
  margin-top: 52px;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  letter-spacing: .12em;
}
.route-line i {
  position: relative;
  width: 54px;
  height: 1px;
  background: rgba(255,255,255,.35);
}
.route-line i::after {
  position: absolute;
  width: 5px;
  height: 5px;
  right: -1px;
  top: -2px;
  content: "";
  border-radius: 50%;
  background: #e8aa58;
}
.login-panel {
  display: flex;
  padding: 28px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f5ef;
}
.login-card {
  display: flex;
  width: min(390px, 100%);
  flex-direction: column;
  gap: 18px;
}
.login-card h2 { margin: -4px 0 -12px; font-size: 34px; letter-spacing: -.04em; }
.login-card .button { margin-top: 8px; }
.login-footnote { margin-top: 64px; color: #98a19d; font-size: 11px; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 224px 1fr; }
.env-banner {
  position: fixed;
  z-index: 60;
  width: 100%;
  top: 0;
  padding: 5px 12px;
  color: #6d461a;
  background: #f7dfbc;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}
.env-banner:not([hidden]) ~ .sidebar { padding-top: 51px; }
.env-banner:not([hidden]) ~ .main .topbar { min-height: 126px; padding-top: 46px; }
.sidebar {
  position: fixed;
  z-index: 20;
  display: flex;
  width: 224px;
  height: 100vh;
  padding: 26px 18px 22px;
  flex-direction: column;
  border-right: 1px solid #e5e4de;
  background: #fbfaf6;
}
.sidebar .brand { padding: 0 9px 28px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  width: 100%;
  padding: 11px 13px;
  align-items: center;
  gap: 12px;
  color: #69736f;
  border: 0;
  border-radius: 11px;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background .18s ease, color .18s ease;
}
.nav-item:hover { color: var(--ink); background: #f1f0ea; }
.nav-item.is-active {
  color: #f9f7ef;
  background: var(--green);
  box-shadow: 0 9px 20px rgba(31,91,79,.18);
}
.nav-icon { width: 20px; font-size: 18px; line-height: 1; text-align: center; }
.nav-count {
  min-width: 19px;
  margin-left: auto;
  padding: 1px 6px;
  color: #8a4d19;
  border-radius: 99px;
  background: #f9dfbc;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}
.nav-item.is-active .nav-count { color: var(--green-deep); background: #fff5df; }
.sidebar-note {
  display: flex;
  margin-top: auto;
  padding: 13px 11px;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.sidebar-note > div { display: flex; flex-direction: column; }
.sidebar-note strong { color: #4c5853; font-size: 11px; }
.sidebar-note small { margin-top: 2px; font-size: 9px; }
.status-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #56a776;
  box-shadow: 0 0 0 3px #e2f1e6;
}

.main { min-width: 0; grid-column: 2; }
.topbar {
  display: flex;
  min-height: 105px;
  padding: 25px 34px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e4e5df;
  background: rgba(247,245,239,.9);
  backdrop-filter: blur(12px);
}
.topbar h1 { margin: 2px 0 0; font-size: 25px; letter-spacing: -.035em; }
.eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.topbar__actions, .user-chip { display: flex; align-items: center; gap: 11px; }
.feedback-top-button {
  display: flex;
  padding: 7px 12px 7px 9px;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: #b97026;
  box-shadow: 0 7px 18px rgba(158, 92, 31, .18);
  cursor: pointer;
}
.feedback-top-button:hover { background: #9d5c1e; }
.feedback-top-button__icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  font-size: 14px;
}
.feedback-top-button > span:last-child { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.feedback-top-button strong { font-size: 10px; }
.feedback-top-button small { margin-top: 2px; color: rgba(255,255,255,.76); font-size: 8px; }
.date-chip {
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  font-size: 11px;
}
.user-chip { color: #50605a; font-size: 12px; }
.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #5a7f73;
  font-size: 12px;
  font-weight: 700;
}
.content { padding: 30px 34px 60px; }
.mobile-menu { display: none; }

.hero-row {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.hero-row h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.03em; }
.hero-row p { margin: 0; color: var(--muted); font-size: 12px; }
.hero-actions { display: flex; align-items: center; gap: 9px; }

.button {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 15px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button--primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(31,91,79,.14);
}
.button--primary:hover { background: var(--green-deep); }
.button--ghost { border-color: var(--line); background: #fff; }
.button--ghost:hover { background: #f7f7f3; }
.button--danger { color: #fff; background: var(--red); }
.button--small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.button--wide { width: 100%; min-height: 45px; }
.text-button {
  padding: 2px;
  color: var(--muted);
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 11px;
}
.text-button:hover { color: var(--green); }
.text-button--danger:hover { color: var(--red); }
.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.metrics { display: grid; margin-bottom: 22px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.metric {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #e4e4de;
  border-radius: 15px;
  background: #fff;
}
.metric::after {
  position: absolute;
  width: 36px;
  height: 36px;
  right: -13px;
  bottom: -13px;
  content: "";
  border-radius: 50%;
  background: var(--green-soft);
}
.metric--amber::after { background: var(--amber-soft); }
.metric--red::after { background: var(--red-soft); }
.metric__label { color: var(--muted); font-size: 11px; }
.metric__value { margin-top: 7px; font-size: 30px; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.metric__note { margin-top: 9px; color: #9aa39f; font-size: 9px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(280px, .82fr); gap: 18px; }
.panel {
  overflow: hidden;
  border: 1px solid #e4e4de;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 28px rgba(31,45,40,.035);
}
.panel__head {
  display: flex;
  min-height: 58px;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0ed;
}
.panel__head h3 { margin: 0; font-size: 14px; }
.panel__head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.panel__body { padding: 18px; }

.upcoming-list { display: flex; flex-direction: column; }
.upcoming-item {
  display: grid;
  padding: 15px 18px;
  grid-template-columns: 54px minmax(150px, 1.3fr) minmax(120px, .8fr) minmax(120px, .8fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f1ed;
}
.upcoming-item:last-child { border-bottom: 0; }
.date-tile {
  display: flex;
  width: 46px;
  height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f2f2ed;
  line-height: 1.1;
}
.date-tile strong { font-size: 17px; }
.date-tile span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.upcoming-main strong, .table-primary { display: block; font-size: 12px; }
.upcoming-main small, .table-secondary { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.mini-label { color: #9aa39f; font-size: 9px; }
.mini-value { display: block; margin-top: 2px; font-size: 11px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 4px; }
.badge {
  display: inline-flex;
  padding: 3px 7px;
  align-items: center;
  border-radius: 999px;
  color: #52615b;
  background: #eef1ee;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.badge--green { color: #23634f; background: #e3f0e9; }
.badge--amber { color: #9d6223; background: var(--amber-soft); }
.badge--red { color: #a44239; background: var(--red-soft); }
.badge--blue { color: #2f657a; background: var(--blue-soft); }
.badge--outline { color: #68746f; border: 1px solid var(--line); background: #fff; }

.load-list { display: flex; flex-direction: column; gap: 15px; }
.load-item__top { display: flex; margin-bottom: 7px; justify-content: space-between; gap: 10px; }
.load-item__top strong { font-size: 12px; }
.load-item__top span { color: var(--muted); font-size: 10px; }
.load-bar { height: 6px; overflow: hidden; border-radius: 99px; background: #eef0ec; }
.load-bar i { display: block; height: 100%; border-radius: inherit; background: #6a9d8d; }
.empty-inline { padding: 28px 12px; color: var(--muted); font-size: 12px; text-align: center; }

.toolbar {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.input, .select, .textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink);
  border: 1px solid #d8ded9;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: #67998a;
  box-shadow: 0 0 0 3px rgba(74,134,117,.1);
}
.input::placeholder, .textarea::placeholder { color: #a9b0ac; }
.textarea { min-height: 80px; resize: vertical; }
.filters .input { width: 210px; }
.filters .select { width: 130px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th {
  padding: 11px 13px;
  color: #89938e;
  border-bottom: 1px solid #e8ece8;
  background: #fbfbf8;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  text-align: left;
}
.data-table td { padding: 13px; border-bottom: 1px solid #eff1ee; vertical-align: middle; font-size: 11px; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #fbfbf7; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 8px; }
.table-empty { display: flex; padding: 56px 20px; flex-direction: column; align-items: center; text-align: center; }
.table-empty__mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  place-items: center;
  color: var(--green);
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 21px;
}
.table-empty strong { font-size: 13px; }
.table-empty p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.archive-summary {
  display: -webkit-box !important;
  max-width: 540px;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pipeline {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.pipeline-step {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
}
.pipeline-step small { color: var(--muted); font-size: 9px; }
.pipeline-step strong { display: block; margin-top: 3px; font-size: 19px; }

.feedback-intro {
  display: flex;
  margin-bottom: 18px;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #31564b;
  border: 1px solid #cfe0da;
  border-radius: 14px;
  background: linear-gradient(120deg, #edf5f1, #f9f7ee);
}
.feedback-intro strong { display: block; font-size: 13px; }
.feedback-intro p { margin: 3px 0 0; color: #687a73; font-size: 10px; }
.feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feedback-card {
  padding: 16px;
  border: 1px solid #e4e5df;
  border-radius: 14px;
  background: #fff;
}
.feedback-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.feedback-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.feedback-card__message { margin: 12px 0; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.feedback-card__foot {
  display: flex;
  padding-top: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f0f1ed;
}
.feedback-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-fab {
  position: fixed;
  z-index: 40;
  display: flex;
  right: 24px;
  bottom: 22px;
  padding: 11px 16px;
  align-items: center;
  gap: 7px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: #b97026;
  box-shadow: 0 12px 32px rgba(25,65,54,.25);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.feedback-fab:hover { background: #9d5c1e; }
.feedback-context {
  margin: 0 0 16px;
  padding: 10px 12px;
  color: #6a7772;
  border-radius: 9px;
  background: #f0f2ed;
  font-size: 10px;
}
.feedback-compose { display: flex; flex-direction: column; gap: 12px; }
.feedback-paste-zone {
  padding: 15px;
  border: 1px dashed #b9c8c1;
  border-radius: 13px;
  background: #f7f9f6;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.feedback-paste-zone.is-dragging, .feedback-paste-zone:focus-within {
  border-color: #5f9182;
  background: #edf5f1;
}
.feedback-paste-zone__hint {
  display: flex;
  margin-bottom: 9px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feedback-paste-zone__hint strong { font-size: 11px; }
.feedback-paste-zone__hint span { color: var(--muted); font-size: 9px; }
.feedback-paste-zone .textarea {
  min-height: 120px;
  border-color: #d3ddd8;
  background: #fff;
}
.feedback-image-strip { display: flex; flex-wrap: wrap; margin-top: 10px; gap: 8px; }
.feedback-image-preview {
  position: relative;
  width: 92px;
  height: 72px;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: 8px;
  background: #fff;
}
.feedback-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.feedback-image-preview button {
  position: absolute;
  display: grid;
  width: 19px;
  height: 19px;
  top: 4px;
  right: 4px;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgba(30,40,36,.75);
  cursor: pointer;
  font-size: 10px;
}
.feedback-advanced {
  padding: 10px 12px;
  border: 1px solid #e1e5e1;
  border-radius: 10px;
  background: #fff;
}
.feedback-advanced summary { cursor: pointer; color: #67736e; font-size: 10px; font-weight: 650; }
.feedback-advanced .form-grid { margin-top: 12px; }
.feedback-card__images { display: flex; margin: 0 0 12px; gap: 7px; }
.feedback-card__images a { display: block; }
.feedback-card__images img {
  width: 118px;
  height: 82px;
  object-fit: cover;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
}
.itinerary-editor { display: flex; flex-direction: column; gap: 8px; }
.itinerary-edit-row {
  position: relative;
  display: grid;
  padding: 12px;
  grid-template-columns: 120px 120px 1fr 76px;
  gap: 8px;
  border: 1px solid #e1e5e1;
  border-radius: 10px;
  background: #fff;
}
.itinerary-edit-row .activity { grid-column: 1 / 4; }
.itinerary-edit-row .wide { grid-column: 1 / 4; }
.itinerary-edit-row .remove-day {
  position: absolute;
  right: 8px;
  top: 8px;
  color: #9a5b54;
}
.itinerary-edit-row .textarea { min-height: 66px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-card {
  padding: 18px;
  border: 1px solid #e4e4de;
  border-radius: 15px;
  background: #fff;
}
.guide-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.guide-card__person { display: flex; align-items: center; gap: 11px; }
.guide-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 50% 50% 50% 16%;
  background: #447465;
  font-family: "Songti SC", serif;
  font-size: 17px;
}
.guide-card h3 { margin: 0; font-size: 14px; }
.guide-card small { color: var(--muted); font-size: 10px; }
.guide-card__meta { display: flex; margin-top: 15px; flex-direction: column; gap: 9px; }
.guide-card__row { display: grid; grid-template-columns: 60px 1fr; gap: 8px; font-size: 10px; }
.guide-card__row span { color: #9aa39f; }
.guide-card__bio { min-height: 31px; margin: 13px 0 0; color: #66736e; font-size: 10px; line-height: 1.55; }

.handover-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 12px;
  overflow-x: auto;
}
.board-column {
  min-height: 320px;
  padding: 8px;
  border-radius: 14px;
  background: #eaece7;
}
.board-column__head {
  display: flex;
  padding: 8px 7px 12px;
  align-items: center;
  justify-content: space-between;
}
.board-column__head strong { font-size: 11px; letter-spacing: .04em; }
.count-dot {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 99px;
  background: rgba(255,255,255,.8);
  font-size: 9px;
}
.handover-card {
  margin-bottom: 8px;
  padding: 13px;
  border: 1px solid #e5e6e1;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(30,44,39,.035);
}
.handover-card:hover { border-color: #b9c9c3; }
.handover-card__top { display: flex; justify-content: space-between; gap: 8px; }
.handover-card h4 { margin: 0; font-size: 12px; }
.handover-card small { color: var(--muted); font-size: 9px; }
.handover-card__facts {
  display: grid;
  margin: 10px 0;
  padding: 9px 0;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border-block: 1px solid #f0f1ed;
}
.handover-card__facts span { display: block; color: #9aa39f; font-size: 8px; }
.handover-card__facts strong { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; }
.note-preview {
  display: -webkit-box;
  overflow: hidden;
  color: #68746f;
  font-size: 9px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.member-list, .audit-list { display: flex; flex-direction: column; }
.member-row, .audit-row {
  display: flex;
  padding: 12px 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eff1ed;
}
.member-row:last-child, .audit-row:last-child { border-bottom: 0; }
.member-main { display: flex; align-items: center; gap: 10px; }
.member-main strong { display: block; font-size: 11px; }
.member-main small { display: block; color: var(--muted); font-size: 9px; }
.audit-row { align-items: flex-start; }
.audit-row strong { display: block; font-size: 10px; }
.audit-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.inline-form {
  display: grid;
  margin-top: 18px;
  padding-top: 18px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.inline-form .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field-label { color: #68746f; font-size: 10px; font-weight: 650; }
.field > span .required { color: var(--red); }
.muted { color: var(--muted); }
.form-error { min-height: 18px; margin: 0; color: var(--red); font-size: 11px; }

.modal {
  width: min(820px, calc(100vw - 30px));
  max-height: calc(100vh - 34px);
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 19px;
  background: #fbfaf7;
  box-shadow: 0 30px 80px rgba(17,34,28,.3);
}
.modal::backdrop { background: rgba(18,35,30,.45); backdrop-filter: blur(3px); }
.modal--small { width: min(420px, calc(100vw - 30px)); }
.modal--wide { width: min(1180px, calc(100vw - 30px)); }
.modal-head {
  position: sticky;
  z-index: 2;
  display: flex;
  top: 0;
  padding: 19px 22px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,.96);
  backdrop-filter: blur(10px);
}
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.modal-close {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.modal-form { padding: 21px 22px 0; }
.form-section { margin-bottom: 23px; }
.form-section__title {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  gap: 9px;
  color: #42504a;
  font-size: 11px;
  font-weight: 750;
}
.form-section__title::after { width: 30px; height: 1px; content: ""; background: #ccd3ce; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid .span-4 { grid-column: span 4; }
.checkbox-field {
  display: flex;
  min-height: 38px;
  padding: 8px 10px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8ded9;
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
}
.checkbox-field input { accent-color: var(--green); }
.modal-actions {
  position: sticky;
  display: flex;
  bottom: 0;
  padding: 15px 22px;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: rgba(251,250,247,.97);
  backdrop-filter: blur(10px);
}
.modal-actions .spacer { flex: 1; }
.confirm-card { padding: 25px; }
.confirm-card h2 { margin: 3px 0 9px; }
.confirm-card .modal-actions { position: static; padding: 16px 0 0; background: transparent; }
.suggestion-box {
  margin-top: 9px;
  padding: 11px;
  border-radius: 10px;
  background: var(--green-soft);
  font-size: 10px;
}
.suggestion-box strong { display: block; margin-bottom: 5px; }
.raw-sheet-meta {
  display: flex;
  padding: 12px 22px;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #64716c;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.raw-sheet-wrap { margin: 18px 22px; overflow: auto; border: 1px solid #e3e7e3; border-radius: 10px; }
.raw-sheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.raw-sheet-table th, .raw-sheet-table td {
  min-width: 100px;
  max-width: 320px;
  padding: 8px 10px;
  border-right: 1px solid #edf0ed;
  border-bottom: 1px solid #edf0ed;
  font-size: 10px;
  vertical-align: top;
  white-space: pre-wrap;
}
.raw-sheet-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  color: #707b76;
  background: #f6f7f3;
  font-weight: 700;
}
.raw-sheet-table th:first-child { left: 0; min-width: 46px; width: 46px; text-align: center; }

.toast-stack {
  position: fixed;
  z-index: 100;
  display: flex;
  right: 22px;
  bottom: 22px;
  flex-direction: column;
  gap: 8px;
}
.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 12px 15px;
  color: #fff;
  border-radius: 10px;
  background: #254d42;
  box-shadow: var(--shadow);
  font-size: 11px;
  animation: toast-in .22s ease both;
}
.toast--error { background: #8d4038; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.loading {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}
.loading::before {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  content: "";
  border: 2px solid #d5dcd7;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .upcoming-item { grid-template-columns: 54px 1.2fr .8fr auto; }
  .upcoming-item > .upcoming-guide { display: none; }
}
@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; }
  .app-shell { display: block; }
  .sidebar {
    width: 240px;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: var(--shadow);
  }
  .env-banner:not([hidden]) ~ .sidebar { padding-top: 26px; }
  .env-banner:not([hidden]) ~ .main .topbar { min-height: 106px; padding-top: 30px; }
  .sidebar.is-open { transform: translateX(0); }
  .main { display: block; }
  .moible-menu-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,.25); }
  .mobile-menu { display: grid; }
  .topbar { min-height: 85px; padding: 16px 18px; }
  .topbar h1 { font-size: 20px; }
  .date-chip, .user-chip > span#user-name { display: none; }
  .feedback-top-button small { display: none; }
  .content { padding: 21px 18px 50px; }
  .grid-2, .owner-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric__value { font-size: 25px; }
  .guide-grid { grid-template-columns: 1fr; }
  .feedback-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .hero-row { align-items: flex-start; flex-direction: column; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .input, .filters .select { width: 100%; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-3, .form-grid .span-4 { grid-column: 1 / -1; }
  .upcoming-item { grid-template-columns: 47px 1fr auto; }
  .upcoming-item > .upcoming-guide, .upcoming-item > .upcoming-badges { display: none; }
  .handover-board { grid-template-columns: repeat(4, 250px); }
  .feedback-fab { right: 14px; bottom: 14px; }
}
@media (max-width: 500px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3, .form-grid .span-4 { grid-column: auto; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form .full { grid-column: auto; }
  .modal { width: calc(100vw - 12px); max-height: calc(100vh - 12px); border-radius: 14px; }
  .modal-form, .modal-head, .modal-actions { padding-left: 15px; padding-right: 15px; }
  .login-panel { padding: 20px; }
  .feedback-top-button { padding: 6px 8px; }
  .feedback-top-button small { display: none; }
  .itinerary-edit-row { grid-template-columns: 1fr 1fr; }
  .itinerary-edit-row .activity, .itinerary-edit-row .wide { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

