/* The timetable maker's page. The page around the tool is the site's (tokens.css through blog.css); the tool itself is drawn
   in the Damda app's look, with the same values as the planner sheets (content/sheets/sheet.css, from TimetableGameStyle.kt):
   white cards with a 1.5 dp edge and a lower face, the teal accent, the gold badge for today, pastel category strips. */
.mk-page {
  max-width: calc(1080px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
}

/* The page's head: the 시간표 tab's icon beside the title, one line of what it is, and three quiet facts */
.mk-head h1 {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.2;
  color: var(--ink);
}

.mk-head h1::before {
  content: "";
  flex: none;
  width: 1.15em;
  height: 1.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect x='3' y='6' width='22' height='21' rx='5' fill='%23dcc6bb'/%3E%3Crect x='3' y='4' width='22' height='21' rx='5' fill='%23fef8f1'/%3E%3Cpath d='M3 12V9a5 5 0 0 1 5-5h12a5 5 0 0 1 5 5v3z' fill='%23e9a796'/%3E%3Crect x='8' y='1' width='2.2' height='6' rx='1.1' fill='%23d9b9ab'/%3E%3Crect x='17.8' y='1' width='2.2' height='6' rx='1.1' fill='%23d9b9ab'/%3E%3Crect x='8.3' y='14.3' width='4.2' height='3.4' rx='1' fill='%23c59789'/%3E%3Crect x='15.5' y='14.3' width='4.2' height='3.4' rx='1' fill='%23c59789'/%3E%3Crect x='8.3' y='19.4' width='4.2' height='3.4' rx='1' fill='%23c59789'/%3E%3Crect x='15.5' y='19.4' width='4.2' height='3.4' rx='1' fill='%23c59789'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mk-lede {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.mk-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.125rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.mk-points li {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  color: #0b5b51;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

/* The TODO tab's check square, checked */
.mk-points li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  border-radius: 0.3rem;
  background: #167d70 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 78%;
}

/* ---- The tool, in the app's look ---- */
.mk {
  --a-ink: #3d382f;
  --a-muted: #626962;
  --a-accent: #167d70;
  --a-accent-base: #0b5b51;
  --a-accent-tint: #eaf4ef;
  --a-gold: #f5ca5d;
  --a-gold-base: #d3a13a;
  --a-gold-ink: #514b3c;
  --a-edge: #dde4dd;
  --a-base: #d8e1d8;
  --a-line: #ccd5ce;
  --a-line-soft: #dfe6e0;
  --a-chip: #f1f4f1;
  --a-ground: #f6f9f6;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 1.75rem;
  background: var(--a-ground);
  color: var(--a-ink);
}

.mk [hidden] {
  display: none !important;
}

.mk button,
.mk input,
.mk select {
  font: inherit;
  color: inherit;
}

/* A control with the app's lower face */
.mk-picker,
.mk-controls > select,
.mk-range,
.mk-tabs,
.mk-board,
.mk-addbar,
.mk-ghost,
.mk-primary {
  border: 1.5px solid var(--a-edge);
  background: #fff;
  box-shadow: 0 3px 0 var(--a-base);
}

/* The sheets to choose from, as the 주간 · 월간 · 일간 switch */
.mk-tabs {
  display: flex;
  overflow-x: auto;
  margin-bottom: 0.875rem;
  border-radius: 1rem;
  scrollbar-width: none;
}

.mk-tabs button {
  flex: 1 0 auto;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-inline-start: 1.5px solid var(--a-edge);
  background: none;
  font-weight: 600 !important;
  color: var(--a-muted) !important;
  white-space: nowrap;
  cursor: pointer;
}

.mk-tabs button:first-child {
  border-inline-start: 0;
}

.mk-tabs button.active {
  background: var(--a-accent);
  box-shadow: inset 0 -3px 0 var(--a-accent-base);
  color: #fff !important;
  font-weight: 700 !important;
}

/* The timetable's name, as the picker on top of the 시간표 tab */
.mk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: stretch;
}

.mk-picker {
  display: flex;
  flex: 1 1 14rem;
  gap: 0.625rem;
  align-items: center;
  min-width: 0;
  padding: 0 1rem;
  border-radius: 1rem;
}

.mk-picker i {
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #c7d6ca;
}

.mk-picker input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  outline: none;
}

.mk-picker:focus-within {
  border-color: var(--a-accent);
}

.mk-controls {
  display: flex;
  gap: 0.5rem;
}

.mk-controls select {
  min-height: 2.75rem;
  padding: 0 0.625rem;
  border-radius: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.mk-range {
  display: flex;
  align-items: center;
  border-radius: 1rem;
}

.mk-range select {
  border: 0;
  background: none;
}

.mk-range b {
  margin: 0 -0.25rem;
  color: var(--a-muted);
  font-weight: 500;
}

.mk-hint {
  margin: 0.875rem 0.25rem 0.625rem;
  color: var(--a-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* The board: one card, as the 주간 view */
.mk-board {
  position: relative;
  overflow: hidden;
  border-radius: 1.375rem;
}

.mk-empty {
  position: absolute;
  top: 9.5rem;
  left: 50%;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--a-edge);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 var(--a-base);
  color: var(--a-muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.mk-bar {
  margin-bottom: 0.875rem;
}

.mk-scroll {
  overflow-x: auto;
}

.mk-grid {
  --mk-hour: 4.25rem;
  display: grid;
  grid-template-columns: 3.5rem repeat(var(--mk-days), minmax(5rem, 1fr));
  min-width: calc(3.5rem + var(--mk-days) * 5rem);
}

.mk-corner,
.mk-day {
  display: grid;
  place-items: center;
  height: 3.25rem;
  border-bottom: 1px solid var(--a-line);
  font-weight: 700;
  line-height: 1;
}

.mk-day,
.mk-col {
  border-inline-start: 1px solid var(--a-line);
}

/* Today wears the gold badge */
.mk-day .today {
  display: grid;
  place-items: center;
  min-width: 2.125rem;
  height: 2.125rem;
  padding: 0 0.4rem;
  border-radius: 0.7rem;
  background: var(--a-gold);
  box-shadow: 0 3px 0 var(--a-gold-base);
  color: var(--a-gold-ink);
}

.mk-time {
  display: grid;
  place-items: center;
  height: var(--mk-hour);
  border-bottom: 1px solid var(--a-line);
  color: var(--a-muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mk-time:last-child {
  border-bottom: 0;
}

/* Full lines on the hour, dashed on the half hour, as on the sheets */
.mk-col {
  position: relative;
  height: calc(var(--mk-hour) * var(--mk-hours));
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--mk-hour) - 1px), var(--a-line) calc(var(--mk-hour) - 1px), var(--a-line) var(--mk-hour)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--mk-hour) / 2 - 1px), var(--a-line-soft) calc(var(--mk-hour) / 2 - 1px), var(--a-line-soft) calc(var(--mk-hour) / 2), transparent calc(var(--mk-hour) / 2), transparent var(--mk-hour));
  cursor: copy;
}

/* A schedule card: the category strip on top, the name in the middle */
.mk-event {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  cursor: pointer;
}

.mk-event::before {
  content: "";
  position: absolute;
  inset: 3px 4px 5px;
  z-index: 0;
  border: 1.5px solid var(--a-edge);
  border-radius: 0.75rem;
  background: linear-gradient(to bottom, var(--fill) 0, var(--fill) 1.5rem, #fff 1.5rem);
  box-shadow: 0 2px 0 var(--a-base);
}

.mk-strip,
.mk-name {
  position: relative;
  z-index: 1;
}

.mk-strip {
  display: flex;
  flex: none;
  gap: 0.25rem;
  align-items: center;
  height: 1.5rem;
  margin-top: 4px;
  padding: 0 0.7rem;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--a-ink);
}

.mk-strip i,
.mk-cat i {
  font-style: normal;
}

.mk-name {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.1rem;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 0.5rem 6px;
  overflow: hidden;
  line-height: 1.25;
  color: var(--a-ink);
}

.mk-name strong {
  font-size: 0.875rem;
  font-weight: 700;
}

.mk-name small {
  color: var(--a-muted);
  font-size: 0.6875rem;
}

/* 일정 추가…, the bar under the board */
.mk-addbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.875rem;
  padding: 0 0.75rem;
  border-radius: 1.75rem;
  color: var(--a-muted) !important;
  font-size: 1rem;
  text-align: start;
  cursor: pointer;
}

.mk-addbar i {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--a-accent-tint);
  color: var(--a-accent);
}

