/* ====================================================================
   SQUEEEP — theming
   Three themes via [data-theme] on <html>:
     light (default) — clean modern PM UI
     night           — clean dark
     cyber           — 1980s synthwave (the original look)
   All colours/effects route through the tokens below.
   ==================================================================== */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fredoka-600.woff2') format('woff2');
}

/* ---- Clean light (default) ---- */
:root {
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --bg: #f4f5f7;
  --bg-image: none;
  --panel: #ffffff;
  --panel-alt: #eef1f5;
  --input-bg: #ffffff;
  --header-bg: #ffffff;
  --row-hover: #f3f4f6;
  --cell: #ffffff;
  --cell-other: #f7f8fa;

  --border: #e2e5ea;
  --text: #1f2733;
  --text-strong: #0f1722;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --faint: #9aa3b2;

  --accent: #2563eb;
  --accent-2: #ff3e7f;   /* logo pink — highlights & active states */
  --purple: #2563eb;   /* primary-ish: structural accents & team use blue, not purple */
  --green: #15803d;
  --amber: #a16207;    /* on-hold / locked use yellow, not orange */
  --danger: #dc2626;
  --on-accent: #ffffff;

  /* aliases so existing var(--cyan)/var(--magenta) references keep working */
  --cyan: var(--accent);
  --magenta: var(--accent-2);
  --sky: var(--accent);
  --heading: var(--text-strong);

  /* effects (neon off in clean themes) */
  --glow-current: none;
  --tshadow: none;
  --card-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-strong: 0 12px 40px rgba(16, 24, 40, 0.18);
  --focus-glow: 0 0 0 3px rgba(37, 99, 235, 0.22);

  --brand-color: #ff3e7f;
  --brand-glow: none;
  --brand-anim: none;
  --header-border: var(--border);
  --header-shadow: 0 1px 0 var(--border);
  --selection-bg: var(--accent);

  --heading-transform: none;
  --heading-spacing: 0;
}

/* ---- Night (clean dark) ---- */
:root[data-theme='night'] {
  --bg: #0f141a;
  --panel: #1a212b;
  --panel-alt: #232c38;
  --input-bg: #141a22;
  --header-bg: #161d26;
  --row-hover: #232c38;
  --cell: #161d26;
  --cell-other: #11161d;

  --border: #2b3542;
  --text: #e5e9ef;
  --text-strong: #ffffff;
  --text-soft: #c2cad6;
  --muted: #93a0b0;
  --faint: #5f6b7a;

  --accent: #4d8bff;
  --accent-2: #4d8bff;
  --purple: #4d8bff;   /* primary-ish: structural accents & team use blue, not purple */
  --green: #34d399;
  --amber: #facc15;    /* on-hold / locked use yellow, not orange */
  --danger: #f87171;
  --on-accent: #ffffff;

  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.55);
  --focus-glow: 0 0 0 3px rgba(77, 139, 255, 0.35);
  --selection-bg: var(--accent);
}

