:root {
  --font-sans: "Google Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ink: #0a1220;
  --ink-soft: #1a2438;
  --paper: #f7f3eb;
  --paper-bright: #fffcf7;
  --paper-muted: #efe9dc;
  --gold: #c9a962;
  --gold-deep: #9a7b32;
  --gold-soft: rgba(201, 169, 98, 0.14);
  --line: rgba(10, 18, 32, 0.08);
  --line-strong: rgba(10, 18, 32, 0.14);
  --muted: #5c5e64;
  --muted-soft: #76777d;
  --shadow-soft: 0 1px 0 rgba(10, 18, 32, 0.04), 0 22px 48px rgba(10, 18, 32, 0.06);
  --shadow-lift: 0 8px 28px rgba(10, 18, 32, 0.1);
  --radius-card: 18px;
  --radius-control: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
input, select, textarea, button { font-family: inherit; }
/* Form fields keep soft radius; CTAs are square (see bottom of file). */
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]) {
  border-radius: 14px;
}
button,
[type="button"],
[type="submit"],
[type="reset"],
.auth-kind,
.auth-submit,
.auth-google,
.share-btn,
.app-canvas a.bg-primary:not(.rounded-full),
.app-canvas a.bg-primary-container:not(.rounded-full),
.app-canvas button {
  border-radius: 0;
}
.rounded-full {
  border-radius: 9999px !important;
}
/* Only force square on actual CTA buttons that use rounded-full by mistake */
button.rounded-full.bg-primary,
button.rounded-full.bg-primary-container,
a.btn.rounded-full,
a.bg-primary.rounded-full:not([aria-label]):not(.app-avatar),
a.bg-primary-container.rounded-full:not([aria-label]):not(.app-avatar) {
  border-radius: 0 !important;
}
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"] { border-radius: 999px; }
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2376777d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}
code, kbd, samp, pre, .font-mono { font-family: var(--font-mono); }
.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
@media (max-width: 767px) {
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 479px) {
  .bento-grid { grid-template-columns: 1fr; }
}
.no-scrollbar::-webkit-scrollbar { display: none; }

.status-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
  display: inline-block;
  border: 1px solid transparent;
}
.status-confirmed, .status-active, .status-paid, .status-completed, .status-approved, .status-converted, .status-available, .status-done, .status-vip {
  background: rgba(18, 81, 44, 0.1);
  color: #12512c;
  border-color: rgba(18, 81, 44, 0.14);
}
.status-pending, .status-draft, .status-new, .status-todo, .status-sent, .status-partial, .status-unpaid {
  background: rgba(154, 123, 50, 0.12);
  color: #6b5410;
  border-color: rgba(154, 123, 50, 0.18);
}
.status-cancelled, .status-lost, .status-rejected, .status-failed, .status-overdue, .status-void, .status-expired {
  background: rgba(147, 0, 10, 0.08);
  color: #93000a;
  border-color: rgba(147, 0, 10, 0.12);
}
.status-in_progress, .status-operations, .status-ready, .status-contacted, .status-quotation_sent, .status-viewed {
  background: rgba(10, 18, 32, 0.06);
  color: #0a1220;
  border-color: rgba(10, 18, 32, 0.1);
}

