/* The creator site (creators.parktimeplanner.com, docs/creators.md; canvas page Creators): the look of the planner
   (DESIGN.md) for its own pages, with its own small stylesheet so the approved styles.css stays as it is. Only this
   file and creators.js load there (PortalAction::POLICY: no inline style). Archivo and Atkinson Hyperlegible, the
   fonts of the planner. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The tokens of the quiet design (DESIGN.md; Q and V3 in app.js), light and dark. */
:root {
  color-scheme: light dark;
  --page: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #10203D;
  --muted: #475569;
  --faint: #7F8EA3;
  --line: #E3E8EF;
  --input: #D5DCE6;
  --control: #BFCBDC;
  --primary: #0B63FF;
  --on-primary: #FFFFFF;
  --link: #0B63FF;
  --segment: #E7ECF3;
  --segment-on: #FFFFFF;
  --none: #E3E8EF;
  --bar: #0B63FF;
  --ok: #2BD96B;
  --warn: #FFB000;
  --bad: #FF5247;
  --mint: #CCF6E4;
  --yellow: #FFF3B3;
  --check: #0A7D45;
  --display: 'Archivo', system-ui, sans-serif;
  --text: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0B1426;
    --surface: #142645;
    --ink: #F5F7FA;
    --muted: #A9B6CC;
    --faint: #7D8BA6;
    --line: #2A3A5C;
    --input: #2A3A5C;
    --control: #3A4C70;
    --link: #6EA8FF;
    --segment: #1C3158;
    --segment-on: #2A3A5C;
    --none: #2A3A5C;
    --bar: #6EA8FF;
    --check: #2BD96B;
  }
}

* {
  box-sizing: border-box;
}

body.cr {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--link);
}

button,
input {
  font: inherit;
  color: inherit;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

p {
  margin: 0;
}

.cr-num {
  font-variant-numeric: tabular-nums;
}

.cr-i {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* The head (canvas CreatorsHead): mark, name and CREATORS, the language, Sign out. */
.cr-head {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.cr-head__home {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.cr-head__mark {
  flex: none;
}

.cr-head__hole {
  fill: var(--surface);
}

.cr-head__names {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.cr-head__brand {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.cr-head__site {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--link);
}

.cr-head__out {
  margin: 0;
}

.cr-icon-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

/* The page: one column, as wide as a phone, in the middle of a computer. */
.cr-main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 32px;
}

.cr-title,
.cr-back-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}

.cr-title p {
  font-size: 15px;
  color: var(--muted);
}

.cr-back-head {
  align-items: flex-start;
  padding: 0 0 4px;
}

.cr-back {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: -7px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.cr-sub,
.cr-small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.cr-text {
  font-size: 15px;
}

/* One card everywhere: the surface, a ring of the line colour, 14px corners. */
.cr-card {
  margin: 0;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
}

.cr-pad {
  padding: 12px 14px 14px;
}

.cr-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cr-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cr-field-label {
  font-size: 14px;
  font-weight: 700;
}

.cr-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.cr-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--input);
  font-size: 16px;
}

.cr-input:focus-visible,
.cr-button:focus-visible,
.cr-seg__item:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.cr-input--code {
  height: 56px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .18em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cr-input--iban {
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.cr-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cr-button--quiet {
  min-height: 44px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--control);
  font-size: 15px;
}

.cr-button--inline {
  min-height: 44px;
  flex: none;
  font-size: 15px;
}

.cr-button[hidden] {
  display: none;
}

.cr-small-button {
  min-height: 36px;
  flex: none;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--control);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cr-link-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.cr-error,
.cr-notice {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.cr-error {
  background: #FFE8D6;
  color: #10203D;
}

.cr-notice {
  background: var(--mint);
  color: #10203D;
}

/* A row with a soft tile and two lines (the menu row of Account). */
.cr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.cr-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr-row__text > span {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.cr-tile {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 32, 61, .14);
  border-radius: 10px;
  color: #10203D;
}

.cr-tile--mint {
  background: var(--mint);
}

.cr-tile--yellow {
  background: var(--yellow);
}

.cr-chip {
  height: 26px;
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--segment);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cr-chip--ok {
  background: var(--ok);
  color: #10203D;
}

.cr-chip--warn {
  background: var(--warn);
  color: #10203D;
}

/* The segmented control (Segmented on the canvas), here of links. */
.cr-seg {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--segment);
}

.cr-seg__item {
  min-height: 38px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cr-seg__item[aria-current="true"] {
  background: var(--segment-on);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 32, 61, .14);
}

.cr-seg--small {
  flex: none;
}

.cr-seg--small .cr-seg__item {
  width: 38px;
  min-height: 34px;
  font-size: 13px;
}

/* The dashboard. */
.cr-link {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cr-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cr-tile-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.cr-tile-stat__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.cr-tile-stat__value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.cr-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cr-list__head {
  padding: 12px 14px 4px;
}

.cr-list__row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.cr-list__head + .cr-list__row {
  border-top: 0;
}

.cr-list__row--link[aria-current="true"] {
  background: var(--segment);
}

.cr-list__name {
  flex: 1;
  font-size: 15px;
}

.cr-list__count {
  color: var(--muted);
}

.cr-list__amount {
  min-width: 72px;
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
}

.cr-list__two {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr-list__two > span {
  font-size: 13px;
  color: var(--muted);
}

.cr-list__note {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.cr-chart {
  width: 100%;
  height: 104px;
  border-bottom: 1px solid var(--line);
}

.cr-chart__bar {
  fill: var(--bar);
}

.cr-chart__none {
  fill: var(--none);
}

.cr-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.cr-days {
  display: flex;
  flex-direction: column;
}

.cr-days__row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.cr-days__day {
  width: 92px;
  flex: none;
}

.cr-days__mix {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-days__count {
  font-family: var(--display);
  font-weight: 700;
}

.cr-menu {
  overflow: hidden;
  border-radius: 16px;
}

.cr-menu__row {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
}

.cr-menu__title {
  font-family: var(--display);
  font-size: 17px;
}

.cr-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cr-check__mark {
  margin-top: 1px;
  color: var(--check);
  stroke-width: 2.4;
}

.cr-foot {
  padding: 4px 2px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.cr-foot a {
  font-weight: 700;
}

.cr-foot--center {
  text-align: center;
}

/* The owner page. */
.cr-owner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cr-owner__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
}

.cr-owner__name {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-chip--code {
  font-variant-numeric: tabular-nums;
}

.cr-owner__part {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
}

.cr-owner__login,
.cr-owner__add,
.cr-owner__confirm {
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-owner__email {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cr-owner__add .cr-input {
  height: 44px;
  flex: 1;
  min-width: 0;
  font-size: 15px;
}

.cr-owner__confirm .cr-small {
  flex: 1;
}

.cr-iban {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
}

.cr-owner__money {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
}

.cr-owner__money .cr-small {
  flex: 1;
}

.cr-events__at {
  width: 120px;
  flex: none;
  font-size: 13px;
  color: var(--muted);
}

.cr-events__what {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}
