@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #75807a;
  --line: #dce2dd;
  --paper: #f3f5f2;
  --white: #fff;
  --accent: #b9f27c;
  --green: #34724c;
  --error: #a33f37;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(#cbd3cc 0.65px, transparent 0.65px);
  background-size: 17px 17px;
  color: var(--ink);
  font-family: 'Manrope', 'Trebuchet MS', sans-serif;
}

.shell {
  display: flex;
  width: min(100% - 48px, 1080px);
  min-height: 100vh;
  flex-direction: column;
  margin: 0 auto;
}

.topbar, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.wordmark-light { color: var(--muted); font-weight: 500; }

.connection, .destination-label, .eyebrow, .footer, .limit {
  font-family: 'DM Mono', 'Courier New', monospace;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #b5beb8; }
.connection-ready .connection-dot { background: #65a866; }

.composer {
  width: min(100%, 560px);
  margin: auto;
  padding: 76px 0 88px;
  animation: arrive 450ms ease both;
}

.eyebrow {
  margin: 0 0 21px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 600;
  line-height: 1.06;
}

.title-period { color: #77ad4b; }

.destination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 38px 0 32px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.destination-label { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.destination-value { overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }

form label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }

textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 16px;
  border: 1px solid #cbd3cd;
  border-radius: 2px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea::placeholder { color: #9aa39d; }
textarea:focus { border-color: #648c4e; box-shadow: 0 0 0 3px rgb(100 140 78 / 14%); }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.limit { color: var(--muted); font-size: 10px; }

button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 14px 0 18px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: background 140ms ease, transform 140ms ease;
}

button:hover { background: #294336; transform: translateY(-1px); }
button:focus-visible { outline: 3px solid #78a951; outline-offset: 3px; }
.button-arrow { color: var(--accent); font-size: 18px; line-height: 1; }

.notice { margin: -14px 0 24px; padding: 12px 14px; border-left: 3px solid; font-size: 12px; }
.notice-success { border-color: #65a866; background: #e8f1e5; color: #315b35; }
.notice-error { border-color: var(--error); background: #f6e9e6; color: #843b35; }

.footer {
  min-height: 58px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 520px) {
  .shell { width: min(100% - 32px, 1080px); }
  .topbar { min-height: 70px; }
  .composer { padding: 64px 0; }
  h1 { font-size: 44px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.glass-dialog {
  width: min(calc(100% - 36px), 410px);
  margin: auto;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 25px;
  background: linear-gradient(145deg, rgb(255 255 255 / 89%), rgb(243 249 247 / 77%));
  box-shadow: 0 28px 85px rgb(27 54 57 / 23%), inset 0 1px 0 #fff;
  color: var(--glass-ink);
  backdrop-filter: blur(34px) saturate(175%);
  -webkit-backdrop-filter: blur(34px) saturate(175%);
}
.glass-dialog[open] { animation: dialog-arrive 180ms ease both; }
.glass-dialog::backdrop, .loading-dialog::backdrop { background: rgb(25 45 48 / 27%); backdrop-filter: blur(9px); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dialog-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgb(255 255 255 / 92%); border-radius: 13px; background: rgb(255 255 255 / 72%); box-shadow: 0 5px 17px rgb(49 104 103 / 11%); color: var(--glass-accent); font-size: 17px; }
.dialog-close { display: grid; width: 36px; height: 36px; min-width: 36px; min-height: 36px; place-items: center; padding: 0; border: 1.5px solid rgb(255 255 255 / 84%); border-radius: 50%; background: rgb(255 255 255 / 52%); color: #5c7277; cursor: pointer; font: inherit; font-size: 22px; line-height: 1; aspect-ratio: 1; box-shadow: 0 2px 8px rgb(62 92 96 / 10%); }
.glass-dialog h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0; }
.dialog-error { margin: 13px 0 0; color: #9c4a43; font-size: 12px; }
.dialog-actions { display: grid; gap: 10px; margin-top: 24px; }
.dialog-actions .primary-button { width: 100%; gap: 12px; padding: 0 14px; }
.dialog-actions .primary-button:disabled { opacity: 0.48; }
.action-arrow { font-size: 18px; }
.secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgb(255 255 255 / 93%); border-radius: 14px; background: rgb(255 255 255 / 57%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%); color: #476164; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.secondary-button:hover { background: rgb(255 255 255 / 83%); }
.document-mark { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgb(68 123 121 / 24%); border-radius: 7px; color: var(--glass-accent); font-size: 15px; }
.loading-dialog { width: min(calc(100% - 32px), 360px); margin: auto; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--glass-ink); }
.loading-glass { display: flex; min-height: 196px; flex-direction: column; align-items: center; justify-content: center; padding: 30px 23px; border: 1px solid rgb(255 255 255 / 88%); border-radius: 25px; background: linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(240 248 246 / 76%)); box-shadow: 0 28px 85px rgb(27 54 57 / 22%), inset 0 1px 0 #fff; text-align: center; backdrop-filter: blur(32px) saturate(175%); -webkit-backdrop-filter: blur(32px) saturate(175%); }
.loading-spinner { width: 34px; height: 34px; margin-bottom: 20px; border: 3px solid rgb(62 130 126 / 18%); border-top-color: #3e827e; border-right-color: #3e827e; border-radius: 50%; animation: spin 820ms linear infinite; }
.loading-glass h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.loading-glass p { margin: 8px 0 0; color: var(--glass-muted); font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(5px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 620px) {
  .glass-dialog { padding: 21px; border-radius: 22px; }
  .glass-dialog h2 { font-size: 20px; }
  .dialog-actions .primary-button, .secondary-button { min-height: 46px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation-duration: 2.5s; }
}

.shell { display: block; width: min(100% - 48px, 1180px); }
.topbar { min-height: 76px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 36px 0 26px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 9px; letter-spacing: 0.11em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 38px; font-weight: 600; line-height: 1.15; }
h2 { margin-bottom: 0; font-size: 19px; font-weight: 700; }
h3 { margin: 0; font-size: 12px; font-weight: 700; }
.connection, .eyebrow, .footer, .state, .saved-heading span { font-family: 'DM Mono', 'Courier New', monospace; }
.date-control, .day-bar, .state, .section-heading, .editor-actions, .saved-heading, .saved-list a { display: flex; align-items: center; }
.date-control { gap: 9px; padding: 5px; border: 1px solid var(--line); background: rgb(255 255 255 / 68%); }
.date-control form { margin: 0; }
.date-control input { min-height: 34px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; }
.date-step { display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink); font-size: 18px; text-decoration: none; }
.date-step:hover { background: var(--paper); }
.day-bar { min-height: 54px; justify-content: space-between; padding: 0 14px; border: 1px solid var(--line); border-bottom: 0; background: rgb(255 255 255 / 58%); }
.day-name { margin-right: 12px; font-size: 13px; font-weight: 800; text-transform: capitalize; }
.day-date { color: var(--muted); font-family: 'DM Mono', 'Courier New', monospace; font-size: 11px; }
.state { gap: 7px; color: var(--muted); font-size: 9px; }
.state > span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #b5beb8; }
.state-edited > span { background: #65a866; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.8fr); border: 1px solid var(--line); background: rgb(255 255 255 / 78%); }
.editor, .preview { min-width: 0; padding: 24px; }
.editor { border-right: 1px solid var(--line); }
.section-heading { min-height: 40px; justify-content: space-between; margin-bottom: 21px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.reset-form { margin: 0; }
.text-link { padding: 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.segment-headings, .segment-row { display: grid; grid-template-columns: minmax(82px, 0.8fr) minmax(110px, 1.2fr) minmax(88px, 0.8fr) minmax(88px, 0.8fr) 30px; align-items: center; gap: 10px; }
.segment-headings { padding: 0 9px 8px; color: var(--muted); font-family: 'DM Mono', 'Courier New', monospace; font-size: 10px; }
.segments { display: grid; gap: 8px; }
.segment-row { min-height: 58px; padding: 7px 10px; border: 1px solid #e3e8e3; background: var(--white); }
.segment-row select, .segment-row input { width: 100%; min-width: 0; height: 38px; border: 0; border-radius: 1px; background: #f5f7f4; color: var(--ink); font: inherit; font-size: 12px; }
.segment-row select { padding: 0 6px; font-weight: 700; }
.segment-row input { padding: 0 8px; }
.segment-row input[type="time"] { font-family: 'DM Mono', 'Courier New', monospace; font-size: 11px; }
.segment-row input:focus, .segment-row select:focus { outline: 2px solid #83a86e; outline-offset: 1px; }
.remove-segment { width: 28px; height: 30px; padding: 0; border: 0; background: transparent; color: #8c9690; cursor: pointer; font: inherit; font-size: 20px; }
.remove-segment:hover { color: var(--error); }
.editor-actions { justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.add-segment, .button, .copy-button { min-height: 40px; border: 1px solid var(--line); cursor: pointer; font: inherit; }
.add-segment { margin-right: auto; padding: 0 10px; border-color: transparent; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; }
.add-segment span { margin-right: 4px; font-size: 16px; vertical-align: -1px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 12px; border-radius: 2px; font-size: 11px; font-weight: 700; transition: background 140ms ease, transform 140ms ease; }
.button-secondary { background: var(--white); color: var(--ink); }
.button-primary { border-color: var(--ink); background: var(--ink); color: var(--white); }
.button-primary:hover:not(:disabled) { background: #294336; transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.5; }
.button-arrow { color: var(--accent); font-size: 17px; }
button:focus-visible, a:focus-visible { outline: 3px solid #78a951; outline-offset: 2px; }
.preview { display: flex; flex-direction: column; }
.preview-heading { margin-bottom: 15px; }
.copy-button { width: 36px; min-height: 36px; border-radius: 2px; background: transparent; color: var(--muted); font-size: 17px; }
.copy-button:hover { background: var(--paper); color: var(--ink); }
#announcement { width: 100%; min-height: 225px; flex: 0 0 auto; resize: vertical; padding: 15px; border: 1px solid var(--line); background: #fafbf9; color: var(--ink); font-family: 'DM Mono', 'Courier New', monospace; font-size: 11px; line-height: 1.75; }
.preview-note { margin: 9px 0 21px; color: var(--muted); font-size: 10px; }
.saved-list { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.saved-heading { justify-content: space-between; }
.saved-heading span { display: grid; min-width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.saved-list ul { margin: 11px 0 0; padding: 0; list-style: none; }
.saved-list li + li { border-top: 1px solid #edf0ed; }
.saved-list a { min-height: 34px; justify-content: space-between; color: var(--ink); font-family: 'DM Mono', 'Courier New', monospace; font-size: 10px; text-decoration: none; }
.saved-list a:hover { color: var(--green); }
.empty-state { margin: 11px 0 0; color: var(--muted); font-size: 10px; }
.notice { margin: 0 0 14px; padding: 11px 14px; border-left: 3px solid; font-size: 12px; }
.notice-success { border-color: #65a866; background: #e8f1e5; color: #315b35; }
.notice-error { border-color: var(--error); background: #f6e9e6; color: #843b35; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.footer { min-height: 54px; margin-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: 0.08em; }

@media (max-width: 860px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .editor { border-right: 0; border-bottom: 1px solid var(--line); }
  .preview { min-height: 410px; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 66px; }
  .wordmark { font-size: 10px; }
  .connection { font-size: 9px; }
  .page-heading { align-items: flex-start; flex-direction: column; padding: 26px 0 18px; }
  h1 { font-size: 30px; }
  .date-control { align-self: stretch; justify-content: space-between; }
  .day-bar { padding: 0 10px; }
  .editor, .preview { padding: 17px 12px; }
  .segment-headings { display: none; }
  .segments { gap: 9px; }
  .segment-row { grid-template-columns: minmax(70px, 0.75fr) minmax(90px, 1.1fr) 28px; gap: 6px; padding: 8px; }
  .segment-row select { grid-column: 1; }
  .segment-row .segment-label { grid-column: 2; }
  .segment-row input[name="start"] { grid-column: 1; }
  .segment-row input[name="end"] { grid-column: 2; }
  .segment-row .remove-segment { grid-column: 3; grid-row: 1 / span 2; }
  .editor-actions { justify-content: flex-end; }
  .add-segment { width: 100%; margin-right: 0; text-align: left; }
  .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

:root {
  --glass-ink: #203033;
  --glass-muted: #718184;
  --glass-line: rgb(255 255 255 / 72%);
  --glass-accent: #367c78;
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(138deg, #e7eff0 0%, #f4f6f1 51%, #dce9e9 100%);
  color: var(--glass-ink);
  font-family: 'Manrope', 'Trebuchet MS', sans-serif;
}
.app-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: 26px 22px 40px;
}
.brand-bar {
  display: flex;
  width: min(100%, 940px);
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--glass-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 9px;
  background: rgb(255 255 255 / 48%);
  color: var(--glass-accent);
  font-size: 13px;
}
.date-form { margin: 0; }
.date-form input {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 12px;
  outline: none;
  background: rgb(255 255 255 / 47%);
  color: var(--glass-ink);
  font: inherit;
  font-size: 12px;
  backdrop-filter: blur(14px);
}
.date-form input:focus-visible { outline: 2px solid #67a8a0; outline-offset: 2px; }
.glass-panel {
  position: relative;
  width: min(100%, 620px);
  margin: auto;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgb(255 255 255 / 75%), rgb(255 255 255 / 43%));
  box-shadow: 0 26px 70px rgb(45 72 76 / 14%), inset 0 1px 0 rgb(255 255 255 / 90%);
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  animation: glass-arrive 360ms ease both;
}
.glass-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 95%), transparent);
  content: '';
}
.welcome-panel {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
}
.welcome-symbol {
  display: grid;
  width: 50px;
  height: 50px;
  align-content: center;
  gap: 5px;
  margin-bottom: 30px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 83%);
  border-radius: 16px;
  background: linear-gradient(145deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 34%));
  box-shadow: 0 8px 22px rgb(59 101 104 / 11%), inset 0 1px 0 #fff;
}
.welcome-symbol span { height: 3px; border-radius: 3px; background: #6d9c98; }
.welcome-symbol span:nth-child(2) { width: 72%; }
.welcome-symbol span:nth-child(3) { width: 48%; }
.eyebrow { margin: 0 0 12px; color: var(--glass-accent); font-size: 9px; letter-spacing: 0.13em; }
h1 { margin: 0; color: var(--glass-ink); font-size: 34px; font-weight: 600; letter-spacing: 0; line-height: 1.18; }
.welcome-panel h1 { margin-bottom: 30px; }
.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 15px;
  background: linear-gradient(145deg, #3e827e, #2f706e);
  box-shadow: 0 9px 22px rgb(53 119 115 / 24%), inset 0 1px 0 rgb(255 255 255 / 30%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 25px rgb(53 119 115 / 30%), inset 0 1px 0 rgb(255 255 255 / 30%); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.56; }
.primary-button:focus-visible { outline: 3px solid rgb(58 126 121 / 42%); outline-offset: 3px; }
.date-picker-native {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.date-picker-native.date-picker-visible {
  position: static;
  width: auto;
  height: 40px;
  margin-top: 14px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 12px;
  background: rgb(255 255 255 / 64%);
  font: inherit;
  opacity: 1;
  pointer-events: auto;
}
.editor-panel { padding: 30px 34px 32px; }
.editor-title { margin-bottom: 22px; }
.editor-title .eyebrow { margin-bottom: 5px; }
.editor-title h1 { font-size: 28px; }
.duration-control {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 15px;
  background: rgb(255 255 255 / 44%);
  color: #4f6265;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}
.duration-control select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 92%);
  border-radius: 10px;
  outline: none;
  appearance: none;
  background: rgb(255 255 255 / 74%);
  color: var(--glass-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}
.duration-control select:focus-visible { outline: 2px solid #67a8a0; outline-offset: 1px; }
.class-hour-toggle {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #536669;
  font-size: 12px;
  cursor: pointer;
}
.class-hour-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch {
  position: relative;
  width: 36px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 20px;
  background: rgb(117 137 139 / 28%);
  box-shadow: inset 0 1px 2px rgb(29 55 58 / 10%);
  transition: background 150ms ease;
}
.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgb(33 54 57 / 25%);
  content: '';
  transition: transform 150ms ease;
}
.class-hour-toggle input:checked + .switch { background: #5f9993; }
.class-hour-toggle input:checked + .switch::after { transform: translateX(14px); }
.class-hour-toggle input:focus-visible + .switch { outline: 2px solid #67a8a0; outline-offset: 3px; }
.schedule-list { display: grid; }
.schedule-row {
  display: grid;
  min-height: 55px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgb(82 113 115 / 11%);
}
.row-title { display: flex; min-width: 0; align-items: baseline; gap: 8px; color: #334548; font-size: 13px; font-weight: 600; }
.schedule-row[data-kind="break"] .row-title { color: #758689; font-size: 11px; font-weight: 500; }
.schedule-row[data-kind="event"] .row-title { color: #3b7774; }
.break-duration-control { display: inline-flex; align-items: center; gap: 4px; color: #8c999b; font-family: 'DM Mono', 'Courier New', monospace; font-size: 9px; }
.break-duration-input { width: 34px; height: 25px; padding: 0 3px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 7px; background: rgb(255 255 255 / 53%); color: #587579; font: inherit; text-align: center; }
.break-duration-input:focus { outline: 2px solid rgb(67 140 133 / 45%); }
.row-times { display: flex; align-items: center; gap: 7px; color: #9aa8a9; }
.row-times input {
  width: 88px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  outline: none;
  background: rgb(255 255 255 / 54%);
  color: #34474a;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  text-align: center;
  transition: border-color 130ms ease, background 130ms ease;
}
.row-times input:hover { background: rgb(255 255 255 / 78%); }
.row-times input:focus { border-color: rgb(67 140 133 / 53%); background: white; }
.comment-section { margin-top: 16px; }
.comment-toggle { display: inline-flex; min-height: 35px; align-items: center; gap: 9px; color: #607275; font-size: 11px; cursor: pointer; }
.comment-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.comment-toggle .switch { width: 32px; height: 19px; }
.comment-toggle .switch::after { width: 13px; height: 13px; }
.comment-toggle input:checked + .switch::after { transform: translateX(12px); }
.comment-toggle input:focus-visible + .switch { outline: 2px solid #67a8a0; outline-offset: 3px; }
.comment-editor { margin-top: 7px; }
.comment-editor[hidden] { display: none; }
.comment-editor textarea { display: block; width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 12px; outline: none; background: rgb(255 255 255 / 55%); color: var(--glass-ink); font: inherit; font-size: 12px; line-height: 1.5; }
.comment-editor textarea:focus { border-color: rgb(67 140 133 / 53%); background: rgb(255 255 255 / 78%); }
.send-button { width: 100%; margin-top: 24px; }
.notice {
  width: min(100%, 620px);
  margin: 18px auto 0;
  padding: 12px 15px;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 14px;
  background: rgb(255 255 255 / 63%);
  box-shadow: 0 9px 30px rgb(45 72 76 / 8%);
  backdrop-filter: blur(18px);
  font-size: 12px;
}
.notice-success { color: #2e7161; }
.notice-error { color: #9c4a43; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
@keyframes glass-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 620px) {
  .app-shell { padding: 14px 14px 24px; }
  .brand-bar { min-height: 38px; }
  .glass-panel { border-radius: 21px; }
  .welcome-panel { min-height: 350px; padding: 36px 20px; }
  .editor-panel { padding: 23px 16px 20px; }
  h1 { font-size: 30px; }
  .editor-title h1 { font-size: 25px; }
  .duration-control { gap: 6px; padding: 7px 8px; font-size: 10px; }
  .duration-control select { min-height: 32px; padding: 0 6px; font-size: 12px; }
  .schedule-row { min-height: 53px; gap: 6px; }
  .row-title { gap: 5px; font-size: 11px; }
  .schedule-row[data-kind="break"] .row-title { font-size: 10px; }
  .row-times { gap: 3px; }
  .row-times input { width: 76px; height: 33px; padding: 0 3px; font-size: 10px; }
  .break-duration-control { font-size: 9px; }
}

@media (max-width: 360px) {
  .app-shell { padding-right: 10px; padding-left: 10px; }
  .editor-panel { padding-right: 12px; padding-left: 12px; }
  .row-times input { width: 69px; }
}

@media (max-width: 620px) {
  .schedule-row { min-height: 72px; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 7px 0; }
  .row-title { min-height: 22px; font-size: 12px; }
  .schedule-row[data-kind="break"] .row-title { font-size: 11px; }
  .row-times { justify-content: flex-end; gap: 9px; }
  .row-times input { width: 112px; height: 36px; font-size: 12px; }
}

@media (max-width: 360px) {
  .row-times input { width: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}