/* Auth — split-screen login / register */
.auth-body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(201, 169, 98, 0.16), transparent 55%),
    var(--paper);
  color: #1a1c1c;
}
.auth-shell {
  display: flex;
  min-height: 100dvh;
  width: 100%;
}
.auth-hero {
  display: none;
  position: relative;
  width: 48%;
  min-height: 100dvh;
  overflow: hidden;
  color: #f9f9f8;
  flex-shrink: 0;
}
.auth-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: auth-ken 18s ease-in-out infinite alternate;
}
.auth-hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 26, 0.2) 0%, rgba(8, 14, 26, 0.28) 36%, rgba(8, 14, 26, 0.9) 100%),
    linear-gradient(90deg, rgba(8, 14, 26, 0.34) 0%, transparent 44%);
}
.auth-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.auth-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100dvh;
  padding: 40px 48px 48px;
}
.auth-hero-brand {
  position: absolute;
  top: 36px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-hero-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.auth-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #131b2e;
  color: #e9c349;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  border: 1px solid rgba(233, 195, 73, 0.45);
}
.auth-wordmark {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}
.auth-wordmark-dark { color: #131b2e; }
.auth-hero-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e9c349;
}
.auth-hero-title {
  margin: 0 0 16px;
  max-width: 18ch;
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #fff;
}
.auth-hero-copy {
  margin: 0 0 28px;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.auth-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-hero-pills li {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(233, 195, 73, 0.35);
  background: rgba(19, 27, 46, 0.35);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4f1ea;
}
.auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(233, 195, 73, 0.12), transparent 55%),
    #f4f1ea;
}
.auth-panel-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
}
.auth-card {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, transparent 36%),
    #fff;
  border: 1px solid rgba(198, 198, 205, 0.45);
  border-top: 3px solid #c9a962;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(8, 14, 26, 0.1), 0 2px 0 rgba(255, 255, 255, 0.85) inset;
  padding: 40px 34px 34px;
  animation: rise-in 0.55s var(--ease-out);
}
.auth-card-narrow { max-width: 440px; }
.auth-card-wide { max-width: 560px; }
.auth-mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #735c00;
}
.auth-heading {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}
.auth-lede {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: #45464d;
}
.auth-forgot {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
.auth-forgot a {
  color: #1a2744;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-forgot a:hover { color: #000; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #45464d;
}
.auth-optional {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  color: #76777d;
}
.auth-form input.auth-input,
.auth-form input[type="email"].auth-input,
.auth-form input[type="password"].auth-input,
.auth-form input[type="text"].auth-input,
.auth-form input[type="tel"].auth-input,
.auth-form input[type="number"].auth-input,
.auth-form input[type="date"].auth-input,
.auth-form select.auth-input,
.auth-form textarea.auth-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c6c6cd;
  border-radius: 14px;
  background: #f9f9f8;
  color: #1a1c1c;
  font-size: 14px;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-field { position: relative; }
.auth-form .auth-field input.auth-input { padding-left: 44px; }
.auth-form .auth-field input.auth-input[type="password"] { padding-right: 44px; }
.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #76777d;
  pointer-events: none;
}
.auth-form input.auth-input:hover,
.auth-form select.auth-input:hover { border-color: #76777d; }
.auth-form input.auth-input:focus,
.auth-form select.auth-input:focus {
  outline: none;
  background: #fff;
  border-color: #131b2e;
  box-shadow: 0 0 0 4px rgba(19, 27, 46, 0.1);
}
.auth-select { position: relative; }
.auth-form .auth-select select.auth-input {
  padding-left: 44px;
  padding-right: 40px;
  cursor: pointer;
  background-image: none;
}
.auth-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #76777d;
  pointer-events: none;
}
.auth-hint {
  margin: -2px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #76777d;
}
.auth-currency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.auth-currency {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px 14px 12px 12px;
  border: 1px solid #c6c6cd;
  border-radius: 18px;
  background: #f9f9f8;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.auth-currency input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}
.auth-currency-symbol {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eeeae0;
  color: #131b2e;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.auth-currency-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.auth-currency-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #131b2e;
}
.auth-currency-name {
  font-size: 11px;
  line-height: 1.3;
  color: #45464d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-currency-flag {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #76777d;
  background: #eeeae0;
  border-radius: 999px;
  padding: 4px 8px;
}
.auth-currency.is-default .auth-currency-flag,
.auth-currency:has(input:checked).is-default .auth-currency-flag {
  background: #131b2e;
  color: #e9c349;
}
.auth-currency:hover { border-color: #131b2e; }
.auth-currency:has(input:checked) {
  border-color: #131b2e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(203, 167, 47, 0.28);
}
.auth-currency:has(input:checked) .auth-currency-symbol {
  background: #131b2e;
  color: #e9c349;
}
.auth-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #76777d;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-eye:hover { color: #131b2e; background: #f4f4f3; }
.auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #45464d;
  cursor: pointer;
}
.auth-check input {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border-color: #c6c6cd;
  color: #131b2e;
}
.auth-link {
  font-size: 13px;
  font-weight: 600;
  color: #131b2e;
  text-decoration: none;
  border-bottom: 1px solid rgba(203, 167, 47, 0.55);
}
.auth-link:hover { border-bottom-color: #cba72f; }
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(8, 14, 26, 0.22), inset 0 -2px 0 rgba(201, 169, 98, 0.95);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.auth-submit:hover { background: #000; transform: translateY(-1px); }
.auth-submit:active { transform: scale(0.985); }
.auth-submit .material-symbols-outlined { font-size: 18px; color: #e9c349; }
.auth-google-block { display: grid; gap: 12px; margin-bottom: 16px; }
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: 1px solid #c6c6cd;
  border-radius: 0;
  background: #fff;
  color: #131b2e;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.auth-google:hover { background: #f4f4f6; border-color: #131b2e; }
.auth-google:active { transform: scale(0.985); }
.auth-google-mark { display: inline-flex; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 4px;
  color: #8d8e96;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e4ea;
}
.auth-or span { line-height: 1; }
.auth-switch {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: #45464d;
}
.auth-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.auth-alert-error { background: #ffdad6; color: #93000a; }
.auth-alert-ok { background: #b1f2be; color: #12512c; }
.onboard-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.onboard-progress li {
  font-size: 12px;
  font-weight: 600;
  color: #76777d;
}
.onboard-progress li a,
.onboard-progress li span { color: inherit; text-decoration: none; }
.onboard-progress li.is-done a { color: #12512c; }
.onboard-progress li.is-active a { color: #131b2e; border-bottom: 1px solid #cba72f; }
.auth-kinds { margin: 0; padding: 0; border: 0; }
.auth-kind-grid,
.auth-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.auth-kind {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  border: 1px solid #c6c6cd;
  border-radius: 18px;
  background: #f9f9f8;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.auth-kind input { position: absolute; opacity: 0; pointer-events: none; }
.auth-kind-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eeeae0;
  color: #131b2e;
}
.auth-kind-title { display: block; font-size: 14px; font-weight: 700; color: #131b2e; }
.auth-kind-copy { display: block; font-size: 12px; line-height: 1.4; color: #45464d; }
.auth-kind:hover { border-color: #131b2e; }
.auth-kind:has(input:checked) {
  border-color: #131b2e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(203, 167, 47, 0.28);
}
.auth-kind:has(input:checked) .auth-kind-icon {
  background: #131b2e;
  color: #e9c349;
}
.auth-roles { margin: 0; padding: 0; border: 0; }
.auth-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.auth-role {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px 12px 12px;
  border: 1px solid #c6c6cd;
  border-radius: 18px;
  background: #f9f9f8;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.auth-role input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.auth-role-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eeeae0;
  color: #131b2e;
}
.auth-role-icon .material-symbols-outlined { font-size: 22px; }
.auth-role-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.auth-role-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #131b2e;
}
.auth-role-copy {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #45464d;
}
.auth-role-note {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: #76777d;
}
.auth-role-flag {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #131b2e;
  background: #eeeae0;
  border-radius: 999px;
  padding: 4px 8px;
}
.auth-role:has(input:checked) .auth-role-flag {
  background: #131b2e;
  color: #e9c349;
}
.auth-role-check {
  flex: 0 0 auto;
  font-size: 22px;
  color: #c6c6cd;
}
.auth-role:hover { border-color: #131b2e; }
.auth-role:has(input:checked) {
  border-color: #131b2e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(203, 167, 47, 0.28);
}
.auth-role:has(input:checked) .auth-role-icon {
  background: #131b2e;
  color: #e9c349;
}
.auth-role:has(input:checked) .auth-role-check {
  color: #cba72f;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 16px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #76777d;
}
.auth-secure .material-symbols-outlined { font-size: 16px; color: #735c00; }
@media (min-width: 1024px) {
  .auth-mobile-brand { display: none; }
  .auth-hero {
    display: block;
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 100dvh;
    align-self: flex-start;
  }
  .auth-panel-inner { padding: 48px 40px 16px; }
}
@media (max-width: 639px) {
  .auth-kind-grid, .auth-plan-grid, .auth-grid-2, .auth-currency-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px 24px; border-radius: 14px; }
  .auth-panel-inner { padding: 28px 16px 16px; }
}

/* Logged-in shell — quiet luxury */
.app-shell {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(201, 169, 98, 0.14), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(10, 18, 32, 0.05), transparent 48%),
    var(--paper);
  color: #1a1c1c;
}
.app-sidebar {
  background:
    linear-gradient(180deg, rgba(201, 169, 98, 0.06) 0%, transparent 28%),
    #080e1a;
  color: #c9cdd8;
  border-right: 1px solid rgba(201, 169, 98, 0.16);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}
.app-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 4px;
}
.app-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.app-logo-plate {
  display: block;
  background: linear-gradient(180deg, #fffcf7 0%, #f3eee4 100%);
  padding: 10px 12px;
  line-height: 0;
  border: 1px solid rgba(201, 169, 98, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.app-sidebar-brand .app-logo-plate { width: 100%; }
.app-logo-topbar {
  display: none;
  width: auto;
  height: 32px;
  max-width: 168px;
}
@media (min-width: 640px) and (max-width: 767px) {
  .app-logo-topbar { display: block; }
}
.app-logo-auth-hero { max-width: 240px; }
.app-logo-auth-card { width: auto; max-width: 220px; height: 42px; }
.app-logo.mkt-brand-logo { height: 28px; max-height: 28px; max-width: 160px; width: auto; }
.app-logo-doc-footer { height: 40px; max-height: 40px; max-width: 200px; }
.doc-powered-by .app-logo { margin: 0 auto; }
.app-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  color: #c9a962;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  border: 1px solid rgba(201, 169, 98, 0.45);
  flex-shrink: 0;
}
.app-sidebar-wordmark {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f7f4ee;
}
.app-sidebar-sub {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.7);
}
.app-quick-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  border-radius: 0;
  border: 1px solid rgba(201, 169, 98, 0.55);
  background: transparent;
  color: #c9a962;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.app-quick-create:hover {
  background: #c9a962;
  color: #080e1a;
  border-color: #c9a962;
  transform: translateY(-1px);
}
.app-nav-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.app-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}
.app-nav-link:hover { background: rgba(247, 244, 238, 0.05); color: #ffffff; }
.app-nav-link.is-active {
  background: rgba(201, 169, 98, 0.12);
  color: #ffffff;
  padding-left: 16px;
}
.app-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #c9a962;
  border-radius: 2px;
}
.app-nav-link .material-symbols-outlined { font-size: 20px; color: #ffffff; }
.app-sidebar-foot { border-top: 1px solid rgba(247, 244, 238, 0.08); }
.app-sidebar-signout {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: rgba(247, 244, 238, 0.45);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 4px;
  cursor: pointer;
}
.app-sidebar .custom-scrollbar::-webkit-scrollbar-thumb { background-color: rgba(247, 244, 238, 0.12); }

.app-topbar {
  background: rgba(255, 252, 247, 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid rgba(10, 18, 32, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.app-topbar-rule {
  width: 1px;
  height: 22px;
  background: rgba(19, 27, 46, 0.12);
}
.app-search { position: relative; }
.app-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #76777d;
  pointer-events: none;
}
.app-search-input,
.app-search input.app-search-input,
.app-search input[type="search"].app-search-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 36px 0 44px;
  border: 1px solid rgba(10, 18, 32, 0.1);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  font-size: 14px;
  line-height: normal;
  color: #1a1c1c;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.app-search-input::placeholder { color: #76777d; }
.app-search-input::-webkit-search-cancel-button { display: none; }
.app-search-input:hover { border-color: rgba(10, 18, 32, 0.22); }
.app-search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 18, 32, 0.08);
}
.app-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #76777d;
  border-radius: 999px;
  cursor: pointer;
}
.app-search-clear .material-symbols-outlined { font-size: 18px; }
.app-search-clear:hover { background: rgba(19, 27, 46, 0.06); color: #1a1c1c; }
.app-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fffcf7;
  border: 1px solid #c6c6cd;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(19, 27, 46, 0.14);
  z-index: 50;
  overflow: hidden;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}
.app-search-group {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #76777d;
}
.app-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  text-decoration: none;
  color: #1a1c1c;
  border: 0;
  background: transparent;
  text-align: left;
}
.app-search-item:hover,
.app-search-item.is-active {
  background: rgba(19, 27, 46, 0.06);
}
.app-search-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f4f4f3;
  color: #5c5e64;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-search-item-icon .material-symbols-outlined { font-size: 18px; }
.app-search-item-copy { min-width: 0; flex: 1; }
.app-search-item-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-search-item-meta {
  display: block;
  font-size: 12px;
  color: #76777d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-search-empty {
  padding: 16px 12px;
  font-size: 13px;
  color: #76777d;
}
.app-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #5c5e64;
  text-decoration: none;
}
.app-icon-btn:hover { background: rgba(14, 21, 36, 0.05); color: #0e1524; }
.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0e1524;
  color: #c9a962;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(14, 21, 36, 0.12);
}
.app-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #0e1524;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.app-user-co {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #76777d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.app-account { position: relative; }
.app-account-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  background: transparent;
}
.app-account-toggle::-webkit-details-marker { display: none; }
.app-account summary { list-style: none; }
.app-account-toggle:hover,
.app-account[open] .app-account-toggle { background: rgba(14, 21, 36, 0.04); }
.app-account-caret { font-size: 18px; color: #76777d; }
.app-account[open] .app-account-caret { transform: rotate(180deg); }
.app-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: min(280px, 82vw);
  padding: 8px;
  background: #fffcf7;
  border: 1px solid rgba(14, 21, 36, 0.08);
  box-shadow: 0 18px 40px rgba(14, 21, 36, 0.1);
}
.app-account-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(14, 21, 36, 0.06);
  margin-bottom: 6px;
}
.app-account-head-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0e1524;
}
.app-account-head-meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: #76777d;
}
.app-account-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #0e1524;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.app-account-item .material-symbols-outlined { font-size: 18px; color: #76777d; }
.app-account-item:hover { background: rgba(14, 21, 36, 0.04); }

.app-notify { position: relative; }
.app-notify-toggle {
  list-style: none;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.app-notify-toggle::-webkit-details-marker { display: none; }
.app-notify summary { list-style: none; }
.app-notify[open] .app-notify-toggle { background: rgba(14, 21, 36, 0.05); color: #0e1524; }
.app-notify-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c9a962;
  color: #0e1524;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.app-notify-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: min(380px, 92vw);
  background: #fffcf7;
  border: 1px solid rgba(14, 21, 36, 0.08);
  box-shadow: 0 18px 40px rgba(14, 21, 36, 0.1);
}
.app-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(14, 21, 36, 0.06);
}
.app-notify-head-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0e1524;
}
.app-notify-head a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7040;
  text-decoration: none;
}
.app-notify-mark {
  border: 0;
  background: transparent;
  color: #5c5e64;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.app-notify-mark:hover { color: #0e1524; }
.app-notify-list {
  max-height: min(420px, 60vh);
  overflow-y: auto;
}
.app-notify-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #76777d;
}
.app-notify-item,
.app-notify-open {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.app-notify-item:hover,
.app-notify-open:hover { background: rgba(14, 21, 36, 0.04); }
.app-notify-item.is-unread,
.app-notify-row.is-unread .app-notify-open { background: rgba(201, 169, 98, 0.08); }
.app-notify-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 21, 36, 0.06);
  color: #0e1524;
  flex-shrink: 0;
}
.app-notify-icon .material-symbols-outlined { font-size: 18px; }
.app-notify-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-notify-title {
  font-size: 13px;
  font-weight: 700;
  color: #0e1524;
}
.app-notify-body {
  font-size: 12px;
  color: #5c5e64;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-notify-meta {
  font-size: 11px;
  color: #76777d;
}
.app-notify-all {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid rgba(14, 21, 36, 0.06);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #0e1524;
  text-decoration: none;
}
.app-notify-all:hover { background: rgba(14, 21, 36, 0.04); }
.app-notify-row form { margin: 0; }

