/* 모임 계획 (/meet/) — design pass matching /lab.css tokens and typography.
 * Loaded after /lab.css and meet/meet.css. Selectors only; no content: text injection. */

:root {
  --get: #166534;
  --get-soft: #e7f4ec;
  --on-get: #ffffff;
  --give: #b4410c;
  --give-soft: #fdf0e7;
  --warn: var(--lab-fb-err, #b42318);
  --warn-soft: #fbe9e7;
  --on-warn: #ffffff;
  --accent-soft: #fdf0e7;
  --on-accent: #ffffff;
  --shade: rgba(10, 10, 12, .52);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --get: #4ade80;
    --get-soft: #13261a;
    --on-get: #121213;
    --give: #ff9a63;
    --give-soft: #2a1a10;
    --warn: var(--lab-fb-err, #ff8f86);
    --warn-soft: #2c1514;
    --on-warn: #121213;
    --accent-soft: #2a1a10;
    --on-accent: #121213;
    --shade: rgba(10, 10, 12, .64);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --get: #4ade80;
  --get-soft: #13261a;
  --on-get: #121213;
  --give: #ff9a63;
  --give-soft: #2a1a10;
  --warn: var(--lab-fb-err, #ff8f86);
  --warn-soft: #2c1514;
  --on-warn: #121213;
  --accent-soft: #2a1a10;
  --on-accent: #121213;
  --shade: rgba(10, 10, 12, .64);
  color-scheme: dark;
}

/* ---------- base, typography & focus ---------- */
html {
  overflow-x: clip;
}

body {
  background: var(--lab-bg);
  color: var(--lab-text);
  font-family: var(--lab-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--lab-accent);
  outline-offset: 2px;
}

.m-wrap {
  max-width: 860px;
  min-height: calc(100dvh - 57px);
  margin: 0 auto;
  padding: 20px 16px 84px;
}

.mono {
  font-family: var(--lab-mono);
  font-variant-numeric: tabular-nums;
}

.m-intro a,
.m-empty a:not(.btn),
.m-dlg a:not(.btn) {
  color: var(--lab-accent);
  font-weight: 600;
  text-underline-offset: 3px;
  transition: opacity .15s;
}

.m-intro a:hover,
.m-empty a:not(.btn):hover,
.m-dlg a:not(.btn):hover {
  opacity: .82;
}

.m-dlg .small {
  font-size: 13px;
  line-height: 1.55;
  color: var(--lab-muted);
}

.m-dlg .muted {
  color: var(--lab-muted);
  font-family: var(--lab-mono);
}

/* ---------- buttons, icon buttons & chips ---------- */
.btn {
  height: auto;
  min-height: 38px;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: var(--lab-radius);
  border: 1px solid var(--lab-line-strong);
  background: var(--lab-surface);
  color: var(--lab-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  box-shadow: var(--lab-shadow-sm);
  transition: border-color .15s, background-color .15s, color .15s, opacity .15s;
}

.btn:not(.primary):not(.danger):not(.ghost):not(:disabled):hover {
  border-color: var(--lab-text);
  background: var(--lab-surface2);
}

.btn:not(:disabled):active {
  opacity: .84;
}

.btn.primary {
  background: var(--lab-ink);
  border-color: var(--lab-ink);
  color: var(--lab-on-ink);
}

.btn.primary:not(:disabled):hover {
  opacity: .88;
}

.btn.sm {
  height: auto;
  min-height: 32px;
  padding: 5px 11px;
  font-size: 13px;
  border-radius: var(--lab-radius);
}

.btn.big {
  height: auto;
  min-height: 46px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.btn.ghost:not(:disabled):hover {
  background: var(--lab-surface2);
  border-color: var(--lab-line);
  color: var(--lab-text);
}

.btn.danger {
  color: var(--warn);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn.danger:not(:disabled):hover {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
}

.btn.danger.armed,
.btn.danger.armed:hover {
  background: var(--warn);
  border-color: var(--warn);
  color: var(--on-warn);
  opacity: 1;
}

.btn:disabled {
  opacity: .55;
  cursor: default;
}

.btn.add {
  width: 100%;
  margin-top: 16px;
  height: auto;
  min-height: 44px;
  border-radius: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--lab-radius);
  border: 1px solid var(--lab-line);
  background: var(--lab-surface);
  color: var(--lab-text);
  box-shadow: var(--lab-shadow-sm);
  transition: border-color .15s, background-color .15s, color .15s;
}

.icon-btn:hover {
  border-color: var(--lab-line-strong);
  background: var(--lab-surface2);
}

.icon-btn.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--lab-muted);
}

.icon-btn.ghost:hover {
  border-color: var(--lab-line);
  background: var(--lab-surface2);
  color: var(--lab-text);
}

.tg {
  height: auto;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid var(--lab-line-strong);
  border-radius: 999px;
  background: var(--lab-surface);
  color: var(--lab-text);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--lab-shadow-sm);
  transition: border-color .15s, background-color .15s, color .15s;
}

.tg:hover {
  border-color: var(--lab-text);
  background: var(--lab-surface2);
}

/* ---------- start page ---------- */
.m-intro h1 {
  margin: 2px 0 8px;
  font-size: clamp(1.5rem, 3.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.22;
}

.m-intro p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--lab-muted);
  max-width: 60ch;
}

.m-sec {
  margin-top: 26px;
}

.m-box {
  padding: 20px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
}

.m-h {
  margin: 0 0 10px;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
  color: var(--lab-text);
}

.m-h .n {
  font-family: var(--lab-mono);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--lab-muted);
  margin-left: 4px;
}

