﻿@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e2ee;
  --paper: #ffffff;
  --navy: #08111f;
  --navy-2: #101c34;
  --blue: #4655f6;
  --blue-2: #22308f;
  --teal: #12b3a8;
  --coral: #ff7a45;
  --orange: #ffb020;
  --orange-dark: #f15f3d;
  --panel: #1c293d;
  --panel-soft: #24344c;
  --mint: #dff7ef;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(8, 17, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
  font-weight: 500;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.brand,
nav a,
.signin-button,
.app-button,
.primary-action,
.secondary-action,
.module-card {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: .95;
  letter-spacing: -.3px;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text small {
  margin-top: 5px;
  color: #6ee7c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}


.brand-mark,
.auth-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--coral), var(--teal));
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

nav a[data-top-doc].active {
  color: #111827;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  box-shadow: 0 10px 24px rgba(255, 122, 69, 0.18);
}

.signin-button,
.primary-action,
.secondary-action,
.line-action,
.remove-item,
.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.signin-button,
.primary-action {
  color: #111827;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(255, 122, 69, 0.24);
}

.app-button {
  color: #d9fffb;
  background: rgba(18, 179, 168, 0.14);
  border: 1px solid rgba(18, 179, 168, 0.42);
}

.secondary-action,
.line-action {
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
}

.wide-action {
  width: 100%;
}

.page-shell,
.billing-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 58px) 0;
}

.narrow-page {
  width: min(860px, calc(100% - 32px));
}