/* ---- Cyberpunk (original synthwave) ---- */
:root[data-theme='cyber'] {
  --font: 'Courier New', ui-monospace, Menlo, Consolas, monospace;

  --bg: #08030f;
  --bg-image:
    linear-gradient(rgba(5, 217, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 109, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, #25104a 0%, #08030f 55%);
  --panel: #140a26;
  --panel-alt: #1a0c33;
  --input-bg: #0c0618;
  --header-bg: linear-gradient(180deg, #150a2c, #0c0618);
  --row-hover: #20103b;
  --cell: #0d0620;
  --cell-other: #0a0419;

  --border: #34215c;
  --text: #e6ddff;
  --text-strong: #ffffff;
  --text-soft: #c9bdf0;
  --muted: #9a8cc4;
  --faint: #5b4a82;

  --accent: #05d9e8;
  --accent-2: #ff2a6d;
  --purple: #c04bff;
  --green: #2bff88;
  --amber: #ffb83d;
  --danger: #ff3b6b;
  --on-accent: #08030f;

  --heading: var(--accent-2);

  --glow-current: 0 0 8px currentColor;
  --tshadow: 0 0 6px currentColor;
  --card-shadow: 0 0 20px rgba(176, 74, 237, 0.17);
  --shadow-strong: 0 0 40px rgba(255, 42, 109, 0.4);
  --focus-glow: 0 0 10px rgba(5, 217, 232, 0.6);

  --brand-color: #ffffff;
  --brand-glow: 0 0 4px #fff, 0 0 10px var(--accent), 0 0 22px var(--accent), 0 0 40px var(--accent-2);
  --brand-anim: flicker 4.5s infinite;
  --header-border: var(--accent-2);
  --header-shadow: 0 0 18px rgba(255, 42, 109, 0.55), 0 2px 0 rgba(5, 217, 232, 0.25);
  --selection-bg: var(--accent-2);

  --heading-transform: uppercase;
  --heading-spacing: 1px;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-image);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme='cyber'] body {
  background-size: 44px 44px, 44px 44px, 100% 100%;
  background-attachment: fixed;
}

/* CRT scanlines — cyber only */
:root[data-theme='cyber'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

::selection { background: var(--selection-bg); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

h1, h2, h3 { letter-spacing: var(--heading-spacing); }

/* ---- Top bar ---- */
.topbar {
  position: relative;
  z-index: 2;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  height: 64px;
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', var(--font);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-color);
  text-shadow: var(--brand-glow);
  animation: var(--brand-anim);
}
.brand-logo { width: 30px; height: 30px; display: block; flex-shrink: 0; }
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.65; }
  94% { opacity: 1; }
  96% { opacity: 0.8; }
}

.mainnav { display: flex; gap: 4px; height: 100%; }
.navbtn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.navbtn:hover { color: var(--accent); text-shadow: var(--tshadow); }
.navbtn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: var(--tshadow);
}

.searchbar { margin-left: auto; }
.searchbar input {
  width: 230px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--input-bg);
}

.userbox { display: flex; align-items: center; gap: 10px; margin-left: 18px; }
.account-pill {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--panel-alt);
}
.profile-trigger {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 4px 6px; margin: -4px -6px;
  border-radius: 6px; cursor: pointer; font: inherit; color: inherit;
}
.profile-trigger:hover { background: var(--row-hover); }
.profile-trigger:focus-visible { outline: none; box-shadow: var(--focus-glow); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--on-accent);
  background: var(--accent); box-shadow: var(--glow-current);
}
.user-name { font-size: 13px; color: var(--text); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent-2); text-decoration: none; border: 1px solid var(--accent-2);
  border-radius: 4px; padding: 5px 10px; box-shadow: var(--glow-current);
}
.logout:hover { background: var(--accent-2); color: #fff; }

.userlink {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); background: none; border: 1px solid var(--accent);
  border-radius: 4px; padding: 5px 10px; cursor: pointer;
  box-shadow: var(--glow-current);
}
.userlink:hover { background: var(--accent); color: var(--on-accent); }

.theme-select {
  height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 4px;
  font-family: inherit; font-size: 12px; color: var(--text); background: var(--input-bg); cursor: pointer;
}

/* Profile drawer */
.profile-card { text-align: center; margin: 4px 0 18px; }
.profile-avatar { display: flex; justify-content: center; margin-bottom: 10px; }
.profile-photo-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.avatar-lg {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--border); box-shadow: var(--card-shadow);
}
.avatar-lg.initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--on-accent); background: var(--accent);
}
.profile-dl { margin: 0; }
.profile-dl-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.profile-dl-row:last-child { border-bottom: none; }
.profile-dl dt { margin: 0; color: var(--muted); font-weight: 500; }
.profile-dl dd { margin: 0; color: var(--text); word-break: break-word; }
.badge.admin-badge { display: inline-block; background: var(--panel-alt); color: var(--accent); border: 1px solid var(--accent); }
.profile-section { border-top: 1px solid var(--border); padding: 16px 0; }
.profile-section:last-child { padding-bottom: 0; }
.profile-section-title {
  margin: 0 0 12px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted);
}
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-label { font-size: 13px; color: var(--text-soft); }
.profile-section .theme-select { width: 100%; height: 38px; font-size: 13px; }
.profile-section .userlink { width: 100%; text-align: center; }