.m-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lab-muted);
  overflow-wrap: anywhere;
}

.m-rooms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.m-rooms li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  padding-right: 8px;
  transition: border-color .15s, box-shadow .15s;
}

.m-rooms li:hover {
  border-color: var(--lab-line-strong);
}

.m-rooms a {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 12px;
  min-height: 54px;
  padding: 12px 6px 12px 15px;
  border-radius: 11px 0 0 11px;
  color: var(--lab-text);
  text-decoration: none;
}

.m-rooms a b {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.m-rooms a:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.m-rooms small {
  color: var(--lab-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
}

.m-steps {
  gap: 10px;
}

.m-steps li {
  gap: 4px;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  min-width: 0;
}

.m-steps li::before {
  left: 15px;
  top: 14px;
  width: 25px;
  height: 25px;
  line-height: 23px;
  background: var(--lab-surface2);
  border: 1px solid var(--lab-line-strong);
  color: var(--lab-accent);
  font-size: 12.5px;
  font-weight: 700;
}

.m-steps b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--lab-text);
}

.m-steps span {
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--lab-muted);
}

.m-loading {
  padding: 48px 16px;
  font-size: 14.5px;
  color: var(--lab-muted);
}

/* ---------- forms & inputs ---------- */
.m-form {
  gap: 14px;
}

.fld {
  gap: 6px;
  min-width: 0;
}

.fld > span,
.fld > label,
.fld legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--lab-muted);
}

.fld legend {
  margin-bottom: 6px;
}

.fld input:not([type="checkbox"]):not([type="radio"]),
.fld select,
.fld textarea,
.m-find input,
.m-addp input,
.m-link input {
  height: auto;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--lab-line-strong);
  border-radius: var(--lab-radius);
  background: var(--lab-bg);
  color: var(--lab-text);
  font-size: 16px;
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
  transition: border-color .15s, background-color .15s;
}

.fld textarea {
  min-height: 76px;
  line-height: 1.55;
}

.fld input:not([type="checkbox"]):not([type="radio"]):hover,
.fld select:hover,
.fld textarea:hover,
.m-find input:hover,
.m-addp input:hover,
.m-link input:hover {
  border-color: var(--lab-muted);
}

.fld input:not([type="checkbox"]):not([type="radio"]):focus,
.fld select:focus,
.fld textarea:focus,
.m-find input:focus,
.m-addp input:focus,
.m-link input:focus {
  outline: 2px solid var(--lab-accent);
  outline-offset: -1px;
  border-color: var(--lab-accent);
}

.fld input::placeholder,
.fld textarea::placeholder,
.m-find input::placeholder,
.m-addp input::placeholder,
.share::placeholder,
.m-in textarea::placeholder,
.ai-text::placeholder {
  color: var(--lab-faint);
  opacity: 1;
}

.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.two > * {
  min-width: 0;
}

.hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--lab-muted);
}

.tg-c {
  min-height: 36px;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lab-text);
  min-width: 0;
}

.tg-c span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tg-c input,
.fld .tg-c input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--lab-accent);
  cursor: pointer;
}

.m-from {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--lab-line);
  border-left: 3px solid var(--lab-accent);
  border-radius: 0 var(--lab-radius) var(--lab-radius) 0;
  background: var(--lab-bg);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--lab-text);
}

/* ---------- room header, mode bar, identity & tabs ---------- */
.m-top {
  margin: -2px 0 10px;
  gap: 10px;
}