.app-canvas {
  background: transparent;
  padding: 16px 16px max(24px, env(safe-area-inset-bottom));
  position: relative;
}

@media (min-width: 768px) {
  .app-canvas {
    padding: 32px 32px max(40px, env(safe-area-inset-bottom));
  }
}

/* Keep dense tables usable without blowing the viewport */
.app-canvas .table-scroll,
.app-canvas .overflow-x-auto {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .app-canvas .page-header,
  .app-canvas .dash-hero,
  .app-canvas .flex.items-start.justify-between,
  .app-canvas .flex.items-center.justify-between {
    flex-wrap: wrap;
    gap: 12px;
  }

  .app-canvas .gcal-toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .app-canvas #line-items,
  .app-canvas .line-items,
  .app-canvas table.line-items {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}
.app-canvas h2[class*="headline"],
.app-canvas h1[class*="headline"],
.app-canvas .dash-hero h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0e1524;
}
.app-canvas .text-display-lg,
.app-canvas .font-display-lg {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0e1524;
}
.app-canvas h1.text-display-lg,
.app-canvas h1.font-display-lg,
.app-canvas h2.text-display-lg,
.app-canvas h2.font-display-lg {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.app-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.app-toast {
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13px;
  border: 1px solid transparent;
  animation: toast-in 0.45s var(--ease-out);
}
.app-toast-ok {
  background: rgba(18, 81, 44, 0.08);
  color: #12512c;
  border-color: rgba(18, 81, 44, 0.12);
}
.app-toast-error {
  background: rgba(147, 0, 10, 0.07);
  color: #93000a;
  border-color: rgba(147, 0, 10, 0.12);
}
.app-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.app-dialog.hidden { display: none; }
.app-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 36, 0.48);
}
.app-dialog-card {
  position: relative;
  width: min(440px, 100%);
  background: #fffcf7;
  border-radius: 16px;
  padding: 28px 24px 20px;
  box-shadow: 0 24px 60px rgba(14, 21, 36, 0.22);
  border: 1px solid rgba(14, 21, 36, 0.08);
}
.app-dialog-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f8e4e2;
  color: #93000a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.app-dialog-icon .material-symbols-outlined { font-size: 22px; }
