:root {
  color-scheme: light;
  --ink: #17283f;
  --muted: #405973;
  --brand: #511a7c;
  --blue: #19497f;
  --page: #f2f6fb;
  --wash: #e8f1fb;
  --border: #cfdced;
  --input-border: #bacce2;
  --danger: #a3212d;
  --rest-ink: #135d4b;
  --rest-edge: #92c6b5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; line-height: 1.55; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.28; }
h2 { font-size: 21px; margin-bottom: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .formats span, .preset-menu > summary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 15px; min-height: 38px; line-height: 1.4; font-weight: 600;
}
button, .preset-menu > summary { cursor: pointer; }
button:not(:disabled):hover, .formats label:hover span, .preset-menu > summary:hover { background: #f0f5fc; border-color: #aabfd9; }
button:disabled { cursor: default; background: #f0f4f8; color: #5d7188; }
:where(a, button, input, select, textarea, summary):focus-visible, .formats input:focus-visible + span {
  outline: 2px solid #326eb6; outline-offset: 2px;
}
button.danger { color: var(--danger); }
button.tinted, .formats input:checked + span { background: var(--wash); color: #194d7e; border-color: #9dc1e8; }
button.primary:not(:disabled) { background: #174780; color: #fff; border-color: #174780; }
button.primary:not(:disabled):hover { background: #113a6a; border-color: #113a6a; }
input:not([type="radio"]), select, textarea {
  display: block; width: 100%; min-width: 0; border-radius: 8px; background: white;
  border: 1px solid var(--input-border); padding: 7px 10px; min-height: 38px;
}
input[type="date"], input[type="time"] { appearance: auto; }
select { padding-inline: 7px; }
textarea { resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }

.shell { width: min(100% - 48px, 1176px); margin-inline: auto; }
.editor-page .shell { width: min(100% - 48px, 1240px); }
.site-header, .site-footer { background: #fff; }
.site-header { border-bottom: 1px solid var(--border); }
.editor-page .site-header { border-top: 4px solid var(--brand); }
.header-content { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.header-content > a:not(.brand) {
  font-size: 13px; min-height: 44px; display: flex; align-items: center; gap: 4px; text-decoration: none;
}
.editor-page .header-content > a:not(.brand) { color: var(--brand); font-weight: 650; }
.header-n5 { object-fit: contain; margin-right: 10px; }
.brand { color: var(--brand); display: inline-flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { width: 30px; height: 30px; object-fit: contain; flex: none; }

.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; gap: 20px; padding: 20px 2px 14px; }
.hero h1 { font-size: clamp(31px, 3.1vw, 40px); letter-spacing: .01em; margin-bottom: 2px; }
.hero-subtitle { font-size: 16px; color: var(--muted); margin-bottom: 0; }
.privacy-note { display: flex; gap: 8px; align-items: center; max-width: 368px; margin: 0; color: var(--muted); font-size: 13px; }
.privacy-lock {
  display: block; position: relative; flex: none; width: 13px; height: 11px; margin-top: 4px;
  border: 1.5px solid var(--blue); border-radius: 1px;
}
.privacy-lock::before { content: ""; position: absolute; width: 7px; height: 6px; border: 1.5px solid var(--blue); border-bottom: 0; border-radius: 5px 5px 0 0; left: 1.5px; top: -6px; }
.privacy-lock::after { content: ""; position: absolute; left: 4.5px; top: 3px; width: 2px; height: 2px; background: var(--blue); border-radius: 50%; }

.status-sentinel { block-size: 1px; margin-block-end: -1px; pointer-events: none; }
.status {
  position: sticky; inset-block-start: 0; z-index: 10;
  display: grid; grid-template-columns: minmax(124px, .85fr) minmax(125px, .95fr) minmax(132px, 1fr) minmax(210px, 2.5fr);
  align-items: center; gap: 18px; min-block-size: 111px; margin-block-end: 21px; padding: 11px 24px;
  border-radius: 15px; background: linear-gradient(108deg, #132647, #213f6d); color: #fff;
  box-shadow: 0 4px 0 #d7e3f3; font-variant-numeric: tabular-nums;
}
.status-end, .status-total { min-width: 0; overflow-wrap: anywhere; }
.status-end > span, .status-total-main > span, .target-clock { display: block; color: #e0edff; font-size: 13px; font-weight: 650; }
.status-end strong { display: block; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; margin-top: 3px; }
.status-total { border-inline: 1px solid #547096; padding-inline: clamp(10px, 1.8vw, 25px) 12px; }
.status-total-main strong { display: block; font-size: clamp(17px, 2.1vw, 24px); line-height: 1.2; margin-top: 3px; }
.status-rest { display: block; color: #dbe9fa; font-size: 12px; margin-top: 3px; }
.target-status { min-width: 0; overflow-wrap: anywhere; }
.target-pill {
  display: inline-flex; max-width: 100%; min-width: min(132px, 100%); min-height: 31px;
  align-items: center; justify-content: center; gap: 8px; padding: 3px 11px; margin-top: 7px;
  border-radius: 999px; background: #e4eaf3; color: #253e5f; font-size: 13px; font-weight: 700;
}
.target-status[data-state="exact"] .target-pill { background: #d9f2e8; color: #0d5c49; }
.target-status[data-state="exact"] .target-pill::before {
  content: ""; width: .54em; height: .3em; display: inline-block; flex: none; margin-block-start: -.16em;
  border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.target-status[data-state="remaining"] .target-pill { background: #e0edff; color: #123e77; }
.target-status[data-state="over"] .target-pill { background: #ffe7e8; color: #9b202b; }
.status-timeline { grid-column: 4; min-width: 0; align-self: center; }
.timeline-labels {
  display: flex; justify-content: space-between; gap: 10px; min-width: 0;
  color: #e5efff; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.timeline-track { display: block; width: 100%; height: 17px; margin-top: 5px; overflow: hidden; }
.timeline-base { fill: #3e5a82; }
.timeline-item { fill: #99bbf2; }
.timeline-break { fill: #8ed2bc; }
.timeline-marker { fill: #dcf3e8; }
.timeline-rest { display: block; font-size: 11px; color: #c5f2e3; text-align: center; line-height: 1.4; }
.status-spacer { display: none; }

.notice { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.inline-notice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-notice span { margin-right: auto; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 13px; margin-bottom: 16px; padding: 16px 20px; }

.basics { position: relative; padding-block: 0 24px; border-bottom: 1px solid var(--border); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-inline-end: 157px; margin-bottom: 8px; }
.marked-heading { margin: 0; display: flex; align-items: baseline; gap: 14px; font-size: 24px; }
.marked-heading::before { content: ""; display: block; flex: none; width: 4px; height: .98em; border-radius: 5px; background: #316bb8; align-self: center; }
.preset-menu { position: relative; z-index: 4; }
.preset-menu > summary { min-height: 43px; white-space: nowrap; gap: 8px; padding-inline: 20px; }
.preset-menu > summary::-webkit-details-marker { display: none; }
.preset-menu > summary::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.preset-menu[open] > summary::after { transform: rotate(180deg) translateY(2px); }
.preset-options {
  display: grid; gap: 4px; position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 4px);
  min-width: 192px; padding: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 9px; box-shadow: 0 6px 18px #182b4629;
}
.preset-options button { justify-content: flex-start; white-space: nowrap; padding-inline: 10px; }
#clear-all { position: absolute; top: 0; right: 0; min-height: 43px; width: 146px; }
.meta-fields { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); gap: 10px 11px; }
.meta-field { min-width: 0; }
.meta-field label, .row-field .field-label {
  display: block; color: var(--muted); line-height: 1.4; margin-bottom: 4px;
  font-size: 13px; font-weight: 550; overflow-wrap: anywhere;
}
.meta-field input, .meta-field textarea { min-height: 44px; }
.note-field { grid-column: 1 / -1; }
.field-error { color: var(--danger); font-size: 12px; font-weight: 650; display: block; margin: 3px 0 0; overflow-wrap: anywhere; }

.editor { margin: 21px 0; }
.editor-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: end; margin-bottom: 13px; }
.editor-heading h2 { grid-column: 1 / -1; }
.editor-description { margin: 0 0 0 18px; color: var(--muted); font-size: 13px; }
#row-count, #row-count-bottom { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
#row-count-bottom { display: none; }
.schedule-grid {
  display: grid;
  grid-template-columns: var(--row-grid, 118px minmax(104px, 1.24fr) minmax(105px, 1.78fr) minmax(66px, .57fr) minmax(68px, .64fr) minmax(69px, .82fr) minmax(108px, 1.55fr) 139px);
  align-items: start; gap: 9px 11px; padding: 6px 11px;
}
.table-head { border-radius: 9px 9px 5px 5px; background: #dce7f5; font-size: 13px; padding-block: 10px; color: #304969; }
.table-head span:nth-child(2) { padding-inline-start: 22px; }
.schedule-row {
  position: relative; border-bottom: 1px solid #d8e4f1; background: #fff;
  scroll-margin-block: 132px 12px;
}
.schedule-row[data-break="true"] { background: #ebf6f2; }
.schedule-row[data-break="true"] :is(input, textarea):not([aria-invalid="true"]) { background: #f8fcfa; }
.schedule-row[data-break="true"] select { background: #d9f2e8; border-color: var(--rest-edge); color: var(--rest-ink); font-weight: 650; }
.schedule-row.dragging { opacity: .52; }
.schedule-row.drop-before::before, .schedule-row.drop-after::after {
  position: absolute; content: ""; inset-inline: 0; height: 3px; background: #346fba; border-radius: 2px; z-index: 1;
}
.schedule-row.drop-before::before { top: -1px; }
.schedule-row.drop-after::after { bottom: -1px; }
.row-time {
  position: relative; align-self: stretch; display: flex; align-items: baseline; flex-wrap: wrap; align-content: center;
  min-inline-size: 0; margin-block: -6px; padding: 6px 4px 6px 26px; color: #174780; background: #edf3fc;
  line-height: 1.18; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.row-time::before { content: ""; position: absolute; inset-block: 0; left: 11px; border-left: 1px solid #9cbce4; }
.row-time::after {
  content: ""; position: absolute; top: calc(50% - 3px); left: 8px; width: 7px; height: 7px;
  border: 2px solid #9cbce4; border-radius: 50%; background: #fff; box-sizing: border-box;
}
.row-start { font-size: 20px; }
.row-end { font-size: 13px; color: var(--muted); }
.schedule-row[data-break="true"] .row-time { background: #dcefe8; color: var(--rest-ink); }
.schedule-row[data-break="true"] .row-time::before { border-color: #72a999; }
.schedule-row[data-break="true"] .row-time::after { border-color: #579888; }
.schedule-row[data-break="true"] .row-end { color: var(--rest-ink); }
.row-order, .arrows, .row-actions { display: flex; gap: 5px; align-items: center; }
.row-order button, .row-actions button { white-space: nowrap; min-height: 42px; }
.row-order button { min-width: 34px; width: 34px; padding-inline: 0; }
.row-order .drag-handle { background: #ebf1f9; color: #48627f; cursor: grab; touch-action: none; user-select: none; }
.row-order .drag-handle:active { cursor: grabbing; }
.grip { display: block; width: 9px; height: 14px; background: radial-gradient(circle, currentColor 1.25px, transparent 1.65px) 0 0 / 4.5px 4.7px; }
.row-actions button { flex: 1 1 0; font-size: 12px; padding-inline: 6px; }
.row-field, .row-field label { display: block; min-width: 0; }
.row-field :is(input, select, textarea) { min-height: 42px; }
.unit-field { display: block; position: relative; }
.unit-field input { appearance: textfield; padding-right: 24px; }
.unit-field input::-webkit-inner-spin-button, .unit-field input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.unit-field > span { position: absolute; right: 7px; top: 11px; color: var(--muted); font-size: 12px; pointer-events: none; }
.editor-actions { display: flex; align-items: center; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
#add-row { min-width: 143px; min-height: 44px; }

.output-panel {
  display: grid; grid-template-columns: 95px minmax(0, 1fr); align-items: center; gap: 10px 12px;
  background: #e0eaf8; border: 1px solid #bed2ee; border-radius: 13px; padding: 24px; margin-bottom: 22px;
}
.output-panel h2 { margin: 0; }
.output-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.formats { display: flex; gap: 6px; border: 0; padding: 0; margin: 0 auto 0 0; min-width: 0; }
.formats label { position: relative; cursor: pointer; flex: 1 1 0; }
.formats span, .output-actions > button { min-height: 46px; padding-inline: 18px; }
.output-actions > button { min-width: 165px; }
#download-pdf { min-width: 230px; gap: 9px; }
.download-icon { position: relative; flex: none; width: 15px; height: 6px; margin-block-start: 9px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 1px 1px; }
.download-icon::before { content: ""; position: absolute; top: -9px; left: 5.5px; height: 9px; width: 1.5px; background: currentColor; }
.download-icon::after { content: ""; position: absolute; top: -6px; left: 3.5px; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.formats input, .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%);
}
.output-message, #manual-copy { grid-column: 1 / -1; margin: 0; }

.guide { border-top: 1px solid var(--border); padding-top: 17px; }
.guide h2, .faq h2 { margin-bottom: 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.faq { margin: 20px 0 13px; }
.faq details { border-block-end: 1px solid var(--border); }
.faq details:first-of-type { border-block-start: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; list-style: none; font-weight: 650; padding: 3px 3px 3px 0; min-height: 35px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 18px; font-weight: 500; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 0 12px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); }
.editor-page .site-footer { border-color: #dac5ea; background: #f3edf8; }
.footer-content { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 6px 24px; padding: 14px 0 10px; }
.footer-content .notice { grid-column: 1 / -1; }
.footer-banner { max-width: 300px; }
.editor-page .footer-banner { max-width: 248px; }
.footer-banner img { display: block; width: 100%; height: auto; }
.footer-content nav { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 16px; }
.footer-content nav a, .link-button { display: inline-flex; min-height: 44px; align-items: center; color: var(--brand); font-size: 13px; gap: 3px; }
button.link-button { border: 0; background: transparent; padding: 0; text-decoration: underline; text-underline-offset: .19em; font-weight: 400; }
.footer-content small { color: var(--muted); }
.editor-page .footer-content small { grid-column: 2; justify-self: end; }
.legal-content { padding-block: 18px; }
.legal-content [id] { scroll-margin-top: 15px; }
.legal-content p:last-child { margin-bottom: 0; }
dialog { color: var(--ink); width: min(100% - 24px, 490px); max-height: 88vh; overflow: auto; border-radius: 12px; border: 1px solid var(--input-border); padding: 20px; box-shadow: 0 10px 35px #17283f33; }
dialog::backdrop { background: #152a45a3; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dialog-actions button { min-height: 44px; }

@media (min-width: 768px) {
  .row-field .field-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%);
  }
  .editor-page :where(button, input, select, textarea, summary, a) { scroll-margin-top: 122px; }
}

@media (min-width: 768px) and (max-width: 1050px) {
  .editor-page .shell, .shell { width: calc(100% - 30px); }
  .schedule-grid {
    --row-grid: 83px minmax(85px, 1.1fr) minmax(72px, 1.7fr) 63px 61px minmax(54px, .8fr) minmax(66px, 1.3fr) 86px;
    gap: 5px; padding-inline: 6px;
  }
  .row-order, .arrows { gap: 2px; }
  .row-order button { width: 25px; min-width: 25px; }
  .row-actions { gap: 3px; }
  .row-actions button { padding-inline: 4px; }
  .row-time { padding-inline-start: 14px; }
  .row-time::before { left: 5px; }
  .row-time::after { left: 2px; }
  .row-start { font-size: 16px; }
  .row-end { font-size: 12px; }
  .formats span, .output-actions > button { padding-inline: 13px; }
  #download-pdf { min-width: 180px; }
}

@media (max-width: 767px) {
  .shell { width: calc(100% - 26px); }
  .editor-page .shell { width: calc(100% - 32px); }
  .header-content { min-height: 53px; }
  .header-content > a:not(.brand) { font-size: 12px; flex: none; }
  .brand { gap: 7px; }
  .header-n5 { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 1px 12px; }
  .hero h1 { font-size: clamp(26px, 8vw, 33px); margin-bottom: 5px; }
  .hero-subtitle { font-size: 13px; }
  .privacy-note { font-size: 11px; line-height: 1.55; min-width: 0; }
  .privacy-lock { margin-inline-end: 1px; }
  h2 { font-size: 20px; margin-bottom: 10px; }

  .status {
    --status-room: 90px;
    --status-compact: 63px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "end total" "target target";
    gap: 7px 12px; min-block-size: var(--status-room); padding: 10px 13px;
    margin-bottom: 14px; border-radius: 13px;
  }
  .status[data-target="true"] { --status-room: 129px; }
  .status-end { grid-area: end; }
  .status-end > span, .status-total-main > span, .target-clock { font-size: 12px; }
  .status-end strong { font-size: clamp(30px, 11vw, 44px); }
  .status-total { grid-area: total; border-inline-end: 0; padding-inline: 12px 0; align-self: stretch; padding-block-start: 2px; }
  .status-total-main > span, .status-total-main strong { display: inline; font-size: clamp(12px, 3.6vw, 16px); }
  .status-rest { font-size: 11px; }
  .target-status { grid-area: target; display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; padding-top: 7px; border-top: 1px solid #547096; }
  .target-pill { margin-top: 0; min-height: 27px; min-width: min(112px, 55%); padding-inline: 7px; font-size: 12px; }
  .status-timeline { display: none; }
  .status[data-pinned="true"] {
    grid-template-columns: minmax(70px, .88fr) minmax(77px, 1.16fr) minmax(76px, .96fr);
    grid-template-areas: "end total target"; gap: 8px;
    min-block-size: var(--status-compact); margin-inline: -16px; padding: 6px 16px; border-radius: 0;
  }
  .status[data-pinned="true"][data-target="false"] { grid-template-columns: minmax(70px, .88fr) minmax(77px, 2.12fr); grid-template-areas: "end total"; }
  .status[data-pinned="true"] + .status-spacer { display: block; block-size: 27px; }
  .status[data-pinned="true"][data-target="true"] + .status-spacer { block-size: 66px; }
  .status[data-pinned="true"] .status-end > span, .status[data-pinned="true"] .target-clock { font-size: 11px; }
  .status[data-pinned="true"] .status-end strong { font-size: clamp(18px, 7vw, 28px); }
  .status[data-pinned="true"] .status-total { padding-inline-start: 8px; }
  .status[data-pinned="true"] :is(.status-total-main > span, .status-total-main strong) { font-size: 12px; }
  .status[data-pinned="true"] .status-rest { margin-top: 2px; }
  .status[data-pinned="true"] .target-status {
    display: grid; gap: 2px; align-self: center; padding: 0; border: 0; text-align: right;
  }
  .status[data-pinned="true"] .target-pill {
    min-height: 23px; min-width: 0; padding: 2px 4px; border-radius: 7px; font-size: 11px; line-height: 1.25;
  }
  .editor-page :where(button, input, select, textarea, summary, a) { scroll-margin-top: 77px; }
  .panel { padding: 12px; }
  button { min-height: 44px; padding-inline: 8px; }
  .basics { padding-bottom: 15px; }
  .section-heading { padding-inline-end: 0; margin-bottom: 10px; }
  .marked-heading { gap: 11px; font-size: 21px; }
  .preset-menu > summary { min-height: 44px; font-size: 13px; padding-inline: 9px; }
  #clear-all { position: static; align-self: end; min-height: 44px; width: auto; white-space: nowrap; font-size: 13px; }
  .meta-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 7px; }
  .title-field { grid-column: 1 / -1; }
  input:not([type="radio"]), select, textarea { min-height: 44px; padding-inline: 8px; font-size: 16px; }
  .meta-field label, .row-field .field-label { font-size: 12px; }
  .editor { margin: 14px 0 16px; }
  .editor-heading { align-items: center; gap: 6px; margin-bottom: 10px; }
  .editor-heading h2 { grid-column: 1; }
  .editor-description { grid-area: 2 / 1 / 3 / -1; margin: 0 0 0 2px; font-size: 12px; }
  #row-count, #row-count-bottom { font-size: 12px; }
  #row-count { grid-area: 1 / 2; }
  #row-count-bottom { display: inline; margin-inline-start: auto; }
  .table-head { display: none; }
  .schedule-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px 0; padding: 0 8px 9px; margin-bottom: 9px; scroll-margin-block: 77px 12px;
    border: 1px solid var(--border); border-radius: 12px; background: #fff;
  }
  .schedule-row[data-break="true"] { border-color: #a4cfbf; background: #f5fbf8; }
  .row-time {
    grid-area: 1 / 1 / 2 / -1; min-block-size: 54px; padding: 6px calc(50% + 2px) 6px 12px;
    margin: 0 -8px; border-radius: 11px 11px 0 0; align-content: center;
    background: #e4edfa;
  }
  .row-time::before { inset-block: 9px; left: 0; border-left: 3px solid #83afe1; }
  .row-time::after { display: none; }
  .row-start, .row-end { font-size: clamp(14px, 4.45vw, 21px); color: inherit; }
  .row-order { grid-area: 1 / 7 / 2 / -1; z-index: 1; align-self: center; justify-content: end; }
  .row-order, .arrows { gap: 3px; }
  .row-order button { width: 44px; min-width: 44px; min-height: 44px; }
  .row-actions { grid-area: 3 / 9 / 4 / -1; align-self: start; margin-top: calc(1.4 * 12px + 4px); gap: 3px; }
  .row-actions button { width: 100%; min-width: 0; min-height: 44px; font-size: 12px; padding-inline: 1px; }
  .cell-name { grid-area: 2 / 1 / 3 / 7; padding-inline-end: 5px; }
  .cell-duration { grid-area: 2 / 7 / 3 / 10; padding-inline-end: 5px; }
  .cell-type { grid-area: 2 / 10 / 3 / -1; }
  .cell-assignee { grid-area: 3 / 1 / 4 / 4; padding-inline-end: 5px; }
  .cell-memo { grid-area: 3 / 4 / 4 / 9; padding-inline-end: 5px; }
  .cell-duration .field-label { letter-spacing: -.025em; }
  .cell-memo textarea { font-size: 16px; }
  .row-field :is(input, select, textarea) { min-height: 44px; }
  .schedule-row[data-break="true"] :is(input, textarea):not([aria-invalid="true"]) { border-color: #aad1c4; background: #fff; }
  .unit-field input { padding-right: 20px; }
  .unit-field > span { right: 5px; top: 12px; }
  .editor-actions { margin-top: 10px; }
  #add-row { min-width: 135px; }

  .output-panel { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; margin-bottom: 14px; }
  .output-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .formats { width: 100%; margin: 0; gap: 8px; }
  .formats span, .output-actions > button, #download-pdf {
    width: 100%; min-width: 0; min-height: 44px; padding-inline: 5px; white-space: nowrap;
  }
  #copy-text { width: auto; min-width: min(143px, 100%); justify-self: start; }
  .guide { border: 0; padding-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps p { font-size: 12px; }
  .faq { margin-block: 16px 2px; }
  .faq summary { font-size: 13px; min-height: 44px; }
  .footer-content { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 13px; }
  .editor-page .footer-content { justify-items: start; gap: 7px; }
  .footer-content nav { justify-content: center; gap: 0 11px; }
  .editor-page .footer-content nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 0 15px; }
  .footer-content nav a, .link-button { font-size: 12px; }
  .editor-page .footer-content small { grid-column: 1; justify-self: start; }
}

@media (max-width: 350px) {
  .editor-page .shell { width: calc(100% - 26px); }
  .status[data-pinned="true"] { margin-inline: -13px; padding-inline: 13px; }
  .row-order, .arrows { gap: 2px; }
  .row-field .field-label { font-size: 11px; }
  .row-actions { margin-top: calc(1.4 * 11px + 4px); }
}

