/* Maplekey CRM — dark workspace, bright green text.

   Two colour systems, deliberately kept apart:

   * The MAIN panel is a fixed dark theme. Its text is bright green, so it
     must not depend on the tenant's accent: a customer who picks a dark
     navy accent would otherwise get unreadable body text.
   * The SIDEBAR is painted with the tenant's accent. Its text colour is
     not hardcoded — `accent_text` / `accent_veil` are computed per tenant
     in configuration/context_processors.py by WCAG contrast, and injected
     as CSS variables in base.html. That is what keeps navigation readable
     whether the customer chooses lemon yellow or midnight blue.

   So: use var(--ink) for emphasis inside main, and var(--accent) only
   where var(--accent-text) is also in play. */
:root {
  --accent: #B4552D;            /* overridden per tenant */
  --accent-text: #ffffff;       /* computed per tenant */
  --accent-veil: rgba(255,255,255,.16);

  --ink: #7CFFA5;               /* bright green: the main panel's text */
  --link: #A8FFC8;
  --paper: #0b0f0d;             /* main panel background */
  --card: #131916;
  --field: #0d1411;
  --line: #24302a;
  --muted: #6f9c84;
  --danger: #ff7a7a;
  --ok: #56e08b;
}
* { box-sizing: border-box; }
body {
  margin: 0; display: flex; min-height: 100vh;
  background: var(--paper); color: var(--ink);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1 { font-size: 1.5rem; } h2 { font-size: 1.05rem; margin-top: 0; }
main a { color: var(--link); }
main a:hover { text-decoration: none; }

/* --- sidebar: the tenant's accent, with contrast-picked text --- */
.sidebar {
  width: 220px; flex-shrink: 0; background: var(--accent); color: var(--accent-text);
  display: flex; flex-direction: column; padding: 1rem 0;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: .6rem; align-items: center; padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--accent-veil); }
.brand img { max-height: 34px; max-width: 34px; border-radius: 6px; }
.brand small { display: block; opacity: .75; font-size: .72rem; }
.sidebar nav { flex: 1; display: flex; flex-direction: column; padding: .6rem 0; overflow-y: auto; }
.sidebar nav a {
  color: var(--accent-text); text-decoration: none; padding: .42rem 1rem;
  border-left: 3px solid transparent; opacity: .88;
}
.sidebar nav a:hover { background: var(--accent-veil); border-left-color: var(--accent-text);
  opacity: 1; }
.nav-label { padding: .9rem 1rem .2rem; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-text); opacity: .6; }
.logout { padding: .8rem 1rem 0; border-top: 1px solid var(--accent-veil);
  display: flex; justify-content: space-between; font-size: .82rem;
  color: var(--accent-text); }
.logout .link { background: none; border: none; color: var(--accent-text);
  cursor: pointer; font-size: .82rem; text-decoration: underline; }
.logout .muted { color: var(--accent-text); opacity: .7; }

/* --- main --- */
main { flex: 1; padding: 1.6rem 2rem; max-width: 1100px; }
main.centered { display: grid; place-items: center; max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.1rem 1.3rem; margin-bottom: 1.2rem; }
.card.narrow, .login-card { max-width: 620px; }
.login-card { min-width: 340px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; } }

/* --- tables, rows --- */
table.card { border-spacing: 0; width: 100%; padding: .4rem .6rem; }
table.card th { text-align: left; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); padding: .5rem .6rem;
  border-bottom: 2px solid var(--line); }
