/* ============================================================
   Dinger Cockpit
   Light, calm, high-legibility. Built for a long-serving office
   hand who knows these tables by their Excel names, and for a GF
   who wants one number at the top.
   The company logo is the only colourful element on the page;
   everything around it stays warm grey and quiet.
   ============================================================ */

:root {
  --wall: #f6f7f5;        /* freshly primed wall */
  --paper: #ffffff;
  --ink: #1b1e23;         /* pencil */
  --ink-soft: #3d434b;
  --muted: #666d76;
  --rule: #e3e5e1;
  --rule-soft: #eef0ec;
  --accent: #683830;      /* the "dinger" wordmark brown */
  --accent-ink: #4a281c;
  --accent-soft: #f4efec;
  --ok: #3e6b54;
  --warn: #8a6407;
  --crit: #9e3b2f;
  --focus: #683830;
  --sidebar-w: 266px;
  --row-h: 44px;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(27, 30, 35, .05), 0 8px 24px rgba(27, 30, 35, .05);
}

* { box-sizing: border-box; }

html, body.ck {
  margin: 0;
  padding: 0;
  background: var(--wall);
  color: var(--ink);
}

body.ck {
  font: 17px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.ck a { color: var(--accent); text-underline-offset: 2px; }
body.ck a:hover { color: var(--accent-ink); }

/* Sidebar entries are links, so they need more specificity than `body.ck a`
   to stay black — that rule is why they came out brown. */
.ck-sidebar a,
.ck-sidebar a:hover,
.ck-sidebar a:visited,
.ck-sidebar a:active { color: #000; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.ck-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 50;
}
.ck-skip:focus { left: .5rem; top: .5rem; }

.ck-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------ sidebar */
.ck-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--paper);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.ck-brand {
  padding: 1.1rem 1.15rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.ck-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: .65rem;
}

.ck-brand-name {
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.ck-brand-sub {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #000;
  font-weight: 600;
  margin-top: .15rem;
}

.ck-nav {
  flex: 1;
  overflow-y: auto;
  padding: .7rem .6rem 1rem;
}

.ck-nav-group {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #000;
  font-weight: 700;
  padding: 1.1rem .55rem .4rem;
}

.ck-nav-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .62rem .6rem;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-size: .93rem;
  line-height: 1.25;
  border-left: 3px solid transparent;
}
.ck-nav-item:hover { background: var(--wall); color: #000; }
.ck-nav-item.is-active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  font-weight: 650;
  color: #000;
}

.ck-nav-cockpit {
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  margin-bottom: .3rem;
  padding: .75rem .6rem;
  border: 1px solid var(--rule);
  background: var(--wall);
}
.ck-nav-cockpit .ck-nav-label { font-size: 1.02rem; font-weight: 700; }
.ck-nav-cockpit.is-active { border-color: var(--accent); }
.ck-nav-hint {
  font-size: .74rem;
  color: #000;
  letter-spacing: .02em;
}

.ck-nav-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ck-nav-count {
  font-size: .74rem;
  color: #000;
  font-variant-numeric: tabular-nums;
}
.ck-nav-empty {
  padding: .8rem .6rem;
  font-size: .84rem;
  color: #000;
}

/* a quiet marker, not a colour code */
.ck-swatch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
  display: inline-block;
  background: #c8c4bd;
}
.ck-nav-item.is-active .ck-swatch { background: var(--accent); }
.ck-swatch.is-lg { display: none; }