.landing-hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(30px, 7vw, 86px);
  align-items: center;
  padding: clamp(44px, 8vw, 78px) max(24px, calc((100vw - 1100px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(18, 179, 168, 0.36), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(255, 122, 69, 0.2), transparent 28%),
    linear-gradient(128deg, #0a1025 0%, #1f2e84 52%, #4655f6 100%);
}

.hero-copy {
  max-width: 700px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(18, 179, 168, 0.55);
  border-radius: 999px;
  color: #d9fffb;
  background: rgba(18, 179, 168, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 16px;
  color: inherit;
  font-size: clamp(2.65rem, 6vw, 5.15rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 900;
}

h1 em {
  color: #71f3df;
  font-style: normal;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 800;
}

.lede,
.page-head p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.16rem;
  line-height: 1.7;
}

.page-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.page-head h1 {
  color: var(--navy);
}

.page-head p {
  color: #5f6f84;
}

.compact-head {
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions,
.form-actions,
.preview-actions,
.client-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.client-action-row {
  margin-top: 18px;
}

.hero-invoice-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.mini-invoice {
  padding: 24px;
  border-radius: 12px;
  color: #172033;
  background: #fff;
}

.mini-invoice-head,
.mini-total,
.mini-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.mini-invoice-head {
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 800;
}

.mini-line {
  padding: 7px 0;
  border-bottom: 1px solid #e6edf5;
  color: #647386;
  font-size: 0.86rem;
}

.mini-line strong {
  color: var(--ink);
}

.mini-total {
  padding-top: 13px;
  color: var(--blue);
  font-weight: 900;
}

.trust-strip {
  min-height: 110px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vw, 60px);
  padding: 24px;
  color: #334155;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  font-weight: 800;
}

.summary-panel,
.module-card,
.panel-form,
.auth-card,
.invoice-form,
.preview-panel,
.lookup-panel,
.admin-panel,
.metric-card,
.calc-result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(8, 17, 31, 0.08);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  min-height: 150px;
  padding: 20px;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: #b6c5d8;
  box-shadow: 0 24px 58px rgba(8, 17, 31, 0.12);
}

.doc-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.doc-mode-card {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(8, 17, 31, 0.06);
}

.doc-mode-card strong {
  color: var(--blue-2);
}

.doc-mode-card span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.doc-mode-card.active {
  color: #fff;
  border-color: rgba(18, 179, 168, 0.38);
  background: linear-gradient(135deg, var(--navy-2), var(--blue-2));
  box-shadow: 0 18px 45px rgba(34, 48, 143, 0.2);
}

.doc-mode-card.active strong,
.doc-mode-card.active span {
  color: #fff;
}

.module-card strong,
.module-card span {
  display: block;
}

.module-card strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.module-card span,
.clean-list {
  color: var(--muted);
}

.panel-form,
.lookup-panel,
.admin-panel {
  padding: 20px;
}

.auth-page {
  min-height: calc(100vh - 67px);
  display: grid;
  place-items: center;
  padding: 42px 16px;
  background:
    radial-gradient(circle at 22% 18%, rgba(18, 179, 168, 0.22), transparent 28%),
    radial-gradient(circle at 84% 75%, rgba(255, 122, 69, 0.18), transparent 24%),
    linear-gradient(132deg, #07101f 0%, #111c35 56%, #22308f 100%);
}

.auth-stage {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
}

.auth-preview {
  color: #fff;
}

.auth-preview p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.auth-card {
  padding: 30px 32px;
  color: #fff;
  text-align: center;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
}

.auth-card h2 {
  color: #fff;
  font-size: 1.35rem;
}

.auth-card p {
  color: #aeb8c8;
}

.auth-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 20px 0;
  border-radius: 9px;
  background: #101a2c;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: #aeb8c8;
  background: transparent;
  font-weight: 800;
}

.auth-tabs button.active {
  color: #fff;
  background: var(--panel-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.auth-card label {
  color: #aeb8c8;
  text-align: left;
}

.auth-card input {
  color: #fff;
  background: #101a2c;
  border-color: #32445f;
}

.auth-card input:focus {
  border-color: #5aa7ff;
  box-shadow: 0 0 0 3px rgba(90, 167, 255, 0.24);
}

.auth-card form + form {
  margin-top: 14px;
}

.auth-footnote {
  margin: 18px 0 0;
  font-size: 0.82rem;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2e66ff;
  box-shadow: 0 0 0 3px rgba(46, 102, 255, 0.12);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-text {
  color: var(--orange);
  font-weight: 700;
}

.billing-grid {
  display: grid;
  grid-template-columns: minmax(360px, 530px) minmax(420px, 1fr);
  gap: 18px;
  align-items: start;
}

.invoice-form,
.preview-panel {
  min-width: 0;
  padding: 16px;
}

.form-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.form-block {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.form-block h2 {
  margin-bottom: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #995f00;
  background: #fff2d8;
  font-size: 0.78rem;
  font-weight: 800;
}

.items {
  display: grid;
  gap: 10px;
}

.item-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 42px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.item-line label {
  margin: 0;
}

.item-name-cell {
  grid-column: span 2;
}

.remove-item {
  grid-column: 5;
  grid-row: 1 / span 2;
  align-self: stretch;
  padding: 0;
  color: var(--danger);
  background: #fff1f0;
  border: 1px solid #ffd3cf;
}

.preview-panel {
  position: sticky;
  top: 82px;
}

.preview-actions {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.invoice {
  min-height: 760px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.invoice-top,
.invoice-parties,
.invoice-bottom,
.invoice-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.invoice-brand-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.invoice-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
}

.hidden {
  display: none !important;
}

.invoice-kicker,
.invoice-parties span,
.bank-box span {
  color: var(--orange-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice h2 {
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.invoice p {
  margin-bottom: 6px;
  color: #526170;
  white-space: pre-line;
}

.invoice-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
  color: #526170;
}

.invoice-parties {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.invoice-parties strong {
  display: block;
  margin: 5px 0;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #526170;
  font-size: 0.76rem;
  text-transform: uppercase;
}

td:nth-child(3),
td:nth-child(5),
td:nth-child(6),
td:nth-child(7),
td:last-child,
th:nth-child(3),
th:nth-child(5),
th:nth-child(6),
th:nth-child(7),
th:last-child {
  text-align: right;
}

.invoice-bottom {
  grid-template-columns: 1fr;
  margin-top: 22px;
}

.payment-stack {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
}

.qr-block,
.bank-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.qr-block {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.qr-block img {
  width: 120px;
  height: 120px;
}

.totals {
  width: min(360px, 100%);
  margin-left: auto;
}

.totals div,
.calc-result div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.totals .grand,
.calc-result .grand {
  border-bottom: 0;
  color: var(--blue);
  font-size: 1.18rem;
}

.invoice-footer-grid {
  align-items: end;
  margin-top: 20px;
}

.signature-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 180px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.signature-box img {
  width: 150px;
  height: 64px;
  object-fit: contain;
}

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

.result-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.result-card strong {
  color: var(--blue);
  font-size: 1.2rem;
}

.result-card span {
  color: #475467;
}

.result-card em {
  color: var(--orange-dark);
  font-style: normal;
  font-weight: 800;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 380px);
  gap: 16px;
}

.gst-tools-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 390px);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 22px;
}

.calc-result {
  padding: 20px;
  align-self: stretch;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.info-card,
.checklist-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 17, 31, 0.08);
}

.info-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.info-card strong {
  color: var(--blue-2);
  font-size: 1.02rem;
}

.info-card span,
.checklist {
  color: var(--muted);
}

.checklist-panel {
  padding: 22px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.segment {
  border: 1px solid var(--line);
  background: #f4f7fb;
  color: var(--ink);
}

.segment.active {
  color: #995f00;
  background: #fff2d8;
  border-color: var(--orange);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 18px;
}

.metric-card span,
td small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
}

.admin-panel {
  margin-bottom: 18px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.ops-summary {
  padding: 20px;
}

.ops-card-list {
  display: grid;
  gap: 12px;
}

.ops-card-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.ops-card-list strong,
.ops-card-list span {
  display: block;
}

.ops-card-list strong {
  margin-bottom: 5px;
  color: var(--blue-2);
}

.ops-card-list span {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .landing-hero,
  .auth-stage,
  .billing-grid,
  .calculator-grid,
  .gst-tools-layout,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .module-grid,
  .doc-mode-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .landing-hero {
    padding-inline: 18px;
  }

  .two-col,
  .payment-stack,
  .invoice-top,
  .invoice-parties,
  .invoice-footer-grid,
  .result-grid,
  .info-grid,
  .module-grid,
  .doc-mode-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .item-line {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 42px;
  }

  .item-name-cell,
  .item-line label:nth-child(4) {
    grid-column: 1 / -1;
  }

  .remove-item {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .invoice-meta {
    justify-items: start;
  }

  .totals {
    margin-left: 0;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .page-head,
  .invoice-form,
  .preview-actions {
    display: none !important;
  }

  .billing-page,
  .billing-grid,
  .preview-panel {
    width: auto;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .invoice {
    border: 0;
    border-radius: 0;
    min-height: auto;
    padding: 18mm;
  }
}

/* RemoteTax billing refresh */
:root {
  --bg: #f6fbff;
  --ink: #0b233f;
  --muted: #53677f;
  --line: #dce8f5;
  --paper: #ffffff;
  --navy: #0b233f;
  --navy-2: #13365d;
  --blue: #1d6fe9;
  --blue-2: #0f5fcf;
  --teal: #31b89c;
  --coral: #ff8a1c;
  --orange: #f5a623;
  --orange-dark: #e67f11;
  --mint: #e4f8f0;
  --shadow: 0 24px 70px rgba(11, 35, 63, 0.14);
}

body {
  background:
    radial-gradient(circle at 88% 10%, rgba(49, 184, 156, 0.16), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(29, 111, 233, 0.11), transparent 26%),
    var(--bg);
}

.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(165, 190, 220, 0.48);
  box-shadow: 0 10px 28px rgba(11, 35, 63, 0.08);
  backdrop-filter: blur(18px);
}

.brand { color: var(--navy); }
.brand-text strong { font-size: 19px; letter-spacing: -0.04em; }
.brand-text small { color: var(--blue); letter-spacing: 4px; }

nav a { color: #31445c; border: 1px solid transparent; }
nav a:hover,
nav a.active { color: var(--navy); background: #eff6ff; border-color: #d9e9ff; }
nav a[data-top-doc].active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 14px 30px rgba(29, 111, 233, 0.18); }

.signin-button,
.primary-action { color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); border: 1px solid rgba(29, 111, 233, 0.16); box-shadow: 0 16px 34px rgba(29, 111, 233, 0.22); }
.secondary-action,
.line-action { color: var(--navy); background: #fff; border: 1px solid #cbdced; box-shadow: 0 10px 22px rgba(11, 35, 63, 0.06); }
.secondary-action:hover,
.line-action:hover,
.signin-button:hover,
.primary-action:hover,
.app-button:hover { transform: translateY(-2px); }

.app-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 126px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--navy);
  background: linear-gradient(135deg, #e9fff7, #f4fbff);
  border: 1px solid rgba(49, 184, 156, 0.36);
  box-shadow: 0 12px 26px rgba(49, 184, 156, 0.16);
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-button .app-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.45);
}

.app-copy { display: grid; gap: 2px; text-align: left; line-height: 1; }
.app-label { display: block; }
.app-button small { display: block; color: var(--muted); font-size: 0.64rem; font-weight: 800; line-height: 1; }

.landing-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--navy);
  background:
    radial-gradient(circle at 82% 26%, rgba(49, 184, 156, 0.24), transparent 26%),
    radial-gradient(circle at 72% 76%, rgba(29, 111, 233, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,248,255,0.94)),
    url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23bfd7f5' fill-opacity='.42'/%3E%3C/svg%3E");
}
.landing-hero::before,
.landing-hero::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.landing-hero::before { width: 420px; height: 420px; right: 6vw; top: 72px; background: rgba(49, 184, 156, 0.18); filter: blur(2px); animation: billingFloat 8s ease-in-out infinite; }
.landing-hero::after { width: 220px; height: 220px; right: 27vw; bottom: 52px; border: 1px solid rgba(29, 111, 233, 0.18); box-shadow: 0 0 0 18px rgba(29, 111, 233, 0.04), 0 0 0 38px rgba(49, 184, 156, 0.04); animation: billingPulse 7s ease-in-out infinite; }
.hero-copy,
.hero-invoice-card { position: relative; z-index: 1; }
.hero-pill { color: var(--blue); background: #eef6ff; border-color: #cfe4ff; }
h1 em { color: var(--blue); }
.lede,
.page-head p { color: #45617d; }

.billing-motion-strip { width: min(100%, 720px); display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.billing-motion-strip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; color: var(--navy); background: rgba(255, 255, 255, 0.78); border: 1px solid #dce8f5; box-shadow: 0 12px 26px rgba(11, 35, 63, 0.08); font-size: 0.82rem; font-weight: 900; animation: chipDrift 4.6s ease-in-out infinite; }
.billing-motion-strip span:nth-child(2) { animation-delay: .35s; }
.billing-motion-strip span:nth-child(3) { animation-delay: .7s; }
.billing-motion-strip span:nth-child(4) { animation-delay: 1.05s; }

.hero-invoice-card { border: 1px solid rgba(195, 216, 241, 0.78); background: rgba(255, 255, 255, 0.58); backdrop-filter: blur(18px); animation: invoiceCardFloat 6s ease-in-out infinite; }
.mini-invoice { position: relative; border: 1px solid #e1ebf7; box-shadow: 0 28px 65px rgba(11, 35, 63, 0.14); }
.mini-invoice::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange)); }
.floating-ledger-card { position: absolute; z-index: 2; display: grid; gap: 2px; min-width: 140px; padding: 12px 14px; border-radius: 16px; color: var(--navy); background: rgba(255, 255, 255, 0.92); border: 1px solid #dce8f5; box-shadow: 0 18px 42px rgba(11, 35, 63, 0.12); font-size: 0.78rem; animation: ledgerFloat 5.8s ease-in-out infinite; }
.floating-ledger-card strong { color: var(--blue); font-size: 0.96rem; }
.ledger-one { left: -28px; top: 28px; }
.ledger-two { right: -24px; bottom: 36px; animation-delay: .8s; }
.trust-strip { background: rgba(255, 255, 255, 0.92); }

.module-card { position: relative; overflow: hidden; }
.module-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.module-card:hover::before { transform: scaleX(1); }
.module-card:hover { border-color: #b9d6f8; box-shadow: 0 26px 58px rgba(29, 111, 233, 0.12); }

.billing-grid { align-items: start; }
.preview-panel { position: sticky; top: 86px; }
.invoice-action-bar { position: sticky; top: 76px; z-index: 20; justify-content: flex-end; padding: 10px; margin: -4px -4px 14px; border: 1px solid #dbe8f7; border-radius: 18px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 18px 40px rgba(11, 35, 63, 0.10); backdrop-filter: blur(16px); }
.live-preview-title { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.live-preview-title strong,
.live-preview-title small { display: block; }
.live-preview-title small { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.live-dot { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), var(--blue)); box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.42), 0 0 0 6px rgba(49, 184, 156, 0.11); }
.share-action { color: #075e54; background: #e8fff6; border-color: #b9ead8; }
.invoice { border-radius: 18px; border-color: #dbe8f7; box-shadow: 0 28px 70px rgba(11, 35, 63, 0.10); }
.invoice-kicker,
.invoice-parties span,
.bank-box span { color: var(--blue); }

.billing-modal { width: min(430px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.billing-modal::backdrop { background: rgba(11, 35, 63, 0.48); backdrop-filter: blur(8px); }
.billing-modal-card { position: relative; display: grid; gap: 14px; padding: 30px; text-align: center; color: var(--navy); background: #fff; border: 1px solid #dbe8f7; border-radius: 24px; box-shadow: 0 28px 80px rgba(11, 35, 63, 0.28); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid #dce8f5; border-radius: 999px; color: var(--navy); background: #f7fbff; font-weight: 900; }
.modal-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); box-shadow: 0 16px 34px rgba(29, 111, 233, 0.22); font-size: 0.8rem; font-weight: 900; letter-spacing: .08em; }
.billing-modal-card h2 { margin: 0; color: var(--navy); font-size: 1.45rem; }
.billing-modal-card p,
.billing-modal-card small { margin: 0; color: var(--muted); }
.modal-feature-box { display: grid; gap: 9px; padding: 15px; text-align: left; border: 1px solid #e1ebf7; border-radius: 16px; background: #f8fbff; }
.modal-feature-box strong { color: var(--navy); font-size: 0.82rem; text-transform: uppercase; }
.modal-feature-box span { color: #415972; font-size: 0.9rem; }
.modal-feature-box span::before { content: "+"; margin-right: 8px; color: var(--teal); font-weight: 900; }

.billing-toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: min(360px, calc(100% - 32px)); padding: 13px 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); box-shadow: 0 18px 40px rgba(11, 35, 63, 0.24); font-weight: 800; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.billing-toast.show { opacity: 1; transform: translateY(0); }

@keyframes billingFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-18px, 16px, 0) scale(1.03); } }
@keyframes billingPulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes chipDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes invoiceCardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ledgerFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }

@media (max-width: 1080px) {
  .preview-panel { position: static; }
  .floating-ledger-card { display: none; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; gap: 10px; padding-inline: 14px; }
  .signin-button { min-height: 40px; padding: 0 12px; }
  .app-button { min-width: auto; min-height: 40px; padding: 6px 10px; font-size: 0.74rem; }
  .app-button small { display: none; }
  nav { grid-column: 1 / -1; }
  .landing-hero { min-height: auto; padding-top: 38px; padding-bottom: 42px; }
  .billing-motion-strip { gap: 8px; }
  .billing-motion-strip span { min-height: 34px; padding: 0 10px; font-size: 0.74rem; }
  .invoice-action-bar { position: static; justify-content: stretch; }
  .invoice-action-bar > button,
  .invoice-action-bar > .status-text { flex: 1 1 140px; }
  .live-preview-title { width: 100%; }
}

@media print {
  .invoice-action-bar,
  .billing-modal,
  .billing-toast { display: none !important; }
}

/* RemoteTax billing compact polish */
.topbar {
  padding-top: 9px;
  padding-bottom: 9px;
}

.landing-hero {
  min-height: 500px;
  padding-top: 22px;
  padding-bottom: 36px;
  align-items: center;
}

.landing-hero::before {
  width: 330px;
  height: 330px;
  top: 36px;
  right: 7vw;
}

.landing-hero::after {
  width: 160px;
  height: 160px;
  right: 29vw;
  bottom: 40px;
}

.hero-copy h1 {
  margin-top: 14px;
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 5.1vw, 4.55rem);
}

.hero-actions {
  margin-top: 20px;
}

.hero-invoice-card {
  padding: 18px;
  border-radius: 16px;
}

.mini-invoice {
  padding: 20px;
  border-radius: 14px;
}

.app-button {
  min-height: 40px;
  min-width: 118px;
  padding: 6px 13px;
  gap: 7px;
}

.app-button .app-icon {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82) 0 28%, transparent 29%),
    linear-gradient(135deg, #20c997, #1d6fe9);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.34), 0 7px 14px rgba(29, 111, 233, 0.16);
}

.app-label {
  font-size: 0.78rem;
}

.app-button small {
  font-size: 0.58rem;
}

.billing-motion-strip {
  margin-top: 17px;
  gap: 8px;
}

.billing-motion-strip span {
  min-height: 32px;
  padding: 0 11px 0 9px;
  gap: 7px;
  font-size: 0.76rem;
  box-shadow: 0 9px 20px rgba(11, 35, 63, 0.07);
}

.billing-motion-strip span::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
}

.billing-motion-strip span:nth-child(2)::before {
  background: linear-gradient(135deg, var(--orange), #ff7a1a);
}

.billing-motion-strip span:nth-child(3)::before {
  background: linear-gradient(135deg, #16a34a, var(--teal));
}

.billing-motion-strip span:nth-child(4)::before {
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.floating-ledger-card {
  min-width: 118px;
  padding: 9px 12px 9px 34px;
  border-radius: 14px;
  font-size: 0.7rem;
}

.floating-ledger-card::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #19b66a;
  box-shadow: 0 0 0 5px rgba(25, 182, 106, 0.12);
}

.ledger-two::before {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(245, 166, 35, 0.14);
}

.floating-ledger-card strong {
  font-size: 0.84rem;
}

.ledger-one {
  left: -14px;
  top: 18px;
}

.ledger-two {
  right: -12px;
  bottom: 24px;
}

.live-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #18b96b;
  box-shadow: 0 0 0 5px rgba(24, 185, 107, 0.12), 0 7px 16px rgba(24, 185, 107, 0.28);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #ffffff;
  opacity: 0.82;
  animation: liveBlink 1.7s ease-in-out infinite;
}

.live-preview-title {
  gap: 8px;
}

.live-preview-title strong {
  font-size: 0.9rem;
}

.live-preview-title small {
  font-size: 0.68rem;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 0.68rem;
  background:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.5), transparent 18%),
    linear-gradient(135deg, var(--blue), var(--teal));
}

.brand-mark,
.auth-icon {
  border-radius: 10px;
}

.auth-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}

.module-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(29, 111, 233, 0.16), rgba(49, 184, 156, 0.2));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.42);
}

@keyframes liveBlink {
  0%, 100% { transform: scale(.65); opacity: .9; }
  50% { transform: scale(1); opacity: .45; }
}

@media (max-width: 1080px) {
  .landing-hero {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 32px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .landing-hero {
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(2.05rem, 13vw, 3.2rem);
  }

  .hero-invoice-card {
    padding: 14px;
  }

  .billing-motion-strip span {
    min-height: 30px;
    padding-inline: 8px 10px;
    font-size: 0.7rem;
  }

  .billing-motion-strip span::before {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
    border-radius: 4px;
  }

  .app-button .app-icon {
    width: 16px;
    height: 16px;
  }

  .live-dot {
    width: 16px;
    height: 16px;
  }
}

/* RemoteTax invoice compact controls */
.billing-page {
  padding-top: 18px;
  padding-bottom: 38px;
}

.compact-head {
  margin-bottom: 12px;
}

.compact-head .section-kicker {
  margin-bottom: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

.compact-head h1 {
  margin: 4px 0 7px;
  font-size: clamp(1.72rem, 3.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.compact-head p {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.doc-mode-grid {
  gap: 8px;
  margin-top: 10px;
  max-width: 820px;
}

.doc-mode-card {
  min-height: 58px;
  padding: 10px 12px;
  gap: 2px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(11, 35, 63, 0.055);
}

.doc-mode-card strong {
  font-size: 0.88rem;
  line-height: 1.12;
}

.doc-mode-card span {
  font-size: 0.74rem;
  line-height: 1.2;
}

.doc-mode-card.active {
  box-shadow: 0 12px 26px rgba(29, 111, 233, 0.16);
}

.billing-grid {
  gap: 18px;
}

.invoice-action-bar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 16px;
}

.invoice-action-bar .status-text {
  grid-column: 1 / -1;
  min-height: 0;
  font-size: 0.72rem;
}

.invoice-action-bar .primary-action,
.invoice-action-bar .secondary-action {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.84rem;
  box-shadow: 0 8px 18px rgba(11, 35, 63, 0.065);
}

.invoice-action-bar #resetBtn,
.invoice-action-bar #saveInvoiceBtn {
  grid-row: 1;
}

.invoice-action-bar #shareInvoiceBtn,
.invoice-action-bar #printBtn {
  grid-row: 2;
}

.live-preview-title {
  min-width: 0;
}

.live-preview-title strong {
  font-size: 0.84rem;
}

.live-preview-title small {
  font-size: 0.62rem;
}

@media (min-width: 1180px) {
  .invoice-action-bar {
    grid-template-columns: minmax(160px, 1fr) auto auto;
  }
}

@media (max-width: 1080px) {
  .billing-page {
    padding-top: 14px;
  }

  .doc-mode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .billing-page {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .compact-head h1 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .doc-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .doc-mode-card {
    min-height: 52px;
    padding: 9px 10px;
  }

  .doc-mode-card strong {
    font-size: 0.8rem;
  }

  .doc-mode-card span {
    font-size: 0.68rem;
  }

  .invoice-action-bar {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 9px;
  }

  .invoice-action-bar .live-preview-title,
  .invoice-action-bar .status-text {
    grid-column: 1 / -1;
    width: auto;
  }

  .invoice-action-bar .primary-action,
  .invoice-action-bar .secondary-action {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.74rem;
  }
}

/* RemoteTax action icon buttons */
.invoice-action-bar {
  grid-template-columns: minmax(170px, 1fr) auto auto auto auto;
  grid-auto-flow: column;
  background: linear-gradient(135deg, rgba(18, 58, 112, 0.98), rgba(29, 111, 233, 0.95));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(11, 35, 63, 0.18);
}

.invoice-action-bar .status-text {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.82);
}

.invoice-action-bar .live-preview-title {
  color: #fff;
}

.invoice-action-bar .live-preview-title small {
  color: rgba(255, 255, 255, 0.72);
}

.invoice-action-bar .primary-action,
.invoice-action-bar .secondary-action {
  min-height: 32px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 8px;
  font-size: 0.76rem;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.invoice-action-bar .icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.invoice-action-bar #resetBtn,
.invoice-action-bar #saveInvoiceBtn,
.invoice-action-bar #shareInvoiceBtn,
.invoice-action-bar #printBtn {
  grid-row: 1;
}

.invoice-action-bar .reset-action {
  color: #dceaff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.invoice-action-bar .save-action {
  color: #dceaff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

.invoice-action-bar .print-action {
  color: #ffffff;
  background: linear-gradient(135deg, #ff9f1c, #ff7a1a);
  border-color: rgba(255, 255, 255, 0.2);
}

.invoice-action-bar .share-action {
  color: #d9fff2;
  background: linear-gradient(135deg, #08a66a, #0e936c);
  border-color: rgba(255, 255, 255, 0.22);
}

.action-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-block;
}

.save-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 12px;
  height: 7px;
  border: 1.8px solid currentColor;
  border-radius: 999px;
}

.save-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 7px;
  height: 5px;
  border-top: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  border-radius: 6px 0 0 0;
  transform: rotate(12deg);
}

.reset-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1.8px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
}

.reset-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  transform: rotate(18deg);
}

.print-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 10px;
  height: 6px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.print-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 5px;
  border: 1.7px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 9px 0 -2px currentColor;
}

.share-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 1.7px;
  background: currentColor;
  transform: rotate(-24deg);
  box-shadow: 1px 4px 0 currentColor;
}

