:root {
  color-scheme: light;
  --bg: #0c0c0d;
  --ink: #16110d;
  --muted: #756b61;
  --line: #ead8c5;
  --panel: #fffaf3;
  --forest: #f58220;
  --forest-2: #2a2420;
  --amber: #ff9f1c;
  --red: #d93b24;
  --safe: #23a55a;
  --black: #0f1012;
  --black-2: #1b1714;
  --cream: #fff4e4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 130, 32, 0.34), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(255, 159, 28, 0.18), transparent 20rem),
    linear-gradient(135deg, #080808 0%, #15120f 52%, #2a170a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
}

body.login-active .page {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.login-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(245, 130, 32, 0.35), transparent 18rem),
    rgba(8, 8, 8, 0.78);
}

.login-screen.is-hidden {
  display: none;
}

.login-card {
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 159, 28, 0.34);
  border-radius: 12px;
  color: var(--cream);
  background: rgba(17, 15, 13, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
}

.login-card span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.login-card h1 {
  margin: 0;
  font-size: 26px;
}

.login-card p,
.login-card small {
  margin: 0;
  color: #e8d2bb;
  font-size: 13px;
}

.login-card input {
  width: 100%;
  border: 1px solid rgba(255, 244, 228, 0.3);
  border-radius: 8px;
  padding: 12px;
  color: var(--cream);
  background: #0c0c0d;
}

.login-card button {
  padding: 12px;
  border-radius: 8px;
  color: #140c04;
  background: var(--amber);
  font-weight: 900;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.auth-tabs .auth-tab {
  min-height: 40px;
  padding: 7px;
  color: #e8d2bb;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.auth-tabs .auth-tab.active {
  color: #140c04;
  background: var(--amber);
}

.auth-panel {
  display: none;
  gap: 9px;
}

.auth-panel.active {
  display: grid;
}

.agreement-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e8d2bb;
  font-size: 12px;
}

.agreement-check input {
  width: auto;
}

.login-card .text-button,
.login-card .policy-link {
  padding: 5px;
  color: #f2c08e;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
}

.policy-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
}

.policy-modal[hidden] {
  display: none;
}

.policy-card {
  width: min(650px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(255, 159, 28, 0.4);
  border-radius: 14px;
  color: var(--cream);
  background: #17130f;
}

.policy-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.policy-heading h2,
.policy-body h3,
.policy-body p {
  margin: 0;
}

.policy-heading button {
  align-self: start;
  padding: 8px 10px;
  border-radius: 8px;
}

.policy-body {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.policy-body h3 {
  margin-top: 8px;
  color: var(--amber);
  font-size: 15px;
}

.policy-body p {
  color: #ead8c5;
  font-size: 13px;
  line-height: 1.7;
}

.team-access-card {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #ffd09c;
  border-radius: 10px;
  color: #3a220e;
  background: #fff0d8;
}

.team-access-card:not([hidden]) {
  display: flex;
}

.team-access-card div {
  display: grid;
  gap: 2px;
}

.team-access-card span,
.team-access-card small {
  font-size: 11px;
}

.team-access-card strong {
  color: #b94c00;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.team-access-card button {
  flex: 0 0 auto;
  padding: 9px 10px;
  border-radius: 999px;
  color: #fff;
  background: #2a2420;
  font-size: 11px;
  font-weight: 800;
}

.team-access-card .danger-button {
  background: var(--red);
}

.team-access-actions {
  display: grid;
  gap: 6px;
}

.team-user-list {
  display: grid;
  gap: 7px;
}

.team-user-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.team-user-row strong,
.team-user-row small {
  display: block;
}

.team-user-row small {
  color: var(--muted);
  font-size: 11px;
}

.team-user-controls {
  display: grid;
  gap: 5px;
}

.reset-device-button {
  padding: 7px 9px;
  border-radius: 7px;
  color: #fff4e4;
  background: #2a2420;
  font-size: 10px;
  font-weight: 800;
}

.location-share-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  color: #2a2420;
  background: #fff0d8;
}

.location-share-card span {
  display: block;
  margin-top: 3px;
  color: #78583d;
  font-size: 12px;
}

.location-share-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.location-share-actions button {
  min-height: 38px;
  border-radius: 8px;
  color: #140c04;
  background: var(--amber);
  font-size: 11px;
  font-weight: 800;
}

.live-location-marker {
  position: absolute;
  z-index: 6;
  min-width: 34px;
  min-height: 34px;
  padding: 5px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #1686d9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 900;
}

.support-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff0d8;
}