.ck-sidebar-foot {
  border-top: 1px solid var(--rule);
  padding: .7rem 1.15rem;
  font-size: .8rem;
  color: #000;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}

/* --------------------------------------------------------------- main */
.ck-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ck-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(246, 247, 245, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ck-topbar-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.015em;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.ck-topbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.ck-stamp {
  font-size: .78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ck-burger { display: none; }

.ck-content { padding: 1.5rem; max-width: 1500px; }

.ck-status {
  display: none;
  margin: 0;
  padding: .7rem 1.5rem;
  font-size: .88rem;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}
.ck-status.is-on { display: block; }
.ck-status.is-info { background: var(--accent-soft); color: var(--accent-ink); }
.ck-status.is-ok { background: #eff4f1; color: var(--ok); }
.ck-status.is-warn { background: #f8f3e8; color: var(--warn); }
.ck-status.is-err { background: #f9efed; color: var(--crit); }

/* ------------------------------------------------------------ buttons */
.ck-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 40px;
  padding: .5rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.ck-btn:hover { background: var(--wall); border-color: #d5d8d3; }
.ck-btn:disabled { opacity: .5; cursor: not-allowed; }

.ck-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ck-btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.ck-btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  min-height: 32px;
  padding: .25rem .5rem;
  font-size: .82rem;
}
.ck-btn-quiet:hover { background: var(--wall); color: var(--crit); }

/* --------------------------------------------------------------- hero */
.ck-hero {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 1.4fr;
  overflow: hidden;
}

.ck-hero-main { padding: 1.6rem 1.7rem; }

.ck-hero-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
  color: var(--muted);
}

.ck-hero-value {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin: .5rem 0 .35rem;
  color: var(--ok);
}
.ck-hero-value.is-negative { color: var(--crit); }
.ck-hero-value.is-pending { color: var(--muted); }

.ck-hero-note { font-size: .84rem; color: var(--muted); }

.ck-hero-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--rule);
}
.ck-hero-cell {
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  border-right: 1px solid var(--rule-soft);
}
.ck-hero-cell:last-child { border-right: 0; }

.ck-cell-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--muted);
}
.ck-cell-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.ck-cell-value.is-in { color: var(--ok); }
.ck-cell-value.is-out { color: var(--crit); }

/* -------------------------------------------------------------- cards */
.ck-h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--muted);
  margin: 2rem 0 .8rem;
}

.ck-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .9rem;
}

.ck-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1rem 1.1rem 1rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.ck-card:hover { border-color: #cfd3ce; box-shadow: var(--shadow-card); color: var(--ink); }

.ck-card-bar { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--rule) !important; }
.ck-card:hover .ck-card-bar { background: var(--accent) !important; }

.ck-card-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ck-card-title { font-weight: 650; font-size: .95rem; }