.share-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 4px;
  border: 1.6px solid currentColor;
  border-radius: 999px;
  box-shadow: 8px -5px 0 -1.6px currentColor, 8px 5px 0 -1.6px currentColor;
}

.pro-chip {
  display: inline-flex;
  align-items: center;
  min-height: 14px;
  padding: 0 5px;
  border-radius: 999px;
  color: #0b233f;
  background: #ffcf33;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 1180px) {
  .invoice-action-bar {
    grid-template-columns: minmax(160px, 1fr) auto auto;
    grid-auto-flow: row;
  }

  .invoice-action-bar #shareInvoiceBtn,
  .invoice-action-bar #printBtn {
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .invoice-action-bar {
    grid-template-columns: 1fr 1fr;
  }

  .invoice-action-bar .primary-action,
  .invoice-action-bar .secondary-action {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .action-icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
}

/* RemoteTax action overlap fix */
.invoice-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  grid-template-columns: none;
  grid-auto-flow: initial;
}

.invoice-action-bar .live-preview-title {
  flex: 1 1 150px;
  min-width: 150px;
  max-width: 220px;
  margin-right: 0;
}

.invoice-action-bar .live-preview-title > div {
  min-width: 0;
}

.invoice-action-bar .live-preview-title strong,
.invoice-action-bar .live-preview-title small {
  white-space: normal;
  overflow-wrap: anywhere;
}