.mk-actions,
.mk-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.875rem;
}

.mk-spring {
  flex: 1;
}

.mk-primary,
.mk-ghost {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.6rem 1.2rem;
  border-radius: 1rem;
  font-weight: 700 !important;
  line-height: 1.3;
  cursor: pointer;
}

.mk-primary {
  border-color: var(--a-accent);
  background: var(--a-accent);
  box-shadow: 0 3px 0 var(--a-accent-base);
  color: #fff !important;
}

.mk-primary:active,
.mk-ghost:active,
.mk-addbar:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--a-base);
}

.mk-primary:active {
  box-shadow: 0 1px 0 var(--a-accent-base);
}

.mk-primary:disabled {
  opacity: 0.6;
}

.mk-danger {
  border-color: transparent;
  background: none;
  box-shadow: none;
  color: #b0473f !important;
}

.mk-event:focus-visible,
.mk button:focus-visible,
.mk select:focus-visible,
.mk-dialog input:focus-visible {
  outline: 2px solid var(--a-accent);
  outline-offset: 2px;
}

/* A sheet as a maker: the sheet itself, with a place to write laid over each of its blanks */
.mk-paper {
  padding: 0.5rem;
  overflow-x: auto;
}

.mk-live {
  position: relative;
  container-type: inline-size;
  margin: 0 auto;
}