.app-dialog-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  background: #0e1524;
  color: #f7f4ee;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gcal-job-card {
  width: min(560px, 100%);
  max-height: min(86vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 6px;
}
#gcal-job-body { overflow: auto; flex: 1; min-height: 0; }
.gcal-job-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: #0e1524;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gcal-job-x:hover { background: #efe8dc; }
.gcal-job-x .material-symbols-outlined { font-size: 20px; }
.gcal-job-accent {
  height: 5px;
  background: var(--job-color, #0e1524);
}
.gcal-job-head {
  padding: 22px 28px 16px;
}
.gcal-job-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 36px;
}
.gcal-job-kind {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6a3a;
  font-family: var(--font-mono);
}
.gcal-job-card h3 {
  margin: 8px 0 6px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: #0e1524;
}
.gcal-job-when {
  margin: 0;
  font-size: 13px;
  color: #6b6558;
}
.gcal-job-status {
  display: inline-flex;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #efe8dc;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  color: #0e1524;
  flex-shrink: 0;
}
.gcal-job-status.is-good { background: #e4efe4; color: #1d4d2a; }
.gcal-job-status.is-live { background: #0e1524; color: #f4efe6; }
.gcal-job-status.is-bad { background: #f8e4e2; color: #93000a; }
.gcal-job-status.is-wait { background: #efe8dc; color: #6b4a1e; }
.gcal-job-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 24px 16px;
}
.gcal-job-metrics.is-count-1 { grid-template-columns: 1fr; }
.gcal-job-metrics.is-count-2 { grid-template-columns: 1fr 1fr; }
.gcal-job-metrics.is-count-4 { grid-template-columns: repeat(4, 1fr); }
.gcal-job-metrics div {
  background: #f4efe6;
  padding: 12px 12px 10px;
  min-width: 0;
}
.gcal-job-metrics b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #0e1524;
  letter-spacing: -0.02em;
}
.gcal-job-metrics span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6a3a;
}
.gcal-job-warn {
  margin: 0 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gcal-job-warn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8e4e2;
  color: #93000a;
}
.gcal-job-warn-row p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.gcal-job-assign {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  height: 32px;
  padding: 0 10px;
  border-radius: 14px;
  background: #0e1524;
  color: #f7f4ee;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.gcal-job-assign .material-symbols-outlined { font-size: 16px; }
.gcal-job-assign:hover { background: #1a2438; }
.gcal-job-assign.is-solid { margin-top: 0; }
.gcal-job-section {
  padding: 14px 24px;
  border-top: 1px solid rgba(14, 21, 36, 0.06);
}
.gcal-job-section h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a3a;
}
.gcal-job-section h4 .material-symbols-outlined { font-size: 16px; }
.gcal-job-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0e1524;
}
.gcal-job-sub, .gcal-job-notes {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6b6558;
}
.gcal-job-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: 13px;
}
.gcal-job-line span { color: #6b6558; }
.gcal-job-line strong { color: #0e1524; font-weight: 600; text-align: right; }
.gcal-job-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gcal-job-tile {
  background: #f7f3eb;
  padding: 12px 14px;
  min-width: 0;
}
.gcal-job-tile.is-empty { background: #f8e4e2; }
.gcal-job-tile-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6a3a;
}
.gcal-job-tile-value {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0e1524;
}
.gcal-job-tile.is-empty .gcal-job-tile-value { color: #93000a; font-weight: 600; }
.gcal-job-tile-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b6558;
}
.gcal-job-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(14, 21, 36, 0.06);
}
.gcal-job-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: #0e1524;
  color: #f7f4ee;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.gcal-job-open:hover { background: #1a2438; }
.gcal-job-extras { display: flex; flex-wrap: wrap; gap: 10px; }
.gcal-job-link {
  font-size: 13px;
  font-weight: 600;
  color: #8a6a3a;
  text-decoration: none;
}
.gcal-job-link:hover { text-decoration: underline; }
.gcal-job-close {
  margin-left: auto;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(14, 21, 36, 0.12);
  border-radius: 14px;
  background: transparent;
  color: #0e1524;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 640px) {
  .gcal-job-metrics,
  .gcal-job-metrics.is-count-4,
  .gcal-job-tiles { grid-template-columns: 1fr 1fr; }
}

.app-canvas > .grid > .rounded-xl:not(.bg-primary-container):not(.bg-primary),
.app-canvas > .bento-grid > *:not(.bg-primary-container):not(.bg-primary),
.app-canvas .bg-surface.rounded-xl,
.app-canvas .bg-surface-container-lowest.rounded-xl,
.app-canvas .glass-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, transparent 42%),
    var(--paper-bright);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-card);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.app-canvas > .bento-grid > *:not(.bg-primary-container):not(.bg-primary):hover,