.invoice-action-bar .status-text {
  flex: 1 0 100%;
  order: 20;
  grid-column: auto;
}

.invoice-action-bar #resetBtn,
.invoice-action-bar #saveInvoiceBtn,
.invoice-action-bar #shareInvoiceBtn,
.invoice-action-bar #printBtn {
  grid-row: auto;
  flex: 0 0 auto;
}

.invoice-action-bar .icon-action {
  min-width: max-content;
}

@media (max-width: 1280px) {
  .invoice-action-bar .live-preview-title {
    flex-basis: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .invoice-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .invoice-action-bar .live-preview-title,
  .invoice-action-bar .status-text {
    grid-column: 1 / -1;
    max-width: none;
  }

  .invoice-action-bar .icon-action {
    min-width: 0;
    width: 100%;
  }
}

/* RemoteTax SVG action icons */
.invoice-action-bar .action-icon,
.invoice-action-bar .action-icon::before,
.invoice-action-bar .action-icon::after {
  display: none !important;
}

.action-svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-svg {
  width: 18px;
  height: 18px;
  margin-left: 1px;
  stroke-width: 1.7;
}

.print-action .pdf-svg {
  color: rgba(255, 255, 255, 0.95);
}

.icon-action {
  gap: 6px;
}

.save-action .action-svg,
.reset-action .action-svg {
  color: #ecf5ff;
}

.share-action .action-svg {
  color: #dfffee;
}

.print-action .action-svg {
  color: #ffffff;
}

.invoice-action-bar .save-action,
.invoice-action-bar .reset-action {
  border-color: rgba(255, 255, 255, 0.3);
}

.invoice-action-bar .share-action {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.invoice-action-bar .print-action {
  box-shadow: 0 10px 20px rgba(255, 122, 26, 0.22);
}

@media (max-width: 760px) {
  .action-svg {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .pdf-svg {
    width: 15px;
    height: 15px;
  }
}

/* RemoteTax profile settings polish */
h1, h2, h3, .brand-text strong, nav a, .primary-action, .secondary-action, .signin-button, .profile-section summary strong {
  font-family: "Manrope", "DM Sans", sans-serif;
}

body { letter-spacing: -0.01em; }

input, select, textarea {
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}
textarea { line-height: 1.45; }

label {
  gap: 5px;
  color: #3b5067;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
label small { color: #7b8ca0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0; text-transform: none; }

.profile-settings-form { display: grid; gap: 10px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.profile-section { overflow: hidden; border: 1px solid #dfe8f2; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(11, 35, 63, 0.07); }
.profile-section summary { display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 18px; color: #0b233f; list-style: none; cursor: pointer; border-bottom: 1px solid #edf2f7; }
.profile-section summary::-webkit-details-marker { display: none; }
.profile-section summary strong { font-size: 0.88rem; font-weight: 800; }
.summary-caret { margin-left: auto; color: #64758a; font-size: 0.78rem; transform: rotate(0deg); }
.profile-section:not([open]) .summary-caret { transform: rotate(180deg); }
.section-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 5px; background: linear-gradient(135deg, #e9f4ff, #e7fff5); border: 1px solid #cce1f5; }
.section-icon::before { font-size: 12px; line-height: 1; }
.business-icon::before { content: "?"; color: #1d6fe9; }
.bank-icon::before { content: "?"; color: #07865f; }
.signature-icon::before { content: "?"; color: #e27f12; }
.profile-section-body { padding: 16px 18px 10px; }
.profile-field-grid { gap: 12px; }
.asset-uploader { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin-bottom: 15px; padding: 10px; border: 1px dashed #cbd8e5; border-radius: 12px; background: #f8fbff; }
.asset-preview { width: 46px; height: 46px; object-fit: contain; border: 1px solid #d7e2ee; border-radius: 8px; background: linear-gradient(135deg, rgba(29,111,233,.08), rgba(49,184,156,.1)); }
.asset-preview.has-image { background: #fff; }
.asset-copy strong, .asset-copy small { display: block; }
.asset-copy strong { color: #14304f; font-size: 0.82rem; font-weight: 800; }
.asset-copy small { margin-top: 2px; color: #718299; font-size: 0.72rem; }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mini-upload-button, .mini-remove-button, .save-strip-button { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border-radius: 7px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0; text-transform: none; cursor: pointer; }
.mini-upload-button { margin: 0; color: #12385f; background: #fff; border: 1px solid #cfdcea; }
.mini-remove-button { color: #de3a3a; background: #fff; border: 1px solid #ffc9c9; }
.mini-remove-button:disabled { opacity: 0.45; cursor: not-allowed; }
.save-strip-button { width: 100%; margin-top: 8px; color: #0d7f46; background: #f7fffb; border: 1px solid #17bf62; }
.signature-section { border-color: #151515; }
.signature-uploader .asset-preview { width: 52px; height: 38px; }
.profile-final-actions { padding-top: 8px; }
@media (max-width: 760px) {
  .asset-uploader { grid-template-columns: 52px 1fr; }
  .mini-upload-button, .mini-remove-button { width: 100%; }
  .profile-section-body { padding: 14px 14px 10px; }
}

/* Billing auth refresh: password login + first-time registration */
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--coral), var(--teal));
  font-weight: 900;
}

.auth-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #dff7ef;
  background: rgba(18, 179, 168, 0.18);
  border: 1px solid rgba(110, 231, 200, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.auth-card {
  text-align: left;
}

.auth-card h2,
.auth-card > p,
.auth-footnote,
.status-text {
  text-align: center;
}

.auth-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-tabs button {
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.auth-tabs button:hover {
  transform: translateY(-1px);
  color: #fff;
}

.auth-panel {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-grid {
  display: grid;
  gap: 12px;
}

.auth-card form + form {
  margin-top: 0;
}

.auth-card label {
  margin-bottom: 0;
}

.captcha-row {
  display: grid;
  gap: 12px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-box img {
  width: 150px;
  height: 46px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #32445f;
}

.captcha-box .line-action {
  min-height: 46px;
  color: #d9fffb;
  background: rgba(18, 179, 168, 0.16);
  border-color: rgba(18, 179, 168, 0.36);
}

.captcha-box .line-action:hover {
  background: rgba(18, 179, 168, 0.24);
}

.auth-mini-note {
  margin: 0;
  color: #8fa1ba;
  font-size: .82rem;
  line-height: 1.6;
}

.status-text {
  min-height: 24px;
}

@media (max-width: 720px) {
  .captcha-box {
    flex-direction: column;
    align-items: stretch;
  }

  .captcha-box img {
    width: 100%;
    max-width: 220px;
  }
}

/* Typography aligned with main website */
:root {
  --font-body: "DM Sans", Arial, sans-serif;
  --font-heading: "Manrope", sans-serif;
}

body {
  font-family: var(--font-body);
  color: #1c2d3f;
}

h1,
h2,
h3,
h4,
.brand-text strong,
.hero-pill,
.auth-card h2,
.module-card strong,
.doc-mode-card strong,
.page-head h1,
.compact-head h1,
.section-kicker,
nav a,
.signin-button,
.app-button,
.primary-action,
.secondary-action,
.line-action,
.auth-tabs button,
label,
.summary-panel strong,
.metric-card strong,
.calc-result strong,
.invoice-form th,
.preview-panel th,
.admin-panel th {
  font-family: var(--font-heading);
}

.brand-text strong {
  letter-spacing: -0.45px;
  font-weight: 800;
}

nav a,
.signin-button,
.app-button,
.primary-action,
.secondary-action,
.line-action,
.auth-tabs button {
  letter-spacing: -0.15px;
}

label,
input,
select,
textarea,
p,
span,
small,
td,
li {
  font-family: var(--font-body);
}

.auth-preview h1,
.landing-hero h1,
.page-head h1,
.compact-head h1,
.auth-card h2 {
  letter-spacing: -1.2px;
}

.auth-preview p,
.auth-card p,
.module-card span,
.doc-mode-card span,
.page-head p,
.compact-head p {
  color: #687789;
}

input,
select,
textarea {
  font-size: 14px;
  font-weight: 500;
}

/* Cross-browser typography and auth helpers */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
input,
select,
textarea,
button {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  font-synthesis-weight: none;
}

h1,
h2,
h3,
h4,
.brand-text strong,
.hero-pill,
.auth-card h2,
.module-card strong,
.doc-mode-card strong,
.page-head h1,
.compact-head h1,
.section-kicker,
nav a,
.signin-button,
.app-button,
.primary-action,
.secondary-action,
.line-action,
.auth-tabs button,
label {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.auth-link-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.text-link-button {
  padding: 0;
  border: 0;
  color: #9ddfd6;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.text-link-button:hover {
  color: #d9fffb;
}

/* Business ops upgrade */
.ops-shell {
  display: grid;
  gap: 18px;
}

.ops-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(18, 179, 168, 0.14), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(70, 85, 246, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 20px 52px rgba(8, 17, 31, 0.08);
}

.ops-hero-copy h1 {
  max-width: 700px;
}

.ops-profile-card {
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: linear-gradient(160deg, #0f1c33, #14335f);
  color: #fff;
  box-shadow: 0 22px 48px rgba(8, 17, 31, 0.18);
}

.ops-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ops-profile-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #d9fffb;
  background: rgba(18, 179, 168, 0.18);
  border: 1px solid rgba(110, 231, 200, 0.32);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}

.ops-profile-top strong,
.ops-profile-list strong {
  color: #fff;
}

.ops-profile-top small,
.ops-profile-list span {
  color: #b8c8d8;
}

.ops-profile-list {
  display: grid;
  gap: 10px;
}

.ops-profile-list div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.ops-profile-list span,
.ops-profile-list strong {
  display: block;
}

.ops-profile-list strong {
  margin-top: 4px;
  font-size: 0.95rem;
}

.ops-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ops-metric-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(8, 17, 31, 0.06);
}

.ops-metric-card span,
.ops-metric-card small {
  display: block;
}

.ops-metric-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-metric-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--blue-2);
  font-size: 1.95rem;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.ops-metric-card small {
  color: #607487;
}

.ops-entry-form,
.ops-summary-card,
.ops-records-panel {
  border-radius: 18px;
}

.ops-records-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ops-records-head p {
  margin: 4px 0 0;
  color: #607487;
}

.ops-records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-record-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f9fcff);
  box-shadow: 0 14px 34px rgba(8, 17, 31, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ops-record-card:hover {
  transform: translateY(-3px);
  border-color: #bfd3e8;
  box-shadow: 0 22px 44px rgba(8, 17, 31, 0.1);
}

.ops-record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-record-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue-2);
  background: #eef5ff;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: capitalize;
}

.ops-record-card h3 {
  margin: 0;
  color: var(--navy-2);
  font-size: 1.08rem;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.ops-record-card p {
  margin: 0;
  color: #607487;
}

.invoice-history-card {
  position: relative;
  overflow: hidden;
}

.invoice-history-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,111,255,.12), rgba(43,111,255,0));
  pointer-events: none;
}

.ops-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-record-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f7fb;
  color: #5d7187;
  font-size: 0.82rem;
}

.ops-record-meta strong {
  margin-left: 4px;
  color: var(--navy-2);
}

.ops-record-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.small-action {
  min-height: 40px;
  padding: 0 12px;
  font-size: 12px;
}

.ops-empty-state {
  display: grid;
  gap: 6px;
  padding: 26px;
  border: 1px dashed #c7d6e5;
  border-radius: 16px;
  background: #f9fcff;
  color: #607487;
  text-align: center;
}

.ops-empty-state strong {
  color: var(--navy-2);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

@media (max-width: 1080px) {
  .ops-hero-card,
  .ops-metric-grid,
  .ops-records-grid {
    grid-template-columns: 1fr;
  }
}

.ops-field-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(243,247,252,.95), rgba(255,255,255,.96));
}

.ops-field-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-field-block-head strong {
  color: var(--navy-2);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
}

.ops-field-block-head small {
  color: #607487;
  font-size: 0.78rem;
}

.ops-record-detail-line {
  color: #35506c;
  font-size: 0.84rem;
  line-height: 1.6;
}

.ops-record-address {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f9fd;
  border: 1px solid #e3edf6;
  color: #526b84;
  font-size: 0.84rem;
  line-height: 1.6;
}

.workspace-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.workspace-chip {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(86, 173, 255, 0.22);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(15, 35, 64, 0.08);
}

.workspace-chip-status {
  display: inline-flex;
  align-items: center;
  color: #0e6a62;
  background: rgba(207, 255, 241, 0.78);
  border-color: rgba(81, 201, 164, 0.32);
  font-weight: 800;
}

.workspace-mini-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #5f7391;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(214, 226, 240, 0.9);
  font-size: 0.84rem;
  line-height: 1.6;
}

.ops-hero-card-premium,
.premium-panel,
.premium-metric-card,
.profile-hero-card,
.profile-stat-card,
.profile-mini-grid div,
.ops-inline-banner {
  position: relative;
  overflow: hidden;
}

.ops-hero-card-premium::before,
.profile-hero-card::before,
.ops-inline-banner::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 167, 255, 0.2), rgba(74, 167, 255, 0));
  pointer-events: none;
}

.ops-profile-card-premium {
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(240,248,255,0.92));
  border: 1px solid rgba(196, 218, 239, 0.9);
}

.premium-metric-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(245,250,255,0.96));
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.premium-metric-card:hover,
.premium-panel:hover,
.profile-stat-card:hover,
.profile-mini-grid div:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(10, 30, 54, 0.12);
}

.ops-form-hint {
  margin: -4px 0 10px;
  color: #607487;
  line-height: 1.6;
}

.ops-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 180px);
  gap: 10px;
  align-items: center;
}

.premium-record-card {
  gap: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,255,0.96)),
    linear-gradient(135deg, rgba(39,114,255,0.08), rgba(34,196,154,0.08));
  border: 1px solid rgba(204, 221, 239, 0.9);
}

.premium-record-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(40,118,255,0.04), rgba(255,255,255,0));
  pointer-events: none;
}

.ops-record-visual {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ops-record-orb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f3e86, #2b7dff);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 28px rgba(24, 72, 160, 0.22);
}

.type-customer .ops-record-orb,
.type-ledger .ops-record-orb,
.type-payment .ops-record-orb {
  background: linear-gradient(135deg, #0d5c74, #1fbea2);
}

.type-product .ops-record-orb,
.type-stock .ops-record-orb {
  background: linear-gradient(135deg, #0f3e86, #2b7dff);
}

.type-supplier .ops-record-orb,
.type-purchase .ops-record-orb {
  background: linear-gradient(135deg, #7a4c0d, #ff9a2f);
}

.ops-record-actions-main {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.edit-action {
  background: linear-gradient(135deg, rgba(14, 108, 255, 0.14), rgba(81, 176, 255, 0.18));
  border-color: rgba(78, 155, 255, 0.38);
}

.profile-shell {
  display: grid;
  gap: 24px;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(205, 222, 239, 0.95);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,247,255,0.95));
  box-shadow: 0 26px 60px rgba(11, 30, 55, 0.08);
}

.profile-hero-copy h1 {
  margin-bottom: 14px;
}

.profile-hero-stats {
  display: grid;
  gap: 14px;
}

.profile-stat-card {
  padding: 18px 20px;
  border: 1px solid rgba(208, 223, 239, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(10, 30, 54, 0.08);
}

.profile-stat-card span,
.profile-mini-grid span {
  display: block;
  margin-bottom: 6px;
  color: #607487;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-stat-card strong,
.profile-mini-grid strong {
  color: var(--navy-2);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.profile-stat-card small {
  display: block;
  margin-top: 6px;
  color: #607487;
}

.profile-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-mini-grid div {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(208, 223, 239, 0.95);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 30px rgba(11, 30, 55, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.invoice-workspace-head {
  display: grid;
  gap: 16px;
}

.ops-inline-banner {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(84, 187, 160, 0.22);
  background: linear-gradient(135deg, rgba(229,255,247,0.95), rgba(242,248,255,0.95));
  box-shadow: 0 18px 42px rgba(14, 57, 49, 0.08);
}

.ops-inline-banner strong {
  color: #0f4d45;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.ops-inline-banner span {
  color: #45617d;
}

@media (max-width: 1080px) {
  .profile-hero-card {
    grid-template-columns: 1fr;
  }

  .ops-record-actions-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ops-form-actions,
  .profile-mini-grid,
  .ops-record-actions-main {
    grid-template-columns: 1fr;
  }

  .ops-record-visual {
    grid-template-columns: 1fr;
  }

  .ops-record-orb {
    width: 48px;
    height: 48px;
  }
}
