:root {
  --ink: #1A1A1A;
  --muted: #5c5868;
  --muted-2: #777183;
  --line: #e5e1f2;
  --paper: #ffffff;
  --canvas: #FAFAFF;
  --canvas-deep: #EBE8FF;
  --navy: #1A1A1A;
  --navy-2: #292633;
  --blue: #5F48DE;
  --blue-dark: #4933c3;
  --blue-soft: #EBE8FF;
  --mint: #ebe8ff;
  --mint-soft: #e4f7f2;
  --amber: #ce8a22;
  --amber-soft: #fff4dc;
  --red: #ce5b67;
  --red-soft: #fff0f1;
  --shadow: 0 14px 40px rgba(28, 42, 73, .055), 0 2px 8px rgba(28, 42, 73, .035);
  --shadow-float: 0 24px 65px rgba(28, 42, 73, .12), 0 3px 12px rgba(28, 42, 73, .045);
  --radius: 20px;
  --radius-sm: 12px;
  font-family: 'DM Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { color: #fff; background: #7c66e7; }
.icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; }

.app-body { background: var(--canvas); }
.app-frame { min-height: 100vh; }
.sidebar {
  width: 252px; position: fixed; inset: 0 auto 0 0; z-index: 30;
  display: flex; flex-direction: column; padding: 26px 17px 18px;
  color: #f6f4ff; background:
    radial-gradient(ellipse at 7% 5%, rgba(111,132,230,.16), transparent 42%),
    linear-gradient(160deg, #1d1739 0%, #16122b 62%, #1e183a 100%);
  border-right: 1px solid rgba(255,255,255,.07);
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.brand-wordmark { color: #fff; font: 700 16px/1.2 Manrope,sans-serif; letter-spacing: -.4px; }
.brand small { color: #c3bbec; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.sidebar-label { margin: 45px 10px 12px; color: #77839d; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.side-nav { display: grid; gap: 5px; overflow-y: auto; scrollbar-width: thin; }
.nav-link {
  min-height: 42px; display: flex; align-items: center; gap: 13px; padding: 0 12px;
  color: #a19cbc; border: 1px solid transparent; border-radius: 11px;
  font-size: 12px; font-weight: 600; transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nav-link .icon { width: 17px; height: 17px; color: #8490a8; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link:hover .icon { color: #cdc3ff; }
.nav-link.is-active { color: #fff; background: linear-gradient(110deg, rgba(98,116,226,.25), rgba(98,116,226,.11)); border-color: rgba(144,157,255,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.nav-link.is-active .icon { color: #bcaeff; }
.nav-external { margin-left: auto; color: #73809b; font-size: 13px; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 0 5px 15px; min-width: 0; }
.avatar, .top-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #e9e4ff; background: rgba(117,133,228,.22); border: 1px solid rgba(174,185,255,.24); border-radius: 12px; font: 700 12px Manrope,sans-serif; }
.user-info { min-width: 0; display: grid; gap: 3px; }
.user-info strong { overflow: hidden; color: #eae8f4; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-info small { color: #7e8aa3; font-size: 10px; }
.inline-form { display: inline-flex; }
.logout-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; color: #929db2; background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; text-align: left; }
.logout-link .icon { width: 16px; height: 16px; }
.logout-link:hover { color: #fff; background: rgba(255,255,255,.055); }

.main-area { min-height: 100vh; margin-left: 252px; }
.topbar {
  height: 68px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 39px; background: rgba(249,250,252,.84); border-bottom: 1px solid rgba(221,226,235,.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #9aa3b2; font-size: 11px; }
.breadcrumb strong { color: #4b566a; font-weight: 600; }
.crumb-sep { color: #c4cad5; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.secure-label, .support-link { display: inline-flex; align-items: center; gap: 7px; color: #7d8899; font-size: 11px; font-weight: 600; }
.secure-label .icon { width: 15px; height: 15px; }
.support-link { color: #5b46c6; }
.support-link .icon { width: 16px; height: 16px; }
.top-avatar { width: 31px; height: 31px; color: #6852d4; background: #ece8ff; border-color: #dfd8ff; border-radius: 11px; }
.content-wrap { width: min(100%, 1530px); margin: 0 auto; padding: 31px 40px 54px; }
.mobile-menu { display: none; }
.mobile-scrim { display: none; }

.page-heading, .welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 0 0 25px; }
.page-heading h1, .welcome-row h1 { margin: 5px 0 7px; color: #25203e; font: 700 clamp(24px, 2.2vw, 31px)/1.15 Manrope, sans-serif; letter-spacing: -1.1px; }
.page-heading p, .welcome-row p { margin: 0; color: #8791a2; font-size: 12px; line-height: 1.65; }
.eyebrow { display: inline-block; color: #8390a7; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; line-height: 1.5; }
.heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.heading-actions form { display: inline-flex; }
.welcome-row { align-items: center; margin: 0 0 23px; }
.welcome-row h1 { margin-top: 6px; text-transform: none; }
.welcome-date { display: flex; align-items: center; gap: 12px; color: #929cad; font-size: 11px; }
.welcome-orb { width: 40px; height: 40px; display: grid; place-items: center; color: #f7f5ff; background: linear-gradient(145deg, #8e7ce8, #6e59d7); border: 1px solid rgba(255,255,255,.65); border-radius: 15px; box-shadow: 0 7px 18px rgba(70,88,190,.2); font: 700 14px Manrope,sans-serif; }

.btn { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-size: 11px; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; white-space: nowrap; }
.btn .icon { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #7d68e4, #6853d3); border-color: #6752d1; box-shadow: 0 5px 13px rgba(79,98,206,.18), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { background: linear-gradient(135deg, #725ddc, #5d47c9); box-shadow: 0 8px 18px rgba(79,98,206,.25); }
.btn-secondary { color: #5743b9; background: #f5f3ff; border-color: #e5e0ff; }
.btn-secondary:hover { background: #ede9ff; border-color: #dad3ff; }
.btn-quiet { color: #606c7f; background: #fff; border-color: #e9e7f0; }
.btn-quiet:hover { background: #f9f8fb; border-color: #d9d7e5; }
.btn-danger { color: #fff; background: var(--red); border-color: #c65360; }
.btn-light { color: #47359f; background: #fff; border-color: rgba(255,255,255,.75); box-shadow: 0 7px 22px rgba(32,48,125,.13); }
.btn-light:hover { background: #f5f3ff; }
.btn-small { min-height: 32px; padding: 0 10px; border-radius: 9px; font-size: 10px; }
.btn-small .icon { width: 14px; height: 14px; }

.panel { min-width: 0; padding: 22px; background: rgba(255,255,255,.91); border: 1px solid rgba(230,233,240,.95); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 17px; }
.section-heading h2 { margin: 3px 0 0; color: #2e2849; font: 700 16px/1.3 Manrope,sans-serif; letter-spacing: -.4px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.icon-orb { width: 34px; height: 34px; display: grid; place-items: center; color: #7461d5; background: #f3f0ff; border: 1px solid #ebe7ff; border-radius: 12px; }
.icon-orb .icon { width: 17px; height: 17px; }
.client-bento { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(310px, .84fr); gap: 16px; align-items: stretch; }
.client-bento > .panel { min-height: 240px; }
.current-work-card { grid-column: 1; grid-row: span 2; }
.services-card { grid-column: 2; }
.renewals-card { grid-column: 2; }
.completed-card { grid-column: 1; }
.activity-card { grid-column: 2; grid-row: span 2; }
.current-work-card, .services-card, .renewals-card, .completed-card, .activity-card { position: relative; overflow: hidden; }
.current-work-card::after, .renewals-card::after { width: 160px; height: 160px; position: absolute; top: -95px; right: -60px; border: 1px solid rgba(99,115,216,.09); border-radius: 50%; box-shadow: 0 0 0 18px rgba(99,115,216,.025),0 0 0 38px rgba(99,115,216,.018); content: ''; pointer-events: none; }
.bento-wide { grid-column: 1/-1; }
.payment-alert { position: relative; display: grid; grid-template-columns: 46px 1fr auto auto; align-items: center; gap: 17px; margin: 0 0 16px; padding: 19px 22px; overflow: hidden; color: #fff; background: linear-gradient(105deg, #30285a 0%, #4a3d8a 54%, #6553bd 100%); border: 1px solid rgba(255,255,255,.35); border-radius: 19px; box-shadow: 0 13px 26px rgba(49,63,121,.17), inset 0 1px 0 rgba(255,255,255,.17); }
.payment-alert::before { width: 220px; height: 220px; position: absolute; right: 16%; top: -150px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 20px rgba(255,255,255,.045),0 0 0 42px rgba(255,255,255,.03); content: ''; }
.payment-alert-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #e9e4ff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; backdrop-filter: blur(10px); }
.payment-alert-copy, .payment-alert-amount, .payment-alert-actions { position: relative; z-index: 1; }
.payment-alert .eyebrow { color: #cac2ef; }
.payment-alert h2 { margin: 4px 0 2px; color: #fff; font: 700 17px Manrope,sans-serif; letter-spacing: -.4px; }
.payment-alert-copy p { margin: 0; color: #cbc5e7; font-size: 10px; }
.payment-alert-amount { min-width: 142px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.18); }
.payment-alert-amount span { display: block; margin-bottom: 4px; color: #ccc6ea; font-size: 10px; }
.payment-alert-amount strong { display: block; color: #fff; font: 700 18px Manrope,sans-serif; white-space: nowrap; }
.payment-alert-actions { display: grid; justify-items: start; gap: 6px; }
.payment-alert-actions .btn { min-height: 36px; }
.payment-alert-actions .text-link { color: #eae6fb; }
.account-balance { color: #dbd6f6; font-size: 9px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: #6c59c8; font-size: 10px; font-weight: 700; }
.text-link:hover { color: #4a35b4; }
.text-link .icon { width: 14px; height: 14px; }

.project-summary { padding: 16px 0; border-top: 1px solid #f0eff5; }
.project-summary:first-of-type { padding-top: 0; border-top: 0; }
.project-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-title-line > div, .service-info, .completed-row > span:last-child { display: grid; gap: 5px; }
.project-title-line strong, .service-info strong, .completed-row strong { color: #363151; font-size: 12px; font-weight: 700; }
.project-title-line > div > span, .service-info small, .completed-row small { color: #8b95a5; font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; font-size: 9px; font-weight: 700; line-height: 1; white-space: nowrap; }
.badge-good { color: #258976; background: #e8f7f3; border-color: #d9f1eb; }
.badge-warning { color: #a96c12; background: #fff5e4; border-color: #faebc9; }
.badge-danger { color: #b54b57; background: #fff0f1; border-color: #f8dfe2; }
.badge-muted { color: #778195; background: #f1f0f6; border-color: #e9e8f0; }
.badge-neutral { color: #595379; background: #f1eff8; border-color: #e7e5f1; }
.progress-meta { display: flex; justify-content: space-between; margin: 13px 0 6px; color: #8c96a7; font-size: 9px; }
.progress-meta b { color: #6450c5; font-size: 10px; }
.progress-track { height: 5px; overflow: hidden; background: #eeedf5; border-radius: 5px; }
.progress-track span { height: 100%; display: block; background: linear-gradient(90deg, #826ee5, #58b7a3); border-radius: inherit; }
.latest-note { margin: 12px 0 0; padding: 9px 10px; color: #5d6879; background: #f9f8fc; border-left: 2px solid #8674de; border-radius: 0 8px 8px 0; font-size: 10px; line-height: 1.5; }
.latest-note span { display: block; margin-bottom: 2px; color: #98a2b1; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.latest-note strong { color: #4e5a70; font-size: 10px; }
.latest-note small { color: #9aa3b1; font-size: 8px; }
.project-date { display: flex; justify-content: space-between; margin: 10px 0 0; color: #99a2b0; font-size: 9px; }
.project-date strong { color: #586378; font-weight: 600; }
.service-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f0eff5; }
.service-glyph { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #7a68d3; background: #f3f1ff; border-radius: 10px; }
.service-glyph .icon { width: 15px; height: 15px; }
.service-info { flex: 1; min-width: 0; }
.service-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-info small { line-height: 1.45; }
.renewal-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f0eff5; }
.renewal-row > span:nth-child(2) { display: grid; gap: 4px; }
.renewal-row strong { color: #3a3555; font-size: 10px; }
.renewal-row small { color: #919aaa; font-size: 9px; }
.renewal-date { width: 34px; height: 37px; display: grid; align-content: center; justify-items: center; color: #6652c8; background: #f1eeff; border-radius: 9px; }
.renewal-date strong { font: 700 13px Manrope,sans-serif; }
.renewal-date small { color: #8f7fe0; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.renewal-count { color: #a4acb9; font-size: 9px; }
.renewal-state { display: flex; justify-content: flex-end; }
.completed-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0eff5; }
.completed-check { width: 26px; height: 26px; display: grid; place-items: center; color: #29937e; background: #e7f7f2; border-radius: 9px; font-weight: 700; }
.activity-card .section-heading { margin-bottom: 8px; }
.timeline-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid #f0eff5; }
.timeline-dot { width: 8px; height: 8px; flex: 0 0 auto; background: #9384dd; border: 2px solid #ede9ff; border-radius: 50%; box-shadow: 0 0 0 3px #f8f7ff; }
.dot-payment { background: #36ad92; border-color: #dff6ef; box-shadow: 0 0 0 3px #f5fcfa; }
.dot-invoice { background: #de9b42; border-color: #fff0d1; box-shadow: 0 0 0 3px #fffbf4; }
.dot-service { background: #9b76ce; }
.timeline-content { display: grid; flex: 1; gap: 4px; }
.timeline-content strong { color: #4c4667; font-size: 10px; font-weight: 600; }
.timeline-content small { color: #9ba4b1; font-size: 9px; }
.timeline-row > b { color: #57647a; font-size: 10px; }
.support-banner { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 17px; padding: 19px 22px; overflow: hidden; color: #fff; background: linear-gradient(107deg,#6551c7 0%,#7965dc 58%,#9382e8 100%); border: 1px solid rgba(255,255,255,.52); border-radius: 18px; box-shadow: 0 12px 25px rgba(76,95,190,.18),inset 0 1px 0 rgba(255,255,255,.23); }
.support-banner::after { width: 220px; height: 220px; position: absolute; right: 8%; top: -155px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.05),0 0 0 52px rgba(255,255,255,.035); content: ''; }
.support-icon { width: 41px; height: 41px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); border-radius: 14px; }
.support-banner > div:nth-child(2) { flex: 1; }
.support-banner .eyebrow { color: #dbd4ff; }
.support-banner h2 { margin: 4px 0; color: #fff; font: 700 14px Manrope,sans-serif; }
.support-banner p { margin: 0; color: #e2dcff; font-size: 10px; }
.support-banner .btn { position: relative; z-index: 1; }

.empty-state { display: grid; justify-items: center; gap: 8px; min-height: 135px; align-content: center; padding: 18px 12px; color: #8c96a7; text-align: center; }
.empty-state > .icon { width: 24px; height: 24px; color: #aca5d0; }
.empty-state strong { color: #586478; font-size: 11px; }
.empty-state p { max-width: 260px; margin: 0; color: #99a2b1; font-size: 10px; line-height: 1.55; }

.stats-grid { display: grid; gap: 13px; margin-bottom: 19px; }
.admin-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.stat-card { min-height: 132px; position: relative; display: grid; align-content: start; gap: 8px; padding: 18px; overflow: hidden; background: rgba(255,255,255,.9); border: 1px solid #eae8f1; border-radius: 17px; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease; }
a.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.stat-card > span { color: #8792a4; font-size: 10px; font-weight: 600; }
.stat-card > strong { color: #2c2647; font: 700 27px/1.1 Manrope,sans-serif; letter-spacing: -1px; }
.stat-card > small { color: #a0a9b6; font-size: 9px; }
.stat-card > .icon { width: 25px; height: 25px; position: absolute; top: 17px; right: 16px; color: #b9aeef; }
.stat-card.stat-accent { background: linear-gradient(140deg,#fff 35%,#f3f1ff); }
.stat-card:nth-child(2) > .icon { color: #9bd6c8; }
.stat-card:nth-child(3) > .icon { color: #e9c279; }
.stat-card:nth-child(4) > .icon { color: #d6a5ad; }
.stat-card .stat-money { font-size: 21px; letter-spacing: -.55px; }
.admin-bento { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 16px; margin-bottom: 16px; }
.admin-invoices, .admin-renewals { min-height: 250px; }
.simple-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; padding: 9px 0; border-top: 1px solid #f0eff5; }
.simple-list-row > span:first-child { display: grid; gap: 4px; min-width: 0; }
.simple-list-row strong { overflow: hidden; color: #423c5d; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.simple-list-row small { overflow: hidden; color: #949eae; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.simple-list-row > b { color: #4b446c; font-size: 10px; white-space: nowrap; }
.simple-list-row > a, .row-end > a { color: #7969ca; font-size: 9px; font-weight: 700; white-space: nowrap; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.renewal-count-pill { min-width: 28px; height: 28px; display: grid; place-items: center; color: #81621b; background: #fff4de; border: 1px solid #f7e8c9; border-radius: 9px; font-size: 10px; font-weight: 700; }
.split-panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.split-panels > .panel { min-height: 190px; }
.admin-stats .stat-card { text-decoration: none; }
.quick-action-panel { margin: -3px 0 18px; padding: 14px 17px; background: linear-gradient(105deg,rgba(255,255,255,.92),rgba(247,248,255,.94)); border: 1px solid #e9e7f2; border-radius: 15px; box-shadow: 0 4px 14px rgba(28,42,73,.03); }
.quick-actions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-top: 9px; }
.quick-actions a { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #667286; background: #fff; border: 1px solid #eeedf5; border-radius: 10px; font-size: 9px; font-weight: 700; transition: color .16s ease,border-color .16s ease,background .16s ease; }
.quick-actions a:hover { color: #6450c6; background: #f7f5ff; border-color: #e5e0ff; }
.quick-actions a > .icon:first-child { width: 15px; height: 15px; color: #8474d6; }
.quick-actions a > .icon:last-child { width: 13px; height: 13px; margin-left: auto; color: #b1b8c7; }

.list-panel { padding: 0; overflow: hidden; }
.list-tools { display: flex; align-items: center; gap: 12px; min-height: 73px; padding: 15px 19px; border-bottom: 1px solid #eeedf4; }
.search-field { max-width: 430px; min-width: 210px; height: 39px; display: flex; align-items: center; gap: 9px; flex: 1; padding: 0 10px; background: #fbfafd; border: 1px solid #eae8f1; border-radius: 10px; }
.search-field .icon { width: 16px; height: 16px; color: #a2abbb; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: #494367; background: transparent; font-size: 10px; }
.search-field input::placeholder { color: #a3acba; }
.search-field button { padding: 6px 8px; color: #6552c6; background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 700; }
.filter-select { height: 39px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; color: #9ba4b2; background: #fbfafd; border: 1px solid #eae8f1; border-radius: 10px; font-size: 9px; }
.filter-select select { max-width: 150px; color: #546176; background: transparent; border: 0; outline: 0; font-size: 10px; font-weight: 600; }
.clear-link { color: #7766c9; font-size: 10px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 12px 16px; color: #9aa3b2; background: #fbfbfd; border-bottom: 1px solid #eeedf4; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 16px; color: #697589; border-bottom: 1px solid #f1f0f5; font-size: 10px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fdfcff; }
.data-table td strong { display: block; color: #3e385b; font-size: 10px; font-weight: 700; }
.data-table td small { display: block; max-width: 260px; margin-top: 4px; overflow: hidden; color: #99a2b0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.data-table code { color: #7868ca; font: 600 9px 'DM Sans',sans-serif; }
.actions-head { text-align: right; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.row-actions form { display: inline-flex; }
.icon-button { width: 29px; height: 29px; display: inline-grid; place-items: center; color: #78849a; background: #fff; border: 1px solid #eae8f1; border-radius: 8px; cursor: pointer; font-size: 13px; transition: color .16s ease,background .16s ease,border-color .16s ease; }
.icon-button:hover { color: #6753c9; background: #f5f3ff; border-color: #e2dcff; }
.icon-button .icon { width: 14px; height: 14px; }
.danger-icon:hover { color: #bf505d; background: #fff2f3; border-color: #f4d9dc; }
.table-progress { min-width: 90px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 7px; color: #6957c2; font-size: 9px; font-weight: 700; }
.table-progress i { height: 4px; overflow: hidden; background: #eeedf5; border-radius: 4px; }
.table-progress b { height: 100%; display: block; background: #826fe0; border-radius: inherit; }
.table-foot { display: flex; justify-content: space-between; padding: 11px 17px; color: #9aa3b1; background: #fbfbfd; border-top: 1px solid #eeedf4; font-size: 9px; }
.table-link { color: #6b58c9; font-weight: 700; }

.workspace-tabs { display: flex; gap: 5px; margin: -3px 0 18px; padding: 4px; overflow-x: auto; background: #ebe9f4; border: 1px solid #e4e2ee; border-radius: 12px; scrollbar-width: thin; }
.workspace-tabs a { padding: 9px 12px; color: #778297; border: 1px solid transparent; border-radius: 9px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.workspace-tabs a.active { color: #5743bd; background: #fff; border-color: #eae8f2; box-shadow: 0 2px 5px rgba(30,43,75,.045); }
.client-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.client-stats .stat-card { min-height: 93px; padding: 14px; gap: 6px; }
.client-stats .stat-card > strong { font-size: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.detail-cell { display: grid; gap: 5px; min-width: 0; padding: 11px 12px; background: #fbfafd; border: 1px solid #f0eff4; border-radius: 10px; }
.detail-cell > span { color: #9aa3b1; font-size: 9px; }
.detail-cell > strong { overflow-wrap: anywhere; color: #4b4567; font-size: 10px; font-weight: 600; }
.notes-panel { min-height: 180px; }
.notes-panel h2 { margin: 7px 0; font: 700 17px Manrope,sans-serif; }
.notes-panel p { color: #6e7a8c; font-size: 11px; line-height: 1.7; }

.invoice-list { padding: 0 18px; }
.invoice-row { min-height: 73px; display: grid; grid-template-columns: minmax(180px,1fr) minmax(100px,.45fr) auto minmax(150px,.5fr); align-items: center; gap: 18px; padding: 10px 0; border-bottom: 1px solid #eeedf4; }
.invoice-row:last-child { border-bottom: 0; }
.invoice-row-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.invoice-row-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: #7562d2; background: #f3f0ff; border: 1px solid #ebe7ff; border-radius: 11px; }
.invoice-row-info { min-width: 0; display: grid; gap: 5px; }
.invoice-row-info strong { overflow: hidden; color: #3b3557; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-row-info small, .invoice-row-total small { color: #9aa3b2; font-size: 9px; }
.invoice-row-total { display: grid; gap: 4px; }
.invoice-row-total strong { color: #4b4569; font: 700 12px Manrope,sans-serif; white-space: nowrap; }
.invoice-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.paid-label { color: #2b947e; font-size: 10px; font-weight: 700; }

.history-panel { padding: 5px 22px; }
.filter-pills { display: flex; gap: 6px; margin: 0 0 16px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; background: #ebe9f4; border: 1px solid #e4e2ed; border-radius: 11px; }
.filter-pills a { padding: 8px 12px; color: #7a8599; border: 1px solid transparent; border-radius: 8px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.filter-pills a.active { color: #5743bd; background: #fff; border-color: #e9e7f2; box-shadow: 0 1px 4px rgba(33,45,75,.06); }
.invoice-status-counts { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.invoice-status-counts .filter-pill { padding:7px 10px; color:#625b7a; background:#f1eff9; border:1px solid #e7e4f1; border-radius:999px; font-size:10px; font-weight:650; }
.history-entry { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: start; gap: 13px; padding: 17px 0; border-bottom: 1px solid #f0eff5; }
.history-entry:last-child { border-bottom: 0; }
.history-rail { width: 34px; height: 34px; display: grid; place-items: center; color: #7663d5; background: #f3f0ff; border: 1px solid #ebe7ff; border-radius: 11px; }
.history-rail .icon { width: 16px; height: 16px; }
.rail-payment { color: #29947d; background: #eaf8f4; border-color: #ddf3ec; }
.rail-invoice { color: #c08a35; background: #fff6e6; border-color: #faedd5; }
.rail-service { color: #8a67be; background: #f5effd; border-color: #ece1f9; }
.history-copy .eyebrow { color: #9aa3b1; font-size: 8px; }
.history-copy h3 { margin: 5px 0 4px; color: #3d375a; font: 700 12px Manrope,sans-serif; }
.history-copy p { margin: 0; color: #828d9f; font-size: 10px; line-height: 1.6; }
.history-amount { padding-top: 3px; color: #575078; font-size: 10px; white-space: nowrap; }

.form-panel { max-width: 980px; }
.form-panel form > .form-grid, .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; color: #566378; font-size: 10px; font-weight: 600; }
.field-label { color: #667286; font-size: 10px; font-weight: 700; }
.field-label b { color: #d5777f; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 10px 11px; color: #3b3556; background: #fdfcff; border: 1px solid #e6e4ef; border-radius: 9px; outline: 0; font-size: 11px; transition: border-color .15s ease,box-shadow .15s ease,background .15s ease; }
.field textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: #a092e8; box-shadow: 0 0 0 3px rgba(101,119,221,.1); }
.field input::placeholder, .field textarea::placeholder { color: #a9b1bd; }
.field > small { color: #9ba4b2; font-size: 9px; font-weight: 400; line-height: 1.45; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; padding-top: 16px; border-top: 1px solid #eeedf4; }
.checkbox-field { display: flex; align-items: center; gap: 8px; color: #647085; font-size: 10px; font-weight: 600; }
.checkbox-field input { accent-color: #6f5bd3; }
.update-list { margin-top: 18px; border-top: 1px solid #eeedf4; }
.update-item { padding: 14px 0; border-bottom: 1px solid #f0eff5; }
.update-item > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.update-item strong { color: #3e385c; font-size: 11px; }
.update-item span { color: #9aa3b1; font-size: 9px; }
.update-item p { margin: 8px 0 0; color: #798598; font-size: 10px; line-height: 1.6; }

.line-items-wrap { margin: 20px 0; padding: 18px; background: #fbfafd; border: 1px solid #eeedf4; border-radius: 13px; }
.line-items-wrap .section-heading { margin-bottom: 12px; }
.line-items { display: grid; gap: 8px; }
.line-item-row { display: grid; grid-template-columns: minmax(0,1fr) 90px 140px 29px; align-items: end; gap: 9px; }
.line-item-row .field { gap: 5px; }
.line-item-row .field-label { font-size: 9px; }
.line-item-row input { min-height: 37px; }
.invoice-bottom { grid-template-columns: 1fr 2fr; }

.invoice-paper { max-width: 940px; margin: 0 auto; padding: 42px 48px; background: #fff; border: 1px solid #eae9f1; border-radius: 16px; box-shadow: var(--shadow); }
.invoice-payment-instructions { margin-top: 24px; padding: 15px 17px; color: #514a70; background: #f7f5ff; border: 1px solid #e9e5ff; border-radius: 12px; font-size: 12px; }
.invoice-payment-instructions .eyebrow { display: block; margin-bottom: 6px; }
.invoice-payment-instructions p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.invoice-payment-instructions a { color: #5f48de; font-weight: 700; }
.invoice-topline { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid #eeedf4; }
.invoice-brand { display: flex; align-items: center; gap: 12px; }
.invoice-brand > div:last-child { display: grid; gap: 4px; }
.invoice-brand strong { color: #2e284a; font: 700 14px Manrope,sans-serif; }
.invoice-brand span { color: #929cad; font-size: 9px; }
.invoice-meta { display: grid; justify-items: end; gap: 5px; }
.invoice-meta > span:first-child { color: #8c96a7; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.invoice-meta > strong { color: #2f294c; font: 700 15px Manrope,sans-serif; }
.invoice-parties { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; padding: 23px 0; }
.invoice-parties > div { display: grid; align-content: start; gap: 6px; }
.invoice-parties strong { color: #3a3458; font-size: 11px; }
.invoice-parties span:not(.eyebrow) { color: #7d8899; font-size: 9px; }
.invoice-parties b { color: #4b4568; font-weight: 600; }
.invoice-lines { width: 100%; border-collapse: collapse; }
.invoice-lines th { padding: 10px; color: #8993a4; background: #f9f8fb; border-top: 1px solid #eeedf4; border-bottom: 1px solid #eeedf4; font-size: 8px; letter-spacing: .7px; text-align: right; text-transform: uppercase; }
.invoice-lines th:first-child, .invoice-lines td:first-child { text-align: left; }
.invoice-lines td { padding: 13px 10px; color: #59667c; border-bottom: 1px solid #f0eff5; font-size: 10px; text-align: right; }
.invoice-totals { width: min(100%,320px); display: grid; gap: 9px; margin: 18px 0 0 auto; }
.invoice-totals > div, .invoice-payments > div { display: flex; justify-content: space-between; gap: 15px; color: #808b9c; font-size: 10px; }
.invoice-totals b { color: #4d476a; font-weight: 600; }
.invoice-totals .remaining { margin-top: 3px; padding: 11px 12px; color: #5642b8; background: #f3f0ff; border: 1px solid #e9e4ff; border-radius: 9px; }
.invoice-totals .remaining b { color: #5540bb; font: 700 13px Manrope,sans-serif; }
.invoice-notes { margin-top: 24px; padding: 13px 14px; background: #fbfafd; border-radius: 10px; }
.invoice-notes p { margin: 6px 0 0; color: #707d90; font-size: 10px; line-height: 1.6; }
.invoice-payments { display: grid; gap: 9px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #eeedf4; }
.invoice-payments > .eyebrow { margin-bottom: 2px; }
.invoice-payments b { color: #494368; }
.invoice-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 30px; padding-top: 14px; color: #9aa3b1; border-top: 1px solid #eeedf4; font-size: 8px; }
.print-toolbar { max-width: 940px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 14px auto 0; color: #8e98a9; font-size: 9px; }
.invoice-admin-actions { max-width: 940px; display: flex; justify-content: flex-end; gap: 8px; margin: 14px auto; }
.invoice-admin-actions form { display: inline-flex; }
.invoice-meta .badge { margin-top: 3px; }

.report-bar-row { display: grid; grid-template-columns: 52px minmax(50px,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f0eff5; }
.report-bar-row > span { color: #677389; font-size: 9px; font-weight: 600; }
.report-bar-row > i { height: 7px; overflow: hidden; background: #f0eff6; border-radius: 7px; }
.report-bar-row > i > b { height: 100%; display: block; background: linear-gradient(90deg,#7562d6,#73baa8); border-radius: inherit; }
.report-bar-row > strong { color: #4f496d; font-size: 9px; white-space: nowrap; }
.report-bar-row > small { grid-column: 2/4; margin-top: -7px; color: #9ba4b1; font-size: 8px; }
.settings-note { margin: 18px 0 0; padding-top: 14px; color: #8c96a6; border-top: 1px solid #eeedf4; font-size: 9px; line-height: 1.6; }
.not-found { max-width: 540px; margin: 8vh auto; text-align: center; }
.not-found .btn { margin-bottom: 10px; }

.flash { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 17px; padding: 12px 14px; border: 1px solid; border-radius: 11px; font-size: 11px; }
.flash button { color: inherit; background: transparent; border: 0; cursor: pointer; font-size: 16px; line-height: 1; opacity: .7; }
.flash-success { color: #287f6d; background: #eaf8f3; border-color: #d6f0e7; }
.flash-error { color: #a44753; background: #fff1f2; border-color: #f5dde0; }
.flash-info { color: #6856bf; background: #f2efff; border-color: #e5e0ff; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(21,29,46,.48); opacity: 0; backdrop-filter: blur(5px); transition: opacity .16s ease; }
.dialog-backdrop[hidden] { display: none; }
.dialog-backdrop.is-open { opacity: 1; }
.confirm-dialog { width: min(100%,380px); padding: 24px; background: #fff; border: 1px solid #eeedf4; border-radius: 17px; box-shadow: 0 25px 80px rgba(20,30,53,.24); transform: translateY(7px) scale(.985); transition: transform .16s ease; }
.is-open .confirm-dialog { transform: translateY(0) scale(1); }
.dialog-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #aa741e; background: #fff5e3; border-radius: 11px; font-weight: 800; }
.confirm-dialog h2 { margin: 14px 0 6px; color: #2f294a; font: 700 17px Manrope,sans-serif; }
.confirm-dialog p { margin: 0; color: #788497; font-size: 11px; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,1.06fr) minmax(420px,.94fr); background: #fff; }
.auth-story { min-height: 100vh; position: relative; display: flex; flex-direction: column; padding: 33px 7.3vw 25px; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 83% 16%,rgba(111,130,233,.32),transparent 39%),radial-gradient(ellipse at 11% 88%,rgba(72,162,159,.13),transparent 38%),linear-gradient(142deg,#241d45,#1d1738 58%,#272047); }
.auth-story::before { width: 440px; height: 440px; position: absolute; right: -140px; bottom: 7%; border: 1px solid rgba(192,200,255,.1); border-radius: 50%; box-shadow: 0 0 0 34px rgba(192,200,255,.025),0 0 0 74px rgba(192,200,255,.018); content: ''; }
.auth-brand { position: relative; z-index: 1; }
.auth-story-copy { position: relative; z-index: 1; margin: auto 0; padding: 75px 0 90px; }
.auth-story-copy .eyebrow { color: #b2aad7; }
.auth-story-copy h1 { margin: 18px 0 13px; color: #fff; font: 600 clamp(34px,4vw,56px)/1.11 Manrope,sans-serif; letter-spacing: -2.8px; }
.auth-story-copy h1 em { color: #a899f5; font-style: normal; }
.auth-story-copy p { max-width: 385px; color: #b8b3d0; font-size: 13px; line-height: 1.7; }
.auth-story-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 15px; color: #8a84aa; font-size: 9px; }
.auth-story-foot a { color: #b9b4d1; }
.auth-orbit { width: 222px; height: 112px; position: relative; margin-top: 41px; }
.orbit-main { width: 88px; height: 88px; position: absolute; top: 9px; left: 68px; z-index: 1; display: grid; place-content: center; justify-items: center; color: #fff; background: linear-gradient(145deg,rgba(126,142,235,.64),rgba(73,92,179,.4)); border: 1px solid rgba(211,218,255,.36); border-radius: 30px; box-shadow: 0 16px 37px rgba(7,14,37,.25),inset 0 1px 0 rgba(255,255,255,.32); backdrop-filter: blur(15px); font: 800 18px Manrope,sans-serif; letter-spacing: -1px; }
.orbit-main span { margin-top: 2px; color: #d9d2fa; font: 500 8px 'DM Sans',sans-serif; letter-spacing: .4px; }
.orbit-dot { width: 11px; height: 11px; position: absolute; z-index: 1; background: #ac9fea; border: 3px solid #5d538c; border-radius: 50%; box-shadow: 0 0 0 5px rgba(143,158,237,.12); }
.dot-a { top: 12px; left: 25px; }.dot-b { right: 20px; top: 25px; background: #68c7aa; border-color: #3b726c; }.dot-c { bottom: 4px; left: 48px; background: #e5bb73; border-color: #7f6e60; }
.orbit-line { position: absolute; height: 1px; background: linear-gradient(90deg,transparent,rgba(172,183,246,.55),transparent); transform-origin: left; }
.line-a { width: 75px; top: 35px; left: 37px; transform: rotate(13deg); }.line-b { width: 56px; top: 80px; left: 45px; transform: rotate(-39deg); }
.auth-card-wrap { display: grid; place-items: center; padding: 36px; background: linear-gradient(135deg,#fff,#fbfafe); }
.auth-card { width: min(100%,370px); }
.auth-card > .eyebrow { color: #7563cc; }
.auth-card h2 { margin: 9px 0 7px; color: #2e284b; font: 700 26px Manrope,sans-serif; letter-spacing: -1px; }
.auth-card > p { margin: 0 0 24px; color: #8c96a6; font-size: 11px; }
.auth-form { display: grid; gap: 17px; }
.auth-form .field input { min-height: 46px; background: #fff; }
.pin-input { position: relative; }
.pin-input input { padding-right: 55px; letter-spacing: 4px; }
.pin-input button { position: absolute; top: 50%; right: 11px; padding: 4px; color: #7563cf; background: transparent; border: 0; cursor: pointer; font-size: 9px; font-weight: 700; transform: translateY(-50%); }
.auth-submit { width: 100%; min-height: 45px; margin-top: 3px; }
.auth-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 21px; color: #a0a9b6; font-size: 9px; }
.secure-dot { width: 6px; height: 6px; background: #4ab397; border-radius: 50%; box-shadow: 0 0 0 3px #e6f6f1; }
.setup-link { display: block; margin-top: 18px; color: #7563cf; font-size: 10px; text-align: center; }
.auth-flash { position: fixed; top: 18px; right: 18px; z-index: 2; width: min(90vw,420px); box-shadow: var(--shadow-float); }
.auth-mobile-foot { display: none; }
.setup-screen, .error-screen { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(ellipse at 20% 10%,#f1eeff,transparent 40%),var(--canvas); }
.setup-card, .error-card { width: min(100%,490px); padding: 35px; background: #fff; border: 1px solid #eae8f1; border-radius: 20px; box-shadow: var(--shadow-float); }
.setup-card > .brand { margin-bottom: 32px; }
.setup-card > .eyebrow, .error-card > .eyebrow { display: block; margin-top: 4px; color: #7360cf; }
.setup-card h1, .error-card h1 { margin: 8px 0; color: #2c264b; font: 700 25px Manrope,sans-serif; letter-spacing: -.9px; }
.setup-card > p, .error-card > p { margin: 0 0 20px; color: #8792a3; font-size: 11px; line-height: 1.65; }
.setup-card form { display: grid; gap: 14px; }
.back-link { display: inline-block; margin-top: 18px; color: #7765cf; font-size: 10px; }

@media (max-width: 1220px) {
  .sidebar { width: 224px; }
  .main-area { margin-left: 224px; }
  .content-wrap { padding-right: 27px; padding-left: 27px; }
  .topbar { padding-right: 27px; padding-left: 27px; }
  .client-bento { grid-template-columns: minmax(0,1.08fr) minmax(280px,.92fr); }
  .payment-alert { grid-template-columns: 42px 1fr auto; }
  .payment-alert-actions { grid-column: 2/-1; display: flex; align-items: center; gap: 15px; }
  .admin-stats { gap: 10px; }
}
@media (max-width: 980px) {
  .sidebar { width: 210px; padding-right: 12px; padding-left: 12px; }
  .main-area { margin-left: 210px; }
  .content-wrap { padding: 25px 20px 44px; }
  .topbar { height: 62px; padding: 0 20px; }
  .client-bento { grid-template-columns: 1fr 1fr; }
  .current-work-card, .activity-card { grid-row: span 1; }
  .services-card, .renewals-card, .completed-card, .activity-card, .current-work-card { grid-column: auto; }
  .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-bento { grid-template-columns: 1fr; }
  .split-panels { gap: 12px; }
  .invoice-row { grid-template-columns: minmax(150px,1fr) minmax(90px,.4fr) auto; }
  .invoice-row-actions { grid-column: 1/-1; justify-content: flex-start; padding-left: 46px; }
}
@media (max-width: 700px) {
  .sidebar { width: min(82vw,280px); transform: translateX(-103%); transition: transform .22s ease; box-shadow: 14px 0 40px rgba(15,23,41,.2); }
  .menu-open .sidebar { transform: translateX(0); }
  .mobile-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(19,27,44,.38); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .menu-open .mobile-scrim { opacity: 1; pointer-events: auto; }
  .main-area { margin-left: 0; }
  .topbar { height: 58px; padding: 0 15px; gap: 10px; }
  .mobile-menu { width: 33px; height: 33px; display: grid; place-items: center; color: #647187; background: #fff; border: 1px solid #e7e5f0; border-radius: 10px; cursor: pointer; }
  .mobile-menu .icon { width: 17px; height: 17px; }
  .breadcrumb { flex: 1; gap: 6px; font-size: 9px; }
  .breadcrumb > span:first-child { display: none; }
  .crumb-sep { display: none; }
  .topbar-actions { gap: 9px; }
  .secure-label, .support-link span { display: none; }
  .support-link { width: 31px; height: 31px; justify-content: center; color: #6653c7; background: #f3f0ff; border-radius: 10px; }
  .top-avatar { width: 29px; height: 29px; }
  .content-wrap { padding: 21px 14px 37px; }
  .page-heading, .welcome-row { align-items: flex-start; gap: 14px; margin-bottom: 19px; }
  .page-heading h1, .welcome-row h1 { font-size: 24px; letter-spacing: -.8px; }
  .page-heading p, .welcome-row p { font-size: 10px; }
  .page-heading { flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .welcome-date { gap: 8px; font-size: 9px; white-space: nowrap; }
  .welcome-orb { width: 33px; height: 33px; border-radius: 11px; }
  .payment-alert { grid-template-columns: 36px minmax(0,1fr); gap: 11px; padding: 15px; border-radius: 15px; }
  .payment-alert-icon { width: 35px; height: 35px; border-radius: 11px; }
  .payment-alert-copy { min-width: 0; }
  .payment-alert-copy h2 { font-size: 14px; }
  .payment-alert-amount { grid-column: 1/-1; grid-row: auto; min-width: 0; padding: 10px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .payment-alert-amount strong { font-size: 15px; }
  .payment-alert-actions { grid-column: 1/-1; grid-row: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .payment-alert-actions .btn { min-height: 33px; padding: 0 10px; font-size: 9px; }
  .payment-alert-actions .text-link { font-size: 9px; }
  .payment-alert-actions .account-balance { flex-basis: 100%; }
  .client-bento { grid-template-columns: 1fr; gap: 12px; }
  .client-bento > .panel { min-height: 0; padding: 17px; }
  .current-work-card, .services-card, .renewals-card, .completed-card, .activity-card { grid-column: 1; grid-row: auto; }
  .current-work-card { order: 1; }
  .services-card { order: 2; }
  .renewals-card { order: 3; }
  .completed-card { order: 4; }
  .activity-card { order: 5; }
  .support-banner { flex-wrap: wrap; gap: 11px; margin-top: 12px; padding: 15px; }
  .support-icon { width: 35px; height: 35px; }
  .support-banner > div:nth-child(2) { min-width: calc(100% - 55px); }
  .support-banner .btn { width: 100%; }
  .section-heading { margin-bottom: 12px; }
  .section-heading h2 { font-size: 14px; }
  .panel { padding: 17px; border-radius: 16px; }
  .admin-stats { gap: 9px; }
  .stat-card { min-height: 112px; padding: 14px; border-radius: 14px; }
  .stat-card > strong { font-size: 23px; }
  .stat-card .stat-money { font-size: 17px; }
  .admin-bento, .split-panels { grid-template-columns: 1fr; gap: 12px; }
  .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .list-tools { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .search-field { min-width: 100%; }
  .filter-select { flex: 1; }
  .filter-select select { max-width: none; flex: 1; }
  .table-foot { font-size: 8px; }
  .data-table th { padding: 10px 11px; }
  .data-table td { padding: 11px; }
  .workspace-tabs { margin-bottom: 13px; }
  .workspace-tabs a { padding: 8px 10px; }
  .client-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .invoice-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 14px 0; }
  .invoice-row-main { grid-column: 1/-1; }
  .invoice-row > .badge { justify-self: end; }
  .invoice-row-actions { grid-column: 1/-1; justify-content: space-between; padding-left: 0; }
  .invoice-row-total { grid-column: 1; grid-row: 2; }
  .filter-pills { width: 100%; }
  .filter-pills a { padding: 8px 10px; }
  .history-panel { padding: 3px 14px; }
  .history-entry { grid-template-columns: 31px minmax(0,1fr); gap: 10px; padding: 14px 0; }
  .history-rail { width: 30px; height: 30px; }
  .history-amount { grid-column: 2; padding-top: 0; }
  .form-panel { padding: 16px; }
  .form-panel form > .form-grid, .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-actions { margin-top: 15px; }
  .form-actions .btn { width: 100%; }
  .line-items-wrap { padding: 12px; }
  .line-item-row { grid-template-columns: minmax(0,1fr) 75px 95px 28px; gap: 6px; }
  .line-item-row .field-label { font-size: 8px; }
  .line-item-row input { padding: 8px 6px; font-size: 10px; }
  .invoice-bottom { grid-template-columns: 1fr; }
  .invoice-paper { padding: 23px 18px; border-radius: 13px; }
  .invoice-topline { padding-bottom: 17px; }
  .invoice-brand strong { font-size: 11px; }
  .invoice-brand span { font-size: 8px; }
  .invoice-meta > strong { font-size: 12px; }
  .invoice-parties { gap: 10px; padding: 17px 0; }
  .invoice-parties span:not(.eyebrow) { font-size: 8px; }
  .invoice-lines th { padding: 8px 5px; font-size: 7px; }
  .invoice-lines td { padding: 10px 5px; font-size: 8px; }
  .invoice-totals { width: 100%; }
  .invoice-footer { font-size: 7px; }
  .print-toolbar { flex-wrap: wrap; justify-content: flex-start; }
  .invoice-admin-actions { flex-wrap: wrap; justify-content: stretch; }
  .invoice-admin-actions > *, .invoice-admin-actions form { flex: 1; }
  .invoice-admin-actions .btn { width: 100%; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-story { min-height: auto; padding: 23px 22px 26px; }
  .auth-story-copy { margin: 44px 0 22px; padding: 0; }
  .auth-story-copy h1 { margin: 12px 0 8px; font-size: 32px; letter-spacing: -1.7px; }
  .auth-story-copy p { max-width: 310px; margin: 0; font-size: 10px; }
  .auth-orbit { display: none; }
  .auth-story-foot { display: none; }
  .auth-card-wrap { min-height: 460px; align-content: start; padding: 32px 22px 22px; }
  .auth-card { width: min(100%,390px); }
  .auth-card h2 { font-size: 23px; }
  .auth-mobile-foot { display: block; margin-top: 25px; color: #a3acb9; font-size: 9px; text-align: center; }
  .setup-card, .error-card { padding: 23px; }
  .setup-card > .brand { margin-bottom: 25px; }
}

.registration-request { display:grid; gap:16px; margin-top:14px; padding:20px; background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(250,250,255,.92)); border:1px solid #e9e5f4; border-radius:16px; box-shadow:0 8px 24px rgba(35,30,70,.035); }
.registration-pending-banner { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:14px 0; padding:15px 18px; color:#30294c; text-decoration:none; background:#f2f0ff; border:1px solid #e1dcff; border-radius:14px; }
.registration-pending-banner strong, .registration-pending-banner small { display:block; }
.registration-pending-banner small { margin-top:4px; color:#716b82; font-size:11px; }
.registration-request-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.registration-request-head h2 { margin:6px 0 0; color:#1A1A1A; font:700 17px/1.35 Manrope,sans-serif; }
.registration-request > form { display:grid; gap:10px; }
.registration-request .field { margin:0; }
.registration-remark, .registration-history p { margin:0; color:#595467; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.registration-history { padding-top:12px; border-top:1px solid #eeebf4; color:#484456; font-size:12px; }
.registration-history summary { cursor:pointer; font-weight:700; }
.registration-history p { padding-top:10px; }
@media(max-width:700px) { .registration-request { padding:14px; } .registration-request .detail-grid { grid-template-columns:1fr 1fr; } .registration-request .form-actions { align-items:stretch; } .registration-pending-banner { align-items:flex-start; flex-direction:column; } }

@media (max-width: 390px) {
  .content-wrap { padding-right: 10px; padding-left: 10px; }
  .welcome-date > span:first-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .payment-alert-copy h2 { font-size: 12px; }
  .payment-alert-copy p { font-size: 9px; }
  .line-item-row { grid-template-columns: minmax(0,1fr) 60px 78px 25px; gap: 4px; }
  .line-item-row input { padding: 7px 4px; font-size: 9px; }
}

/* Focused liquid-glass authentication experience. */
.auth-screen {
  min-height: 100vh; position: relative; display: grid; grid-template-columns: 1fr; place-items: center;
  overflow: hidden; padding: 28px 18px;
  background:
    radial-gradient(ellipse at 16% 15%, rgba(122,143,240,.22), transparent 34%),
    radial-gradient(ellipse at 86% 82%, rgba(71,181,164,.15), transparent 34%),
    linear-gradient(145deg,#efedfb,#f8f7fc 52%,#eceaf7);
}
.auth-screen::before, .auth-screen::after { position: absolute; border-radius: 50%; pointer-events: none; content: ''; }
.auth-screen::before { width: 380px; height: 380px; top: -230px; right: -75px; border: 1px solid rgba(109,126,206,.12); box-shadow: 0 0 0 28px rgba(255,255,255,.16),0 0 0 58px rgba(108,127,208,.045); }
.auth-screen::after { width: 260px; height: 260px; bottom: -170px; left: -70px; background: rgba(255,255,255,.32); filter: blur(2px); }
.login-glass {
  width: min(100%,440px); position: relative; z-index: 1; padding: 34px;
  color: #25203e; background: linear-gradient(145deg,rgba(255,255,255,.87),rgba(255,255,255,.64));
  border: 1px solid rgba(255,255,255,.82); border-radius: 27px;
  box-shadow: 0 32px 90px rgba(37,51,92,.14),0 4px 14px rgba(37,51,92,.055),inset 0 1px 0 rgba(255,255,255,.94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.login-glass::before { position: absolute; inset: 0 13% auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(255,255,255,.95),transparent); content: ''; }
.login-glass .brand { margin-bottom: 35px; }
  .login-glass .brand-wordmark { color: #1A1A1A; }
  .login-glass .brand small { color: #5c5868; }
.login-heading { margin-bottom: 25px; }
.login-heading .eyebrow { color: #7665cd; }
.login-heading h1 { margin: 8px 0 6px; color: #25203e; font: 700 29px/1.15 Manrope,sans-serif; letter-spacing: -1.15px; }
.login-heading p { margin: 0; color: #8792a3; font-size: 12px; }
.login-glass .auth-form { gap: 17px; }
.login-glass .field input { min-height: 47px; border-color: #e6e4f0; background: rgba(255,255,255,.8); box-shadow: inset 0 1px 2px rgba(28,42,73,.025); }
.login-glass .field input:focus { border-color: #9382e5; background: #fff; box-shadow: 0 0 0 4px rgba(91,109,216,.11); }
.login-glass .auth-submit { min-height: 47px; margin-top: 4px; border-radius: 13px; box-shadow: 0 10px 22px rgba(75,93,199,.22); }
.login-glass .auth-note { margin-top: 20px; color: #8994a5; }
.login-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; margin-top: 26px; padding-top: 16px; color: #9aa4b3; border-top: 1px solid rgba(126,140,168,.16); font-size: 9px; }
.login-footer a { color: #7666c8; font-weight: 600; }
.auth-screen .setup-link { color: #6c59c9; }
.auth-flash { top: 18px; right: 18px; }

.topbar-actions { min-width: 0; }
.global-search { width: min(29vw,260px); min-width: 170px; display: flex; align-items: center; gap: 5px; padding: 4px 5px 4px 12px; border: 1px solid #e7e5f1; border-radius: 11px; background: rgba(255,255,255,.88); }
.global-search input { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: 0; color: #494367; background: transparent; font-size: 10px; }
.global-search input::placeholder { color: #a0a9b7; }
.global-search button { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; color: #6c59c8; background: #f3f0ff; border: 0; border-radius: 8px; cursor: pointer; }
.global-search button .icon { width: 15px; height: 15px; }
.global-search-page { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; }
.global-search-page .field { flex: 1; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 14px; }
.pagination > span { color: #8792a3; font-size: 9px; font-weight: 700; }
.global-search-results { display: grid; gap: 4px; }
.global-result-row { display: grid; grid-template-columns: 105px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 12px; border-bottom: 1px solid #f0eff5; border-radius: 9px; }
.global-result-row:hover { background: #f9f8fc; }
.global-result-group { color: #7969ca; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.global-result-row > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.global-result-row strong { overflow: hidden; color: #3a3457; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.global-result-row small { color: #929cad; font-size: 9px; }

.notification-menu { position: relative; }
.notification-menu > summary { width: 34px; height: 34px; position: relative; display: grid; place-items: center; color: #6c59c8; list-style: none; background: #f3f0ff; border: 1px solid #e8e3ff; border-radius: 11px; cursor: pointer; }
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-bell { width: 17px; height: 17px; }
.notification-count { min-width: 16px; height: 16px; position: absolute; top: -5px; right: -5px; display: grid; place-items: center; padding: 0 4px; color: #fff; background: #d85f70; border: 2px solid #f9f8fc; border-radius: 10px; font-size: 8px; line-height: 1; }
.notification-popover { width: min(370px,calc(100vw - 28px)); max-height: min(470px,75vh); position: absolute; top: calc(100% + 12px); right: -54px; z-index: 50; overflow-y: auto; padding: 14px; color: #2e284a; background: rgba(255,255,255,.97); border: 1px solid #e9e7f1; border-radius: 16px; box-shadow: 0 22px 54px rgba(29,42,71,.18); }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 11px; border-bottom: 1px solid #efeef4; }
.notification-heading h2 { margin: 3px 0 0; font: 700 15px Manrope,sans-serif; }
.notification-entry-form { margin: 0; }
.notification-entry { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 7px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #f1f0f5; cursor: pointer; }
.notification-entry:hover { background: #f9f8fd; }
.notification-entry.is-unread { background: #f8f6ff; }
.notification-entry > span:first-child { min-width: 0; display: grid; gap: 4px; }
.notification-entry strong { color: #3c3659; font-size: 10px; }
.notification-entry small { color: #818c9e; font-size: 9px; line-height: 1.5; }
.notification-entry time { color: #a1a9b5; font-size: 8px; }
.notification-open-link { color: #7563ce; font-size: 9px; font-weight: 700; }
.admin-notification-menu .notification-popover { position: fixed; top: 80px; right: 18px; }
.admin-notification-menu .notification-entry { cursor: default; }
.notification-history-link { display: block; padding: 10px 7px 2px; color: #7563ce; font-size: 9px; font-weight: 700; text-align: center; }
.auth-screen [hidden] { display: none !important; }

.payment-clear { min-height: 75px; display: flex; align-items: center; gap: 12px; padding: 17px 20px; background: linear-gradient(110deg,#eef8f5,#f6f4ff); border: 1px solid #dcefe9; border-radius: 17px; }
.payment-clear-icon { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; color: #248b78; background: #dff4ed; border-radius: 11px; font-weight: 800; }
.payment-clear > span:nth-child(2) { display: grid; flex: 1; gap: 4px; }
.payment-clear strong { color: #327666; font-size: 11px; }
.payment-clear small { color: #829a94; font-size: 9px; }
.payment-alert-actions .account-balance { width: 100%; }
.milestone-list { display: grid; gap: 6px; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid #f0eff5; list-style: none; }
.milestone-list li { display: grid; grid-template-columns: 17px minmax(0,1fr) auto; align-items: center; gap: 6px; color: #69758a; font-size: 9px; }
.milestone-mark { color: #9aa4b2; font-size: 12px; }
.milestone-completed .milestone-mark { color: #29927e; }
.milestone-in_progress .milestone-mark { color: #6c59c8; }
.milestone-list small { color: #a0a8b4; font-size: 8px; }
.milestone-management { margin-top: 22px; padding-top: 17px; border-top: 1px solid #eeedf5; }
.milestone-create-form, .milestone-edit-form { display: grid; grid-template-columns: minmax(150px,1.5fr) minmax(120px,1fr) minmax(120px,.8fr) auto auto; align-items: end; gap: 9px; padding: 10px 0; }
.milestone-edit-form { grid-template-columns: minmax(140px,1.5fr) minmax(115px,1fr) minmax(120px,.8fr) auto auto; border-top: 1px solid #f1f0f6; }
.milestone-create-form .field, .milestone-edit-form .field { min-width: 0; }
.milestone-create-form .field input, .milestone-create-form .field select, .milestone-edit-form .field input, .milestone-edit-form .field select { min-height: 37px; }
.milestone-create-form .checkbox-field, .milestone-edit-form .checkbox-field { align-self: center; white-space: nowrap; }

.document-card { margin-top: 14px; }
.document-list { display: grid; }
.document-row, .document-admin-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; border-top: 1px solid #f0eff5; }
.document-row > span:nth-child(2), .document-admin-row > span:nth-child(2) { display: grid; flex: 1; gap: 4px; min-width: 0; }
.document-row strong, .document-admin-row strong { overflow: hidden; color: #413b5d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.document-row small, .document-admin-row small { overflow: hidden; color: #929cad; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.document-file-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: #7866cf; background: #f3f0ff; border-radius: 10px; }
.document-file-icon .icon { width: 16px; height: 16px; }
.document-download { color: #7564cc; font-size: 9px; font-weight: 700; white-space: nowrap; }
.document-admin-list { margin-top: 16px; }
.document-admin-row { flex-wrap: wrap; }
.document-admin-row > form { display: contents; }
.document-admin-row .checkbox-field { font-size: 9px; white-space: nowrap; }
.document-admin-row .btn { min-height: 30px; }
.security-panel { margin-top: 16px; }
.security-panel > h2 { margin: 7px 0; color: #3a3457; font: 700 17px Manrope,sans-serif; }
.security-panel > p { margin: 0 0 20px; color: #8b95a5; font-size: 10px; }
.notification-admin-list { display: grid; }
.notification-admin-row { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 15px 0; border-bottom: 1px solid #f0eff5; }
.notification-admin-status { width: 7px; height: 7px; margin-top: 5px; background: #b7bec9; border-radius: 50%; }
.notification-admin-status.unread { background: #7663d4; box-shadow: 0 0 0 4px #f0edff; }
.notification-admin-row h2 { margin: 4px 0; color: #3b3558; font: 700 12px Manrope,sans-serif; }
.notification-admin-row p { margin: 0; color: #7d8899; font-size: 10px; }
.notification-admin-row time { color: #9aa3b1; font-size: 9px; white-space: nowrap; }

@media (max-width: 700px) {
  .login-glass { padding: 26px 22px; border-radius: 23px; }
  .login-glass .brand { margin-bottom: 29px; }
  .login-heading h1 { font-size: 26px; }
  .global-search { width: min(42vw,190px); min-width: 0; padding-left: 8px; }
  .global-search input { font-size: 9px; }
  .notification-popover { right: -44px; }
  .admin-notification-menu .notification-popover { top: 70px; right: 10px; }
  .milestone-create-form, .milestone-edit-form { grid-template-columns: 1fr 1fr; }
  .milestone-create-form > :first-child, .milestone-edit-form > :first-of-type { grid-column: 1/-1; }
  .document-admin-row > form { display: flex; align-items: center; gap: 8px; }
  .document-admin-row .checkbox-field { min-height: 30px; }
  .global-result-row { grid-template-columns: 74px minmax(0,1fr); gap: 9px; }
  .global-result-row .document-download { grid-column: 2; }
  .notification-admin-row { grid-template-columns: 8px minmax(0,1fr); }
  .notification-admin-row time { grid-column: 2; }
  .payment-clear { align-items: flex-start; flex-wrap: wrap; }
  .payment-clear > a { margin-left: 44px; }
}

/* Official OneDigital palette and client notice/live-update surfaces. */
::selection { color: #fff; background: #5F48DE; }
:focus-visible { outline: 3px solid rgba(95,72,222,.42); outline-offset: 2px; }
.sidebar { background: linear-gradient(160deg,#1A1A1A 0%,#211d35 100%); }
.nav-link.is-active { background: rgba(95,72,222,.28); border-color: rgba(198,188,255,.3); }
.nav-link.is-active .icon, .nav-link:hover .icon { color: #EBE8FF; }
.btn-primary { color: #fff; background: #5F48DE; border-color: #5F48DE; box-shadow: 0 5px 13px rgba(95,72,222,.2); }
.btn-primary:hover { color: #fff; background: #4933c3; border-color: #4933c3; box-shadow: 0 8px 18px rgba(95,72,222,.25); }
.support-link, .text-link, .table-link, .document-download, .notification-open-link { color: #4f37c8; }
.top-avatar { color: #4933c3; background: #EBE8FF; border-color: #d8d0ff; }
.payment-alert { background: linear-gradient(105deg,#1A1A1A 0%,#34266f 54%,#5F48DE 100%); }
.payment-alert .btn-primary { color: #1A1A1A; background: #fff; border-color: #fff; }
.payment-alert .btn-primary:hover { color: #1A1A1A; background: #EBE8FF; }
.progress-track > span, .report-bar-row i b { background: #5F48DE; }
.notification-entry.is-unread { background: #EBE8FF; }
.notification-admin-status.unread { background: #5F48DE; box-shadow: 0 0 0 4px #EBE8FF; }
.document-file-icon { color: #4933c3; background: #EBE8FF; }
.login-glass { border-color: rgba(95,72,222,.18); background: rgba(255,255,255,.78); }
.login-glass .brand-wordmark, .setup-card .brand-wordmark { color: #1A1A1A; }
.auth-screen { background: radial-gradient(ellipse at 16% 15%,rgba(95,72,222,.16),transparent 34%),radial-gradient(ellipse at 86% 82%,rgba(235,232,255,.88),transparent 34%),#FAFAFF; }

.client-notices { margin: 0 0 16px; padding: 17px; background: #EBE8FF; border: 1px solid #ddd6ff; border-radius: 18px; }
.client-notices .section-heading { margin-bottom: 12px; }
.client-notices .section-heading h2 { color: #1A1A1A; }
.notice-stack { display: grid; gap: 10px; }
.notice-card { min-width: 0; padding: 15px 16px; background: #fff; border: 1px solid #e8e4f5; border-left: 4px solid #5F48DE; border-radius: 13px; box-shadow: 0 4px 12px rgba(26,26,26,.035); }
.notice-card.notice-urgent { border-left-color: #b83d4c; }
.notice-card.notice-important { border-left-color: #5F48DE; }
.notice-card.is-unread { background: linear-gradient(110deg,#fff,#f8f7ff); }
.notice-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #595467; font-size: 9px; }
.notice-card-top time { margin-left: auto; color: #625d70; }
.notice-priority { display: inline-flex; align-items: center; padding: 4px 8px; color: #4933c3; background: #EBE8FF; border-radius: 999px; font-size: 9px; font-weight: 700; }
.notice-card.notice-urgent .notice-priority, .notice-priority-urgent { color: #8f2534; background: #fff0f1; }
.notice-state { color: #595467; }
.notice-card.is-unread .notice-state { color: #4933c3; font-weight: 700; }
.notice-card h3 { margin: 9px 0 5px; color: #1A1A1A; font: 700 13px/1.4 Manrope,sans-serif; }
.notice-preview, .notice-details p { margin: 0; color: #4d4a57; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.notice-details { margin-top: 7px; }
.notice-details summary { width: fit-content; color: #4933c3; cursor: pointer; font-size: 9px; font-weight: 700; }
.notice-details p { padding: 8px 0 3px; }
.notice-card > .inline-form { margin-top: 9px; }
.notice-admin-list { display: grid; gap: 0; }
.notice-admin-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 13px; padding: 16px 0; border-bottom: 1px solid #e8e4f1; }
.notice-admin-row:last-child { border-bottom: 0; }
.notice-admin-copy { min-width: 0; }
.notice-admin-copy .eyebrow { color: #595467; }
.notice-admin-row h2, .notice-admin-row h3 { margin: 4px 0; color: #1A1A1A; font: 700 13px/1.4 Manrope,sans-serif; }
.notice-admin-row p { margin: 0 0 6px; color: #4d4a57; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.notice-admin-row small { color: #625d70; font-size: 9px; }
.notice-admin-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.live-toast { width: min(360px,calc(100vw - 28px)); position: fixed; right: 18px; bottom: 18px; z-index: 80; padding: 13px 16px; color: #fff; background: #1A1A1A; border: 1px solid rgba(95,72,222,.55); border-radius: 13px; box-shadow: 0 15px 40px rgba(26,26,26,.22); font-size: 11px; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .2s ease,transform .2s ease; }
.live-toast.is-visible { opacity: 1; transform: translateY(0); }
.live-toast[hidden] { display: none !important; }
@media (max-width: 700px) {
  .notice-admin-row { grid-template-columns: auto minmax(0,1fr); gap: 10px; }
  .notice-admin-actions { grid-column: 2; justify-content: flex-start; }
  .client-notices { padding: 13px; border-radius: 15px; }
  .notice-card { padding: 12px; }
  .live-toast { right: 12px; bottom: 12px; }
}
@media (max-width: 390px) {
  .notice-card-top time { width: 100%; margin-left: 0; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  @page thermal80 { size: 80mm auto; margin: 4mm; }
  @page thermal58 { size: 58mm auto; margin: 3mm; }
  html, body { width: auto !important; min-width: 0 !important; margin: 0 !important; color: #111 !important; background: #fff !important; font-family: Arial,sans-serif !important; }
  .sidebar, .topbar, .page-heading, .print-toolbar, .invoice-admin-actions, .flash, .dialog-backdrop, .no-print { display: none !important; }
  .main-area { margin: 0 !important; }
  .content-wrap { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .invoice-paper { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .invoice-totals .remaining { color: #111 !important; background: #f3f3f3 !important; border-color: #ccc !important; }
  .invoice-totals .remaining b { color: #111 !important; }
  .invoice-payment-instructions { color: #111 !important; background: #fff !important; border-color: #bbb !important; padding: 9px 0 !important; }
  .invoice-payment-instructions a { color: #111 !important; }
  .badge { color: #222 !important; background: #f2f2f2 !important; border-color: #bbb !important; }
  .print-80mm { page: thermal80; width: 80mm !important; max-width: 80mm !important; margin: 0 auto !important; padding: 0 !important; font-size: 9px !important; }
  .print-58mm { page: thermal58; width: 58mm !important; max-width: 58mm !important; margin: 0 auto !important; padding: 0 !important; font-size: 8px !important; }
  .print-80mm .invoice-topline, .print-58mm .invoice-topline { flex-direction: column; gap: 10px; }
  .print-80mm .invoice-meta, .print-58mm .invoice-meta { justify-items: start; }
  .print-80mm .invoice-parties, .print-58mm .invoice-parties { grid-template-columns: 1fr; gap: 10px; }
  .print-80mm .invoice-lines th, .print-58mm .invoice-lines th { padding: 5px 2px; font-size: 7px; }
  .print-80mm .invoice-lines td, .print-58mm .invoice-lines td { padding: 6px 2px; font-size: 7px; }
  .print-80mm .invoice-footer, .print-58mm .invoice-footer { flex-direction: column; }
  .print-80mm .invoice-totals, .print-58mm .invoice-totals { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Session safety, contextual client actions, and the announcement composer. */
.session-warning, .unsaved-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(26,26,26,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.session-warning { z-index: 130; opacity: 0; transition: opacity .18s ease; }
.session-warning.is-open { opacity: 1; }
.session-warning[hidden], .unsaved-backdrop[hidden] { display: none; }
.session-warning-card { width: min(100%,440px); padding: 27px; color: #1A1A1A; background: #FAFAFF; border: 1px solid rgba(95,72,222,.22); border-radius: 18px; box-shadow: 0 26px 80px rgba(26,26,26,.24); transform: translateY(8px); transition: transform .18s ease; }
.session-warning.is-open .session-warning-card { transform: translateY(0); }
.session-warning-card h2 { margin: 8px 0; font: 700 20px/1.25 Manrope,sans-serif; }
.session-warning-card > p { margin: 0; color: #5c5868; font-size: 12px; line-height: 1.6; }
.session-warning-card [data-session-countdown] { color: #4933c3; font-variant-numeric: tabular-nums; }
.session-warning-actions { display: flex; align-items: center; gap: 9px; margin-top: 20px; }
.session-warning-actions form { margin: 0; }
.session-warning-error { margin-top: 12px !important; color: #a44753 !important; }
.unsaved-backdrop { z-index: 120; opacity: 0; transition: opacity .16s ease; }
.unsaved-backdrop.is-open { opacity: 1; }
.unsaved-backdrop .confirm-dialog { transform: translateY(7px) scale(.985); }
.unsaved-backdrop.is-open .confirm-dialog { transform: translateY(0) scale(1); }
.client-command-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin: -14px 0 17px; color: #5c5868; font-size: 10px; }
.client-command-meta .badge { text-transform: capitalize; }
.client-command-actions { margin: 0 0 17px; }
.workspace-quick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.workspace-quick-head small { color: #777183; font-size: 9px; }
.client-command-actions .quick-actions { grid-template-columns: repeat(4,minmax(0,1fr)); }
.workspace-empty-action { display: grid; justify-items: center; gap: 10px; padding: 12px 10px 18px; }
.workspace-empty-action .empty-state { min-height: 105px; }
.workspace-empty-action > .btn { justify-self: center; }

.client-notices { margin: 0 0 17px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.client-notices .section-heading { margin: 0 0 11px; padding: 0 2px; }
.client-notices .section-heading h2 { color: #1A1A1A; }
.notice-stack { display: grid; gap: 11px; }
.notice-card, .notice-preview-card { min-width: 0; padding: 17px 18px; background: #fff; border: 1px solid #e5e1f2; border-left: 3px solid #5F48DE; border-radius: 14px; box-shadow: 0 5px 16px rgba(26,26,26,.045); }
.notice-card.notice-urgent, .notice-preview-card.notice-urgent { border-left-color: #7660d8; }
.notice-card.notice-important, .notice-preview-card.notice-important { border-left-color: #5F48DE; }
.notice-card.is-unread { background: linear-gradient(110deg,#fff,#FAFAFF); }
.notice-preview-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; color: #1A1A1A; }
.notice-preview-brand strong { font: 700 10px Manrope,sans-serif; }
.notice-preview-brand span { color: #777183; font-size: 9px; }
.notice-card-top { gap: 8px; color: #5c5868; font-size: 9px; }
.notice-card-top time { color: #5c5868; }
.notice-priority { color: #4933c3; background: #EBE8FF; }
.notice-priority-urgent { color: #4933c3; background: #EBE8FF; }
.notice-priority-important { color: #4933c3; background: #EBE8FF; }
.notice-state { color: #5c5868; }
.notice-card.is-unread .notice-state { color: #4933c3; }
.notice-card h3, .notice-preview-card h3 { margin: 10px 0 6px; color: #1A1A1A; font: 700 14px/1.35 Manrope,sans-serif; }
.notice-preview, .notice-details p { color: #4d4a57; font-size: 11px; line-height: 1.65; }
.notice-details { margin-top: 8px; }
.notice-details summary { color: #4933c3; font-size: 10px; }
.notice-preview-expiry { margin: 8px 0 0; color: #625d70; font-size: 9px; }
.notice-action { width: fit-content; margin-top: 10px; }
.notice-card > .inline-form { margin-top: 10px; }
.notice-composer-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); align-items: start; gap: 16px; }
.notice-composer-layout .form-panel { min-width: 0; }
.notice-preview-column { position: sticky; top: 86px; display: grid; gap: 10px; min-width: 0; }
.notice-preview-card { padding: 18px; }
.notice-preview-card [data-notice-preview-action][hidden] { display: none !important; }
.notice-preview-help { margin: 0; color: #777183; font-size: 10px; line-height: 1.55; }
.notice-admin-actions .inline-form { margin: 0; }
.readonly-field { display: block; min-height: 35px; padding: 10px 11px; color: #514b63; background: #f5f4fa; border: 1px solid #e8e6ef; border-radius: 9px; font-size: 10px; }

.unsaved-backdrop .dialog-icon { color: #4933c3; background: #EBE8FF; }
.session-warning-card .eyebrow, .notice-preview-column > .eyebrow { color: #4933c3; }

.auth-screen { isolation: isolate; }
.auth-screen::before, .auth-screen::after { z-index: -1; border: 0; box-shadow: none; filter: blur(1px); }
.auth-screen::before { width: min(68vw,560px); height: min(68vw,560px); top: -18%; left: -16%; right: auto; background: radial-gradient(circle at 42% 45%,rgba(95,72,222,.19),rgba(235,232,255,.08) 48%,transparent 72%); animation: auth-ambient-drift 30s ease-in-out infinite alternate; }
.auth-screen::after { width: min(60vw,500px); height: min(60vw,500px); bottom: -20%; left: auto; right: -14%; background: radial-gradient(circle at 50% 48%,rgba(95,72,222,.13),rgba(235,232,255,.1) 48%,transparent 74%); animation: auth-ambient-drift 36s ease-in-out -8s infinite alternate-reverse; }
.login-glass { box-shadow: 0 32px 90px rgba(26,26,26,.12),0 4px 14px rgba(26,26,26,.04),inset 0 1px 0 rgba(255,255,255,.94); }
@keyframes auth-ambient-drift { from { transform: translate3d(-2%,0,0) scale(.98); } to { transform: translate3d(5%,4%,0) scale(1.04); } }

@media (max-width: 980px) {
  .notice-composer-layout { grid-template-columns: 1fr; }
  .notice-preview-column { position: static; }
  .client-command-actions .quick-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .client-command-meta { margin-top: -9px; }
  .workspace-quick-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .client-command-actions .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .notice-card, .notice-preview-card { padding: 14px; }
  .session-warning-card { padding: 22px; }
  .session-warning-actions { align-items: stretch; flex-direction: column; }
  .session-warning-actions > *, .session-warning-actions form, .session-warning-actions form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-screen::before, .auth-screen::after { animation: none !important; transform: none !important; }
}

/* Signup, settings and read-only account details. */
.auth-brand { display: grid; justify-items: start; gap: 3px; margin-bottom: 18px; text-decoration: none; }
.auth-brand .brand-wordmark { color: #1A1A1A; font-size: 18px; }
.auth-brand small { color: #777183; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.signup-feedback { display: grid; gap: 4px; margin: 0 0 15px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-size: 11px; line-height: 1.55; }
.signup-feedback strong { font-size: 12px; }
.signup-feedback-success { color: #216b53; background: #eef8f3; border-color: #cce9db; }
.signup-feedback-error { color: #8c303b; background: #fff2f3; border-color: #f1d2d5; }
.settings-section-nav { position: sticky; top: 0; z-index: 15; display: flex; gap: 7px; width: fit-content; max-width: 100%; margin: 0 0 15px; padding: 7px; overflow-x: auto; background: rgba(250,250,255,.92); border: 1px solid #e8e6ef; border-radius: 13px; box-shadow: 0 8px 24px rgba(30,24,60,.06); backdrop-filter: blur(10px); }
.settings-section-nav a { flex: 0 0 auto; padding: 8px 11px; color: #514b63; border-radius: 9px; font-size: 10px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.settings-section-nav a:hover, .settings-section-nav a:focus-visible { color: #4933c3; background: #EBE8FF; outline: none; }
.settings-section { scroll-margin-top: 75px; padding: 8px 0 20px; border-bottom: 1px solid #eeecf4; }
.settings-section + .settings-section { padding-top: 21px; }
.settings-section:last-of-type { border-bottom: 0; }
.settings-section .section-heading { margin-bottom: 14px; }
.settings-section .section-heading p { max-width: 620px; }
.admin-overview-cards .stat-card:nth-child(-n+4) { border-color: #e1ddf1; background: linear-gradient(145deg,#fff,#faf9ff); }
.admin-overview-cards .stat-card:nth-child(3) > strong { color: #267c64; }
.admin-overview-cards .stat-card:nth-child(4) > strong { color: #7657b7; }
.profile-readonly .detail-grid { gap: 11px; }
.profile-readonly .detail-cell { min-width: 0; padding: 13px 14px; background: #faf9fd; border: 1px solid #efedf5; border-radius: 11px; }
.profile-readonly .detail-cell > span { color: #777183; font-size: 10px; }
.profile-readonly .detail-cell > strong { display: block; margin-top: 5px; color: #2e2a3c; font-size: 12px; overflow-wrap: anywhere; }
.notice-card.notice-urgent, .notice-preview-card.notice-urgent { border-left-color: #b83d4c; }
.notice-card.notice-urgent .notice-priority, .notice-priority-urgent { color: #8f2534; background: #fff0f1; }
.notice-card.is-unread { box-shadow: 0 8px 24px rgba(44,35,91,.075); }
.notice-admin-row { padding: 18px 0; }
.notice-admin-copy > .eyebrow { letter-spacing: .02em; }
.notice-admin-actions { max-width: 245px; }
@media (max-width: 700px) {
  .settings-section-nav { position: static; width: 100%; border-radius: 11px; }
  .settings-section { scroll-margin-top: 14px; }
  .admin-overview-cards .stat-card { min-height: 112px; padding: 14px; }
  .profile-readonly .detail-cell { padding: 11px; }
}

/* Signup, service catalog, support tickets and financial reporting. */
.auth-switch { display:block; width:100%; margin:17px 0 0; padding:8px; color:#687387; background:transparent; border:0; cursor:pointer; font:500 11px 'DM Sans',sans-serif; }
.auth-switch strong { color:#5F48DE; }
.signup-panel[hidden], [data-signup-panel][hidden] { display:none!important; }
.signup-panel .login-heading { margin-bottom:17px; }
.signup-panel .login-heading h1 { font-size:25px; }
.signup-panel .auth-form { gap:12px; }
.signup-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.signup-form .field:has(textarea) { grid-column:1/-1; }
.signup-field-check { display:grid; align-content:start; min-width:0; }
.identifier-availability { min-height:14px; margin-top:2px; color:#758093; font-size:10px; }
.identifier-availability.is-checking { color:#7663d4; }
.identifier-availability.is-available { color:#267c64; }
.identifier-availability.is-unavailable { color:#a44753; }
.catalog-filters { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:17px; }
.public-catalog-signin { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin:-8px 0 14px; color:#737d8d; font-size:11px; }
.public-catalog-signin a { color:#5F48DE; font-weight:700; text-decoration:none; }
.catalog-filters input, .catalog-filters select { min-width:160px; min-height:39px; padding:0 12px; color:#242139; background:#fff; border:1px solid #e9e7f1; border-radius:10px; }
.catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.catalog-card { position:relative; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:11px; padding:22px; background:rgba(255,255,255,.9); border:1px solid #ebe9f3; border-radius:17px; box-shadow:0 12px 34px rgba(35,30,70,.045); }
.catalog-image { display:block; width:100%; aspect-ratio:1/1; object-fit:contain; object-position:center; background:#FAFAFF; border:1px solid #efedf7; border-radius:13px; }
.catalog-image-placeholder { display:grid; place-items:center; color:#8274cc; background:#f2f0fb; }
.catalog-image-placeholder .icon { width:30px; height:30px; }
.catalog-detail-image { max-width:420px; margin-inline:auto; }
.catalog-card.is-featured { background:linear-gradient(145deg,#fff,#f7f5ff); border-color:#dcd6fa; }
.catalog-card-icon { width:18px; height:18px; padding:9px; color:#5F48DE; background:#EBE8FF; border-radius:11px; }
.catalog-card h2, .catalog-detail h2 { margin:0; color:#1A1A1A; font:700 17px Manrope,sans-serif; letter-spacing:-.35px; overflow-wrap:anywhere; }
.catalog-card p, .catalog-detail > p { margin:0; color:#737d8d; font-size:11px; line-height:1.65; }
.catalog-card .form-actions { width:100%; flex-wrap:wrap; justify-content:stretch; margin-top:auto; padding-top:14px; }
.catalog-card .form-actions .btn { flex:1 1 125px; justify-content:center; margin-top:0; }
.catalog-badge { padding:5px 8px; color:#4e3abc; background:#EBE8FF; border-radius:999px; font-size:9px; font-weight:700; }
.catalog-price { display:grid; gap:5px; margin:0 0 4px; color:#39325b; font-size:11px; }
.catalog-price strong { font:700 13px Manrope,sans-serif; }
.catalog-price span { color:#5F48DE; font-size:10px; }
.catalog-price small, .catalog-meta { color:#737d8d; font-size:10px; }
.catalog-feature-list { display:grid; gap:6px; margin:0; padding-left:18px; color:#535168; font-size:11px; line-height:1.6; }
.catalog-detail { display:grid; gap:17px; max-width:850px; }
.catalog-admin-preview { grid-column:1/-1; max-width:360px; }
.catalog-detail form { padding:0; }
.ticket-row { text-decoration:none; }
.ticket-thread { display:grid; gap:10px; margin:18px 0; }
.ticket-closed-notice { margin:14px 0; padding:13px 15px; color:#5d536f; background:#f3f1f8; border:1px solid #e8e5ef; border-radius:12px; font-size:12px; }
.ticket-message { max-width:90%; padding:13px 15px; background:#f7f6fb; border:1px solid #eceaf3; border-radius:13px; }
.ticket-message.from-admin { justify-self:end; background:#f1efff; border-color:#e6e1ff; }
.ticket-message.internal { justify-self:stretch; max-width:none; background:#fff8e9; border-color:#f3e7c6; }
.ticket-message-meta { display:flex; justify-content:space-between; gap:12px; color:#655b91; font-size:10px; }
.ticket-message-meta time { color:#8e97a5; font-size:9px; }
.ticket-message p { margin:8px 0 0; color:#343344; font-size:11px; line-height:1.65; overflow-wrap:anywhere; }
.notification-count[hidden] { display:none; }
.financial-filter-form { display:grid; grid-template-columns:repeat(4,minmax(140px,1fr)); align-items:end; gap:12px; }
.financial-filter-form .field { min-width:0; }
.stat-period { font-size:clamp(17px,2vw,22px)!important; }
form button:disabled { cursor:wait; opacity:.68; }
@media(max-width:1050px) { .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  .signup-form .form-grid, .financial-filter-form { grid-template-columns:1fr; }
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .catalog-card { padding:12px; gap:8px; border-radius:13px; }
  .catalog-card h2 { font-size:14px; line-height:1.3; }
  .catalog-card p { font-size:10px; }
  .catalog-card .form-actions .btn { flex-basis:100%; min-height:38px; padding-inline:8px; font-size:10px; }
  .catalog-filters { display:grid; grid-template-columns:1fr; }
  .ticket-message { max-width:100%; }
}

.client-record-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.client-record-card { min-width: 0; padding: 20px; background: var(--surface,#fff); border: 1px solid var(--line,#e8e6ef); border-radius: 16px; box-shadow: 0 8px 24px rgba(30,24,60,.04); }
.client-record-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.client-record-card h2 { margin: 10px 0 16px; font: 700 17px/1.35 Manrope,sans-serif; overflow-wrap: anywhere; }
.client-record-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; }
.client-record-facts div { min-width: 0; }
.client-record-facts dt, .client-record-renewal > span { color: var(--muted,#777183); font-size: 10px; }
.client-record-facts dd { margin: 4px 0 0; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.client-record-renewal { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0 0; padding-top: 12px; border-top: 1px solid var(--line,#e8e6ef); }
.service-list-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.renewal-group-title { margin: 20px 0 8px; font: 700 13px Manrope,sans-serif; }
.renewal-filter-form { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(3,minmax(125px,1fr)) repeat(2,minmax(130px,1fr)) auto; align-items: end; gap: 10px; margin-bottom: 18px; }
.renewal-filter-form .field { margin: 0; }
.renewal-filter-form .search-field { min-width: 0; }
.renewal-filter-form .search-field input { min-width: 0; }
.quick-action-link { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 14px; color: var(--ink,#252238); border: 1px solid var(--line,#e8e6ef); border-radius: 12px; text-decoration: none; }
.quick-action-link > span { flex: 1; font-size: 12px; font-weight: 650; }
.quick-action-link .icon { width: 17px; height: 17px; color: var(--accent,#5f48de); }
@media (max-width: 1050px) { .renewal-filter-form { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .client-record-grid { grid-template-columns: 1fr; gap: 10px; }
  .client-record-card { padding: 16px; }
  .renewal-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .renewal-filter-form .search-field { grid-column: 1 / -1; }
  .renewal-filter-form > .btn { width: 100%; }
}

/* Keep notice severity clear and the preview polished without reducing contrast. */
.notice-preview-card { background:rgba(255,255,255,.94); border-color:rgba(224,219,241,.95); box-shadow:0 12px 32px rgba(44,35,91,.07); backdrop-filter:blur(8px); }
.notice-preview-card.notice-normal, .notice-card.notice-normal { border-left-color:#8b83a3; }
.notice-preview-card.notice-important, .notice-card.notice-important { border-left-color:#5F48DE; }
.notice-preview-card.notice-urgent, .notice-card.notice-urgent { border-left-color:#b83d4c; }
.notice-priority-normal { color:#514c5e; background:#efedf4; }
.notice-priority-important { color:#4933c3; background:#EBE8FF; }
.notice-priority-urgent { color:#8f2534; background:#fff0f1; }


/* Focused layout fixes for authentication, client finance cards and printing. */
.auth-screen { overflow-x:hidden; overflow-y:auto; min-height:100vh; min-height:100svh; }
.auth-footer-links { display:grid; justify-items:center; gap:7px; margin-top:12px; padding-top:13px; border-top:1px solid rgba(126,140,168,.16); text-align:center; }
.auth-footer-links .auth-switch { width:auto; margin:0; padding:4px 7px; font-size:11px; }
.auth-footer-links .visit-onedigital { display:inline-flex; align-items:center; justify-content:center; max-width:100%; padding:4px 8px; color:#6653c7; border-radius:7px; font-size:10px; font-weight:650; line-height:1.4; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.auth-footer-links .visit-onedigital:hover, .auth-footer-links .visit-onedigital:focus-visible { color:#4933c3; background:#f1efff; outline:none; }
.auth-footer-links .visit-onedigital:focus-visible { box-shadow:0 0 0 3px rgba(95,72,222,.16); }
.signup-panel { min-width:0; }
.signup-form, .signup-form .form-grid, .signup-form .field, .signup-field-check { min-width:0; }
.signup-form .field input, .signup-form .field select { width:100%; min-width:0; }
.service-list-links { display:flex; flex-wrap:wrap; gap:8px 16px; }
.service-list-links .service-list-link { min-width:0; overflow-wrap:anywhere; }
.stats-grid.client-financial-stats { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; }
.client-financial-stats .stat-card { min-width:0; }
.client-financial-stats .stat-card > strong { min-width:0; font-size:clamp(18px,2.1vw,27px); overflow-wrap:anywhere; }

@media (max-width:700px) {
  .login-glass { padding:26px 20px; border-radius:22px; }
  .signup-form .form-grid { grid-template-columns:minmax(0,1fr); }
  .stats-grid.client-financial-stats { grid-template-columns:minmax(0,1fr); }
  .client-financial-stats .stat-card { min-height:96px; }
  .service-list-links { display:grid; gap:7px; }
  .service-list-links .service-list-link { width:fit-content; max-width:100%; }
}

@media print {
  @page { size:A4 portrait; margin:12mm; }
  .print-a4 { page:auto; width:100% !important; max-width:none !important; }
  .print-a4 .invoice-topline { align-items:flex-start; break-inside:avoid; page-break-inside:avoid; }
  .print-a4 .invoice-brand, .print-a4 .invoice-meta { min-width:0; }
  .print-a4 .invoice-parties, .print-a4 .invoice-totals, .print-a4 .invoice-footer { break-inside:avoid; page-break-inside:avoid; }
  .invoice-lines { width:100%; table-layout:fixed; border-collapse:collapse; }
  .invoice-lines thead { display:table-header-group; }
  .invoice-lines tr { break-inside:avoid; page-break-inside:avoid; }
  .invoice-lines th:first-child, .invoice-lines td:first-child { width:52%; overflow-wrap:anywhere; word-break:normal; }
  .invoice-lines th:nth-child(2), .invoice-lines td:nth-child(2) { width:12%; }
  .invoice-lines th:nth-child(3), .invoice-lines td:nth-child(3) { width:18%; }
  .invoice-lines th:nth-child(4), .invoice-lines td:nth-child(4) { width:18%; }
  .invoice-lines th:nth-child(n+2), .invoice-lines td:nth-child(n+2) { white-space:nowrap; }
  .invoice-lines th, .invoice-lines td { padding:8px 7px; }
  .invoice-notes, .invoice-payment-instructions { break-inside:avoid; page-break-inside:avoid; }
  .invoice-paper, .invoice-paper * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* Readability and hierarchy polish across the admin and client workspaces. */
.eyebrow { color:#777183; font-size:10px; letter-spacing:1.1px; }
.page-heading p, .welcome-row p { color:#686374; font-size:13px; }
.section-heading p { color:#6d6878; font-size:12px; line-height:1.5; }
.stat-card > span { color:#6d6878; font-size:11px; }
.stat-card > small { color:#777183; font-size:10px; }
.field-label { color:#514b63; font-size:11px; }
.field > small { color:#737d8d; font-size:10px; }

/* Give the long signup flow room and separate contact details from credentials. */
.auth-screen:has(.signup-panel:not([hidden])) { place-items:start center; padding-block:24px; }
.login-glass:has(.signup-panel:not([hidden])) { width:min(100%,680px); }
.signup-group { min-width:0; margin:0; padding:0; border:0; }
.signup-group legend { width:100%; margin:0 0 4px; padding:0; color:#30294c; font:700 14px/1.35 Manrope,sans-serif; }
.signup-group-help { margin:0 0 12px; color:#737d8d; font-size:11px; line-height:1.5; }
.signup-group + .signup-group { margin-top:3px; padding-top:17px; border-top:1px solid #eae7f2; }
.signup-group .form-grid { gap:12px 14px; }
.signup-wide { min-width:0; grid-column:1/-1; }
.signup-group .field-label { color:#484257; font-size:11px; }
.signup-group .field input, .signup-group .field select { min-height:44px; font-size:13px; }
.signup-group .field > small, .signup-group .identifier-availability { color:#737d8d; font-size:11px; }
.auth-footer-links .visit-onedigital { font-size:11px; }

/* Keep the selected invoice print size visible before opening the print dialog. */
.print-toolbar > span { margin-right:4px; color:#6d6878; font-size:11px; font-weight:600; }
.print-toolbar .btn[aria-current="page"] { color:#4933c3; background:#EBE8FF; border-color:#d6cffb; box-shadow:inset 0 0 0 1px rgba(95,72,222,.12); }

@media (max-width:700px) {
  .page-heading p, .welcome-row p { font-size:12px; }
  .auth-screen:has(.signup-panel:not([hidden])) { place-items:start center; padding:16px 12px; }
  .login-glass:has(.signup-panel:not([hidden])) { padding:22px 18px; border-radius:20px; }
  .signup-group + .signup-group { padding-top:14px; }
  .invoice-paper { padding:20px 14px; }
  .invoice-brand span, .invoice-parties span:not(.eyebrow) { font-size:9px; }
  .invoice-lines th { padding:8px 3px; font-size:8px; letter-spacing:.3px; }
  .invoice-lines td { padding:9px 3px; font-size:9px; }
  .invoice-footer { font-size:8px; }
}

@media print {
  .print-a4 .invoice-lines th { color:#555 !important; font-size:9px; }
  .print-a4 .invoice-lines td { color:#333 !important; font-size:10px; }
  .print-a4 .invoice-footer { color:#555 !important; font-size:9px; }
}