.support-form label {
  color: #3a220e;
  font-weight: 900;
}

.support-form small {
  color: #78583d;
  font-size: 11px;
}

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.logout-button {
  padding: 9px 10px;
  border: 1px solid rgba(255, 244, 228, 0.22);
  border-radius: 999px;
  color: #fff4e4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: grayscale(0.35);
  box-shadow: none;
}

.page {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  padding: clamp(12px, 4vw, 30px);
}

.toast-host {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 10px 12px;
  border: 1px solid rgba(255, 244, 228, 0.28);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(12, 12, 13, 0.94);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
  font-size: 13px;
  font-weight: 800;
}

.toast.warning {
  border-left-color: var(--red);
}

.label {
  display: inline-flex;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.phone-shell {
  display: grid;
  justify-content: center;
}

.phone {
  width: min(390px, calc(100vw - 32px));
  min-height: 790px;
  overflow: hidden;
  border: 10px solid #050505;
  border-radius: 34px;
  background:
    linear-gradient(180deg, #1b1714 0 150px, #fff5e8 150px 100%);
  box-shadow:
    0 0 0 1px rgba(255, 159, 28, 0.28),
    0 28px 90px rgba(0, 0, 0, 0.52);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 16px;
  color: #fff;
}

.app-header h2 {
  margin: 3px 0 0;
  font-size: 22px;
  color: #fff;
}

.role-button,
.section-title button,
.assign-list button,
.map-top button,
.member-form button,
.finish-card button,
.dog-input-row button {
  padding: 9px 12px;
  border-radius: 999px;
  color: #140c04;
  background: linear-gradient(180deg, #ffb24d, var(--forest));
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(245, 130, 32, 0.3);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 0 14px 14px;
}

.tab {
  min-height: 38px;
  border-radius: 8px;
  color: #f0dac4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.tab.active {
  color: #120b05;
  background: var(--amber);
  box-shadow: 0 8px 18px rgba(255, 159, 28, 0.25);
}

.panel {
  display: none;
  padding: 0 16px 18px;
  color: var(--ink);
}

.panel.active {
  display: block;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric,
.notice,
.summary-card,
.finish-card,
.dog-share,
.readiness-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(43, 27, 12, 0.08);
}

.metric {
  display: grid;
  gap: 4px;
  padding: 13px 10px;
  border-top: 4px solid var(--forest);
}

.metric span,
.assign-list span,
.finish-card span,
.summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  font-size: 26px;
  color: #17100a;
}

.readiness-card {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border-top: 4px solid var(--forest);
}

.readiness-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.readiness-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.readiness-card strong {
  color: var(--ink);
  font-size: 14px;
}

.readiness-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.readiness-card li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5f4a39;
  font-size: 12px;
  font-weight: 800;
}

.readiness-card li span {
  min-width: 48px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff4e4;
  background: var(--red);
  text-align: center;
  font-size: 10px;
}

.readiness-card li.ok span {
  color: #062612;
  background: #8fe2aa;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}

.section-title h3,
.timeline h3 {
  margin: 0;
  font-size: 16px;
}

.member-list {
  display: grid;
  gap: 8px;
}

.member-form {
  display: grid;
  gap: 8px;
  margin: 14px 0 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(43, 27, 12, 0.08);
}

.member-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.member-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto;
  gap: 7px;
}

.game-form-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.2fr) auto;
  gap: 7px;
}

.position-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 7px;
}

.member-form input,
.member-form select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fffdf8;
}

.form-help {
  color: #7a6250;
  font-size: 12px;
}

