:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  color: #15213a;
  background: #f3f5f9;
  --blue: #234cd7;
  --muted: #57647c;
  --line: #dce3ef;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #335cea; outline-offset: 3px; }
[hidden] { display: none !important; }
.masthead { background: #fff; border-bottom: 1px solid #e5eaf3; }
.header-inner, .shell { width: min(100% - 72px, 1080px); margin-inline: auto; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--blue); color: #fff; font-size: 21px;
}
.author { color: var(--muted); font-size: 13px; padding-block: 12px; white-space: nowrap; }
.author:hover { color: var(--blue); }
.author span { margin-left: 3px; }
.intro { padding: 70px 0 42px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(36px, 5.5vw, 66px); letter-spacing: -.07em; line-height: 1.2; font-weight: 850; }
h1 span { color: var(--blue); }
.intro p { color: var(--muted); font-size: clamp(14px, 2vw, 17px); line-height: 1.8; margin-top: 19px; }
.mobile-break { display: none; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel {
  min-width: 0; min-height: 407px; padding: 25px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 5px 16px rgb(28 49 93 / 4%);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
h2 { font-size: 18px; letter-spacing: -.035em; }
.text-button {
  border: 0; background: transparent; color: var(--blue); border-radius: 6px;
  padding: 8px 2px; min-height: 44px; font-size: 13px; font-weight: 700;
}
.text-button:hover:enabled { text-decoration: underline; }
.text-button:disabled { color: #6d7890; }
textarea {
  display: block; resize: vertical; width: 100%; min-height: 211px; padding: 15px 16px;
  border: 1px solid #cbd5e6; border-radius: 12px; background: #f7f9fd;
  color: #15213a; font-size: 16px; line-height: 1.65;
}
textarea::placeholder { color: #60708a; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
#input-hint { margin-top: 9px; }
.primary {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  gap: 8px; margin-top: 18px; padding: 13px 17px; min-height: 50px;
  border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 760; font-size: 15px;
}
.primary:hover { background: #193ebd; }
.primary span { font-size: 20px; line-height: 1; }
.empty {
  display: grid; justify-items: center; align-content: center; min-height: 286px;
  background: #f9faff; border: 1px dashed #cbd5e6; border-radius: 12px;
  text-align: center; padding: 22px 14px;
}
.empty p:not(.hint) { font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.empty-icon { display: grid; align-content: center; gap: 5px; padding: 10px; height: 42px; width: 42px; margin-bottom: 16px; border-radius: 11px; background: #eaf0ff; }
.empty-icon i { display: block; border-radius: 2px; height: 2px; background: var(--blue); }
.empty-icon i:last-child { width: 62%; }
.progress { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 15px; }
#count { font-weight: 750; color: var(--blue); font-variant-numeric: tabular-nums; }
progress { grid-column: 1 / -1; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; accent-color: var(--blue); background: #e8edf7; }
progress::-webkit-progress-bar { background: #e8edf7; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 99px; }
.tasks { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.task label {
  display: flex; align-items: start; gap: 11px; padding: 12px;
  background: #f7f9fd; border: 1px solid #e6eaf4; border-radius: 10px;
  min-height: 48px; font-size: 14px; line-height: 1.6; cursor: pointer;
}
.task label:hover { border-color: #aabcea; }
.task span { overflow-wrap: anywhere; min-width: 0; }
.task input { flex: 0 0 auto; accent-color: var(--blue); width: 19px; height: 19px; margin: 2px 0 0; }
.task input:checked + span { text-decoration: line-through; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 14px 0 28px; }
footer button { font-size: 12px !important; }
.status {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 1; width: max-content; max-width: calc(100% - 32px);
  border-radius: 11px; padding: 11px 16px; background: #15213a; color: #fff; font-size: 13px;
}
.status:empty { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; pointer-events: none; }
@media (max-width: 760px) {
  .header-inner, .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; }
  .intro { padding: 42px 0 27px; }
  .intro p { margin-top: 13px; }
  .workspace { grid-template-columns: 1fr; gap: 14px; }
  .panel { min-height: auto; padding: 17px; border-radius: 16px; }
  .empty { min-height: 185px; }
}
@media (max-width: 520px) {
  .mobile-break { display: initial; }
}