.m-top .btn {
  color: var(--lab-muted);
  padding: 4px 10px 4px 6px;
  margin-left: -6px;
}

.m-top .btn:hover {
  color: var(--lab-text);
  background: var(--lab-surface2);
  border-color: transparent;
}

.m-sync {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--lab-muted);
  text-align: right;
}

.m-sync.off {
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 32%, var(--lab-line));
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 600;
}

.m-head {
  gap: 12px 16px;
}

.m-head-t {
  flex: 1 1 320px;
  min-width: 0;
}

.m-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.32rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.m-sub {
  gap: 4px 14px;
  font-size: 13.5px;
  color: var(--lab-muted);
  font-variant-numeric: tabular-nums;
}

.m-sub span {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.m-sub .ic {
  margin-top: 2px;
}

.m-memo {
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--lab-line);
  border-left: 3px solid var(--lab-accent);
  border-radius: 0 var(--lab-radius) var(--lab-radius) 0;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lab-text);
  overflow-wrap: anywhere;
}

.m-head-b {
  display: flex;
  gap: 8px;
  flex: none;
}

.m-mode {
  margin: 16px 0 0;
  gap: 8px;
}

.seg {
  border: 1px solid var(--lab-line-strong);
  border-radius: var(--lab-radius);
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  max-width: 100%;
}

.seg button {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lab-muted);
  transition: color .15s, background-color .15s;
}

.seg button:not([aria-pressed="true"]):hover {
  color: var(--lab-text);
  background: var(--lab-surface2);
}

.seg button[aria-pressed="true"] {
  background: var(--lab-ink);
  color: var(--lab-on-ink);
  font-weight: 700;
}

#saveVer:has(.dot) {
  padding-right: 17px;
}

.m-mode .dot {
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: var(--lab-accent);
}

.m-mode-note {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--lab-muted);
}

.m-me {
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--lab-line);
  border-radius: 10px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  gap: 6px 10px;
  font-size: 13.5px;
  color: var(--lab-muted);
}

.m-me select {
  height: 34px;
  max-width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--lab-line-strong);
  border-radius: var(--lab-radius);
  background: var(--lab-bg);
  color: var(--lab-text);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .15s;
}

.m-me select:hover {
  border-color: var(--lab-muted);
}

.m-me select:focus {
  outline: 2px solid var(--lab-accent);
  outline-offset: -1px;
  border-color: var(--lab-accent);
}

.m-me small {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lab-muted);
}

.m-tabs {
  position: sticky;
  top: 6px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 0;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--lab-line);
  border-radius: 10px;
  background: var(--lab-surface2);
  box-shadow: var(--lab-shadow-sm);
}

.m-tabs button {
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--lab-muted);
  font-weight: 600;
  font-size: 13.5px;
  gap: 5px;
  padding: 0 6px;
  transition: color .15s, background-color .15s, box-shadow .15s;
}

.m-tabs button:not([aria-selected="true"]):hover {
  color: var(--lab-text);
}

.m-tabs button[aria-selected="true"] {
  background: var(--lab-surface);
  color: var(--lab-text);
  font-weight: 700;
  box-shadow: var(--lab-shadow-sm);
}

.m-tabs .cnt {
  font-family: var(--lab-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--lab-muted);
  opacity: 1;
}

.m-tabs button[aria-selected="true"] .cnt {
  color: var(--lab-accent);
  font-weight: 600;
}

.m-tabs .cnt.new {
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lab-accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
}

.m-panel {
  padding-top: 16px;
}

.m-empty {
  border: 1px dashed var(--lab-line-strong);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  padding: 34px 20px;
  color: var(--lab-muted);
}

.m-empty h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--lab-text);
}

.m-empty p {
  font-size: 14px;
  line-height: 1.6;
}

.m-tpl {
  gap: 6px;
  margin-top: 16px;
}