/* API Keys drawer */
.key-intro { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.key-intro a { color: var(--accent); }
.key-create { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
.key-create .field { margin: 0; flex: 1; min-width: 160px; }
.keylist { display: flex; flex-direction: column; gap: 8px; }
.key-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; background: var(--panel-alt);
}
.key-row.revoked { opacity: 0.5; }
.key-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.key-label { font-weight: 600; color: var(--text); }
.key-meta code { font-size: 12px; color: var(--purple); }
.key-sub { font-size: 12px; color: var(--muted); }
.key-revoke {
  font-size: 12px; color: var(--danger); background: none; border: 1px solid var(--danger);
  border-radius: 4px; padding: 4px 10px; cursor: pointer; white-space: nowrap;
}
.key-revoke:hover { background: var(--danger); color: #fff; }
.key-new {
  border: 1px solid var(--green); border-radius: 6px; padding: 12px;
  margin-bottom: 14px; background: var(--panel-alt); color: var(--text);
}
.key-new strong { display: block; font-size: 13px; margin-bottom: 8px; color: var(--green); }
.key-full {
  display: block; word-break: break-all; font-size: 13px; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px; padding: 8px; margin-bottom: 8px;
}
.key-copy {
  font-size: 12px; color: var(--green); background: none; border: 1px solid var(--green);
  border-radius: 4px; padding: 4px 12px; cursor: pointer;
}

main { position: relative; z-index: 1; padding: 26px; }

.view { display: none; }
.view.active { display: block; }

/* ---- Toolbar ---- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.toolbar h2, .panel-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  text-transform: var(--heading-transform);
  color: var(--heading);
  text-shadow: var(--tshadow);
}
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.admin-panel { margin-top: 8px; }
.admin-subtoolbar { margin-bottom: 14px; }
.admin-subtoolbar h2 { font-size: 18px; color: var(--text-strong); }

.platform-org-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
}
.platform-org-banner strong { color: var(--text); }

.platform-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.platform-search input[type="search"] {
  min-width: 220px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

select, button { font-family: inherit; }

select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  background: var(--input-bg);
}
select:focus, .searchbar input:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-glow);
}

button.primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--glow-current);
  text-shadow: var(--tshadow);
  transition: all 0.15s;
}
button.primary:hover {
  background: var(--accent);
  color: var(--on-accent);
  text-shadow: none;
}

/* ---- Tables ---- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th {
  background: var(--panel-alt); color: var(--accent); font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px; user-select: none;
  text-shadow: var(--tshadow);
}
th .arrow { font-size: 10px; margin-left: 4px; }
tbody tr { cursor: pointer; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--row-hover); box-shadow: inset 3px 0 0 var(--accent-2); }

/* ---- Projects table: grouped tree (Team → projects → subtasks, then tasks) ---- */
tr.grp-team td {
  background: var(--panel-alt); color: var(--heading); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
  text-shadow: var(--tshadow);
}
tr.grp-team, tr.grp-tasksheader, tr.grp-task { cursor: default; }
tr.grp-team:hover, tr.grp-tasksheader:hover, tr.grp-task:hover { background: transparent; box-shadow: none; }
tr.grp-team:hover td { background: var(--panel-alt); }
.grp-count { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 10px; font-size: 11px; text-shadow: none; }
.tree-toggle {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 12px; width: 18px; padding: 0; margin-right: 4px;
}
.tree-toggle:disabled { color: var(--border); cursor: default; }
td.indent-1 { padding-left: 34px; }
td.indent-2 { padding-left: 54px; }
tr.grp-subtask td, tr.grp-task td { font-size: 13px; background: var(--panel-alt); }
tr.grp-tasksheader td { color: var(--purple); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
tr.grp-task input[type="checkbox"] { vertical-align: middle; margin-right: 6px; accent-color: var(--accent); }
tr.grp-subtask .avatar-sm, tr.grp-task .avatar-sm { vertical-align: middle; margin-left: 6px; }

.empty { color: var(--muted); text-align: center; padding: 40px; }

/* ---- Status badges ---- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  background: transparent; border: 1px solid currentColor;
}
.badge.in_progress { color: var(--accent); box-shadow: var(--glow-current); text-shadow: var(--tshadow); }
.badge.finished { color: var(--green); box-shadow: var(--glow-current); text-shadow: var(--tshadow); }
.badge.on_hold { color: var(--amber); box-shadow: var(--glow-current); text-shadow: var(--tshadow); }
.badge.personal { color: var(--muted); box-shadow: none; text-shadow: none; }
.badge.team { color: var(--purple); box-shadow: var(--glow-current); text-shadow: var(--tshadow); }
.badge.locked { color: var(--amber); box-shadow: var(--glow-current); text-shadow: var(--tshadow); }

/* ---- View toggle ---- */
.viewtoggle { display: inline-flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.viewtoggle button {
  background: var(--input-bg); border: none; padding: 8px 14px; font-size: 12px; cursor: pointer;
  color: var(--muted); border-right: 1px solid var(--border); text-transform: uppercase; letter-spacing: 1px;
}
.viewtoggle button:last-child { border-right: none; }
.viewtoggle button.active { background: var(--accent-2); color: #fff; box-shadow: var(--glow-current); text-shadow: var(--tshadow); }

.proj-mode { width: 100%; }
.muted-text { color: var(--muted); }
.overdue-text { color: var(--danger); font-weight: 700; text-shadow: var(--tshadow); }

/* ---- Pipeline / board ---- */
.board { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; padding-bottom: 10px; }
.column {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 250px;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px);
  box-shadow: var(--card-shadow);
}
.column-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.column-head .ch-title {
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--purple); text-shadow: var(--tshadow);
}
.column-head .ch-meta { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 1px; }
.column-body { padding: 10px; overflow-y: auto; flex: 1; min-height: 60px; }
.column.dragover { box-shadow: inset 0 0 0 2px var(--accent); }

.job-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 12px;
  margin-bottom: 10px;
  cursor: grab;
}
.job-card:hover { border-color: var(--accent); box-shadow: var(--card-shadow); }
.job-card.dragging { opacity: 0.5; }
.job-card .jc-title { font-weight: 700; font-size: 14px; color: var(--text); }
.job-card .jc-sub { font-size: 11px; color: var(--accent); margin-top: 6px; letter-spacing: 0.5px; }
.job-card .jc-shared { font-size: 10px; color: var(--purple); margin-top: 5px; letter-spacing: 1px; text-transform: uppercase; }
.jc-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.badge.shared { color: var(--purple); box-shadow: var(--glow-current); text-shadow: var(--tshadow); }

.share-add { display: flex; gap: 8px; margin: 8px 0; }
.share-add input {
  flex: 1; padding: 7px 9px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 13px; font-family: inherit; color: var(--text); background: var(--input-bg);
}
.share-add input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-glow); }
.share-add .share-btn {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 4px; padding: 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}
.share-add .share-btn:hover { background: var(--accent); color: var(--on-accent); }

