/* Календарь событий и заявка гостя (Д-2042, подзадача 11). Закрытый модуль: селекторы только gk-*, цвета только из tokens.css (кр. 32).
   Заготовка - принятый макет docs/mockups/d2042-kalendar-sobytiy/maket.html (g-*). */
.gk-wrap { width: 100%; max-width: 560px; margin: 0 auto; }
.gk-nav { display: flex; align-items: center; gap: 8px; }
.gk-arrow { flex: 0 0 auto; width: 48px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text); font-size: 22px; line-height: 1; }
.gk-arrow[disabled] { color: var(--muted); border-style: dashed; }
.gk-mon { flex: 1; min-width: 0; text-align: center; font-size: 18px; font-weight: 800; }
.gk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.gk-wd { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.gk-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-width: 0; min-height: 50px; padding: 4px 1px 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 15px; font-weight: 700; }
.gk-cell.other { background: transparent; color: var(--muted); font-weight: 500; }
.gk-cell.past { color: var(--muted); font-weight: 500; }
.gk-cell.busy { background-image: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 7px); }
.gk-cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.gk-cell.sel { border-color: var(--accent); background-color: var(--accent-wash); }
.gk-cell small { font-size: 10px; line-height: 1.1; font-weight: 600; color: var(--text); background: var(--panel); padding: 0 2px; border-radius: 2px; white-space: nowrap; }
.gk-cell.past small { color: var(--muted); }
.gk-dots { display: flex; gap: 3px; justify-content: center; align-items: center; min-height: 10px; }
.gk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.gk-dots b { font-size: 10px; font-weight: 700; color: var(--text); line-height: 1; }
.gk-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.gk-leg span { display: inline-flex; align-items: center; gap: 6px; }
.gk-leg i { width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 4px; flex: 0 0 auto; background: var(--panel); }
.gk-leg i.busy { background-image: repeating-linear-gradient(135deg, var(--line) 0 3px, transparent 3px 7px); }
.gk-h { margin: 16px 0 8px; font-size: 17px; font-weight: 800; }
.gk-card { padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.gk-card .gk-time { font-size: 14px; font-weight: 700; color: var(--ok-text); font-variant-numeric: tabular-nums; }
.gk-card .gk-name { margin-top: 2px; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.gk-card .gk-date { font-size: 13px; color: var(--muted); }
.gk-card.busy { background: var(--panel-2); }
.gk-card.busy .gk-name { font-weight: 600; color: var(--text); }
.gk-card.busy .gk-time { color: var(--muted); }
.gk-card.row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: start; }
.gk-day-d { font-size: 22px; font-weight: 800; line-height: 1; text-align: center; }
.gk-day-d small { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.gk-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 12px; padding: 0 16px; border-radius: 8px; font-size: 16px; font-weight: 800; text-align: center; white-space: normal; }
.gk-cta.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); font-weight: 700; }
.gk-state { padding: 22px 8px; text-align: center; }
.gk-state p { margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.gk-state .gk-sub { font-size: 14px; color: var(--muted); }
.gk-state .gk-cta { margin-top: 6px; }
.gk-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); font-size: 14px; line-height: 1.4; color: var(--text); }
.gk-note.warn { background: var(--warn-wash); color: var(--warn-text); }
.gk-note.bad { background: var(--bad-wash); color: var(--bad-text); }
.gk-note.ok { background: var(--ok-wash); color: var(--ok-text); }
/* форма заявки */
.gk-f { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; min-width: 0; }
.gk-f > label, .gk-f > span.l { font-size: 14px; color: var(--muted); }
.gk-in { height: 48px; box-sizing: border-box; width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 16px; display: flex; align-items: center; min-width: 0; }
.gk-in.err { border-color: var(--bad); }
.gk-in.busyf { border-color: var(--warn); }
.gk-in.focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gk-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.gk-row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.gk-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gk-kind { min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: 14px; font-weight: 600; }
.gk-kind.on { border-color: var(--accent); background: var(--accent-wash); font-weight: 800; }
.gk-err { font-size: 13px; color: var(--bad-text); margin-top: 2px; }
.gk-sug { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.gk-sug button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); text-align: left; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.gk-sug button span:last-child { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.gk-must { color: var(--bad-text); }
.gk-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-height: 600px) { .gk-cell { min-height: 40px; } }
@media (max-width: 360px) {
  .gk-grid { gap: 3px; }
  .gk-cell { min-height: 46px; font-size: 14px; }
  .gk-cell small { font-size: 9px; }
  .gk-row3 { grid-template-columns: 1fr 1fr; }
  .gk-mon { font-size: 16px; }
}
/* Реальные поля вместо нарисованных в макете. */
input.gk-in, select.gk-in, textarea.gk-in { font-family: inherit; appearance: none; -webkit-appearance: none; }
select.gk-in { padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.gk-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gk-extras { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.gk-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.gk-check input { width: 22px; height: 22px; flex: 0 0 auto; }
.gk-cell:focus-visible, .gk-kind:focus-visible, .gk-sug button:focus-visible, .gk-arrow:focus-visible, .gk-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gk-cta[disabled] { opacity: 0.6; }
.gk-entry { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: 15px; font-weight: 700; text-align: left; }
.gk-entry small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.gk-entry-sign { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.gk-entry > span:nth-child(2) { flex: 1; min-width: 0; }
.gk-entry-arrow { color: var(--muted); font-size: 20px; flex: 0 0 auto; }
.gk-note.warn, .gk-note.ok { color: var(--text); }