.m-none {
  padding: 14px 16px;
  border: 1px dashed var(--lab-line-strong);
  border-radius: 10px;
  background: var(--lab-surface);
  color: var(--lab-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- plan timeline & map ---------- */
.m-map {
  height: 240px;
  margin-bottom: 16px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface2);
  box-shadow: var(--lab-shadow-sm);
}

.m-map > .m-note {
  margin: 0;
  padding: 20px 16px;
  text-align: center;
}

.kpin {
  background: #b83b0a;
  color: #ffffff;
  font-family: var(--lab-mono);
  font-size: 12.5px;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.m-plan {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 12px;
}

.m-when {
  padding-top: 13px;
  gap: 2px;
}

.m-when b {
  font-family: var(--lab-mono);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  color: var(--lab-accent);
}

.m-when small {
  font-family: var(--lab-mono);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--lab-muted);
}

.m-card {
  gap: 6px;
  padding: 13px 15px;
  border: 1px solid var(--lab-line);
  border-radius: 12px 12px 0 0;
  background: var(--lab-surface);
  color: var(--lab-text);
  box-shadow: var(--lab-shadow-sm);
  min-width: 0;
  transition: border-color .15s, background-color .15s;
}

.m-wrap:not(.m-read) .m-card:hover {
  border-color: var(--lab-line-strong);
}

.m-read .m-card:hover {
  border-color: var(--lab-line);
}

.m-card-t {
  align-items: flex-start;
  gap: 8px;
  font-size: 15.5px;
  line-height: 1.38;
  min-width: 0;
}

.m-card-t b {
  font-weight: 700;
  letter-spacing: -.015em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.m-pin {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background: var(--lab-accent);
  color: var(--on-accent);
  font-family: var(--lab-mono);
  font-size: 12px;
  font-weight: 700;
}

:root[data-theme="dark"] .m-pin {
  color: var(--on-accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-pin {
    color: var(--on-accent);
  }
}

.m-line {
  display: block;
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--lab-muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.m-line .ic {
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  margin-top: 0;
  color: var(--lab-muted);
}

.m-line b {
  color: var(--lab-text);
  font-weight: 650;
}

.m-line small {
  font-size: 12.5px;
  color: var(--lab-muted);
}

.m-line.memo {
  margin-top: 2px;
  padding: 7px 10px;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: var(--lab-bg);
  font-size: 13px;
  line-height: 1.5;
  color: var(--lab-text);
}

.m-card-a {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -4px;
  padding: 5px 8px;
  border: 1px solid var(--lab-line);
  border-top: 1px solid var(--lab-line);
  border-radius: 0 0 12px 12px;
  background: var(--lab-bg);
  box-shadow: var(--lab-shadow-sm);
}

.m-card-a .btn {
  color: var(--lab-muted);
  min-height: 30px;
  padding: 4px 9px;
  font-size: 13px;
}

.m-card-a .btn:hover {
  color: var(--lab-text);
  background: var(--lab-surface2);
  border-color: var(--lab-line);
}

.m-card-a [data-chatplan] b {
  color: var(--lab-accent);
  font-weight: 700;
}

.m-gap {
  margin: 0 0 0 76px;
  padding: 8px 0 8px 14px;
  border-left: 2px dashed var(--lab-line-strong);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lab-muted);
}

.m-gap em {
  font-style: normal;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 28%, var(--lab-line));
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.m-plan + .m-plan {
  margin-top: 12px;
}

/* ---------- people tab ---------- */
.m-addp {
  gap: 8px;
  margin-bottom: 12px;
}

.m-addp input {
  background: var(--lab-surface);
}

.m-addp .btn {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
}

.m-people {
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  overflow: hidden;
}

.m-people button {
  min-height: 58px;
  padding: 10px 14px;
  gap: 12px;
  transition: background-color .15s;
}

.m-wrap:not(.m-read) .m-people button:hover {
  background: var(--lab-surface2);
}

.m-read .m-people button:hover {
  background: transparent;
}

.av {
  width: 36px;
  height: 36px;
  background: var(--lab-surface2);
  border: 1px solid var(--lab-line);
  color: var(--lab-text);
  font-weight: 700;
  font-size: 14.5px;
}

.pn {
  gap: 2px;
  min-width: 0;
}

.pn b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pn small {
  font-size: 12.5px;
  color: var(--lab-muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.me {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--lab-ink);
  color: var(--lab-on-ink);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

.net {
  flex: 0 1 auto;
  max-width: 45%;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lab-surface2);
  color: var(--lab-muted);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  text-align: right;
  overflow-wrap: anywhere;
}

.net.get {
  background: var(--get-soft);
  color: var(--get);
  border: 1px solid color-mix(in srgb, var(--get) 28%, var(--lab-line));
}

.net.give {
  background: var(--give-soft);
  color: var(--give);
  border: 1px solid color-mix(in srgb, var(--give) 28%, var(--lab-line));
}

/* ---------- settlement (money) tab ---------- */
.m-sum {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}

.m-sum div {
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  min-width: 0;
}

.m-sum small {
  font-size: 12px;
  font-weight: 600;
  color: var(--lab-muted);
}

.m-sum b {
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.m-h2row {
  margin: 22px 0 10px;
}

.m-costs {
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  overflow: hidden;
}

.m-costs button {
  min-height: 58px;
  padding: 11px 14px;
  gap: 12px;
  transition: background-color .15s;
}

.m-wrap:not(.m-read) .m-costs button:hover {
  background: var(--lab-surface2);
}

.m-read .m-costs button:hover {
  background: transparent;
}

.ct {
  gap: 2px;
  min-width: 0;
}

.ct b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ct small {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lab-muted);
  overflow-wrap: anywhere;
}

.ca {
  flex: 0 1 auto;
  max-width: 45%;
  gap: 2px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.ca b {
  font-size: 15px;
  font-weight: 700;
}

.ca small {
  font-size: 12px;
  color: var(--lab-muted);
}

.m-mine {
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--lab-accent) 28%, var(--lab-line));
  border-left: 3px solid var(--lab-accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--lab-text);
  font-size: 14px;
  line-height: 1.52;
}

.m-mine .ic {
  color: var(--lab-accent);
  margin-top: 3px;
}

.m-mine span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.m-trans {
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  overflow: hidden;
}

.m-trans li {
  transition: background-color .15s;
}

.m-trans li:not(.done):hover {
  background: var(--lab-surface2);
}

.m-trans li.mine:not(.done) {
  background: var(--accent-soft);
}

.m-trans li.mine:not(.done):hover {
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--lab-surface2));
}

.m-trans label {
  gap: 10px 12px;
  min-height: 54px;
  padding: 10px 14px;
}

.box {
  width: 24px;
  height: 24px;
  border: 1.8px solid var(--lab-line-strong);
  border-radius: 6px;
  background: var(--lab-surface);
  color: transparent;
  transition: border-color .15s, background-color .15s, color .15s;
}

.m-trans label:hover input:not(:checked) + .box {
  border-color: var(--get);
  background: var(--get-soft);
  color: var(--get);
}

.m-trans input:checked + .box {
  background: var(--get);
  border-color: var(--get);
  color: var(--on-get);
}

:root[data-theme="dark"] .m-trans input:checked + .box {
  color: var(--on-get);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-trans input:checked + .box {
    color: var(--on-get);
  }
}

.tw {
  gap: 3px 7px;
  font-size: 14.5px;
}

.tw b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.amt {
  flex: 0 1 auto;
  max-width: 45%;
  text-align: right;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.m-trans li.done .tw,
.m-trans li.done .amt {
  text-decoration: line-through;
  color: var(--lab-muted);
}

.m-detail summary {
  padding: 4px 2px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--lab-text);
  transition: color .15s;
}

.m-detail summary:hover {
  color: var(--lab-accent);
}

.tbl {
  margin-top: 8px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
}

.tbl th,
.tbl td {
  padding: 9px 12px;
  font-variant-numeric: tabular-nums;
}

.tbl th:first-child,
.tbl td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 60px;
}

