:root { color-scheme: light; --ink: #28232d; --muted: #746d79; --accent: #a27683; --line: #e9e2e7; --paper: #fff; --wash: #faf7f9; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
button, input { font: inherit; }
.wrap { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 64px; }
header { margin-bottom: 22px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
h1 { margin: 7px 0 8px; font-size: clamp(26px, 5vw, 38px); letter-spacing: .04em; }
.lead { margin: 0; color: var(--muted); line-height: 1.8; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.step { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: 13px; line-height: 1.6; }
.step b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }
.panel { margin: 16px 0; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 28px #38233d08; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
h2 { margin: 0; font-size: 20px; }
.sub { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.date { color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.today-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.today-option { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.today-option:has(input:checked) { border-color: #c49ba7; background: #fcf7f9; }
.today-option input { width: 19px; height: 19px; accent-color: var(--accent); }
.today-option img, .avatar-placeholder { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; background: #f0e9ee; }
.avatar-placeholder { display: grid; place-items: center; color: #a69aa3; font-size: 11px; }
.today-option strong { font-size: 15px; }
.empty { padding: 20px; color: var(--muted); text-align: center; }
.cast-list { display: grid; gap: 12px; }
.cast { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.cast-photo { width: 86px; height: 106px; border-radius: 9px; object-fit: cover; background: #f2edf1; }
.entry-list { display: grid; gap: 12px; }
.entry { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.entry-photo, .entry .avatar-placeholder { width: 86px; height: 86px; border-radius: 9px; object-fit: cover; background: #f2edf1; }
.entry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-pick { display: block; margin-top: 7px; color: var(--accent); font-size: 12px; text-align: center; cursor: pointer; }
.photo-pick input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
label.field { display: block; color: var(--muted); font-size: 12px; }
.field input { width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; outline: none; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #a2768318; }
.field textarea { width: 100%; min-height: 76px; margin-top: 5px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font: inherit; resize: vertical; }
.field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #a2768318; }
.delete { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #8b606c; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.button { min-height: 44px; padding: 11px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.button:hover { filter: brightness(.97); }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.add { color: var(--accent); }
.status { min-height: 22px; color: var(--muted); font-size: 13px; }
.help { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #f7f2f5; color: var(--muted); font-size: 13px; line-height: 1.8; }
.help b { color: var(--ink); }
.login-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 15px; }
.login-form label { flex: 1 1 240px; color: var(--muted); font-size: 12px; }
.login-form input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; }
.password-field { flex: 1 1 240px; min-width: 0; }
.password-field > label { display: block; }
.password-entry { position: relative; margin-top: 6px; }
.login-form .password-entry input { margin-top: 0; padding-right: 58px; }
.password-toggle { position: absolute; top: 50%; right: 5px; display: grid; place-items: center; width: 40px; min-height: 36px; padding: 6px; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 6px; background: var(--wash); color: var(--accent); font-size: 12px; cursor: pointer; }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle:hover { background: #f2e9ee; }
.password-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-status { min-height: 22px; margin: 10px 0 0; color: #8b606c; font-size: 13px; }
[hidden] { display: none !important; }
.noscript { padding: 20px; color: #8b3030; }
@media (max-width: 620px) {
  .wrap { width: min(100% - 22px, 920px); padding-top: 24px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 7px; }
  .step { padding: 10px 13px; }
  .today-list { grid-template-columns: 1fr; }
  .cast { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .cast-photo { width: 68px; height: 86px; }
  .delete { grid-column: 2; justify-self: start; }
  .fields { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .entry-photo, .entry .avatar-placeholder { width: 68px; height: 68px; }
  .entry-fields { grid-template-columns: 1fr; }
  .entry .delete { grid-column: 2; }
  .actions { align-items: stretch; }
  .actions .button { width: 100%; }
}
.session-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 16px; }
.session-controls p { margin: 0; color: var(--muted); font-size: 12px; }
.panel-head-spaced { margin-top: 24px; }

.photo-visibility { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; color: var(--muted); font-size: 13px; cursor: pointer; }
.photo-visibility input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