.app-canvas .stat-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: rgba(201, 169, 98, 0.28);
  transform: translateY(-2px);
}
.app-canvas .rounded-xl,
.app-canvas .bg-primary-container.rounded-xl,
.app-canvas .bg-primary.rounded-xl {
  border-radius: var(--radius-card);
}
.app-canvas .absolute.top-0.right-0.w-24 { display: none; }
.app-canvas a.bg-primary-container,
.app-canvas a.bg-primary,
.app-canvas button.bg-primary-container,
.app-canvas button.bg-primary {
  background: var(--ink) !important;
  color: #f7f4ee !important;
  border-radius: 0;
  letter-spacing: 0.06em;
  box-shadow: inset 0 -2px 0 rgba(201, 169, 98, 0.85);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.app-canvas a.bg-primary.rounded-full,
.app-canvas a.bg-primary-container.rounded-full,
.app-canvas button.bg-primary.rounded-full,
.app-canvas button.bg-primary-container.rounded-full {
  border-radius: 9999px !important;
}
.app-canvas a.bg-primary-container:hover,
.app-canvas a.bg-primary:hover,
.app-canvas button.bg-primary-container:hover,
.app-canvas button.bg-primary:hover {
  background: #1a2438 !important;
  color: #fff !important;
  opacity: 1;
  transform: translateY(-1px);
}

/* Dark panels: canvas type rules force navy ink — keep cream type on navy surfaces. */
.app-canvas .bg-primary-container,
.app-canvas .bg-primary {
  background-color: var(--ink) !important;
  color: #f7f4ee;
  border-color: transparent;
}
.app-canvas .bg-primary-container .text-on-primary-container,
.app-canvas .bg-primary-container label,
.app-canvas .bg-primary-container h3 {
  color: #c9cdd8;
}
.app-canvas .bg-primary-container h1[class*="headline"],
.app-canvas .bg-primary-container h2[class*="headline"],
.app-canvas .bg-primary-container .text-white,
.app-canvas .bg-primary-container .text-on-primary,
.app-canvas .bg-primary-container .text-display-lg,
.app-canvas .bg-primary-container .font-display-lg,
.app-canvas .bg-primary-container .text-headline-sm,
.app-canvas .bg-primary-container .font-headline-sm,
.app-canvas .bg-primary .text-on-primary,
.app-canvas .bg-primary .text-white,
.app-canvas .bg-primary .text-display-lg,
.app-canvas .bg-primary .font-display-lg,
.app-canvas .text-white,
.app-canvas .text-white h1,
.app-canvas .text-white h2,
.app-canvas .text-white .text-display-lg,
.app-canvas .text-white .font-display-lg {
  color: #f7f4ee !important;
}
.app-canvas .bg-primary-container .text-white\/90,
.app-canvas .bg-primary-container .text-on-primary\/80,
.app-canvas .bg-primary-container .text-on-primary\/70 {
  color: rgba(247, 244, 238, 0.86) !important;
}
.app-canvas .bg-primary-container a.bg-on-primary,
.app-canvas .bg-primary-container .bg-on-primary {
  background: #f7f4ee !important;
  color: #0e1524 !important;
}
.app-canvas .bg-primary-container input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-canvas .bg-primary-container select,
.app-canvas .bg-primary-container textarea {
  background: rgba(247, 244, 238, 0.12) !important;
  color: #f7f4ee !important;
  border-color: rgba(247, 244, 238, 0.22);
  border-radius: 14px;
}
.app-canvas .bg-primary-container option {
  color: #0e1524;
  background: #fffcf7;
}
.app-canvas a.border.border-outline-variant {
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}
.app-canvas input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.app-search-input),
.app-canvas select,
.app-canvas textarea {
  border-radius: 14px;
  -webkit-appearance: none;
  appearance: none;
  background: #fffcf7;
}
.app-canvas table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #76777d;
  background: transparent;
  border-bottom: 1px solid rgba(14, 21, 36, 0.08);
}
.app-canvas table tbody td { border-bottom: 1px solid rgba(14, 21, 36, 0.05); }