.ck-card-value {
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.ck-card-foot { font-size: .8rem; color: var(--muted); }

.ck-tag {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 4px;
  background: var(--wall);
  color: var(--muted);
  border: 1px solid var(--rule);
}
.ck-tag.is-in { color: var(--ok); border-color: #d6e0da; background: #f3f6f4; }
.ck-tag.is-out { color: var(--crit); border-color: #e4d6d3; background: #f9f4f3; }

/* ------------------------------------------------------------ toolbar */
.ck-toolbar {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.ck-search {
  flex: 0 1 320px;
  min-height: 40px;
  padding: .5rem .75rem;
  font: inherit;
  font-size: .92rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.ck-check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
}
.ck-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.ck-toolbar-spacer { flex: 1; }

.ck-band-pick { display: inline-flex; align-items: center; gap: .45rem; }
.ck-band-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--muted);
}
.ck-select {
  min-height: 40px;
  padding: .5rem .6rem;
  font: inherit;
  font-size: .92rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  max-width: 280px;
}

.ck-sum {
  font-size: .92rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- tables */
.ck-table-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: auto;
  max-width: 100%;
}

.ck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.ck-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--wall);
  text-align: left;
  padding: .6rem .55rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.ck-table thead th.is-num { text-align: right; }

.ck-table tbody td {
  padding: .28rem .4rem;
  border-bottom: 1px solid var(--rule-soft);
  height: auto;
  min-height: var(--row-h);
  vertical-align: top;
}
.ck-table tbody tr:hover { background: #fafbf9; }

.ck-table tbody tr.is-band td {
  background: #f3f1ee;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem .6rem;
  height: auto;
  border-bottom: 1px solid var(--rule);
}

.ck-table tbody tr.is-done { color: var(--muted); background: #fbfbfa; }
.ck-table tbody tr.is-flagged td { font-weight: 650; }

.ck-table-plain tbody td { padding: .5rem .55rem; height: auto; }
.ck-muted { color: var(--muted); }

/* cell inputs: quiet until touched, so the grid reads like paper */
.ck-in {
  width: 100%;
  min-width: 4rem;
  min-height: 2.15rem;
  padding: .4rem .5rem;
  font: inherit;
  font-size: .92rem;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}
textarea.ck-in {
  display: block;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  field-sizing: content;
  min-height: 2.15rem;
  max-height: 14rem;
}
.ck-in:hover { border-color: var(--rule); background: var(--paper); }
.ck-in:focus {
  border-color: var(--accent);
  background: var(--paper);
  outline: none;
  box-shadow: 0 0 0 3px rgba(104, 56, 48, .12);
}
.ck-in.is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 6.5rem;
}
.ck-in.is-date { min-width: 8.5rem; }
.ck-in.is-note { min-width: 14rem; }
.ck-in.is-text { min-width: 10rem; }

.ck-cb { display: flex; justify-content: center; }
.ck-cb input { width: 20px; height: 20px; accent-color: var(--accent); }

.ck-row-actions { text-align: right; white-space: nowrap; }

/* ------------------------------------------------------------- panels */
.ck-panel {
  margin-top: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.ck-panel > summary {
  cursor: pointer;
  padding: .85rem 1.1rem;
  font-size: .92rem;
  font-weight: 650;
  list-style: none;
}
.ck-panel > summary::-webkit-details-marker { display: none; }
.ck-panel > summary::before { content: "▸"; color: var(--accent); margin-right: .5rem; }
.ck-panel[open] > summary::before { content: "▾"; }
.ck-panel > summary:hover { background: var(--wall); }

.ck-panel-body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--rule-soft);
  padding-top: 1rem;
}
.ck-panel-body > p { margin-top: 0; font-size: .9rem; }

.ck-panel-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ck-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0;
  font-size: .9rem;
}
.ck-meta dt { color: var(--muted); font-weight: 600; }
.ck-meta dd { margin: 0; }

.ck-empty {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 62ch;
}
.ck-empty p { margin: 0 0 .6rem; }
.ck-empty p:last-child { margin-bottom: 0; }

.ck-kind {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--muted);
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .ck-hero { grid-template-columns: 1fr; }
  .ck-hero-split { border-left: 0; border-top: 1px solid var(--rule); }
  .ck-hero-cell { padding: 1.1rem 1.2rem; }
}

@media (max-width: 820px) {
  .ck-sidebar {
    transform: translateX(-100%);
    transition: transform .18s ease;
    box-shadow: 0 0 40px rgba(27, 30, 35, .18);
  }
  .ck-nav-toggle:checked ~ .ck-sidebar { transform: translateX(0); }
  .ck-main { margin-left: 0; }
  .ck-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
    cursor: pointer;
    padding: 0 9px;
  }
  .ck-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .ck-content { padding: 1rem; }
  .ck-topbar { padding: .7rem 1rem; }
  .ck-topbar-title { font-size: 1.1rem; order: 2; }
  .ck-topbar-actions { order: 3; width: 100%; }
  .ck-hero-split { grid-template-columns: 1fr; }
  .ck-hero-cell { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .ck-hero-cell:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .ck-sidebar, .ck-topbar, .ck-toolbar, .ck-panel { display: none; }
  .ck-main { margin-left: 0; }
  .ck-table-wrap { border: 0; }
}

/* Sidebar text is plain black on request — the accent only marks the
   active entry, it no longer tints the label. */