.member {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: #7a6250;
  background: rgba(255, 250, 243, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.avatar,
.pin {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2a2420, #0c0c0d);
  font-weight: 800;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.member strong {
  display: block;
  color: #19110a;
}

.member small {
  color: #7a6250;
}

.member-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.toggle {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #d7ddd5;
  position: relative;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.toggle.on {
  background: var(--forest);
}

.toggle.on::after {
  transform: translateX(24px);
}

.delete-member {
  padding: 5px 8px;
  border: 1px solid rgba(217, 59, 36, 0.24);
  border-radius: 999px;
  color: var(--red);
  background: #fff1ec;
  font-size: 10px;
  font-weight: 900;
}

.notice {
  display: grid;
  gap: 4px;
  padding: 13px;
  margin-bottom: 12px;
}

.notice span {
  color: #675546;
  font-size: 13px;
  line-height: 1.55;
}

.map-card {
  overflow: hidden;
  border: 1px solid rgba(245, 130, 32, 0.28);
  border-radius: 8px;
  background: #16110d;
  box-shadow: 0 12px 26px rgba(43, 27, 12, 0.14);
}

.map-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(90deg, #1b1714, #38200d);
  font-size: 13px;
}

.map-top button {
  flex: 0 0 auto;
}

.mock-map {
  position: relative;
  height: 255px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 180, 86, 0.22), transparent 20%),
    linear-gradient(145deg, rgba(28, 43, 26, 0.62) 0 24%, transparent 24% 100%),
    linear-gradient(35deg, transparent 0 42%, rgba(255, 159, 28, 0.28) 42% 47%, transparent 47% 100%),
    linear-gradient(160deg, #4f5f38, #1d2419 48%, #65401c);
}

.mock-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.08) contrast(1.04);
  pointer-events: none;
}

.mock-map.is-dragging,
.google-map-card.is-dragging {
  cursor: grabbing;
}

.ridge {
  position: absolute;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 244, 228, 0.62);
  transform: rotate(-22deg);
}

.ridge-a {
  left: 34px;
  top: 74px;
  width: 245px;
}

.ridge-b {
  left: 86px;
  top: 160px;
  width: 210px;
  transform: rotate(18deg);
}

.zone {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(217, 59, 36, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.pin {
  position: absolute;
  width: 27px;
  height: 27px;
  border: 2px solid #fff4e4;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
  transform: rotate(-45deg);
  z-index: 2;
  pointer-events: auto;
}

.pin::first-letter {
  transform: rotate(45deg);
}

.pin.ready {
  background: var(--forest);
}

.pin.dog {
  background: #111;
}

.pin.leader {
  background: var(--red);
}

.map-member-label {
  position: absolute;
  display: grid;
  gap: 1px;
  min-width: 58px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 244, 228, 0.74);
  border-radius: 8px;
  color: #fff4e4;
  background: rgba(12, 12, 13, 0.84);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
  text-align: left;
  z-index: 3;
  pointer-events: auto;
}

.map-member-label strong {
  font-size: 9px;
}

.map-member-label span {
  font-size: 10px;
  font-weight: 900;
}

.map-member-label small {
  color: #ffd9a3;
  font-size: 9px;
  font-weight: 800;
}

.map-member-label.is-unassigned {
  opacity: 0.68;
}

.map-empty-state {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border: 1px dashed rgba(255, 244, 228, 0.72);
  border-radius: 8px;
  color: #fff4e4;
  background: rgba(12, 12, 13, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.assign-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.assign-list article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.assign-list article[data-assigned="true"] {
  border-left: 5px solid var(--forest);
}

.assign-position {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.assign-position strong {
  font-size: 14px;
}

.assign-position small {
  color: #7a6250;
  font-size: 11px;
  word-break: break-all;
}

.assign-list select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fffdf8;
}

.assign-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.assignment-current {
  color: #7a6250;
  font-size: 11px;
  word-break: break-all;
}

.google-map-card {
  position: relative;
  height: 360px;
  overflow: hidden;
  border: 1px solid rgba(245, 130, 32, 0.28);
  border-radius: 8px;
  background: #16110d;
  box-shadow: 0 12px 26px rgba(43, 27, 12, 0.14);
  cursor: grab;
  touch-action: none;
}

.google-map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.08) contrast(1.04);
  pointer-events: none;
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-controls {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  display: grid;
  gap: 6px;
  pointer-events: auto;
}

.map-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 244, 228, 0.72);
  border-radius: 8px;
  color: #fff4e4;
  background: rgba(12, 12, 13, 0.88);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  font-size: 20px;
  font-weight: 900;
}