.dash-hero {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.dash-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.dash-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.dash-hero-row .btn-quiet { flex-shrink: 0; }
@media (max-width: 720px) {
  .dash-hero-row { flex-direction: column; align-items: flex-start; }
}
.dash-hero h2 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.4vw, 48px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.dash-hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 54ch; }

.stat-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, transparent 40%),
    var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.stat-card .stat-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.stat-card .stat-value {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-soft);
  line-height: 1.4;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 12px;
}
.panel-head h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.panel-head a {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
}
.panel-head a:hover { color: var(--ink); }

.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.page-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.page-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 58ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-ink, .btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn-ink {
  background: var(--ink);
  color: #f7f4ee;
  border: 0;
  box-shadow: inset 0 -2px 0 rgba(201, 169, 98, 0.9);
}
.btn-ink:hover { background: var(--ink-soft); color: #fff; transform: translateY(-1px); }
.btn-quiet {
  background: rgba(255, 252, 247, 0.7);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-quiet:hover { background: var(--ink); color: #f7f4ee; border-color: var(--ink); }
.btn-ink .material-symbols-outlined,
.btn-quiet .material-symbols-outlined { font-size: 18px; }
.case-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.case-tabs a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 252, 247, 0.55);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.case-tabs a.is-active, .case-tabs a:hover {
  background: var(--ink);
  color: #f7f4ee;
  border-color: var(--ink);
}
.money { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.empty-row { color: #76777d; padding: 18px 8px; }
.auth-form textarea.auth-input {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}
.gazette-file {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c6c6cd;
  border-radius: 14px;
  background: #f9f9f8;
  color: #1a1c1c;
  font-size: 14px;
}
.gazette-wording {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(14, 21, 36, 0.08);
  color: #1c1b1b;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.register-note {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #f3efe6;
  border-left: 3px solid #c9a962;
  color: #0e1524;
  font-size: 14px;
  line-height: 1.45;
}
.finding-card {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.finding-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.finding-card p {
  margin: 8px 0 0;
}
.finding-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 12px;
}
.finding-links a {
  font-weight: 600;
}

.app-canvas > .bg-surface.rounded-xl {
  max-width: none !important;
}
.app-canvas .bg-surface:has(thead) {
  overflow-x: auto;
}
.app-canvas .bg-surface:has(> .overflow-x-auto > table thead):not(:has(.panel-head)):not(:has(form)):not(:has(.record-section)) {
  padding: 0;
}
.app-canvas .bg-surface table:not(:has(thead)) {
  max-width: 720px;
}
.app-canvas .bg-surface table:not(:has(thead)) td:first-child {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
}
.app-canvas .bg-surface table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.app-canvas .bg-surface table thead th {
  padding: 14px 18px;
  background: linear-gradient(180deg, #f6f1e6 0%, #efe9dc 100%);
  border-bottom: 1px solid rgba(14, 21, 36, 0.08);
  white-space: nowrap;
}
.app-canvas .bg-surface table tbody td {
  padding: 17px 18px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(14, 21, 36, 0.05);
  color: #1c1b1b;
  font-size: 14px;
  transition: background 0.18s var(--ease-out);
}
.app-canvas .bg-surface table tbody tr:last-child td { border-bottom: 0; }
.app-canvas .bg-surface table thead + tbody tr:hover td { background: rgba(201, 169, 98, 0.1); }
.app-canvas .bg-surface table a {
  color: #0e1524;
  font-weight: 600;
  text-decoration: none;
}
.app-canvas .bg-surface table a:hover { color: #8a6a3a; }
.app-canvas .bg-surface table:has(thead) thead th:last-child,
.app-canvas .bg-surface table:has(thead) tbody td:last-child { text-align: right; }
.app-canvas .bg-surface table:has(thead) tbody td.empty-row,
.app-canvas .bg-surface table:has(thead) tbody td[colspan] {
  text-align: left;
  color: #76777d;
}

.tour[hidden] { display: none !important; }
.tour-ring {
  position: fixed;
  z-index: 80;
  border: 2px solid #c9a962;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(14, 21, 36, 0.55);
}
.tour-card {
  position: fixed;
  z-index: 81;
  width: min(380px, calc(100vw - 32px));
  background: #fffcf7;
  color: #0e1524;
  border-left: 3px solid #c9a962;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(14, 21, 36, 0.18);
}
.tour-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6a3a;
}
.tour-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}
.tour-card p {
  margin: 0;
  color: #5c5e64;
  font-size: 14px;
  line-height: 1.5;
}
.tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.tour-actions .btn-quiet[hidden] { display: none; }

/* Premium motion and entrance */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-canvas > .page-head,
.app-canvas > .dash-hero,
.app-canvas > .bento-grid,
.app-canvas > .bg-surface,
.app-canvas > .grid,
.app-canvas > .register-note,
.app-canvas > p.register-note {
  animation: fade-up 0.55s var(--ease-out) both;
}
.app-canvas > .bento-grid { animation-delay: 0.06s; }
.app-canvas > .grid,
.app-canvas > .bg-surface { animation-delay: 0.12s; }
.app-canvas > .bento-grid > .stat-card:nth-child(1) { animation: fade-up 0.55s var(--ease-out) 0.08s both; }
.app-canvas > .bento-grid > .stat-card:nth-child(2) { animation: fade-up 0.55s var(--ease-out) 0.14s both; }
.app-canvas > .bento-grid > .stat-card:nth-child(3) { animation: fade-up 0.55s var(--ease-out) 0.2s both; }
.app-canvas > .bento-grid > .stat-card:nth-child(4) { animation: fade-up 0.55s var(--ease-out) 0.26s both; }

@media (prefers-reduced-motion: reduce) {
  .auth-hero-photo,
  .auth-card,
  .app-toast,
  .app-canvas > .page-head,
  .app-canvas > .dash-hero,
  .app-canvas > .bento-grid,
  .app-canvas > .bg-surface,
  .app-canvas > .grid,
  .app-canvas > .register-note,
  .app-canvas > .bento-grid > .stat-card {
    animation: none !important;
  }
  .app-quick-create:hover,
  .btn-ink:hover,
  .btn-quiet:hover,
  .app-canvas .stat-card:hover,
  .app-canvas > .bento-grid > *:hover {
    transform: none;
  }
}

/* Detailed record pages */
.record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .record-layout { grid-template-columns: 1fr; }
}
.record-main,
.record-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.record-side {
  position: sticky;
  top: 20px;
}
.record-panel { max-width: none; }
.record-panel-top { margin-bottom: 8px; }
.record-summary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 68ch;
}
.record-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}
.record-metric {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.65), transparent), var(--paper-muted);
}
.record-metric-label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.record-metric-value {
  margin: 8px 0 0;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.record-metric-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted-soft);
}
.record-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.record-section:first-of-type { margin-top: 18px; }
.record-section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.record-section-lede {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.record-fields {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  border-collapse: collapse;
}
.record-fields tbody {
  display: contents;
}
.record-fields tr {
  display: contents;
}
.record-fields tr + tr td {
  border-top: 1px solid var(--line);
}
.record-fields td {
  padding: 12px 0;
  vertical-align: top;
}
.record-fields td:first-child {
  padding-right: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.record-fields td:last-child {
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.record-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.record-table thead th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
  border-bottom: 1px solid var(--line);
}
.record-table tbody tr + tr td {
  border-top: 1px solid var(--line);
}
.record-form .record-section-title {
  margin-bottom: 16px;
}
.record-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px 16px;
  align-items: end;
}
.record-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.record-form-field.is-narrow {
  max-width: 200px;
}
.record-form-field .auth-label {
  margin: 0;
}
.record-form-field .auth-input {
  width: 100%;
  max-width: none;
}
.record-form-actions {
  margin-top: 16px;
}
@media (max-width: 720px) {
  .record-form-grid { grid-template-columns: 1fr; }
  .record-form-field.is-narrow { max-width: none; }
  .record-side { position: static; }
}
.record-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.record-notes li {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: var(--paper-muted);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.record-people,
.record-related,
.record-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.record-people li,
.record-related li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.record-people li:last-child,
.record-related li:last-child,
.record-timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.record-people-role,
.record-timeline-when,
.record-related-meta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.record-people-name,
.record-timeline-title,
.record-related a,
.record-related-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.record-related a:hover { color: var(--gold-deep); }
.record-people-detail,
.record-timeline-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.record-timeline li {
  position: relative;
  padding-left: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.record-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Asset photographs */
.asset-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 8px 0 20px;
}
.asset-photo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.asset-photo-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.asset-photo-image,
.asset-photo-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-muted);
}
.asset-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-soft);
}
.asset-photo-fallback .material-symbols-outlined {
  font-size: 36px;
}
.asset-photo-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}
.asset-photo-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-photo-meta {
  font-size: 11px;
  color: var(--muted-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-photo-form {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.asset-photo-form-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.asset-photo-form-lede {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.asset-photo-form .record-form-actions .btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* List pagination */
.bg-surface .list-pager {
  margin-top: 12px;
  padding-top: 12px;
}
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.list-pager-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.list-pager-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.list-pager-pages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-pager-btn,
.list-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.list-pager-btn:hover,
.list-pager-num:hover {
  border-color: var(--line-strong);
  background: var(--paper-muted);
}
.list-pager-num.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
  pointer-events: none;
}
.list-pager-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.list-pager-ellipsis {
  padding: 0 4px;
  color: var(--muted-soft);
  font-size: 13px;
}
@media (max-width: 640px) {
  .list-pager { flex-direction: column; align-items: stretch; }
  .list-pager-controls { justify-content: space-between; }
}

/* Add asset */
.asset-create-form .asset-create-section + .asset-create-section {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.asset-create-form .record-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.asset-create-form .record-form-field.is-wide {
  grid-column: 1 / -1;
}
.asset-create-form .record-section-lede {
  margin: -4px 0 14px;
}
.asset-create-drop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 120px;
  padding: 22px 20px;
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.9), transparent),
    var(--paper-muted);
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.asset-create-drop:hover,
.asset-create-drop:focus-within {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.asset-create-drop .material-symbols-outlined {
  font-size: 28px;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.asset-create-drop-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.asset-create-drop-meta,
.asset-create-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.asset-create-hint {
  margin: 8px 0 0;
}
.asset-create-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.asset-create-drop {
  position: relative;
}
.asset-create-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.asset-create-actions .btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.asset-create-metrics {
  margin: 0 0 18px;
  grid-template-columns: 1fr;
}
.asset-create-section.is-photos .record-form-field .auth-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 720px) {
  .asset-create-form .record-form-grid {
    grid-template-columns: 1fr;
  }
  .asset-create-form .record-form-field.is-narrow {
    max-width: none;
  }
}

/* Staff attendance */
.attendance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 24px;
  align-items: end;
}
.attendance-hero-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.attendance-hero-hours {
  margin: 0;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.attendance-hero-hours span {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}
.attendance-hero-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 42ch;
}
.attendance-clock-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attendance-clock-form .auth-label { margin: 0; }
.attendance-clock-form .auth-input { width: 100%; max-width: none; }
.attendance-clock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 48px;
}
.attendance-clock-btn.is-out {
  background: var(--ink-soft);
}
.attendance-team {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.attendance-team li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.attendance-team li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.attendance-team-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.attendance-team-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.app-clock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper-bright);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.app-clock-btn:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.app-clock-btn .material-symbols-outlined {
  font-size: 18px;
  color: var(--gold-deep);
}
@media (max-width: 900px) {
  .attendance-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-clock-btn span:not(.material-symbols-outlined) { display: none; }
}

/* Deadline calendar */
.calendar-scope {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  background: var(--paper-bright);
  overflow: hidden;
}
.calendar-scope-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.calendar-scope-btn:last-child { border-right: 0; }
.calendar-scope-btn:hover { color: var(--ink); background: var(--paper-muted); }
.calendar-scope-btn.is-active {
  color: var(--paper-bright);
  background: var(--ink);
}
.calendar-metrics {
  margin: 0 0 20px;
}
.calendar-agenda {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.calendar-day-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.calendar-day-mark {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  flex-shrink: 0;
}
.calendar-day.is-past .calendar-day-mark {
  background: var(--muted-soft);
  box-shadow: 0 0 0 3px rgba(118, 119, 125, 0.16);
}
.calendar-day.is-today .calendar-day-mark {
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 18, 32, 0.12);
}
.calendar-day-label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.calendar-day-meta {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.calendar-day.is-past .calendar-day-meta { color: var(--muted-soft); }
.calendar-day-list {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}
.calendar-event {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.75), transparent),
    var(--paper-bright);
  transition: border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.calendar-event:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.calendar-event.is-overdue {
  border-color: rgba(176, 64, 48, 0.28);
  background: linear-gradient(180deg, rgba(176, 64, 48, 0.06), transparent), var(--paper-bright);
}
.calendar-event.is-done {
  opacity: 0.78;
}
.calendar-event-main { min-width: 0; }
.calendar-event-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
a.calendar-event-title:hover { color: var(--gold-deep); }
.calendar-event-sub,
.calendar-event-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.calendar-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted-soft);
}
.calendar-side-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calendar-side-form .auth-label { margin: 0; }
.calendar-side-form .auth-input { width: 100%; max-width: none; }
.calendar-side-form .btn-ink { margin-top: 8px; align-self: flex-start; }
.calendar-reminders {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calendar-reminders li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.calendar-reminders li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.calendar-reminder-level {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.calendar-reminder-copy {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.calendar-reminder-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted-soft);
}
@media (max-width: 720px) {
  .calendar-event {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Auto reminders */
.reminder-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reminder-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.8), transparent),
    var(--paper-bright);
}
.reminder-card.is-vendor {
  border-color: rgba(154, 123, 50, 0.28);
}
.reminder-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.reminder-kind {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.reminder-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.reminder-body {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.reminder-meta {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted-soft);
}
.page-actions .btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}
.integrations-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.integrations-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.integrations-form {
  margin-top: 8px;
}