.member-list2 { list-style: none; margin: 6px 0 0; padding: 0; }
.member-list2 li { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.member-list2 li:last-child { border-bottom: none; }

/* ---- Avatars ---- */
.avatar-sm {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  border: 1px solid var(--accent); box-shadow: var(--glow-current);
}
.avatar-sm.initials {
  background: var(--purple); color: var(--on-accent); font-size: 11px; font-weight: 700;
  border-color: var(--purple); box-shadow: var(--glow-current);
}
.avatar-sm.big { width: 56px; height: 56px; font-size: 22px; }
.avatar-sm.inactive { filter: grayscale(1); opacity: 0.5; border-color: var(--muted); box-shadow: none; }
.row-inactive { opacity: 0.55; }
.badge.inactive-badge { color: var(--muted); box-shadow: none; text-shadow: none; }

/* ---- Recurring panel (Tasks tab) ---- */
.recurring-box {
  max-width: 780px; margin-bottom: 18px;
  border: 1px solid var(--purple); border-radius: 8px;
  background: var(--panel); box-shadow: var(--card-shadow);
}
.recurring-head {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--purple); padding: 10px 14px; border-bottom: 1px solid var(--border);
  text-shadow: var(--tshadow);
}
.recurring-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.recurring-item:last-child { border-bottom: none; }
.ri-body { flex: 1; min-width: 0; }
.ri-subject { font-weight: 700; font-size: 14px; }
.ri-meta { font-size: 12px; color: var(--muted); margin-top: 2px; text-transform: capitalize; }
.ri-stop { color: var(--danger); border-color: var(--border); }
.ri-stop:hover { border-color: var(--danger); color: var(--danger); }