.tbl .get {
  color: var(--get);
  font-weight: 600;
}

.tbl .give {
  color: var(--give);
  font-weight: 600;
}

/* ---------- chat tab ---------- */
.m-filter {
  margin: 0 0 12px;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--lab-line);
  border-left: 3px solid var(--lab-accent);
  border-radius: 0 10px 10px 0;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  font-size: 13.5px;
}

.m-filter .ic {
  color: var(--lab-accent);
}

.m-filter span {
  overflow-wrap: anywhere;
}

.m-msg .who {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lab-muted);
  margin: 0 0 4px 2px;
}

.m-msg .bub {
  padding: 9px 13px;
  border: 1px solid var(--lab-line);
  border-radius: 4px 14px 14px 14px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  gap: 5px;
}

.m-msg.own .bub {
  border-radius: 14px 4px 14px 14px;
  background: var(--lab-surface2);
  border-color: var(--lab-line-strong);
}

.m-ref {
  padding: 2px 9px;
  border: 1px solid var(--lab-line);
  border-radius: 999px;
  background: var(--lab-bg);
  color: var(--lab-accent);
  font-size: 12px;
  font-weight: 600;
  transition: border-color .15s, background-color .15s;
}

.m-ref:hover {
  border-color: var(--lab-accent);
  background: var(--accent-soft);
}

.m-msg .tx {
  font-size: 14.5px;
  line-height: 1.5;
}

.m-msg .meta {
  font-size: 11.5px;
  color: var(--lab-muted);
  font-variant-numeric: tabular-nums;
  gap: 8px;
}