table.card td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
table.card tr:last-child td { border-bottom: none; }
tr.done td { opacity: .5; text-decoration: line-through; }
.row { display: flex; justify-content: space-between; gap: 1rem;
  padding: .4rem 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
dl { display: grid; grid-template-columns: 110px 1fr; row-gap: .3rem; margin: 0 0 1rem; }
dt { color: var(--muted); font-size: .82rem; } dd { margin: 0; }

/* --- stats --- */
.stat-row { display: flex; gap: 1.2rem; margin: 1rem 0 1.4rem; flex-wrap: wrap; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: .9rem 1.4rem; min-width: 140px; color: var(--muted); font-size: .85rem; }
.stat-n { display: block; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.stat.alert .stat-n { color: var(--danger); }

/* --- buttons, forms, misc --- */
.btn { display: inline-block; padding: .45rem .95rem; border-radius: 7px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  text-decoration: none; font-size: .88rem; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: none; }
.btn:hover { filter: brightness(1.25); }
.check { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
form p { margin: .5rem 0; }
form label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .15rem; }
input, select, textarea {
  width: 100%; max-width: 460px; padding: .45rem .6rem; font: inherit;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--field); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
input[type="checkbox"] { width: auto; accent-color: var(--ink); }
input[type="color"] { padding: .1rem; height: 2.2rem; max-width: 80px; }
input[type="file"] { color: var(--muted); }
.search { display: flex; gap: .5rem; margin: .8rem 0; }
.search input { max-width: 340px; }
.tabs { display: flex; gap: .3rem; margin: .8rem 0; }
.tabs a { padding: .3rem .8rem; border-radius: 999px; text-decoration: none;
  color: var(--muted); border: 1px solid transparent; }
.tabs a.active { color: var(--ink); border-color: var(--ink); }
.muted { color: var(--muted); }
.flash { padding: .6rem 1rem; border-radius: 8px; margin-bottom: 1rem;
  background: rgba(86, 224, 139, .12); border: 1px solid var(--ok); color: var(--ok); }
.flash.error { background: rgba(255, 122, 122, .12); border-color: var(--danger);
  color: var(--danger); }
.note { border-top: 1px solid var(--line); padding: .6rem 0; }
.pill { font-size: .7rem; padding: .15rem .55rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line);
  vertical-align: middle; color: var(--muted); }
.pill.paid, .pill.accepted { background: rgba(86, 224, 139, .12); color: var(--ok);
  border-color: var(--ok); }
.pill.overdue, .pill.declined { background: rgba(255, 122, 122, .12); color: var(--danger);
  border-color: var(--danger); }
.pill.sent { color: var(--ink); border-color: var(--ink); }
table.lines { width: 100%; border-collapse: collapse; margin: .8rem 0; }
table.lines th { text-align: left; font-size: .72rem; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--line); padding: .4rem; }
table.lines td { padding: .4rem; border-bottom: 1px solid var(--line); }
table.lines input { max-width: none; }
tr.totals td { border: none; text-align: right; font-weight: 600; }
tr.grand td { color: var(--ink); font-size: 1.05rem; }
.pagination { display: flex; gap: 1rem; align-items: center; color: var(--muted); }

/* Settings tabs, catalog filters, and small inline bits */
.settings-tabs { flex-wrap: wrap; margin-bottom: 1.2rem; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { max-width: 260px; }
.small { font-size: .75rem; }
.thumb { width: 56px; }
form.inline { display: inline; }
.error { color: var(--danger); font-size: .78rem; }

/* Photos and logos on people and companies */
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); }
.avatar.placeholder { display: inline-grid; place-items: center; background: var(--field);
  color: var(--muted); font-size: .85rem; font-weight: 600; }
.avatar.lg { width: 52px; height: 52px; vertical-align: middle; margin-right: .5rem; }
.logo-sm { max-width: 40px; max-height: 36px; object-fit: contain; border-radius: 4px; }
.logo-lg { max-height: 46px; max-width: 130px; object-fit: contain;
  vertical-align: middle; margin-right: .6rem; }