/* Account */
.account-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.account-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 28px 28px 24px;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.account-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper-bright);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.account-avatar .material-symbols-outlined {
  font-size: 32px;
}
.account-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.account-hero h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  color: var(--ink);
}
.account-lede {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.account-lede span { margin: 0 6px; color: var(--muted-soft); }
.account-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.account-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.account-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.account-facts-locked { margin-top: 8px; }
.account-facts {
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}
.account-facts > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.account-facts dt {
  margin: 0;
  color: var(--muted-soft);
  font-size: 13px;
}
.account-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.account-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
}
.account-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.account-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}
.account-steps span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 24px;
}
.account-secret {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.account-secret p {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.account-secret code,
.account-uri code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.account-uri {
  margin-top: 12px;
}
.account-uri summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.account-uri code {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}
.account-form {
  margin-top: 18px;
  max-width: 420px;
}
.account-form .btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.user-admin-form { max-width: none; }
.user-admin-form .auth-input,
.user-admin-form select.auth-input {
  width: 100%;
  max-width: none;
}
.user-account-link {
  display: inline-flex;
  margin-top: 18px;
  text-decoration: none;
}
.user-back {
  align-self: flex-start;
  text-decoration: none;
}
.role-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 20px;
  margin-top: 18px;
}
.role-feature {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.role-custom-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.role-custom-list form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.mail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mail-row a {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: 12px;
  padding: 12px 8px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 27, 46, 0.08);
}
.mail-row-unread a { font-weight: 700; }
.mail-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-meta { color: #5c6478; font-size: 12px; }
.mail-body { margin-top: 16px; white-space: pre-wrap; }
.mail-attachments { margin-top: 16px; }
@media (max-width: 860px) {
  .mail-row a { grid-template-columns: 1fr; gap: 4px; }
  .account-hero,
  .account-identity { flex-direction: column; align-items: flex-start; }
  .account-grid { grid-template-columns: 1fr; }
  .account-name-row { grid-template-columns: 1fr; }
  .account-facts > div { grid-template-columns: 1fr; gap: 4px; }
}
