:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f8f8f0;
  color: #182b23;
  --green: #23533d;
  --muted: #53655a;
  --line: #d7e0d5;
  --pale: #e8f0e5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .56; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #638461; outline-offset: 2px; }

.app {
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--green); font-weight: 750; }
.brand img { border-radius: 9px; }
main { flex: 1; padding-top: 34px; }
h1 { font-size: clamp(28px, 7.2vw, 38px); letter-spacing: -.03em; line-height: 1.2; margin: 0; }
p { margin: 8px 0 18px; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.full { width: 100%; }
button { min-height: 48px; border: 0; border-radius: 12px; padding: 8px 15px; font-weight: 700; }
.primary { color: white; background: var(--green); }
.secondary { color: var(--green); background: var(--pale); }
.join { display: grid; gap: 9px; margin: 24px 0 16px; }
.join label, .count { font-size: .9rem; font-weight: 700; color: var(--muted); }
input { min-width: 0; min-height: 48px; padding: 10px 13px; color: inherit; background: white; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
input::placeholder { color: #66766b; }
.invite { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--pale); border-radius: 13px; padding: 10px 10px 10px 13px; }
.invite strong { display: block; font: 700 .93rem ui-monospace, monospace; margin-top: 4px; overflow-wrap: anywhere; }
.text-button { color: var(--green); background: transparent; white-space: nowrap; }
.count { margin-top: 20px; margin-bottom: 9px; }
ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; color: inherit; font-weight: 500; text-align: left; overflow-wrap: anywhere; background: white; border: 1px solid var(--line); }
.box { width: 23px; height: 23px; flex: 0 0 23px; border: 1.5px solid var(--green); border-radius: 7px; }
.empty { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 26vh; text-align: center; }
footer { position: sticky; bottom: 0; background: #f8f8f0; padding: 4px 0 max(10px, env(safe-area-inset-bottom)); }
.composer { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
.undo { display: flex; align-items: center; justify-content: space-between; background: #182b23; color: white; border-radius: 12px; padding: 0 7px 0 13px; margin-bottom: 7px; }
.undo span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.undo button { color: #d4edc1; min-height: 44px; }
#notice { color: #79392d; margin: 3px 0 7px; font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