/* Point of sale */
.pos-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .pos-grid { grid-template-columns: 1fr; } }
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem; margin-top: .8rem; }
.pos-item { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start;
  padding: .6rem; border: 1px solid var(--line); border-radius: 9px; background: var(--field);
  cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.pos-item:hover { border-color: var(--ink); }
.pos-item img, .pos-noimg { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; }
.pos-noimg { background: var(--line); display: block; }
.pos-name { font-weight: 600; font-size: .82rem; }
.pos-price { color: var(--muted); font-size: .78rem; }
.pos-qty { display: inline-block; min-width: 2ch; text-align: center; }
.pos-collect { text-align: center; }
/* White plate behind the QR: scanners need the quiet zone to stay light. */
.pos-qr { width: 260px; max-width: 80vw; image-rendering: pixelated;
  background: #fff; padding: 10px; border-radius: 8px; }
.pos-paid-mark { color: var(--ok); font-size: 2rem; }

/* Platform branding — the "made by / running on" credit.
   Both logos are black-on-white JPEGs with no alpha, so each gets a real
   white plate rather than floating on the dark background. */
.platform-footer { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin: 2.4rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--muted); }
.pf-brand { display: inline-flex; align-items: center; gap: .55rem;
  color: var(--muted); text-decoration: none; }
.pf-brand:hover { color: var(--ink); }
.pf-brand strong { font-weight: 600; font-size: 1rem; }
.pf-plate { display: inline-flex; background: #fff; border-radius: 5px;
  padding: 4px 7px; line-height: 0; }
.pf-plate img { display: block; width: auto; }
.pf-pccool { height: 34px; }
.pf-lockup { height: 26px; }   /* wide lockup: match optical weight, not height */
.pf-sep { opacity: .7; }
.login-logo { max-height: 54px; max-width: 180px; object-fit: contain;
  display: block; margin-bottom: .6rem; }
.login-card .platform-footer { margin-top: 1.6rem; }

.error-page { margin-top: 2rem; }
.error-page h1 { margin-top: 0; }

/* ---- in-app documentation ---- */
.docs-layout { display: flex; gap: 24px; align-items: flex-start; }
.docs-nav { flex: 0 0 220px; position: sticky; top: 16px; }
.docs-nav a { display: block; padding: 4px 8px; border-radius: 4px;
              text-decoration: none; font-size: 0.92em; }
.docs-nav a.active { background: var(--accent); color: var(--accent-text); }
.docs-section { margin: 14px 0 4px; font-size: 0.75em; letter-spacing: 1px;
                text-transform: uppercase; opacity: 0.6; }
.docs-body { flex: 1 1 auto; min-width: 0; max-width: 46em; line-height: 1.6; }
.docs-body h2 { margin-top: 1.6em; }
.docs-body h3 { margin-top: 1.3em; font-size: 1.05em; }
.docs-body ul, .docs-body ol { padding-left: 1.3em; }
.docs-body li { margin: 0.35em 0; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.docs-body th, .docs-body td { text-align: left; padding: 6px 8px;
                               border-bottom: 1px solid rgba(128,128,128,0.3);
                               vertical-align: top; }
.docs-body code { padding: 1px 5px; border-radius: 3px;
                  background: rgba(128,128,128,0.18); font-size: 0.92em; }
.docs-body .note { border-left: 3px solid var(--accent); padding: 8px 14px;
                   margin: 1.2em 0; background: rgba(128,128,128,0.10); }
.docs-body .warn { border-left: 3px solid #c0392b; padding: 8px 14px;
                   margin: 1.2em 0; background: rgba(192,57,43,0.10); }
.docs-pager { display: flex; justify-content: space-between; margin-top: 2.5em;
              padding-top: 1em; border-top: 1px solid rgba(128,128,128,0.3); }
@media (max-width: 800px) {
  .docs-layout { flex-direction: column; }
  .docs-nav { position: static; flex: 1 1 auto; }
}

/* ---- reports ---- */
.period-picker { display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
                 justify-content: space-between; }
.period-picker .presets { display: flex; flex-wrap: wrap; gap: 6px; }
.period-picker .custom { display: flex; gap: 10px; align-items: center; }
.period-picker label { display: flex; gap: 6px; align-items: center;
                       font-size: 0.9em; }
.report-table td.num, .report-table th.num { text-align: right;
                                             white-space: nowrap; }
.report-table tr.totals td { font-weight: bold;
                             border-top: 2px solid rgba(128,128,128,0.5); }

/* ---- quote / invoice line items ---- */
.doc-lines td, .doc-lines th { vertical-align: top; padding: 10px 8px; }
.doc-lines td.num, .doc-lines th.num { text-align: right; white-space: nowrap; }
.line-cell { display: flex; gap: 12px; align-items: flex-start; }
.line-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 4px;
              flex: 0 0 54px; background: rgba(128,128,128,0.15); }
.line-text { min-width: 0; }
.line-detail { margin-top: 3px; font-size: 0.9em; line-height: 1.45; }
@media (max-width: 640px) {
  .line-cell { gap: 8px; }
  .line-thumb { width: 40px; height: 40px; flex-basis: 40px; }
}

/* ---- terms and conditions on a document ---- */
.doc-terms { margin-top: 18px; padding-top: 12px;
             border-top: 1px solid rgba(128,128,128,0.3);
             font-size: 0.85em; line-height: 1.55; opacity: 0.85; }
.doc-terms-heading { font-size: 0.75em; letter-spacing: 1.2px;
                     text-transform: uppercase; font-weight: bold;
                     opacity: 0.7; margin-bottom: 4px; }

/* ---- notes on a document ---- */
.doc-notes { margin-top: 16px; padding: 12px 16px; border-radius: 4px;
             background: rgba(128,128,128,0.08); line-height: 1.55; }
.doc-notes-heading { font-size: 0.75em; letter-spacing: 1.1px;
                     text-transform: uppercase; font-weight: bold;
                     opacity: 0.75; margin-bottom: 5px; }
/* Internal notes are marked, not hidden: a different edge is enough to stop
   anyone reading them as something the customer saw. */
.doc-notes--internal { background: rgba(128,128,128,0.05);
                       border-left: 3px solid var(--accent); }

/* ---- day planner ---- */
.planner { display: grid; grid-template-columns: 1fr 300px; gap: 20px;
           align-items: start; }
.planner-page { padding: 0; overflow: hidden; }
.planner-flip { display: flex; align-items: center; justify-content: space-between;
                gap: 16px; padding: 18px 20px;
                border-bottom: 2px solid rgba(128,128,128,0.25); }
.planner-flip .flip { font-size: 1.2em; line-height: 1; padding: 6px 14px; }
.planner-date { text-align: center; }
.planner-weekday { font-size: 1.45em; font-weight: bold; line-height: 1.1; }
.planner-full { opacity: 0.7; }
.planner-today { display: inline-block; margin-top: 4px; font-size: 0.72em;
                 letter-spacing: 1px; text-transform: uppercase;
                 background: var(--accent); color: var(--accent-text);
                 padding: 1px 8px; border-radius: 9px; }
/* The page turn. Subtle: a planner flips, it does not somersault. */
@media (prefers-reduced-motion: no-preference) {
  .planner-page { animation: planner-turn .22s ease-out; }
  @keyframes planner-turn {
    from { opacity: 0; transform: translateX(6px); }
    to   { opacity: 1; transform: none; }
  }
}
.planner-new { display: flex; flex-direction: column; gap: 8px;
               padding: 16px 20px; border-bottom: 1px solid rgba(128,128,128,0.2); }
.planner-new input, .planner-new textarea { width: 100%; }
.planner-new button { align-self: flex-start; }
.planner-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.planner-slot input { width: auto; }
.planner-note-time { font-size: 0.85em; font-weight: bold; color: var(--accent); }
.planner-empty { padding: 22px 20px; }
.planner-note { display: flex; gap: 12px; padding: 14px 20px;
                border-bottom: 1px solid rgba(128,128,128,0.15); }
.planner-note.is-done .planner-note-title,
.planner-note.is-done .planner-note-text { opacity: 0.5;
                                           text-decoration: line-through; }
.planner-note-body { flex: 1 1 auto; min-width: 0; }
.planner-note-title { font-weight: bold; }
.planner-note-text { white-space: pre-wrap; margin-top: 2px; }
.planner-note-meta { margin-top: 6px; }
.planner-note.is-fromothers { border-left: 3px solid var(--accent); }
.planner-note.is-preview { border: 1px solid rgba(128,128,128,0.3);
                           border-radius: 4px; margin: 10px 0 18px; }
.tick { margin: 0; }
.tickbox { width: 22px; height: 22px; border-radius: 4px; cursor: pointer;
           border: 1.5px solid rgba(128,128,128,0.6); background: transparent;
           color: inherit; font-size: 13px; line-height: 1; padding: 0; }
.planner-shared { padding-top: 6px; }
.planner-shared h3 { margin: 16px 20px 4px; font-size: 0.78em;
                     letter-spacing: 1px; text-transform: uppercase;
                     opacity: 0.65; }
.linkish { background: none; border: none; padding: 0; cursor: pointer;
           color: inherit; text-decoration: underline; font: inherit; }
form.inline { display: inline; }

/* ---- the month picker ---- */
.planner-cal { position: sticky; top: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 8px; }
.cal-head .small { padding: 2px 8px; }
table.cal { width: 100%; border-collapse: collapse; }
table.cal th { font-size: 0.7em; letter-spacing: 0.5px; opacity: 0.6;
               font-weight: normal; padding-bottom: 4px; }
table.cal td { text-align: center; padding: 1px; }
.cal-day { display: block; padding: 6px 0; border-radius: 4px;
           text-decoration: none; font-size: 0.9em; position: relative; }
.cal-day.is-today { font-weight: bold; }
.cal-day.is-current { background: var(--accent); color: var(--accent-text); }
.cal-day.has-notes::after { content: ""; position: absolute; bottom: 3px;
                            left: 50%; transform: translateX(-50%);
                            width: 4px; height: 4px; border-radius: 50%;
                            background: currentColor; opacity: 0.65; }
.cal-key { margin-top: 10px; }

/* ---- messages ---- */
.msg-unread td { font-weight: bold; }
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.msg { padding: 12px 16px; border-radius: 6px;
       background: rgba(128,128,128,0.10); max-width: 46em; }
.msg.is-mine { border-left: 3px solid var(--accent); }
.msg-body { white-space: pre-wrap; margin-top: 3px; }

@media (max-width: 860px) {
  .planner { grid-template-columns: 1fr; }
  .planner-cal { position: static; }
}
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px;
             border-radius: 9px; background: var(--accent);
             color: var(--accent-text); font-size: 0.72em;
             text-align: center; line-height: 18px; font-weight: bold; }