.m-del {
  font-size: 11.5px;
  text-underline-offset: 2px;
  transition: color .15s;
}

.m-del:hover {
  color: var(--lab-text);
}

.m-compose {
  margin: 18px -16px -84px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--lab-bg) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--lab-line);
  gap: 8px;
}

.m-as {
  gap: 6px 8px;
  font-size: 13px;
}

.m-as select,
.m-as input,
.m-about select {
  height: 32px;
  max-width: 100%;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid var(--lab-line-strong);
  border-radius: var(--lab-radius);
  background: var(--lab-surface);
  color: var(--lab-text);
  font-size: 13.5px;
  transition: border-color .15s;
}

.m-as select:hover,
.m-as input:hover,
.m-about select:hover {
  border-color: var(--lab-muted);
}

.m-as select:focus,
.m-as input:focus,
.m-about select:focus {
  outline: 2px solid var(--lab-accent);
  outline-offset: -1px;
  border-color: var(--lab-accent);
}

.m-in {
  gap: 8px;
  align-items: flex-end;
}

.m-in textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--lab-line-strong);
  border-radius: var(--lab-radius);
  background: var(--lab-surface);
  color: var(--lab-text);
  font-size: 15px;
  line-height: 1.45;
  transition: border-color .15s;
}

.m-in textarea:hover {
  border-color: var(--lab-muted);
}

.m-in textarea:focus {
  outline: 2px solid var(--lab-accent);
  outline-offset: -1px;
  border-color: var(--lab-accent);
}

.m-in .btn {
  flex: none;
  min-height: 44px;
  min-width: 44px;
}

.m-about {
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 13px;
  min-width: 0;
}

.m-about select {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
}

/* ---------- dialogs, versions, split & search ---------- */
.m-dlg {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--lab-line-strong);
  border-radius: 14px;
  background: var(--lab-surface);
  color: var(--lab-text);
  box-shadow: var(--lab-shadow-lg);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--lab-line-strong) transparent;
}

.m-dlg::backdrop {
  background: var(--shade);
}

.m-dlg-in {
  gap: 14px;
  padding: 18px 20px 20px;
}

.m-dlg header {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lab-line);
  gap: 10px;
}

.m-dlg h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.m-dlg header .icon-btn {
  border: 1px solid var(--lab-line);
  background: var(--lab-surface);
  color: var(--lab-text);
  box-shadow: var(--lab-shadow-sm);
}

.m-dlg header .icon-btn:hover {
  border-color: var(--lab-line-strong);
  background: var(--lab-surface2);
}

.m-dlg p {
  font-size: 14px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.m-dlg-b {
  gap: 8px;
  align-items: center;
}

.m-dlg-b.spread {
  gap: 8px 12px;
}

.m-dlg-col .btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
}

.m-link {
  gap: 8px;
  align-items: stretch;
}

.m-link input {
  font-family: var(--lab-mono);
  font-size: 13.5px;
  min-height: 42px;
}

.m-link .btn {
  flex: none;
  min-height: 42px;
}

.m-find {
  gap: 8px;
  align-items: stretch;
}

.m-find .btn {
  flex: none;
  min-height: 44px;
}

.m-res {
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: var(--lab-bg);
  transition: border-color .15s, background-color .15s;
}

.m-res:hover {
  border-color: var(--lab-line-strong);
  background: var(--lab-surface2);
}

.m-res b,
.m-res small {
  overflow-wrap: anywhere;
}

.m-who {
  gap: 6px 14px;
  margin-top: 2px;
}

.m-split-b {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.m-split {
  gap: 6px;
}

.m-split li {
  gap: 8px 10px;
  min-width: 0;
}

.m-split .tg-c {
  flex: 1;
  min-width: 0;
}

.fld .m-split input.share,
.share {
  width: min(120px, 34vw);
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--lab-line-strong);
  border-radius: var(--lab-radius);
  background: var(--lab-bg);
  color: var(--lab-text);
  font-family: var(--lab-mono);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex: none;
  transition: border-color .15s;
}

.fld .m-split input.share:hover:not(:disabled),
.share:hover:not(:disabled) {
  border-color: var(--lab-muted);
}

.fld .m-split input.share:focus,
.share:focus {
  outline: 2px solid var(--lab-accent);
  outline-offset: -1px;
  border-color: var(--lab-accent);
}

.share:disabled,
.fld .m-split input.share:disabled {
  background: var(--lab-surface2);
  color: var(--lab-muted);
  opacity: .75;
}