/* user chip photo */
.avatar.has-photo { background: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* ---- Users page ---- */
#users-table td:first-child { width: 40px; }
.checkrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin-bottom: 14px; }
.checkrow input { width: 16px; height: 16px; accent-color: var(--accent); }
.photo-edit { display: flex; align-items: center; gap: 14px; }
.member-editor { display: grid; gap: 8px; }
.team-member-row, .team-add-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.team-member-row span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-add-row { border-bottom: none; margin-top: 4px; }
.team-add-row select { min-width: 0; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: 4px; padding: 7px 12px; font-size: 12px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.danger-link {
  display: block; background: none; border: none; color: var(--danger); cursor: pointer;
  font-size: 13px; padding: 0; margin-top: 16px; text-decoration: underline;
}
.danger-link:hover { text-shadow: var(--tshadow); }

/* ---- Tasks ---- */
.tasks { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.task {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 14px; margin-bottom: 10px;
}
.task:hover { border-color: var(--purple); box-shadow: var(--card-shadow); }
.task input[type=checkbox] { margin-top: 3px; width: 17px; height: 17px; cursor: pointer; flex-shrink: 0; accent-color: var(--accent); }
.task-main { flex: 1; }
.task-subject { font-weight: 700; font-size: 14px; }
.task-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.task .due { font-weight: 700; color: var(--accent); }
.task.overdue .due { color: var(--danger); text-shadow: var(--tshadow); }
.task-link { color: var(--accent); cursor: pointer; }
.task-link:hover { text-shadow: var(--tshadow); }

/* ---- Reports ---- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 18px;
  box-shadow: var(--card-shadow);
}
.kpi .k-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.kpi .k-value { font-size: 30px; font-weight: 800; margin-top: 8px; color: var(--accent); text-shadow: var(--tshadow); }

.report-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 18px 20px; margin-bottom: 20px; max-width: 780px;
  box-shadow: var(--card-shadow);
}
.report-card h3 {
  margin: 0 0 16px; font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: var(--heading); text-shadow: var(--tshadow);
}
.work-group { margin-bottom: 16px; }
.work-proj { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--accent); cursor: pointer; }
.work-proj:hover { text-shadow: var(--tshadow); }
.work-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0 4px 14px; gap: 12px; }

.client-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.client-row:last-child { border-bottom: none; }
.client-row .c-meta { color: var(--muted); }

/* ---- Calendar ---- */
.cal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.cal-head h3 {
  margin: 0; font-size: 18px; font-weight: 700; min-width: 190px; text-align: center;
  text-transform: uppercase; color: var(--accent); text-shadow: var(--tshadow);
}
.cal-nav {
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px;
  width: 34px; height: 34px; font-size: 18px; cursor: pointer; color: var(--accent);
}
.cal-nav:hover { border-color: var(--accent); }
.cal-legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.dot.subtask { background: var(--accent); }
.dot.task { background: var(--amber); }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.cal-dow { background: var(--panel-alt); text-align: center; padding: 8px 0; font-size: 11px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 1px; }
.cal-cell { background: var(--cell); min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.cal-cell.other { background: var(--cell-other); }
.cal-cell.other .cal-date { color: var(--faint); }
.cal-cell.today { background: var(--panel-alt); box-shadow: inset 0 0 0 1px var(--accent-2); }
.cal-date { font-size: 12px; color: var(--muted); font-weight: 700; }
.cal-item {
  font-size: 11px; padding: 2px 6px; border-radius: 3px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--panel-alt); color: var(--accent); border-left: 3px solid var(--accent);
}
.cal-item.task { color: var(--amber); border-left-color: var(--amber); }
.cal-item.done { opacity: 0.45; text-decoration: line-through; }

/* ---- Drawer ---- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 430px; max-width: 92vw;
  background: var(--panel);
  border-left: 2px solid var(--accent);
  box-shadow: var(--shadow-strong);
  z-index: 41; overflow-y: auto; padding: 22px 24px;
}
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.drawer-head-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.drawer-head h2 { margin: 0; font-size: 19px; color: var(--text-strong); text-shadow: var(--tshadow); }
.drawer-back {
  align-self: flex-start; background: none; border: none; padding: 0;
  font-size: 13px; color: var(--accent); cursor: pointer; font-family: inherit;
}
.drawer-back:hover { text-decoration: underline; }
.drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.drawer-close:hover { color: var(--accent-2); }
.drawer-actions { display: flex; gap: 8px; margin: 14px 0 20px; }
.drawer-actions button {
  border: 1px solid var(--border); background: var(--input-bg); border-radius: 4px;
  padding: 6px 14px; font-size: 12px; cursor: pointer; color: var(--text); text-transform: uppercase; letter-spacing: 1px;
}
.drawer-actions .edit:hover { border-color: var(--accent); color: var(--accent); }
.drawer-actions .del:hover { border-color: var(--danger); color: var(--danger); }

.detail-row { display: flex; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.detail-row .dl { width: 110px; color: var(--muted); flex-shrink: 0; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.detail-row .dv { flex: 1; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; }
.section-head h3 { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--purple); text-shadow: var(--tshadow); }
.section-head button {
  background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; box-shadow: var(--glow-current);
}
.section-head button:hover { background: var(--accent); color: var(--on-accent); }

/* timeline (activities) */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-icon { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }
.tl-body { flex: 1; min-width: 0; }
.tl-subject { font-weight: 700; font-size: 14px; }
.tl-subject.done { text-decoration: line-through; color: var(--muted); }
.tl-text { font-size: 13px; color: var(--text-soft); margin-top: 2px; white-space: pre-wrap; }
.tl-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tl-del { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 14px; }
.tl-del:hover { color: var(--danger); }

/* subtasks */
.subtasks { list-style: none; margin: 0; padding: 0; }
.subtask-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); }
.subtask-item input[type=checkbox] { margin-top: 2px; width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; accent-color: var(--green); }
.st-body { flex: 1; min-width: 0; }
.st-title { font-weight: 700; font-size: 14px; }
.st-title.done { text-decoration: line-through; color: var(--muted); }
.st-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.st-notes { font-size: 13px; color: var(--text-soft); margin-top: 3px; white-space: pre-wrap; }
.st-files { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.att-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--panel-alt); border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 4px 2px 8px; font-size: 12px; max-width: 100%;
}
.att-chip a { color: var(--accent); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-chip a:hover { text-shadow: var(--tshadow); }
.att-del { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.att-del:hover { color: var(--danger); }
.att-add {
  background: none; border: 1px dashed var(--border); border-radius: 4px;
  padding: 3px 9px; font-size: 12px; color: var(--muted); cursor: pointer;
}
.att-add:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 60;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--accent-2);
  border-radius: 8px; padding: 24px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-strong);
}
.modal h3 { margin: 0 0 18px; text-transform: uppercase; color: var(--heading); text-shadow: var(--tshadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--input-bg);
}
.field textarea { resize: vertical; min-height: 64px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-actions button { padding: 9px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
.modal-actions .primary { background: transparent; color: var(--accent-2); border: 1px solid var(--accent-2); box-shadow: var(--glow-current); }
.modal-actions .primary:hover { background: var(--accent-2); color: #fff; }
#modal-cancel { background: var(--input-bg); border: 1px solid var(--border); color: var(--text); }
#modal-cancel:hover { border-color: var(--muted); }

.modal-wide { max-width: 640px; max-height: 90vh; overflow: auto; }
#modal-form.modal-wide { max-width: 640px; }
.job-ai-section { margin-bottom: 18px; }
.job-ai-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--purple); text-shadow: var(--tshadow); margin-bottom: 8px;
}
.job-ai-divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.job-ai-generate {
  background: transparent; border: 1px solid var(--purple); color: var(--purple);
  padding: 8px 14px; border-radius: 4px; font-size: 12px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px;
  box-shadow: var(--glow-current);
}
.job-ai-generate:hover:not(:disabled) { background: var(--purple); color: #fff; }
.job-ai-generate:disabled { opacity: 0.6; cursor: wait; }
.ai-hint { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.ai-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); margin-bottom: 14px; cursor: pointer;
}
.ai-check input { width: auto; }
.section-head-actions { display: flex; gap: 8px; align-items: center; }
.ai-plan-subtasks, #plan-from-text {
  background: transparent; border: 1px solid var(--purple); color: var(--purple);
  padding: 6px 12px; border-radius: 4px; font-size: 12px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: var(--glow-current);
}
.ai-plan-subtasks:hover, #plan-from-text:hover {
  background: var(--purple); color: #fff;
}
.ai-sub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ai-sub-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 6px; }
.ai-sub-row input[type="checkbox"] { margin-top: 10px; width: auto; }
.ai-sub-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-sub-fields input[type="text"], .ai-sub-fields input[type="date"] {
  width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 13px; font-family: inherit; color: var(--text); background: var(--input-bg);
}
.ai-sub-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge.from-text { border-color: var(--accent); color: var(--accent); }
.badge.suggested { border-color: var(--amber); color: var(--amber); }