/* —— Archive group in the sidebar (closed books up to 2025) —— */
.ck-nav-archive {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: .5rem;
}
.ck-nav-archive > summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  list-style: none;
  padding: .5rem .6rem;
  border-radius: 8px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: #000;
}
.ck-nav-archive > summary::-webkit-details-marker { display: none; }
.ck-nav-archive > summary::before {
  content: "▸";
  font-size: .8rem;
  letter-spacing: 0;
  color: var(--accent);
}
.ck-nav-archive[open] > summary::before { content: "▾"; }
.ck-nav-archive > summary:hover { background: var(--wall); color: #000; }
.ck-nav-archive-label { flex: 1; }
.ck-nav-archive .ck-nav-item {
  font-size: .88rem;
  color: #000;
  padding-left: 1.35rem;
}
.ck-nav-archive .ck-nav-count { text-transform: none; letter-spacing: 0; }

/* —— Money cell: the € stays outside the editable text —— */
.ck-money {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  justify-content: flex-end;
  width: 100%;
}
.ck-money .ck-in {
  text-align: right;
  min-width: 5.5rem;
}
.ck-cur {
  color: #000;
  font-size: .88rem;
  flex: 0 0 auto;
}
.ck-in.is-money { font-variant-numeric: tabular-nums; }
.ck-in.is-date {
  font-variant-numeric: tabular-nums;
  min-width: 7rem;
}

/* ============================================================
   Cockpit sign-in / enrolment (own accounts, separate from the
   Secureskies automation login)
   ============================================================ */
body.ck-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  gap: .9rem;
}
.ck-auth-card {
  width: 100%;
  max-width: 27rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 2rem 1.9rem 1.7rem;
  text-align: center;
}
.ck-auth-logo { display: block; margin: 0 auto .9rem; }
.ck-auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 .3rem;
  color: #000;
}
.ck-auth-intro {
  font-size: .92rem;
  color: var(--ink-soft);
  margin: .2rem 0 1.1rem;
  text-align: left;
}
.ck-auth-form { text-align: left; }
.ck-auth-form label {
  display: block;
  font-size: .82rem;
  font-weight: 650;
  color: #000;
  margin-bottom: .8rem;
}
.ck-auth-form input {
  display: block;
  width: 100%;
  margin-top: .3rem;
  min-height: 44px;
  padding: .55rem .7rem;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.ck-auth-form input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(104, 56, 48, .12);
}
.ck-auth-code {
  font-size: 1.4rem !important;
  letter-spacing: .32em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ck-btn-block { width: 100%; margin-top: .3rem; }
.ck-auth-hint {
  font-size: .82rem;
  color: var(--muted);
  margin: .9rem 0 0;
  text-align: left;
}
.ck-auth-error,
.ck-auth-notice {
  font-size: .88rem;
  font-weight: 600;
  border-radius: 8px;
  padding: .6rem .75rem;
  margin: 0 0 1rem;
  text-align: left;
}
.ck-auth-error { background: #f9efed; color: var(--crit); }
.ck-auth-notice { background: #eff4f1; color: var(--ok); }
.ck-auth-qr {
  display: block;
  margin: 0 auto 1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: .5rem;
  background: #fff;
}
.ck-auth-secret {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.ck-auth-secret code {
  display: block;
  margin-top: .3rem;
  font-size: .9rem;
  color: #000;
  word-break: break-all;
}
.ck-auth-foot { font-size: .78rem; color: var(--muted); }

/* —— admin forms and flash messages —— */
.ck-flash {
  border-radius: 8px;
  padding: .7rem .9rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  font-weight: 600;
  max-width: 70ch;
}
.ck-flash.is-ok { background: #eff4f1; color: var(--ok); }
.ck-flash.is-err { background: #f9efed; color: var(--crit); }
.ck-flash.is-warn { background: #f8f3e8; color: var(--warn); }
.ck-flash code { font-weight: 400; word-break: break-all; }

.ck-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  align-items: flex-end;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: .6rem;
  max-width: 900px;
}
.ck-form-row label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #000;
}
.ck-form-row input,
.ck-form-row select {
  display: block;
  margin-top: .3rem;
  min-height: 40px;
  padding: .45rem .6rem;
  font: inherit;
  font-size: .95rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.ck-form-row input:focus,
.ck-form-row select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(104, 56, 48, .12);
}
.ck-inline-form { display: inline; }
