* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --bg: #f0f2f5;
  --surface: #fff;
  --ink: #101725;
  --muted: #515f71;
  --line: #d9dee5;
  --sub: #f6f7f9;
  --accent: #aa4048;
  --btn: #182231;
  --on: #fff;
  --ring: #2876ce;
  --green: #16583b;
  --wash: #e8f5eb;
  --shadow: 0 2px 9px #1017290b;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080c17;
  --surface: #101828;
  --ink: #edf1ff;
  --muted: #acb9cb;
  --line: #374256;
  --sub: #182235;
  --accent: #ff969d;
  --btn: #e9edf6;
  --on: #111925;
  --ring: #77acff;
  --green: #a4e4b9;
  --wash: #19372d;
  --shadow: none;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    15px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.top {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 64px);
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}
.brand img,
.notification img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.divider {
  height: 22px;
  border-left: 1px solid var(--line);
  margin: 0 6px;
}
.themes {
  margin-left: auto;
}
.themes,
.switch {
  display: inline-flex;
  background: var(--sub);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
button,
select,
input {
  font: inherit;
  color: var(--ink);
}
button,
select {
  cursor: pointer;
}
button {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}
button:hover {
  border-color: var(--muted);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.themes button,
.switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 13px;
}
.themes .active,
.switch [aria-pressed="true"] {
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
main {
  max-width: 1240px;
  padding: 34px clamp(16px, 4vw, 52px) 60px;
  margin: auto;
}
.heading,
.bar,
.actions,
.example,
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.heading {
  margin-bottom: 18px;
}
.heading p,
.hint,
.actions small,
.asset small {
  color: var(--muted);
}
.heading p,
.hint {
  margin: 5px 0 12px;
}
.kicker,
.overline {
  font:
    700 11px/1.4 ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 6px 0 8px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.local {
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
.bar {
  padding: 12px 0 20px;
  justify-content: flex-start;
}
.draft-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.draft-picker label {
  margin: 0;
}
.draft-picker select {
  width: auto;
  max-width: 42vw;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}
section,
.preview {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}
section {
  margin-bottom: 14px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
label {
  display: block;
  font-weight: 650;
  font-size: 13px;
  margin: 10px 0 5px;
}
input,
select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  width: 100%;
  min-width: 0;
}
input[type="file"] {
  font-size: 13px;
  padding: 4px 0;
  border: 0;
}
input::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sub);
  color: var(--ink);
  padding: 6px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hint,
small {
  font-size: 13px;
}
.example {
  border-radius: 8px;
  background: var(--wash);
  color: var(--green);
  padding: 10px 14px;
  font-size: 13px;
}
.asset {
  display: flex;
  gap: 15px;
  align-items: center;
}
.asset > div {
  min-width: 0;
}
.asset label {
  margin-top: 0;
}
.asset img {
  width: 66px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: contain;
  background: #eef5d9;
}
.link {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 5px 0;
  font-size: 13px;
}
.actions {
  padding: 2px 0;
}
.primary,
.mock-action {
  background: var(--btn);
  color: var(--on);
  border: 0;
  padding: 10px 18px;
}
.preview {
  position: sticky;
  top: 18px;
}
.preview-head {
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.member {
  background: #fffdfa;
  color: #17281d;
  border: 1px solid #c1d3c0;
  border-radius: 16px;
  overflow: hidden;
}
.member-body {
  padding: 20px;
}
.overline {
  color: #326040;
}
.member h2 {
  font-size: 30px;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.member p {
  margin: 6px 0 16px;
}
.mock-action {
  display: block;
  text-align: center;
  border-radius: 10px;
  font-weight: 650;
  background: #183f31;
  color: white;
}
.preview > .hint {
  margin: 10px 0 18px;
}
#hero {
  height: 150px;
  background: #dbe9c4;
  display: grid;
  place-items: center;
}
#hero img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
#hero.sample {
  background: radial-gradient(
    ellipse at 47% 85%,
    #eff6bf,
    #c2e2a6 73%,
    #abd5a0
  );
}
#hero.sample img {
  transform: rotate(-7deg);
  padding: 6px;
}
.notification {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  background: var(--sub);
  padding: 12px;
  margin-top: 9px;
}
.notification small,
.notification strong,
.notification span {
  display: block;
  overflow-wrap: anywhere;
}
.notification small {
  color: var(--muted);
}
.reminder {
  border-top: 1px solid var(--line);
  padding: 8px 0 14px;
}
.reminder header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reminder output {
  color: var(--muted);
  font-size: 13px;
}
.reminder input {
  padding: 7px 9px;
}
.reminder .pair {
  gap: 10px;
}
.reminder .pair label {
  margin-top: 0;
}
#status {
  font-size: 14px;
  color: var(--green);
  margin: 0;
}
#status.error {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .preview {
    position: static;
  }
  .top {
    gap: 8px;
  }
  .bar,
  .heading {
    flex-wrap: wrap;
  }
  .draft-picker {
    flex-wrap: wrap;
  }
  .draft-picker select {
    max-width: 58vw;
  }
  .preview-head {
    margin-bottom: 12px;
  }
  .member {
    max-width: 420px;
    margin: auto;
  }
}
@media (max-width: 450px) {
  .top .divider,
  .top > .divider + a,
  .top > .divider + a + span,
  .top > .divider + a + span + span {
    display: none;
  }
  main {
    padding-top: 24px;
  }
  .bar {
    gap: 8px;
  }
  .pair {
    gap: 8px;
  }
  section,
  .preview {
    padding: 15px;
  }
  .draft-picker {
    display: grid;
  }
  .bar {
    align-items: flex-end;
  }
  .actions small {
    max-width: 160px;
  }
}

.overview-actions,
.event-nav,
.row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.overview-actions {
  justify-content: flex-end;
  margin-bottom: 16px;
}
.event-nav {
  justify-content: space-between;
  margin: 0 0 16px;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 650;
}
.action.primary {
  background: var(--btn);
  color: var(--on);
}
.example-link,
.event-nav > a:first-child {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#empty {
  padding: 30px;
}
#empty p {
  color: var(--muted);
  margin-bottom: 0;
}
.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.event-row:last-child {
  padding-bottom: 0;
}
.event-row h3 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.event-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.row-actions {
  flex-shrink: 0;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 16px 0 24px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.facts + h2 {
  margin-top: 22px;
}
#detail-reminders {
  padding-left: 18px;
}
#detail-reminders li {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .event-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .overview-actions {
    justify-content: flex-start;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .facts dd {
    margin-bottom: 8px;
  }
}

#save-feedback.error {
  color: var(--accent);
}
.heading > div,
.event-row > div:first-child {
  min-width: 0;
}
#page-title,
#detail-reminders li,
.notification span {
  overflow-wrap: anywhere;
}
.actions {
  flex-wrap: wrap;
}