/* ====================================================================
   Responsive layout
   ==================================================================== */

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 6px;
  font-size: 20px; line-height: 1; color: var(--text); cursor: pointer; flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus-glow); }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -2px;
  padding: 0 2px 4px;
}
.table-scroll table { min-width: 520px; }

/* Tablet */
@media (max-width: 1024px) {
  .topbar { gap: 16px; padding: 0 16px; }
  .brand { font-size: 20px; letter-spacing: 3px; }
  .searchbar input { width: 180px; }
  main { padding: 20px 16px; }
  .column { min-width: 220px; }
}

/* Mobile nav + stacked header */
@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 10px 12px;
    gap: 10px;
    align-items: center;
  }
  .nav-toggle { display: flex; order: 0; }
  .brand { order: 1; font-size: 18px; letter-spacing: 2px; }
  .userbox { order: 2; margin-left: auto; }
  .searchbar { order: 3; width: 100%; margin-left: 0; }
  .searchbar input { width: 100%; }
  .mainnav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    height: auto;
    gap: 0;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  .topbar.nav-open .mainnav { display: flex; }
  .navbtn {
    height: auto;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    text-align: left;
  }
  .navbtn:last-child { border-bottom: none; }
  .navbtn.active { border-bottom-color: var(--border); border-left-color: var(--accent); }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .toolbar h2, .panel-head h2 { font-size: 20px; }
  .toolbar-right {
    flex-wrap: wrap;
    gap: 8px;
  }
  .viewtoggle { width: 100%; }
  .viewtoggle button { flex: 1; }
  .toolbar-right select { flex: 1 1 calc(50% - 4px); min-width: 120px; }
  .toolbar-right .primary,
  .toolbar-right #plan-from-text { flex: 1 1 auto; }

  .board {
    flex-direction: column;
    overflow-x: visible;
    gap: 12px;
  }
  .column {
    min-width: 0;
    width: 100%;
    max-height: none;
  }

  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .k-value { font-size: 24px; }

  .drawer { width: min(430px, 100%); max-width: 100%; }
  .key-row { flex-direction: column; align-items: stretch; }
  .key-revoke { align-self: flex-start; }

  .team-member-row, .team-add-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .team-member-row span { white-space: normal; }

  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal, .modal-wide { max-height: 92vh; border-radius: 12px 12px 0 0; }
  .ai-modal.modal-wide { max-width: 100%; }
}