.mk-tall {
  min-width: 40rem;
  max-width: 52rem;
}

.mk-wide {
  min-width: 56rem;
}

.mk-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.875rem;
}

.mk-layer {
  position: absolute;
  inset: 0;
}

/* The words are drawn on the picture; the place over them shows only while it is being written in */
.mk .mk-on {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.4cqw;
  background: transparent;
  color: transparent;
  line-height: 1;
  caret-color: var(--a-accent);
  cursor: text;
}

.mk input.mk-on:focus {
  z-index: 1;
  background: #fff;
  color: var(--a-ink);
  outline: 0.25cqw solid var(--a-accent);
  outline-offset: 0;
}

.mk .mk-on-tap,
.mk .mk-on-date {
  cursor: pointer;
}

.mk .mk-on-date {
  opacity: 0;
}

/* Only the place that is selected shows it: the blank being written in, the date being chosen, the cell that was pressed */
.mk .mk-on-date:focus {
  opacity: 0.18;
  background: var(--a-accent);
  outline: none;
}

.mk .mk-on-tap:focus {
  outline: none;
}

.mk .mk-on-tap:focus-visible {
  outline: 0.25cqw solid var(--a-accent);
}

.mk-mark {
  position: absolute;
  border-radius: 0.4cqw;
  background: rgba(22, 125, 112, 0.14);
  outline: 0.25cqw solid var(--a-accent);
  outline-offset: -0.25cqw;
  pointer-events: none;
}

.mk .mk-on-date::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.mk-privacy,
.mk-done-note {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0.875rem 0.25rem 0;
  color: var(--a-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.mk-privacy svg,
.mk-done-note svg {
  flex: none;
  margin-top: 0.1rem;
}

/* After the image is saved */
.mk-done {
  margin-top: 1rem;
  padding: 1rem;
  border: 1.5px solid #cfe5db;
  border-radius: 1.25rem;
  background: var(--a-accent-tint);
}

.mk-done-head {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  color: var(--a-accent-base);
  line-height: 1.4;
}

.mk-done-note {
  margin: 0.4rem 0 0;
  color: var(--a-ink);
  font-size: 0.9375rem;
}

.mk-promo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem 0.875rem;
  align-items: center;
  margin-top: 0.875rem;
  padding: 0.875rem;
  border: 1.5px solid var(--a-edge);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 3px 0 var(--a-base);
  color: var(--a-ink);
  text-decoration: none;
  line-height: 1.45;
}

.mk-promo img {
  border-radius: 0.75rem;
}

.mk-promo strong {
  display: block;
  font-weight: 800;
}

.mk-promo span span {
  color: var(--a-muted);
  font-size: 0.875rem;
}

.mk-promo b {
  padding: 0.55rem 1rem;
  border-radius: 0.875rem;
  background: var(--a-accent);
  box-shadow: 0 3px 0 var(--a-accent-base);
  color: #fff;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* The form */
.mk-dialog {
  width: min(27rem, calc(100vw - 2rem));
  padding: 1.25rem;
  border: 1.5px solid var(--a-edge);
  border-radius: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  color: var(--a-ink);
}

.mk-dialog::backdrop {
  background: rgba(61, 56, 47, 0.45);
}

.mk-dialog form {
  display: grid;
  gap: 0.75rem;
}

.mk-dialog h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.mk-dialog label,
.mk-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--a-muted);
  line-height: 1.4;
}

.mk-dialog select,
.mk-dialog input[type="text"],
.mk-dialog input[type="time"] {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--a-edge);
  border-radius: 0.875rem;
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  color: var(--a-ink);
}

.mk-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* 일정 색: the category chips of the weekly sheet */
.mk-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.mk-dialog .mk-cat {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.6rem;
  overflow: hidden;
  border: 1.5px solid var(--edge);
  border-radius: 0.75rem;
  background: var(--fill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--a-ink);
  white-space: nowrap;
  cursor: pointer;
}

.mk-cat input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mk-dialog .mk-cat:has(input:checked) {
  border-color: var(--a-accent);
  box-shadow: 0 0 0 2px var(--a-accent);
}