.m-calc {
  margin: 8px 0 0 !important;
  font-size: 13.5px !important;
  line-height: 1.5;
  color: var(--lab-muted);
}

.m-vers {
  border: 1px solid var(--lab-line);
  border-radius: 10px;
  background: var(--lab-bg);
}

.m-vers li {
  padding: 11px 13px;
  gap: 8px 12px;
}

.m-vers li div {
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.m-vers b,
.m-vers small {
  overflow-wrap: anywhere;
}

.m-vers .btn,
.m-vers .m-note {
  flex: none;
  max-width: 46%;
}

/* ---------- AI box & AI dialogs ---------- */
.ai-box {
  margin: 0 0 16px;
  padding: 15px 16px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-surface);
  box-shadow: var(--lab-shadow-sm);
  gap: 12px 16px;
}

.ai-box.m-sec {
  margin: 26px 0 0;
}

.ai-box > div {
  gap: 4px;
}

.ai-box b {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.ai-box span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--lab-muted);
}

.ai-btns,
.ai-box > .ai-btns {
  gap: 8px;
  flex: none;
  flex-direction: row;
  flex-wrap: wrap;
}

.ai-meta {
  padding: 6px 10px;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: var(--lab-bg);
  font-family: var(--lab-mono);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--lab-muted);
  overflow-wrap: anywhere;
}

.ai-h {
  margin: 4px 0 -4px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--lab-text);
}

.ai-sum {
  padding: 10px 12px;
  border: 1px solid var(--lab-line);
  border-left: 3px solid var(--lab-accent);
  border-radius: 0 var(--lab-radius) var(--lab-radius) 0;
  background: var(--lab-bg);
  font-size: 14px;
  line-height: 1.58;
  color: var(--lab-text);
  overflow-wrap: anywhere;
}

.ai-people {
  gap: 6px;
}

.ai-people label {
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--lab-line-strong);
  border-radius: 999px;
  background: var(--lab-bg);
  color: var(--lab-text);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .15s, background-color .15s;
}

.ai-people label:hover {
  border-color: var(--lab-text);
  background: var(--lab-surface2);
}

.ai-people label:has(input:checked) {
  border-color: color-mix(in srgb, var(--lab-accent) 45%, var(--lab-line));
  background: var(--accent-soft);
}

.ai-c {
  padding: 12px 14px;
  border: 1px solid var(--lab-line);
  border-radius: 10px;
  background: var(--lab-bg);
}

.ai-c label {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 5px 10px;
}

.ai-c input {
  grid-column: 1;
  grid-row: 1;
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--lab-accent);
}

.ai-op {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--lab-line-strong);
  background: var(--lab-surface);
  color: var(--lab-text);
}

.ai-c.add .ai-op {
  background: var(--get-soft);
  border-color: color-mix(in srgb, var(--get) 32%, var(--lab-line));
  color: var(--get);
}

.ai-c.update .ai-op {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--lab-accent) 32%, var(--lab-line));
  color: var(--lab-accent);
}

.ai-c.remove .ai-op {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 32%, var(--lab-line));
  color: var(--warn);
}

.ai-c label > b,
.ai-c label > s {
  grid-column: 2;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ai-c label > s {
  color: var(--lab-muted);
}

.ai-c .ai-diff {
  grid-column: 2;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lab-muted);
  overflow-wrap: anywhere;
}

.ai-why {
  margin: 7px 0 0 30px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lab-muted);
  overflow-wrap: anywhere;
}

.ai-src {
  margin: 6px 0 0 30px;
  font-size: 13px;
}

.ai-src summary {
  font-weight: 600;
  color: var(--lab-muted);
  border-radius: 4px;
}

.ai-src summary:hover {
  color: var(--lab-text);
}

.ai-src ul {
  margin: 5px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 3px;
}

.ai-src li,
.ai-open li {
  overflow-wrap: anywhere;
}

.ai-open {
  gap: 5px;
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--lab-text);
}

.ai-how {
  padding: 9px 12px;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: var(--lab-bg);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lab-muted);
}

.ai-how summary {
  font-weight: 600;
  color: var(--lab-text);
  border-radius: 4px;
}

.ai-how ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.ai-text {
  min-height: 180px;
  padding: 10px 12px;
  border: 1px solid var(--lab-line-strong);
  border-radius: var(--lab-radius);
  background: var(--lab-bg);
  color: var(--lab-text);
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color .15s;
}

.ai-text:hover {
  border-color: var(--lab-muted);
}

