:root {
  --bg: #f7f4ee;
  --bg-deep: #efe9de;
  --paper: #fffdf9;
  --paper-soft: #fbf8f1;
  --ink: #1f2a24;
  --ink-2: #5d6a61;
  --ink-3: #8b958e;
  --line: #e7dfd1;
  --line-strong: #d8cebc;
  --green: #2f6b4f;
  --green-deep: #24533d;
  --green-soft: #e6efe8;
  --coral: #d96c4f;
  --coral-deep: #b54d34;
  --coral-soft: #fbeae3;
  --amber: #e8b45d;
  --amber-soft: #fbf1dd;
  --amber-ink: #79571f;
  --blue: #4a6fa5;
  --blue-soft: #e9eff7;
  --danger: #b54d34;
  --shadow-sm: 0 2px 8px rgba(44, 58, 49, 0.04);
  --shadow-md: 0 14px 36px rgba(44, 58, 49, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(900px 520px at 8% -8%, #f9e9d8 0%, transparent 62%),
    radial-gradient(760px 500px at 108% 4%, #e2eee5 0%, transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.sheet-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.app-root {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: clip;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 18px calc(104px + var(--safe-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #f7f3e8;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(47, 107, 79, 0.18);
  flex: none;
}

.brand-mark-lg {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn.is-plain {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.icon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #fff;
  background: var(--coral);
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
}

.screen-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.screen-title {
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.screen-subtitle {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.muted {
  color: var(--ink-3);
}

.center-text {
  text-align: center;
}

.num {
  font-variant-numeric: tabular-nums;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spacer {
  flex: 1;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.section-action {
  padding: 4px 0;
  color: var(--green);
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 650;
}

.card {
  position: relative;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-flat {
  box-shadow: none;
}

.card-soft {
  background: var(--paper-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.btn-primary {
  color: #f9f5ea;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(47, 107, 79, 0.16);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.btn-soft {
  color: var(--green-deep);
  background: var(--green-soft);
}

.btn-coral {
  color: #fff8f4;
  background: var(--coral);
}

.btn-danger {
  color: #fff8f4;
  background: var(--danger);
}

.btn-ghost {
  color: var(--green);
  background: transparent;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}

.btn-lg {
  min-height: 56px;
  border-radius: 18px;
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.pill-green {
  color: var(--green-deep);
  background: var(--green-soft);
}

.pill-amber {
  color: var(--amber-ink);
  background: var(--amber-soft);
}

.pill-coral {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.pill-neutral {
  color: var(--ink-2);
  background: var(--bg-deep);
}

.pill-blue {
  color: #37547c;
  background: var(--blue-soft);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: hsl(var(--avatar-hue, 145) 28% 28%);
  background: hsl(var(--avatar-hue, 145) 34% 90%);
  border: 2px solid var(--paper);
  border-radius: 50%;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(44, 58, 49, 0.08);
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar-md {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 19px;
}

.avatar-xl {
  width: 68px;
  height: 68px;
  font-size: 24px;
}

.avatar-teen {
  color: var(--green-deep);
  background: var(--green-soft);
}

.avatar-owner {
  color: #6b4a1e;
  background: var(--amber-soft);
}

.home-greeting {
  padding-top: 4px;
}

.home-greeting h1 {
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.home-greeting p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
}

.call-card {
  position: relative;
  overflow: hidden;
  padding: 23px;
  color: #f7f3e8;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    linear-gradient(145deg, #367858 0%, #24533d 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 40px rgba(36, 83, 61, 0.21);
}

.call-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 253, 249, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 253, 249, 0.035), 0 0 0 58px rgba(255, 253, 249, 0.025);
  pointer-events: none;
}

.call-card.is-now {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    linear-gradient(145deg, #3c8662 0%, #276044 100%);
}

.call-card.is-paused {
  color: var(--ink);
  background: linear-gradient(145deg, #f3ecdf 0%, #ebe2d2 100%);
  box-shadow: var(--shadow-md);
}

.call-card.is-paused::after {
  border-color: rgba(31, 42, 36, 0.08);
  box-shadow: 0 0 0 28px rgba(31, 42, 36, 0.025), 0 0 0 58px rgba(31, 42, 36, 0.018);
}

.call-card.is-empty {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.call-card.is-empty::after {
  display: none;
}

.call-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(247, 243, 232, 0.72);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.call-card.is-paused .call-eyebrow,
.call-card.is-empty .call-eyebrow {
  color: var(--ink-3);
}

.call-window {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 30px;
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.call-window-small {
  font-size: 25px;
}

.call-note {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(247, 243, 232, 0.75);
  font-size: 12px;
  line-height: 1.5;
}

.call-card.is-paused .call-note,
.call-card.is-empty .call-note {
  color: var(--ink-2);
}

.call-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.call-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #f7f3e8;
  background: rgba(255, 253, 249, 0.12);
  border: 1px solid rgba(255, 253, 249, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.call-card.is-paused .call-countdown,
.call-card.is-empty .call-countdown {
  color: var(--ink-2);
  background: var(--bg);
  border-color: var(--line);
}

.call-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.call-btn {
  flex: 1;
  color: var(--green-deep);
  background: #f7f3e8;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 36, 25, 0.12);
}

.call-card.is-paused .call-btn,
.call-card.is-empty .call-btn {
  color: #f9f5ea;
  background: var(--green);
}

.call-btn-secondary {
  flex: none;
  width: 50px;
  min-height: 50px;
  padding: 0;
  color: #f7f3e8;
  background: rgba(255, 253, 249, 0.12);
  border-color: rgba(255, 253, 249, 0.16);
}

.call-card.is-paused .call-btn-secondary,
.call-card.is-empty .call-btn-secondary {
  color: var(--green);
  background: var(--green-soft);
  border-color: transparent;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #b9e6c9;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(185, 230, 201, 0.55);
  animation: pulse 1.9s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(185, 230, 201, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(185, 230, 201, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(185, 230, 201, 0);
  }
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.request-cta {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 70px;
  padding: 14px 16px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.request-cta-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 14px;
  flex: none;
}

.request-cta-copy {
  flex: 1;
  min-width: 0;
}

.request-cta-title {
  font-size: 14px;
  font-weight: 750;
}

.request-cta-desc {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.4;
}

.request-cta-arrow {
  color: var(--ink-3);
}

.pending-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--amber-soft);
  border: 1px solid #f0dfba;
  border-radius: var(--radius-md);
}

.pending-strip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--amber-ink);
  background: rgba(255, 253, 249, 0.6);
  border-radius: 12px;
  flex: none;
}

.pending-strip-copy {
  flex: 1;
  min-width: 0;
}

.pending-strip-title {
  color: var(--amber-ink);
  font-size: 13px;
  font-weight: 750;
}

.pending-strip-desc {
  margin-top: 2px;
  color: #8a6a31;
  font-size: 11px;
  line-height: 1.4;
}

.people-card {
  padding: 16px;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.person-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-copy {
  flex: 1;
  min-width: 0;
}

.person-name {
  font-size: 13px;
  font-weight: 650;
}

.person-desc {
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 11px;
}

.request-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.request-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.request-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  flex: none;
}

.request-icon-photo {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.request-icon-location {
  color: var(--green-deep);
  background: var(--green-soft);
}

.request-icon-either {
  color: var(--amber-ink);
  background: var(--amber-soft);
}

.request-title-wrap {
  flex: 1;
  min-width: 0;
}

.request-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.request-time {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
}

.request-message {
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.request-actions .btn {
  flex: 1;
}

.request-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: var(--bg-deep);
  border: 0;
  border-radius: 16px;
}

.request-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-photo::after {
  content: "点开看大图";
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(20, 28, 23, 0.58);
  border-radius: 999px;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.request-photo:hover::after {
  opacity: 1;
}

.location-box {
  padding: 13px;
  background: var(--green-soft);
  border: 1px solid #d5e5d9;
  border-radius: 16px;
}

.location-box-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.location-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--green-deep);
  background: rgba(255, 253, 249, 0.65);
  border-radius: 10px;
  flex: none;
}

.location-copy {
  flex: 1;
  min-width: 0;
}

.location-label {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 750;
}

.location-coords {
  margin-top: 3px;
  color: #456b56;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-left: 39px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.declined-box {
  padding: 12px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.55;
}

.note-line {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.chip.is-active {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: transparent;
}

.chip-btn {
  padding: 7px 10px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(255, 253, 249, 0.55);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 18px;
}

.empty-title {
  font-size: 14px;
  font-weight: 750;
}

.empty-desc {
  max-width: 290px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: min(100%, 480px);
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 5px 8px;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 650;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-item.is-active {
  color: var(--green-deep);
  background: var(--green-soft);
}

.nav-badge {
  position: absolute;
  top: 3px;
  left: calc(50% + 7px);
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #fff;
  background: var(--coral);
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(31, 42, 36, 0.42);
  opacity: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.2s ease;
}

.sheet-overlay.is-visible {
  opacity: 1;
}

.sheet {
  width: min(100%, 480px);
  max-height: 92dvh;
  padding: 8px 20px calc(22px + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(20, 31, 24, 0.2);
  transform: translateY(24px);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-overlay.is-visible .sheet {
  transform: translateY(0);
}

.sheet-grabber {
  width: 42px;
  height: 5px;
  margin: 3px auto 12px;
  background: var(--line-strong);
  border-radius: 999px;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sheet-heading {
  min-width: 0;
}

.sheet-title {
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.sheet-subtitle {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.sheet-close {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: none;
}

.sheet-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.sheet-actions.single {
  grid-template-columns: 1fr;
}

.confirm-message {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.field-hint {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  min-height: 92px;
  padding: 12px 13px;
  line-height: 1.55;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.1);
}

.input::placeholder,
.textarea::placeholder {
  color: #aeb6af;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.segmented button {
  min-height: 40px;
  padding: 0 8px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
}

.segmented button.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 7px rgba(44, 58, 49, 0.08);
}

.day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-chip {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  color: var(--ink-3);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
}

.day-chip.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.rule-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 17px;
}

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

.rule-caption {
  color: var(--ink-3);
  font-size: 11px;
}

.time-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-range span {
  color: var(--ink-3);
  font-size: 12px;
}

.time-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  font-size: 14px;
}

.time-input:focus {
  border-color: var(--green);
}

.invite-box {
  padding: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.invite-box-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.invite-link {
  margin-top: 7px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: all;
}

.invite-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.invite-actions .btn {
  flex: 1;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  color: var(--amber-ink);
  background: var(--amber-soft);
  border: 1px solid #f0dfba;
  border-radius: 13px;
  font-size: 11px;
  line-height: 1.55;
}

.notice .icon {
  margin-top: 1px;
}

.notice-green {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: #d5e5d9;
}

.notice-coral {
  color: var(--coral-deep);
  background: var(--coral-soft);
  border-color: #f2d5ca;
}

.push-kind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.push-kind {
  padding: 10px;
  text-align: left;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 650;
}

.push-kind.is-active {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: transparent;
}

.push-kind small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 500;
}

.settings-group {
  overflow: hidden;
  padding: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 12px 15px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 12px;
  flex: none;
}

.settings-icon.coral {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.settings-icon.amber {
  color: var(--amber-ink);
  background: var(--amber-soft);
}

.settings-copy {
  flex: 1;
  min-width: 0;
}

.settings-title {
  font-size: 13px;
  font-weight: 650;
}

.settings-desc {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.4;
}

.settings-chevron {
  color: var(--ink-3);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
}

.profile-copy {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.profile-meta {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 11px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}

.member-row:last-child {
  border-bottom: 0;
}

.member-copy {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 13px;
  font-weight: 650;
}

.member-meta {
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 11px;
}

.danger-text {
  color: var(--danger);
}

.about-card {
  padding: 18px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 12px;
  line-height: 1.7;
}

.about-card strong {
  color: var(--ink);
}

.about-principles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.principle .icon {
  margin-top: 1px;
  color: var(--green);
}

.landing {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 26px 22px calc(30px + var(--safe-bottom));
}

.landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 42px;
  padding: 6px 10px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.landing-title {
  margin-top: 14px;
  font-size: clamp(38px, 11vw, 48px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.06;
}

.landing-title em {
  color: var(--green);
  font-style: normal;
}

.landing-lead {
  max-width: 340px;
  margin-top: 15px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.landing-sample {
  margin-top: 28px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 25px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1.2deg);
}

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

.sample-label {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
}

.sample-time {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.sample-sub {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 12px;
}

.sample-request {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 11px;
  background: var(--coral-soft);
  border-radius: 14px;
}

.sample-request-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--coral-deep);
  background: rgba(255, 253, 249, 0.7);
  border-radius: 10px;
}

.sample-request-copy {
  flex: 1;
  min-width: 0;
  color: #7c4233;
  font-size: 11px;
  line-height: 1.4;
}

.landing-principles {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 26px;
  padding: 18px;
  background: rgba(255, 253, 249, 0.5);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.landing-principle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.landing-principle-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 10px;
  flex: none;
}

.landing-principle strong {
  display: block;
  font-size: 12px;
}

.landing-principle span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}

.landing-footer {
  margin-top: auto;
  padding-top: 28px;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.join-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding: 28px 20px calc(28px + var(--safe-bottom));
}

.join-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.join-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.join-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.join-kicker {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
}

.join-title {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.join-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 5px 9px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.join-description {
  margin-top: 13px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 20px;
}

.join-note {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.6;
}

.center-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 100dvh;
  padding: 30px;
  text-align: center;
}

.center-screen .btn {
  margin-top: 6px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-root {
  position: fixed;
  bottom: calc(84px + var(--safe-bottom));
  left: 50%;
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(86%, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 11px 13px;
  color: #f7f3e8;
  background: #26342c;
  border-radius: 13px;
  box-shadow: 0 10px 26px rgba(20, 31, 24, 0.2);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: #8f3d2c;
}

.toast-success {
  background: var(--green-deep);
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 18, 14, 0.94);
}

.photo-viewer img {
  max-width: 100%;
  max-height: 88dvh;
  object-fit: contain;
  border-radius: 8px;
}

.photo-viewer-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.photo-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  border-radius: 16px;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  color: var(--ink-3);
  font-size: 10px;
}

.selected-location {
  padding: 13px;
  background: var(--green-soft);
  border: 1px solid #d5e5d9;
  border-radius: 16px;
}

.selected-location-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
}

.accuracy {
  margin-top: 6px;
  color: #456b56;
  font-size: 11px;
}

.mode-cards {
  display: grid;
  gap: 9px;
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mode-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 13px;
  flex: none;
}

.mode-card-icon.coral {
  color: var(--coral-deep);
  background: var(--coral-soft);
}

.mode-card-copy {
  flex: 1;
  min-width: 0;
}

.mode-card-title {
  font-size: 13px;
  font-weight: 700;
}

.mode-card-desc {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.4;
}

.mode-card-chevron {
  color: var(--ink-3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fade-in {
  animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  body {
    padding: 22px 0;
  }

  .app-root {
    min-height: calc(100dvh - 44px);
    border: 1px solid rgba(216, 206, 188, 0.7);
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(44, 58, 49, 0.12);
    overflow: hidden;
  }

  .topbar {
    border-radius: 36px 36px 0 0;
  }

  .bottom-nav {
    bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 0 0 36px 36px;
    box-shadow: 0 -12px 30px rgba(44, 58, 49, 0.06);
  }

  .sheet-overlay {
    align-items: center;
    padding: 24px;
  }

  .sheet {
    max-height: 86dvh;
    border-radius: 28px;
  }

  .toast-root {
    bottom: 32px;
  }

  .app-root:has(.landing) {
    overflow: hidden;
  }
}

@media (max-width: 360px) {
  .main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .call-card {
    padding: 19px;
  }

  .call-window {
    font-size: 26px;
  }

  .landing {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