.map-person-badge {
  position: absolute;
  display: grid;
  grid-template-columns: 19px auto;
  grid-template-rows: auto auto;
  column-gap: 5px;
  align-items: center;
  min-width: 74px;
  padding: 4px 6px;
  border: 2px solid #fff4e4;
  border-radius: 999px;
  color: #fff4e4;
  background: rgba(12, 12, 13, 0.86);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
  transform: translate(-14px, -14px);
}

.map-person-badge span {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #140c04;
  background: var(--amber);
  font-size: 10px;
  font-weight: 900;
}

.map-person-badge strong {
  font-size: 10px;
}

.map-person-badge small {
  color: #ffd9a3;
  font-size: 9px;
}

.dog-marker {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff4e4;
  border-radius: 999px;
  background: rgba(12, 12, 13, 0.88);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
  font-size: 14px;
  line-height: 1;
  pointer-events: auto;
  transform: translate(-12px, -12px);
}

.map-panel-empty {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  pointer-events: auto;
}

.map-legend {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.legend-item span {
  color: #7a6250;
  font-size: 12px;
}

.field-member-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field-member {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.field-member strong {
  display: block;
  font-size: 15px;
}

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

.arrival-check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 130, 32, 0.34);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.arrival-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}

.dog-share {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
}

.dog-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dog-share-head div {
  display: grid;
  gap: 4px;
}

.dog-share span,
.dog-share label {
  color: var(--muted);
  font-size: 12px;
}

.dog-share strong {
  font-size: 16px;
}

.timer {
  min-width: 64px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #140c04;
  background: #ffd9a3;
  text-align: center;
  font-weight: 800;
}

.timer.live {
  color: #140c04;
  background: var(--amber);
}

.dog-input-row {
  display: grid;
  gap: 8px;
}

.dog-input-row {
  grid-template-columns: 1fr auto;
}

.dog-input-row input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fffdf8;
}

.primary,
.danger-action,
.secondary {
  min-height: 52px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  color: #130b05;
  background: linear-gradient(180deg, #ffb24d, var(--forest));
  box-shadow: 0 10px 20px rgba(245, 130, 32, 0.28);
}

.danger-action {
  color: #fff;
  background: linear-gradient(180deg, #ff674f, var(--red));
  box-shadow: 0 10px 20px rgba(217, 59, 36, 0.22);
}

.secondary {
  color: #f7e8d6;
  background: linear-gradient(180deg, #2a2420, #111);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.timeline {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.section-title.inline,
.section-title.compact {
  margin-top: 12px;
}

.section-title.inline {
  margin: 0 0 10px;
}

#timelineList {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: #5f5044;
  font-size: 13px;
  line-height: 1.45;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--forest);
}

.finish-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
}

.finish-card div {
  display: grid;
  gap: 4px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.summary-card {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.memo-label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
}

.record-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.record-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.record-item button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
}

.record-item.active button:first-child {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 2px rgba(245, 130, 32, 0.2);
}

.record-item button:last-child {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.record-item strong,
.record-item small {
  display: block;
}

.record-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

.full {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 860px) {
  .page {
    padding-top: 12px;
  }
}

@media (max-width: 430px) {
  .page {
    padding-inline: 10px;
  }

  .phone {
    width: calc(100vw - 20px);
    border-width: 7px;
    border-radius: 28px;
  }

  .member-form-row {
    grid-template-columns: 1fr;
  }

  .position-form-row {
    grid-template-columns: 1fr;
  }

  .game-form-row {
    grid-template-columns: 1fr;
  }
}
