/* The start page at «/» (owner, 24.10.2026), drawn like the v119 start page
   (legacy/apps-script/runtime/webapp.js getStartHtml): a white card centred
   on the grey page, a bold heading and one full-width button per cabinet. */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.start-card {
  /* v119's card: 560 px inside its 34 px padding (no border-box there). */
  width: min(628px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  text-align: center;
}

.start-card h1 {
  margin: 0 0 26px;
  font-size: 26px;
  color: #111827;
}

.start-actions {
  display: grid;
  gap: 14px;
}

/* The «Мерія» button under the cabinets, at the same 14 px. */
.start-sheet {
  margin: 14px 0 0;
}

.start-actions a {
  display: block;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.start-actions a:hover { filter: brightness(.95); }

.start-actions a:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

/* v119's colours: «Форма УО» blue, «Панель перевіряючого» dark. The admin
   cabinet is the owner's alone, so it takes v119's neutral button. */
.start-uo { background: #2563eb; color: #ffffff; }
.start-reviewer { background: #111827; color: #ffffff; }
.start-admin { background: #e5e7eb; color: #111827; }

/* «Перейти на документ «Таблиці Мерія 2026»» (owner, 25.10.2026) opens the
   «Мерія» sheet in a new tab. A light green with a small sheet icon, so it
   reads as Google Sheets: Google's own pale green with its dark green text
   (6.3:1). The name of the sheet never breaks; on a phone the label takes
   two lines. */
.start-meriya { background: #e6f4ea; color: #0d652d; }

.start-actions .start-meriya {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.start-sheet-icon { flex: none; }

/* The page in the new tab when the sheet cannot be opened
   (apps/web/src/meriya-sheet-link.ts). */
.start-note {
  margin: 0 0 12px;
  line-height: 1.5;
}

.start-note:last-child { margin-bottom: 0; }

.start-note a { color: #1a73e8; }