.ai-text:focus {
  outline: 2px solid var(--lab-accent);
  outline-offset: -1px;
  border-color: var(--lab-accent);
}

.ai-row {
  margin-top: -4px;
  flex-wrap: wrap;
}

.ai-file {
  border: 1px solid var(--lab-line-strong);
  background: var(--lab-bg);
  color: var(--lab-text);
  box-shadow: var(--lab-shadow-sm);
}

.ai-file:hover {
  border-color: var(--lab-text);
  background: var(--lab-surface2);
}

.ai-file:focus-within {
  outline: 2px solid var(--lab-accent);
  outline-offset: 2px;
}

.ai-r {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  justify-content: flex-end;
}

dialog.lab-ai-dlg .lab-ai-dlg-b .btn {
  background: var(--lab-ink);
  border-color: var(--lab-ink);
  color: var(--lab-on-ink);
  box-shadow: none;
}

dialog.lab-ai-dlg .lab-ai-dlg-b .btn:hover {
  opacity: .88;
}

/* ---------- toast ---------- */
.m-toast {
  bottom: calc(20px + env(safe-area-inset-bottom));
  padding: 10px 16px;
  border-radius: var(--lab-radius);
  background: var(--lab-ink);
  color: var(--lab-on-ink);
  box-shadow: var(--lab-shadow-lg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

/* ---------- tablet & desktop (>= 640px / 720px / 960px) ---------- */
@media (min-width: 640px) {
  .m-tabs {
    top: 8px;
    padding: 4px;
    gap: 4px;
  }

  .m-box {
    padding: 22px 24px;
  }

  .m-compose {
    bottom: 12px;
    margin: 20px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--lab-line-strong);
    border-radius: 12px;
    background: var(--lab-surface);
    box-shadow: var(--lab-shadow-lg);
  }

  .m-compose .m-as select,
  .m-compose .m-as input,
  .m-compose .m-in textarea,
  .m-compose .m-about select {
    background: var(--lab-bg);
  }
}

@media (min-width: 720px) {
  .m-rooms {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
  }

  .m-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .m-steps li {
    padding: 16px 16px 16px 16px;
    align-content: start;
    gap: 6px;
  }

  .m-steps li::before {
    position: static;
    margin-bottom: 4px;
  }

  .m-map {
    height: 300px;
  }

  .m-plan {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .m-gap {
    margin-left: 88px;
  }

  .ai-box {
    padding: 18px 20px;
  }

  .ai-btns {
    flex: none;
  }
}

@media (min-width: 960px) {
  .m-wrap {
    padding: 28px 16px 92px;
  }
}

/* ---------- mobile (<= 600px / 520px / 420px) ---------- */
@media (max-width: 600px) {
  .ai-box {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-btns .btn {
    flex: 1 1 130px;
  }
}

@media (max-width: 520px) {
  .m-head-b {
    width: 100%;
  }

  .m-head-b .btn {
    flex: 1;
  }

  .m-msg {
    max-width: 88%;
  }
}

@media (max-width: 420px) {
  .m-wrap {
    padding: 16px 12px 76px;
  }

  .m-box {
    padding: 16px 14px;
  }

  .m-tabs button {
    font-size: 12.5px;
    padding: 0 4px;
    gap: 4px;
    height: 34px;
  }

  .m-plan {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 4px 8px;
  }

  .m-when b {
    font-size: 12.5px;
  }

  .m-when small {
    font-size: 11px;
  }

  .m-gap {
    margin-left: 66px;
  }

  .m-sum div {
    padding: 10px 9px;
  }

  .tbl th,
  .tbl td {
    padding: 8px 6px;
    font-size: 12.5px;
  }

  .tbl th {
    font-size: 11.5px;
  }

  .m-compose {
    margin: 16px -12px -76px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .m-dlg-in {
    padding: 16px 16px 18px;
    gap: 13px;
  }

  .two {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-intro a,
  .m-empty a,
  .m-dlg a,
  .btn,
  .icon-btn,
  .tg,
  .m-rooms li,
  .fld input,
  .fld select,
  .fld textarea,
  .m-find input,
  .m-addp input,
  .m-link input,
  .m-me select,
  .m-tabs button,
  .seg button,
  .m-card,
  .m-people button,
  .m-costs button,
  .m-trans li,
  .box,
  .m-detail summary,
  .m-ref,
  .m-del,
  .m-as select,
  .m-as input,
  .m-about select,
  .m-in textarea,
  .m-res,
  .share,
  .ai-people label,
  .ai-text,
  .m-toast {
    transition: none;
  }
}
