:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #748078;
  --green-950: #12251b;
  --green-900: #173325;
  --green-800: #1f4732;
  --green-700: #2f7655;
  --green-600: #3c8a64;
  --green-100: #eaf4ee;
  --surface: #ffffff;
  --canvas: #f3f5f4;
  --line: #e4ebe7;
  --danger: #b6554a;
  --shadow: 0 14px 42px rgba(28, 47, 36, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; }
button { margin: 0; border: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(61, 139, 99, .22);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 194px;
  padding: max(16px, env(safe-area-inset-top)) 20px 32px;
  color: #fff;
  background: linear-gradient(145deg, var(--green-950) 0%, var(--green-800) 62%, #39775a 100%);
  border-radius: 0 0 26px 26px;
}

.hero::before, .hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
}
.hero::before { top: -74px; right: -44px; width: 164px; height: 164px; background: rgba(255, 255, 255, .04); }
.hero::after { right: 72px; bottom: -94px; width: 142px; height: 142px; }
.hero-inner { position: relative; z-index: 1; width: min(1080px, 100%); margin: 0 auto; }

.custom-nav, .topbar, .collab-row, .collab-members, .avatar-stack, .room-access-row,
.month-row, .section-head, .card-title-row, .meta-line, .hero-title-row, .hero-meta-row,
.info-row, .section-title-row, .person-item, .member-sheet-head, .member-list-item,
.member-name-row, .confirm-actions {
  display: flex;
  align-items: center;
}