.mk-error {
  margin: 0;
  color: #b0473f;
  font-size: 0.875rem;
  line-height: 1.4;
}

.mk-error:empty {
  display: none;
}

.mk-form-actions {
  margin-top: 0.25rem;
}

/* ---- Under the tool: three steps, one line about the app, questions that open ---- */
.mk-below {
  margin: 2.5rem 0 0;
  padding: 0 0.25rem;
}

/* The first heading follows the tool directly */
.mk-below h2:first-child {
  margin-top: 0;
}

.mk-below h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink);
}

.mk-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mk-steps li {
  padding: 1rem;
  border: 1.5px solid #dde4dd;
  border-radius: 1.125rem;
  background: #f6f9f6;
  line-height: 1.5;
}

.mk-steps b {
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  background: #f5ca5d;
  box-shadow: 0 2px 0 #d3a13a;
  color: #514b3c;
  font-size: 0.875rem;
}

.mk-steps strong {
  display: block;
  font-weight: 700;
}

.mk-steps p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.mk-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem 0.875rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 1.125rem;
  background: #eaf4ef;
  color: var(--text);
  text-decoration: none;
  line-height: 1.45;
}

.mk-app img {
  border-radius: 0.75rem;
}

.mk-app strong {
  display: block;
  font-weight: 800;
}

.mk-app span span {
  color: var(--muted);
  font-size: 0.875rem;
}

.mk-app b {
  padding: 0.55rem 1rem;
  border-radius: 0.875rem;
  background: #167d70;
  box-shadow: 0 3px 0 #0b5b51;
  color: #fff;
  font-size: 0.875rem;
  white-space: nowrap;
}

.mk-faq {
  display: grid;
  gap: 0.5rem;
}

.mk-faq details {
  border: 1.5px solid #dde4dd;
  border-radius: 1rem;
  background: #fff;
}

.mk-faq details[open] {
  background: #f6f9f6;
}

.mk-faq summary {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.mk-faq summary::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a cross when the answer is open */
.mk-faq summary::after {
  content: "+";
  flex: none;
  color: #167d70;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 160ms ease;
}

.mk-faq details[open] summary::after {
  transform: rotate(45deg);
}

.mk-faq p {
  margin: 0;
  padding: 0 1rem 0.9rem;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.mk-note {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .mk-steps {
    grid-template-columns: 1fr;
  }

  .mk-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 0.75rem;
  }

  .mk-steps b {
    grid-row: span 2;
    margin: 0.1rem 0 0;
  }

  /* On a phone the app's line stays one thin row, so the title and the tool are not pushed down the screen */
  .mk-app {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.625rem;
    margin-bottom: 1.125rem;
    padding: 0.5rem 0.75rem;
  }

  .mk-app img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
  }

  .mk-app strong {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .mk-app span span,
  .mk-app b {
    display: none;
  }

  .mk-app::after {
    content: "→";
    color: #167d70;
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .mk {
    margin-inline: calc(var(--gutter) * -0.5);
    padding: 0.75rem;
  }

  .mk-grid {
    --mk-hour: 4rem;
    grid-template-columns: 2.75rem repeat(var(--mk-days), minmax(3.6rem, 1fr));
    min-width: calc(2.75rem + var(--mk-days) * 3.6rem);
  }

  .mk-time {
    font-size: 0.6875rem;
  }

  .mk-strip {
    padding: 0 0.5rem;
    font-size: 0.6875rem;
  }

  .mk-name {
    padding-inline: 0.3rem;
  }

  .mk-name strong {
    font-size: 0.8125rem;
  }

  .mk-controls {
    width: 100%;
  }

  .mk-controls > * {
    flex: 1;
  }

  .mk-range select {
    flex: 1;
  }

  .mk-actions .mk-primary {
    flex: 1 1 100%;
    order: -1;
  }

  .mk-spring {
    display: none;
  }

  .mk-promo {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mk-promo b {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* A row with three things to write (할 일 · 분류 · 마감): on a phone the first gets a line of its own */
@media (max-width: 640px) {
  .mk-row:has(input:nth-of-type(4)) {
    flex-wrap: wrap;
  }

  .mk-row:has(input:nth-of-type(4)) input:nth-of-type(2) {
    flex: 1 1 calc(100% - 2rem) !important;
  }

  .mk-row:has(input:nth-of-type(4)) input:nth-of-type(3) {
    margin-inline-start: 1.775rem;
  }

  .mk-row:has(input:nth-of-type(4)) input:nth-of-type(n + 3) {
    flex: 1 1 0 !important;
  }
}

@media (max-width: 640px) {
  .mk-empty {
    width: max-content;
    max-width: calc(100% - 1.5rem);
    white-space: normal;
    text-align: center;
  }
}