/* Small phones */
@media (max-width: 520px) {
  main { padding: 14px 12px; }
  .user-name { display: none; }
  .logout { padding: 6px 8px; font-size: 11px; }
  .profile-trigger { gap: 0; }

  th, td { padding: 10px 10px; font-size: 13px; }
  td.indent-1 { padding-left: 22px; }
  td.indent-2 { padding-left: 36px; }

  .cal-head h3 { font-size: 15px; min-width: 0; flex: 1; }
  .cal-legend { flex-wrap: wrap; gap: 10px; }
  .cal-cell { min-height: 52px; padding: 4px; }
  .cal-dow { padding: 6px 0; font-size: 10px; }
  .cal-item { font-size: 10px; padding: 1px 4px; }

  .drawer {
    width: 100%;
    border-left: none;
    padding: 18px 16px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .profile-dl-row { grid-template-columns: 64px 1fr; }

  .detail-row { flex-direction: column; gap: 2px; }
  .detail-row .dl { width: auto; }

  .section-head { flex-wrap: wrap; gap: 8px; }
  .section-head-actions { width: 100%; justify-content: flex-end; }

  .share-add { flex-direction: column; }
  .share-add .share-btn { width: 100%; padding: 10px; }

  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }

  .kpis { grid-template-columns: 1fr 1fr; }
  .report-card, .tasks, .recurring-box { max-width: none; }

  .work-item { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* Safe areas (notched phones) */
@supports (padding: env(safe-area-inset-left)) {
  .topbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  main {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

/* ---- Sign-in page ---- */
body.login-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 28px 24px 24px;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.login-wordmark {
  font-family: 'Fredoka', var(--font);
  font-size: 28px;
  font-weight: 600;
  color: var(--brand-color);
}

.login-tagline {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.login-social {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.login-social-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.login-social-btn:hover {
  background: var(--row-hover);
}

.login-social-google { border-color: #dadce0; }
.login-social-github { border-color: var(--border); }
.login-social-apple { border-color: var(--border); }

.login-or {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-form,
.login-step {
  display: grid;
  gap: 12px;
}

.login-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.login-form input[type='email'] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.login-form input[type='email']:focus {
  outline: none;
  box-shadow: var(--focus-glow);
  border-color: var(--accent);
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.login-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.login-back {
  justify-self: center;
  margin-top: 4px;
}

.login-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.login-signup {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.login-signup-title {
  margin: 0 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.login-signup-actions {
  display: grid;
  gap: 8px;
}

.login-signup-btn {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-alt);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.login-signup-btn:hover {
  background: var(--row-hover);
}

#company-form input[type='text'],
#company-form input[type='email'] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}