.custom-nav { justify-content: space-between; min-height: 34px; }
.eyebrow { color: #9db8a8; font-size: 10px; font-weight: 800; letter-spacing: 2.2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.logout-link { padding: 4px 2px; color: #bed1c5; font-size: 11px; background: transparent; }
.logout-link:hover { color: #fff; }

.sync-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  color: #c4d4ca;
  font-size: 11px;
  background: rgba(0, 0, 0, .14);
  border-radius: 15px;
}
.sync-dot { width: 7px; height: 7px; margin-right: 6px; background: #e7b252; border-radius: 50%; }
.sync-pill.online .sync-dot { background: #60d394; box-shadow: 0 0 0 4px rgba(96, 211, 148, .12); }
.sync-pill.offline .sync-dot { background: #f07b6a; }
.sync-pill.syncing .sync-dot { animation: pulse 1.2s infinite; }

.topbar { justify-content: space-between; min-height: 58px; margin-top: 3px; }
.room-heading { min-width: 0; padding: 0 14px 0 0; color: inherit; text-align: left; background: transparent; }
.room-title-row { display: flex; align-items: center; }
.room-title { display: block; max-width: min(58vw, 450px); overflow: hidden; font-size: 22px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.chevron { margin-left: 7px; color: #bad0c2; font-size: 18px; }
.access-badge { display: inline-flex; align-items: center; margin-top: 6px; padding: 3px 6px; color: #d8ebe0; font-size: 10px; background: rgba(255, 255, 255, .09); border-radius: 9px; }
.access-dot { width: 5px; height: 5px; margin-right: 4px; background: #72d99e; border-radius: 50%; }
.invite-button { flex: 0 0 auto; height: 34px; padding: 0 14px; color: #eff8f2; font-size: 13px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; }

.collab-row { justify-content: space-between; margin-top: 12px; }
.collab-members { min-width: 0; min-height: 34px; padding: 2px 8px 2px 0; color: inherit; background: transparent; border-radius: 18px; }
.collab-members:active { background: rgba(255, 255, 255, .08); }
.avatar-stack { padding-left: 8px; }
.mini-avatar { display: grid; place-items: center; width: 27px; height: 27px; margin-left: -8px; color: #fff; font-size: 11px; font-weight: 750; border: 2px solid #263b2f; border-radius: 50%; }
.more-avatar { background: #687b70; }
.member-count { margin-left: 8px; color: #c4d7cb; font-size: 11px; white-space: nowrap; }
.member-entry-arrow { margin-left: 4px; color: #9fb8aa; font-size: 19px; }
.role-pill { height: 26px; padding: 0 9px; color: #d9eadd; font-size: 11px; line-height: 26px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; }
.room-access-row { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .08); }
.room-code { color: #a9bcb0; font-size: 11px; letter-spacing: .5px; }
.switch-entry { margin-left: auto; padding: 3px 0; color: #d9eadf; font-size: 11px; text-decoration: underline; background: transparent; }

.dashboard { position: relative; width: min(1128px, 100%); margin: 0 auto; padding: 0 12px 112px; }
.dashboard-grid { display: grid; gap: 22px; }
.calendar-card { position: relative; z-index: 2; margin-top: -15px; padding: 14px 11px 12px; background: #fff; border: 1px solid rgba(35, 78, 54, .06); border-radius: 16px; box-shadow: var(--shadow); }
.month-row { padding: 0 4px 12px; }
.month-nav { display: grid; place-items: center; width: 28px; height: 30px; padding: 0; color: var(--green-700); font-size: 25px; line-height: 1; background: transparent; border-radius: 9px; }
.month-nav:active { background: #edf5f0; }
.month-select { position: relative; display: flex; align-items: center; justify-content: center; min-width: 102px; height: 32px; padding: 0 8px; background: #f3f7f4; border: 1px solid #e2ebe5; border-radius: 10px; cursor: pointer; }
.month-title { color: #26332b; font-size: 17px; font-weight: 750; }
.month-caret { margin-left: 6px; color: #4d8063; font-size: 13px; }
.month-picker { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.today-link { margin-left: auto; margin-right: 14px; padding: 3px; color: var(--green-700); font-size: 16px; font-weight: 650; background: transparent; }
.calendar-add { padding: 0 2px; color: var(--green-700); font-size: 27px; font-weight: 300; background: transparent; }
.weekday-row, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekday-row { padding: 0 2px 6px; color: #88938c; font-size: 10px; text-align: center; }
.weekday-row .weekend { color: #b08278; }
.month-grid { gap: 2px 0; }
.month-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 47px; padding: 6px 1px 4px; color: #344139; background: transparent; border: 0; border-radius: 11px; }
.month-day:hover { background: #f5f8f6; }
.month-day.outside { color: #c8ceca; }
.month-day.selected { color: #fff; background: var(--green-700); box-shadow: 0 6px 16px rgba(47, 118, 85, .2); }
.month-day.today:not(.selected) .month-day-number { color: var(--green-700); font-weight: 750; }
.month-day-number { font-size: 13px; line-height: 20px; }
.day-markers { display: flex; gap: 2px; min-height: 4px; margin-top: 3px; }
.calendar-marker { width: 4px; height: 4px; border-radius: 50%; }
.month-day.selected .calendar-marker { box-shadow: 0 0 0 1px rgba(255, 255, 255, .65); }
.month-today-dot { position: absolute; bottom: 2px; width: 3px; height: 3px; background: #65b687; border-radius: 50%; }
.month-day.selected .month-today-dot { background: #fff; }

.content { min-width: 0; padding: 0 4px; }
.section-head { justify-content: space-between; margin: 22px 3px 13px; }
.section-title { margin: 0; color: #27342c; font-size: 20px; font-weight: 750; }
.section-subtitle { margin: 4px 0 0; color: #8a948e; font-size: 12px; }
.legend { display: inline-flex; align-items: center; color: #9aa39d; font-size: 10px; }
.legend-dot { width: 5px; height: 5px; margin-right: 5px; background: #65a883; border-radius: 50%; }
.inline-alert { width: 100%; margin-bottom: 10px; padding: 10px 12px; color: #9a5d52; font-size: 12px; text-align: left; background: #fff0ed; border: 1px solid #f1d8d3; border-radius: 10px; }
.schedule-list { display: grid; gap: 10px; }
.schedule-card { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) 16px; min-height: 108px; overflow: hidden; padding: 15px 13px 14px 16px; text-align: left; background: #fff; border: 1px solid #e6ebe8; border-radius: 14px; box-shadow: 0 5px 20px rgba(33, 59, 43, .05); }
.schedule-card:hover { border-color: #ccdcd2; transform: translateY(-1px); }
.card-accent { position: absolute; inset: 0 auto 0 0; width: 4px; }
.time-column { padding-right: 11px; border-right: 1px solid #edf0ee; }
.time-main { display: block; color: #26362d; font-size: 13px; font-weight: 750; line-height: 1.45; }
.status-text { display: inline-block; margin-top: 9px; padding: 4px 7px; color: #8b7350; font-size: 10px; background: #fff5dd; border-radius: 9px; }
.status-text.confirmed { color: #2b7654; background: #e9f5ee; }
.status-text.completed { color: #6d7671; background: #eef1ef; }
.status-text.cancelled { color: #a35c53; background: #faecea; }
.schedule-main { min-width: 0; padding-left: 13px; }
.card-title-row { align-items: flex-start; }
.card-title { min-width: 0; overflow: hidden; color: #253029; font-size: 15px; font-weight: 750; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.type-tag { flex: 0 0 auto; margin-left: 8px; padding: 3px 7px; font-size: 10px; font-weight: 650; border-radius: 6px; }
.meta-line { margin-top: 8px; overflow: hidden; color: #6f7a73; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.meta-icon { display: inline-block; width: 18px; color: #7ba18a; font-size: 12px; }
.card-foot { margin-top: 8px; color: #a3aba6; font-size: 10px; }
.card-arrow { align-self: center; color: #a8b2ac; font-size: 22px; }

.empty-card { display: flex; flex-direction: column; align-items: center; padding: 33px 24px; text-align: center; background: #fff; border: 1px solid #e7ece9; border-radius: 15px; }
.empty-illustration { position: relative; width: 92px; height: 66px; margin-bottom: 13px; }
.camera-body { position: absolute; left: 18px; top: 16px; width: 57px; height: 39px; background: #dfe9e3; border: 2px solid #b9cfc1; border-radius: 9px; }
.camera-top { position: absolute; left: 28px; top: 10px; width: 20px; height: 10px; background: #c8dbcf; border-radius: 4px 4px 0 0; }
.camera-lens { position: absolute; left: 19px; top: 9px; width: 18px; height: 18px; background: #f5f8f6; border: 4px solid #87aa94; border-radius: 50%; }
.spark { position: absolute; color: #67a07e; }
.spark-one { right: 2px; top: 6px; font-size: 17px; }
.spark-two { left: 5px; top: 24px; font-size: 25px; }
.empty-title { margin: 0; color: #334239; font-size: 17px; }
.empty-desc { max-width: 290px; margin: 8px 0 18px; color: #8c9690; font-size: 12px; line-height: 1.65; }
.outline-button { height: 36px; padding: 0 18px; color: var(--green-700); font-size: 13px; font-weight: 650; background: #fff; border: 1px solid #b9d2c3; border-radius: 18px; }
.fab { position: fixed; z-index: 10; right: max(18px, calc((100vw - 1080px) / 2 + 18px)); bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; height: 48px; padding: 0 20px; color: #fff; font-size: 14px; font-weight: 650; background: linear-gradient(135deg, #286b4b, #3c8a64); border-radius: 24px; box-shadow: 0 12px 30px rgba(42, 104, 73, .32); }
.fab-plus { margin-right: 7px; font-size: 23px; font-weight: 300; }

.center-state { display: flex; min-height: 360px; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px; color: #748078; text-align: center; }
.center-state h1 { margin: 16px 0 0; color: #3a463f; font-size: 18px; }
.center-state p { max-width: 380px; margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.loading-ring { width: 30px; height: 30px; border: 3px solid #dce7e0; border-top-color: var(--green-700); border-radius: 50%; animation: spin .8s linear infinite; }

.auth-shell { position: relative; z-index: 4; width: min(460px, calc(100% - 24px)); margin: -24px auto 0; padding-bottom: 48px; }
.auth-card { padding: 27px 24px 22px; background: #fff; border: 1px solid rgba(35, 78, 54, .08); border-radius: 20px; box-shadow: 0 18px 52px rgba(27, 54, 37, .14); }
.auth-brand { position: relative; width: 52px; height: 38px; margin: 0 auto 15px; background: linear-gradient(135deg, #245e42, #438a66); border-radius: 11px; box-shadow: 0 6px 16px rgba(35, 94, 65, .18); }
.auth-brand::before { position: absolute; left: 10px; top: -5px; width: 19px; height: 8px; background: #286748; border-radius: 4px 4px 0 0; content: ""; }
.auth-lens { position: absolute; left: 17px; top: 10px; width: 19px; height: 19px; background: #f7fbf8; border: 4px solid #a9d0b9; border-radius: 50%; }
.auth-kicker { display: block; color: #789c86; font-size: 9px; font-weight: 800; letter-spacing: 1.7px; text-align: center; }
.auth-title { margin: 7px 0 0; color: #26362d; font-size: 23px; text-align: center; }
.auth-desc { margin: 9px auto 0; color: #7d8982; font-size: 12px; line-height: 1.65; text-align: center; }
.auth-form { margin-top: 20px; }
.auth-field { display: block; margin-top: 13px; }
.auth-field span { display: block; margin-bottom: 7px; color: #536159; font-size: 12px; font-weight: 650; }
.auth-field input { width: 100%; height: 46px; padding: 0 13px; color: #223028; font-size: 14px; background: #f5f8f6; border: 1px solid #dfe8e2; border-radius: 10px; }
.auth-submit { width: 100%; margin-top: 19px; }
.auth-text-button { display: block; margin: 12px auto 0; padding: 5px; color: #668071; font-size: 12px; background: transparent; }
.auth-message { margin: 14px 0 0; padding: 10px 12px; color: #9d5147; font-size: 12px; line-height: 1.5; text-align: center; background: #fff0ed; border: 1px solid #f0d6d1; border-radius: 9px; }
.auth-security { display: flex; align-items: center; justify-content: center; margin: 15px 0 0; color: #9aa49e; font-size: 10px; }
.auth-security span { width: 6px; height: 6px; margin-right: 6px; background: #6fb58b; border-radius: 50%; box-shadow: 0 0 0 4px #edf6f0; }

.screen { position: fixed; z-index: 20; inset: 0; overflow-y: auto; color: #252a27; background: #f3f6f4; overscroll-behavior: contain; }
.screen-navbar { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: center; min-height: calc(52px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.dark-navbar { color: #fff; background: var(--green-900); }
.light-navbar { color: #26342b; background: rgba(255, 255, 255, .94); border-bottom: 1px solid #e7ebe8; backdrop-filter: blur(14px); }
.screen-navbar strong { font-size: 17px; }
.back-action { position: absolute; left: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0 0 4px; color: inherit; font-size: 34px; font-weight: 250; line-height: 1; background: transparent; border-radius: 50%; }
.detail-content { width: min(720px, 100%); margin: 0 auto; padding-bottom: 22px; }
.detail-hero { padding: 19px 18px 23px; color: #fff; background: linear-gradient(145deg, #173325 0%, #276145 74%, #397c5b 100%); border-radius: 0 0 21px 21px; }
.visibility-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; color: #cce0d4; font-size: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; }
.visibility-dot { width: 5px; height: 5px; margin-right: 5px; background: #70d89d; border-radius: 50%; }
.hero-title-row { align-items: flex-start; margin-top: 14px; }
.hero-title { flex: 1; margin: 0; padding-right: 14px; font-size: 22px; line-height: 1.35; }
.hero-meta-row { margin-top: 14px; color: #d4e5da; font-size: 12px; }
.hero-type { padding: 4px 8px; color: #173b29; font-weight: 650; background: #cdebd9; border-radius: 6px; }
.hero-location { max-width: 70%; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { margin-left: auto; padding: 5px 10px; color: #8b7350; font-size: 12px; background: #fff5dd; border-radius: 11px; }
.status-badge.confirmed { color: #2b7654; background: #e9f5ee; }
.status-badge.completed { color: #6d7671; background: #eef1ef; }
.status-badge.cancelled { color: #a35c53; background: #faecea; }
.hero-status { flex: 0 0 auto; margin-top: 2px; }
.info-section, .people-section, .note-section { margin: 11px 12px 0; padding: 0 18px; background: #fff; border: 1px solid #e8eeea; border-radius: 13px; box-shadow: 0 4px 15px rgba(32, 66, 45, .04); }
.section-caption { padding: 15px 0 5px; color: #789083; font-size: 10px; font-weight: 750; letter-spacing: 1px; }
.info-row { min-height: 52px; border-bottom: 1px solid #e8eae9; }
.info-row:last-child { border-bottom: 0; }
.row-label { width: 82px; color: #34473c; font-size: 13px; }
.row-value { flex: 1; color: #69776f; font-size: 13px; line-height: 1.5; text-align: right; }
.people-section, .note-section { padding-top: 17px; padding-bottom: 18px; }
.section-title-row { justify-content: space-between; }
.section-label { display: block; color: #303632; font-size: 16px; font-weight: 650; }
.section-count { color: #93a098; font-size: 11px; }
.people-list { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.person-item { width: 58px; flex-direction: column; }
.person-avatar { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; font-size: 17px; font-weight: 750; border-radius: 50%; box-shadow: 0 4px 10px rgba(31, 68, 45, .12); }
.person-name { max-width: 58px; margin-top: 6px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.empty-value { display: block; margin-top: 13px; color: #9aa19d; font-size: 12px; }
.note-box { min-height: 68px; margin-top: 13px; padding: 13px; color: #68716c; font-size: 13px; line-height: 1.65; white-space: pre-wrap; background: #f4f7f5; border: 1px solid #e7ece9; border-radius: 9px; }
.updated-text { display: block; margin-top: 9px; color: #a1a8a4; font-size: 10px; text-align: right; }
.detail-actions { display: grid; gap: 10px; padding: 22px 12px calc(20px + env(safe-area-inset-bottom)); }
.detail-edit, .detail-delete { height: 48px; font-size: 14px; font-weight: 650; border-radius: 11px; }
.detail-edit { color: #fff; background: linear-gradient(135deg, #286b4b, #3c8a64); box-shadow: 0 7px 16px rgba(47, 118, 85, .2); }
.detail-delete { color: var(--danger); background: #fff; border: 1px solid #efd8d4; }

.editor-page { background: #f3f5f4; }
.editor-content { width: min(760px, 100%); margin: 0 auto; padding: 13px 12px 0; }
.intro-card { position: relative; overflow: hidden; padding: 19px 18px 20px; color: #fff; background: linear-gradient(135deg, #173325, #2f7655 72%, #438567); border-radius: 16px; box-shadow: 0 8px 19px rgba(37, 83, 59, .16); }
.intro-card::after { position: absolute; right: -39px; top: -53px; width: 132px; height: 132px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; content: ""; }
.intro-eyebrow { display: block; color: #b8d4c3; font-size: 10px; font-weight: 650; letter-spacing: 1px; }
.intro-title { margin: 5px 0 0; font-size: 20px; }
.intro-desc { margin: 7px 0 0; color: #d7e7dc; font-size: 12px; }
.intro-security { display: inline-flex; align-items: center; height: 25px; margin-top: 12px; padding: 0 8px; color: #d6e9dc; font-size: 10px; background: rgba(255, 255, 255, .1); border-radius: 13px; }
.intro-security-dot { width: 5px; height: 5px; margin-right: 5px; background: #78dda4; border-radius: 50%; }
.form-card { margin-top: 12px; padding: 14px 16px 2px; background: #fff; border: 1px solid #e8eeea; border-radius: 16px; }
.form-section-title { display: flex; align-items: center; margin: 0; padding: 2px 0 0; color: #355845; font-size: 13px; }
.form-section-line { width: 4px; height: 15px; margin-right: 7px; background: #4b9870; border-radius: 2px; }
.section-break { margin-top: 5px; padding-top: 16px; border-top: 1px solid #edf0ee; }
.field-block { display: block; min-width: 0; padding: 15px 0; border-bottom: 1px solid #edf0ee; }
.last-field, .two-column .field-block { border-bottom: 0; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; border-bottom: 1px solid #edf0ee; }
.field-label { display: block; margin-bottom: 8px; color: #5e6c64; font-size: 12px; font-weight: 650; }
.text-input, .form-field input { width: 100%; height: 42px; padding: 0 12px; color: #223028; font-size: 13px; background: #f5f8f6; border: 1px solid #e4ebe7; border-radius: 9px; }
select.text-input { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #8a9690 50%), linear-gradient(135deg, #8a9690 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.time-value { color: var(--green-700); font-size: 16px; font-weight: 750; text-align: center; }
.member-fieldset { margin: 0; border: 0; }
.member-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.member-chip { position: relative; display: flex; align-items: center; padding: 5px 10px 5px 5px; color: #59665e; font-size: 12px; background: #f5f7f6; border: 1px solid transparent; border-radius: 17px; cursor: pointer; }
.member-chip input { position: absolute; opacity: 0; pointer-events: none; }
.member-chip.selected { color: #246044; font-weight: 650; background: #ecf6f0; border-color: #77b18f; box-shadow: 0 2px 7px rgba(47, 118, 85, .08); }
.member-avatar { display: grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; color: #fff; font-size: 10px; font-weight: 750; border-radius: 50%; }
.note-input { width: 100%; min-height: 84px; padding: 11px 12px; resize: vertical; color: #26342b; font-size: 13px; line-height: 1.6; background: #f6f8f7; border: 1px solid #e7ebe8; border-radius: 9px; }
.action-area { display: grid; gap: 10px; padding: 15px 0 calc(20px + env(safe-area-inset-bottom)); }
.save-button, .delete-button, .primary-button, .secondary-button, .member-invite-button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; font-size: 14px; font-weight: 650; border-radius: 11px; }
.save-button, .primary-button { color: #fff; background: linear-gradient(135deg, #286b4b, #3c8a64); box-shadow: 0 7px 17px rgba(47, 118, 85, .2); }
.delete-button { color: #bc5548; background: #fff; border: 1px solid #f0dad7; }
.secondary-button { color: #56645c; background: #eef2ef; }
.primary-button.small { min-height: 38px; margin-top: 18px; padding: 0 18px; font-size: 13px; }

.modal-mask { position: fixed; z-index: 39; inset: 0; background: rgba(11, 22, 16, .52); backdrop-filter: blur(2px); }
.bottom-sheet { position: fixed; z-index: 40; left: 50%; bottom: 0; width: min(560px, 100%); max-height: calc(94vh - env(safe-area-inset-top)); overflow-y: auto; padding: 11px 22px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 60px rgba(12, 35, 21, .16); transform: translateX(-50%); }
.modal-handle { width: 36px; height: 4px; margin: 0 auto 18px; background: #d9dfdb; border-radius: 2px; }
.brand-mark { position: relative; width: 48px; height: 36px; margin: 0 auto 12px; background: #2f7655; border-radius: 10px; }
.brand-mark::before { position: absolute; left: 9px; top: -5px; width: 17px; height: 8px; background: #2f7655; border-radius: 4px 4px 0 0; content: ""; }
.brand-lens { position: absolute; left: 16px; top: 10px; width: 17px; height: 17px; background: #fff; border: 4px solid #a8cfb8; border-radius: 50%; }
.onboarding-kicker { display: block; color: #789c86; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-align: center; }
.onboarding-title { margin: 7px 0 0; color: #26342b; font-size: 22px; text-align: center; }
.onboarding-desc { margin: 9px auto 0; max-width: 420px; color: #7a8780; font-size: 12px; line-height: 1.6; text-align: center; }
.verified-pill { display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; min-height: 30px; margin: 13px auto 0; padding: 0 10px; color: #60816d; font-size: 10px; background: #edf6f0; border-radius: 15px; }
.verified-icon { display: grid; place-items: center; width: 17px; height: 17px; margin-right: 5px; color: #fff; background: #62a37c; border-radius: 50%; }
.verified-divider { width: 1px; height: 12px; margin: 0 8px; background: #cbded1; }
.tab-switch { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding: 4px; background: #f1f4f2; border-radius: 10px; }
.tab-item { height: 35px; color: #7b8780; font-size: 12px; background: transparent; border-radius: 8px; }
.tab-item.active { color: #285e43; font-weight: 650; background: #fff; box-shadow: 0 3px 10px rgba(42, 70, 52, .08); }
.form-field { display: block; margin-top: 14px; }
.code-input { text-transform: uppercase; letter-spacing: 4px; }
#roomSubmit { width: 100%; margin-top: 18px; }
.security-note, .member-sheet-note { margin: 12px 0 0; color: #9aa49e; font-size: 10px; line-height: 1.5; text-align: center; }
.cancel-link { display: block; margin: 12px auto 0; padding: 5px; color: #668071; font-size: 12px; background: transparent; }
.room-list-block { margin-top: 17px; padding-top: 15px; border-top: 1px solid #edf0ee; }
.room-list { display: grid; gap: 8px; }
.room-list-item { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 8px 12px; text-align: left; background: #f5f8f6; border: 1px solid #e5ebe7; border-radius: 10px; }
.room-list-item.active { background: #edf6f0; border-color: #89b39a; }
.room-list-item strong { color: #33433a; font-size: 13px; }
.room-list-item small { display: block; margin-top: 2px; color: #8b958f; font-size: 10px; }
.room-list-check { margin-left: auto; color: var(--green-700); }

.member-sheet-head { justify-content: space-between; }
.member-sheet-title { margin: 0; font-size: 19px; }
.member-sheet-subtitle { margin: 4px 0 0; color: #8c9690; font-size: 11px; }
.sheet-close { display: grid; place-items: center; width: 34px; height: 34px; color: #7b8780; font-size: 23px; background: #f1f4f2; border-radius: 50%; }
.floating-close { position: absolute; top: 16px; right: 18px; }
.member-list { display: grid; max-height: 50vh; gap: 5px; margin-top: 15px; overflow-y: auto; }
.member-list-item { min-height: 59px; padding: 8px 3px; border-bottom: 1px solid #edf0ee; }
.member-list-avatar { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; font-size: 15px; font-weight: 750; border-radius: 50%; }
.member-list-info { min-width: 0; margin-left: 11px; }
.member-list-name { color: #344139; font-size: 14px; font-weight: 650; }
.member-self-tag { margin-left: 6px; padding: 2px 5px; color: #2f7655; font-size: 9px; background: #e7f3eb; border-radius: 5px; }
.member-joined-text { display: block; margin-top: 4px; color: #939c97; font-size: 10px; }
.member-role-tag { margin-left: auto; padding: 4px 8px; color: #6e7c74; font-size: 10px; background: #f0f3f1; border-radius: 9px; }
.member-role-tag.owner { color: #8a6b3f; background: #fff4da; }
.member-invite-button { width: 100%; margin-top: 15px; color: var(--green-700); background: #edf6f0; }
.invite-code-card { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 18px; padding: 16px; color: #758078; background: #f4f8f5; border: 1px dashed #a9c6b4; border-radius: 13px; }
.invite-code-card strong { margin-top: 7px; color: #244e38; font-size: 28px; letter-spacing: 6px; }
.invite-code-card small { margin-top: 6px; color: #9aa39d; }
#shareInvite { width: 100%; margin-top: 14px; }

.confirm-card { position: fixed; z-index: 41; top: 50%; left: 50%; width: min(340px, calc(100% - 32px)); padding: 22px; text-align: center; background: #fff; border-radius: 17px; box-shadow: 0 22px 70px rgba(14, 28, 20, .25); transform: translate(-50%, -50%); }
.confirm-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 13px; color: #9c7130; font-size: 22px; font-weight: 750; background: #fff3d9; border-radius: 50%; }
.confirm-card h2 { margin: 0; color: #303a34; font-size: 18px; }
.confirm-card p { margin: 9px 0 0; color: #758078; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.confirm-actions { gap: 9px; margin-top: 19px; }
.confirm-actions button { flex: 1; }
.confirm-card.danger .confirm-icon { color: #a44f45; background: #fae8e5; }
.confirm-card.danger #confirmAccept { background: #b8574c; box-shadow: none; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); max-width: calc(100% - 36px); padding: 10px 15px; color: #fff; font-size: 12px; line-height: 1.4; text-align: center; background: rgba(27, 42, 33, .92); border-radius: 9px; box-shadow: 0 8px 26px rgba(16, 30, 21, .2); transform: translateX(-50%); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }

@media (min-width: 760px) {
  .hero { min-height: 230px; padding-right: 32px; padding-left: 32px; }
  .room-title { font-size: 29px; }
  .dashboard { padding-right: 24px; padding-left: 24px; }
  .dashboard-grid { grid-template-columns: minmax(420px, 520px) minmax(0, 1fr); align-items: start; }
  .calendar-card { position: sticky; top: 18px; margin-top: -34px; padding: 19px 16px 17px; }
  .content { padding-top: 0; }
  .section-head { margin-top: 24px; }
  .month-day { min-height: 58px; padding-top: 9px; }
  .schedule-card { min-height: 118px; }
  .fab { display: none; }
  .detail-content { padding-bottom: 34px; }
  .detail-actions { grid-template-columns: 1fr 1fr; }
  .bottom-sheet { bottom: 50%; max-height: min(760px, calc(100vh - 48px)); border-radius: 22px; transform: translate(-50%, 50%); }
  .modal-handle { display: none; }
  .onboarding-card { padding-top: 26px; }
  .auth-shell { margin-top: -46px; }
  .auth-card { padding: 32px 34px 26px; }
}

@media (max-width: 430px) {
  .hero { padding-right: 16px; padding-left: 16px; }
  .room-title { max-width: 58vw; }
  .schedule-card { grid-template-columns: 72px minmax(0, 1fr) 13px; padding-right: 10px; padding-left: 13px; }
  .type-tag { max-width: 48px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .two-column { gap: 8px; }
  .text-input { padding-right: 8px; padding-left: 8px; }
}

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