/* ---- the new-message popup ---- */
.toast-tray { position: fixed; right: 18px; bottom: 18px; z-index: 60;
              display: flex; flex-direction: column; gap: 10px;
              width: min(340px, calc(100vw - 36px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--card, #fff);
         color: inherit; border: 1px solid rgba(128,128,128,0.3);
         border-left: 3px solid var(--accent); border-radius: 6px;
         padding: 11px 13px; box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.toast-head { display: flex; justify-content: space-between;
              align-items: baseline; gap: 8px; font-weight: bold;
              font-size: 0.9em; }
.toast-close { background: none; border: none; cursor: pointer;
               color: inherit; opacity: 0.55; font-size: 1.15em;
               line-height: 1; padding: 0 2px; }
.toast-close:hover { opacity: 1; }
.toast-subject { display: block; margin-top: 2px; font-weight: 600;
                 text-decoration: none; }
.toast-subject:hover { text-decoration: underline; }
.toast-preview { margin-top: 3px; font-size: 0.87em; opacity: 0.75;
                 overflow: hidden; display: -webkit-box;
                 -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.toast-files { margin-top: 4px; font-size: 0.8em; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .18s ease-out; }
  .toast.is-going { opacity: 0; transform: translateX(8px);
                    transition: opacity .2s, transform .2s; }
  @keyframes toast-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---- composer: emoji + attachments ---- */
.composer-row { display: flex; align-items: center; gap: 8px;
                margin-top: 8px; flex-wrap: wrap; }
.composer-row .primary { margin-left: auto; }
.composer-tools { position: relative; display: inline-block; }
.emoji-panel { position: absolute; bottom: calc(100% + 6px); left: 0;
               z-index: 40; width: 292px; max-height: 250px;
               overflow-y: auto; padding: 8px 10px;
               background: var(--card, #fff);
               border: 1px solid rgba(128,128,128,0.35); border-radius: 6px;
               box-shadow: 0 8px 22px rgba(0,0,0,0.2); }
.emoji-group { font-size: 0.68em; letter-spacing: 1px; opacity: 0.6;
               text-transform: uppercase; margin: 6px 0 3px; }
.emoji-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; }
.emoji { background: none; border: none; cursor: pointer; padding: 3px 0;
         font-size: 1.15em; line-height: 1.3; border-radius: 4px; }
.emoji:hover, .emoji:focus-visible { background: rgba(128,128,128,0.22); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px;
        padding: 3px 9px; border-radius: 12px; font-size: 0.85em;
        background: rgba(128,128,128,0.16); text-decoration: none;
        color: inherit; }
a.chip:hover { background: rgba(128,128,128,0.28); }
.chip.is-bad { background: rgba(200,60,60,0.18); }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
             align-items: flex-start; }
.msg-thumb { display: block; line-height: 0; border-radius: 5px;
             overflow: hidden; border: 1px solid rgba(128,128,128,0.3); }
.msg-thumb img { max-width: 180px; max-height: 180px; height: auto;
                 display: block; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px;
                   padding: 0; margin: -1px; overflow: hidden;
                   clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
label.btn { cursor: pointer; }
.login-forgot { margin-top: 14px; text-align: center; }
