:root {
  --ink: #132b28;
  --ink-2: #23413d;
  --green: #1d6658;
  --green-dark: #164f45;
  --green-soft: #e4f0ec;
  --sand: #f3f0e9;
  --paper: #fbfaf7;
  --white: #fff;
  --line: #e5e5df;
  --muted: #75817f;
  --gold: #b98839;
  --blue: #3e6f86;
  --coral: #b75c49;
  --shadow: 0 18px 50px rgba(23, 48, 43, .08);
  --sidebar: 248px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--sand); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(29, 102, 88, .22); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--ink); color: #d9e3e0; padding: 26px 18px 18px; display: flex; flex-direction: column; z-index: 20; }
.brand { color: #fff; text-decoration: none; display: flex; gap: 11px; align-items: center; padding: 0 10px 30px; font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #d9a85a; color: var(--ink); }
.brand-mark svg { width: 24px; height: 24px; stroke-width: 2.2; }
.nav-label { margin: 10px 12px 8px; color: #718985; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.nav-label-secondary { margin-top: 27px; }
.main-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { position: relative; border: 0; background: transparent; color: #9db1ad; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 11px 12px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 600; transition: .2s ease; }
.nav-item::before { content: ""; position: absolute; left: -18px; width: 3px; height: 0; border-radius: 0 3px 3px 0; background: #d9a85a; transition: .2s ease; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.085); color: #fff; }
.nav-item.active::before { height: 24px; }
.nav-count { padding: 2px 7px; color: #b8cac6; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 10px; }
.sidebar-footer { margin-top: auto; }
.plan-card { padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.045); font-size: 11px; }
.plan-card .plan-icon { color: #e2b46b; display: block; margin-bottom: 8px; }
.plan-card strong { color: #fff; font-size: 12px; }
.plan-card p { color: #91a7a2; line-height: 1.45; margin: 5px 0 11px; }
.plan-card button { border: 0; padding: 0; background: transparent; color: #e2b46b; font-size: 11px; font-weight: 700; cursor: pointer; }
.profile-card { width: 100%; margin-top: 16px; border: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 17px 4px 0; background: none; color: #fff; display: grid; grid-template-columns: 34px 1fr 16px; gap: 9px; text-align: left; align-items: center; cursor: pointer; }
.profile-card .avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #d9a85a; color: var(--ink); font-size: 11px; font-weight: 800; }
.profile-card strong, .profile-card small { display: block; }
.profile-card strong { font-size: 11px; }
.profile-card small { color: #7d9691; font-size: 9px; margin-top: 2px; }

.main-content { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { height: 72px; padding: 0 38px; display: flex; align-items: center; gap: 12px; background: rgba(251,250,247,.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(12px); }
.topbar-spacer { flex: 1; }
.icon-button { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: #b8c6c2; transform: translateY(-1px); }
.menu-button { display: none; }
.search-button { border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: #7b8885; display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 11px; min-width: 205px; cursor: pointer; }
.search-button kbd { margin-left: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); padding: 2px 5px; font-size: 9px; }
.notification-button { position: relative; }
.notification-button i { width: 6px; height: 6px; border-radius: 50%; background: #d18260; border: 1px solid #fff; position: absolute; right: 8px; top: 7px; }
.primary-button, .secondary-button { min-height: 40px; border-radius: 9px; padding: 0 15px; display: inline-flex; gap: 8px; justify-content: center; align-items: center; font-size: 12px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.primary-button { border: 1px solid var(--green); color: #fff; background: var(--green); box-shadow: 0 5px 15px rgba(29,102,88,.15); }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.secondary-button { border: 1px solid #ccd4d2; background: var(--white); color: var(--ink); }
.secondary-button:hover { border-color: var(--green); color: var(--green); }
.primary-button svg, .secondary-button svg { width: 16px; height: 16px; }

.view { display: none; max-width: 1450px; margin: 0 auto; padding: 35px 38px 50px; animation: fadeUp .35s ease both; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(27px, 3vw, 35px); font-weight: 500; letter-spacing: -.03em; }
.heading-copy { color: var(--muted); margin: 8px 0 0; font-size: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 17px; }
.stat-card { padding: 19px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; box-shadow: 0 2px 0 rgba(22,62,54,.02); }
.stat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; }
.stat-icon svg { width: 16px; height: 16px; }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.gold { background: #f5ead8; color: var(--gold); }
.stat-icon.blue { background: #e4eef2; color: var(--blue); }
.stat-icon.coral { background: #f5e5e1; color: var(--coral); }
.trend { border-radius: 10px; padding: 3px 7px; font-size: 9px; font-weight: 750; }
.trend.up { background: var(--green-soft); color: var(--green); }
.trend.neutral { background: #f1eee7; color: #7d7465; }
.trend.warning { background: #f5e5e1; color: var(--coral); }
.stat-card > p { color: var(--muted); font-size: 10px; margin: 0 0 5px; }
.stat-card > strong { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 25px; }
.progress { height: 4px; border-radius: 4px; background: #e5e8e5; overflow: hidden; margin: 16px 0 7px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.stat-card small { color: var(--muted); font-size: 9px; }
.mini-detail { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 9px; }
.mini-detail b { color: var(--ink-2); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); gap: 17px; align-items: start; }
.jobs-panel { grid-column: 1 / -1; }
.panel { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; overflow: hidden; }
.panel-header { padding: 19px 20px 15px; display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.panel-header h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.text-button { border: 0; padding: 3px 0; background: none; color: var(--green); font-size: 10px; font-weight: 750; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.text-button svg { width: 13px; height: 13px; }
.subtle { width: 31px; height: 31px; background: transparent; }
.subtle svg { width: 15px; height: 15px; }

.job-list { padding: 0 20px 8px; }
.job-row { display: grid; grid-template-columns: 1.4fr minmax(120px, .8fr) minmax(110px, .75fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.job-row:hover .job-main strong { color: var(--green); }
.job-main { display: grid; grid-template-columns: 35px 1fr; gap: 10px; align-items: center; min-width: 0; }
.job-main > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; background: #eef2ef; color: var(--green); }
.job-main svg { width: 17px; height: 17px; }
.job-main strong, .job-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-main strong { font-size: 11px; transition: .2s ease; }
.job-main small, .job-meta small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.job-progress span { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.job-progress b { color: var(--ink); }
.job-progress .progress { margin: 6px 0 0; }
.job-meta strong, .job-meta small { display: block; font-size: 10px; }
.job-status, .status-pill { display: inline-flex; align-items: center; border-radius: 15px; padding: 5px 8px; white-space: nowrap; font-size: 8px; font-weight: 750; }
.status-active { color: var(--green); background: var(--green-soft); }
.status-planned { color: var(--blue); background: #e4eef2; }
.status-paused { color: var(--gold); background: #f7eddd; }
.status-sent { color: var(--blue); background: #e5eef2; }
.status-draft { color: #766f65; background: #efede8; }
.status-accepted { color: var(--green); background: var(--green-soft); }
.status-expired { color: var(--coral); background: #f6e7e3; }

.offers-panel { grid-column: 1; }
.activity-panel { grid-column: 2; }
.offer-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { color: #929b99; background: #f7f6f2; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; text-align: left; padding: 9px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 13px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: .15s ease; }
tbody tr:hover { background: #f7f8f4; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.more-button { width: 25px; height: 25px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: var(--muted); }
.more-button:hover { background: #ecefea; color: var(--ink); }
.more-button svg { width: 16px; height: 16px; }

.activity-list { padding: 0 20px 9px; }
.activity-list > div { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.activity-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; }
.activity-icon svg { width: 14px; height: 14px; }
.activity-icon.accepted { background: var(--green-soft); color: var(--green); }
.activity-icon.note { background: #e7eef1; color: var(--blue); }
.activity-icon.paid { background: #f4ead9; color: var(--gold); }
.activity-list p { margin: 0; }
.activity-list strong, .activity-list span, .activity-list small { display: block; }
.activity-list strong { font-size: 9px; }
.activity-list span { color: var(--muted); font-size: 8px; margin-top: 2px; line-height: 1.4; }
.activity-list small { color: #a7afad; font-size: 7px; margin-top: 4px; }

.toolbar { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.filter-group { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; }
.filter { border: 0; background: transparent; padding: 8px 11px; border-radius: 7px; color: var(--muted); font-size: 10px; cursor: pointer; }
.filter span { margin-left: 4px; opacity: .7; }
.filter.active { color: var(--ink); background: #e7eeeb; font-weight: 700; }
.inline-search { min-width: 250px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); }
.inline-search svg { width: 16px; height: 16px; }
.inline-search input { width: 100%; border: 0; background: transparent; outline: 0; color: var(--ink); font-size: 10px; }
.inline-search.compact { height: 35px; min-width: 210px; }
.job-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.job-card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 18px; cursor: pointer; transition: .2s ease; overflow: hidden; }
.job-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--green); opacity: 0; transition: .2s ease; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd9d6; }
.job-card:hover::before { opacity: 1; }
.job-card-top { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.job-card h3 { margin: 13px 0 4px; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; font-weight: 500; }
.job-card .client { color: var(--muted); font-size: 10px; }
.job-card .location { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; margin-top: 13px; }
.job-card .location svg { width: 13px; height: 13px; }
.job-card-progress { margin: 19px 0; }
.job-card-progress > span { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.job-card-progress > span b { color: var(--ink); }
.job-card-footer { padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.assignees { display: flex; }
.assignees span { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 50%; background: #dfe8e4; color: var(--green-dark); font-size: 7px; font-weight: 800; margin-left: -6px; }
.assignees span:first-child { margin-left: 0; }
.job-card-footer time { color: var(--muted); font-size: 8px; }

.offer-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.offer-summary > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.offer-summary > div:last-child { border-right: 0; }
.offer-summary span, .offer-summary strong { display: block; }
.offer-summary span { color: var(--muted); font-size: 9px; margin-bottom: 7px; }
.offer-summary strong { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 500; }
.green-text { color: var(--green); }
.full-panel { width: 100%; }

.customer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.customer-card { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 18px; transition: .2s ease; cursor: pointer; }
.customer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.customer-head { display: flex; gap: 11px; align-items: center; }
.customer-avatar { width: 40px; height: 40px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.customer-head strong, .customer-head small { display: block; }
.customer-head strong { font-size: 11px; }
.customer-head small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.customer-details { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; padding: 12px 0; }
.customer-details span { color: var(--muted); font-size: 8px; }
.customer-details strong { display: block; color: var(--ink); font-size: 11px; margin-top: 4px; }
.customer-contact { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 8px; }
.customer-contact button { border: 0; background: transparent; color: var(--green); font-size: 9px; font-weight: 750; cursor: pointer; }

.calendar-card { padding: 20px; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.calendar-head h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 21px; margin: 0; }
.calendar-head div { display: flex; gap: 7px; }
.calendar-head button { width: 32px; height: 32px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar-day-name { padding: 9px; background: #f3f3ef; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-cell { min-height: 95px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 9px; }
.calendar-cell.muted { color: #bec4c2; background: #f8f7f4; }
.calendar-cell.today { background: #f0f6f3; }
.calendar-cell.today > span { display: grid; place-items: center; width: 21px; height: 21px; margin: -4px; border-radius: 50%; color: #fff; background: var(--green); }
.calendar-event { display: block; margin-top: 8px; padding: 5px 6px; border-left: 2px solid var(--green); background: var(--green-soft); border-radius: 3px; color: var(--green-dark); font-size: 7px; line-height: 1.3; }
.calendar-event.gold { border-color: var(--gold); background: #f5ead9; color: #785a29; }
.calendar-event.blue { border-color: var(--blue); background: #e5eef2; color: #335c6e; }

.empty-view { min-height: calc(100vh - 72px); text-align: center; place-content: center; max-width: 500px; }
.empty-view.active { display: grid; }
.empty-view .empty-icon { width: 65px; height: 65px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.empty-view .empty-icon svg { width: 27px; height: 27px; }
.empty-view p:not(.eyebrow) { color: var(--muted); line-height: 1.6; font-size: 12px; }
.empty-view button { margin: 10px auto 0; }

.modal-backdrop, .command-backdrop { position: fixed; inset: 0; display: none; z-index: 50; background: rgba(9,28,25,.58); backdrop-filter: blur(3px); padding: 20px; }
.modal-backdrop.open { display: grid; place-items: center; }
.modal { position: relative; width: min(530px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 15px; background: var(--paper); box-shadow: 0 30px 80px rgba(10,30,26,.25); padding: 28px; animation: modalIn .25s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; right: 18px; top: 18px; }
.modal h2 { margin: 0; padding-right: 50px; font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 500; }
.modal-subtitle { margin: 7px 0 23px; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 9px; font-weight: 750; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #dce0dc; border-radius: 8px; background: #fff; padding: 10px 11px; color: var(--ink); font-size: 10px; }
.form-field textarea { min-height: 80px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.detail-top { display: flex; gap: 11px; align-items: center; margin: 20px 0; padding: 14px; border-radius: 10px; background: #f0f3ef; }
.detail-top > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); }
.detail-top strong, .detail-top small { display: block; }
.detail-top strong { font-size: 11px; }
.detail-top small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.detail-grid > div { padding: 14px; background: #fff; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: 8px; }
.detail-grid strong { margin-top: 4px; font-size: 10px; }

.command-backdrop.open { display: grid; place-items: start center; padding-top: 13vh; }
.command-box { width: min(610px, 100%); background: var(--paper); border-radius: 14px; box-shadow: 0 25px 80px rgba(5,22,19,.3); overflow: hidden; animation: modalIn .2s ease both; }
.command-input { height: 62px; padding: 0 19px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.command-input input { width: 100%; border: 0; background: none; outline: 0; color: var(--ink); font-size: 13px; }
.command-results { padding: 8px; max-height: 360px; overflow-y: auto; }
.command-result { width: 100%; border: 0; background: none; border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: 33px 1fr auto; gap: 10px; text-align: left; align-items: center; cursor: pointer; }
.command-result:hover { background: #edf2ef; }
.command-result.selected { background: #edf2ef; box-shadow: inset 0 0 0 1px rgba(29,102,88,.10); }
.command-result > span:first-child { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); }
.command-result strong, .command-result small { display: block; }
.command-result strong { font-size: 10px; }
.command-result small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.command-result em { color: var(--muted); font-size: 8px; font-style: normal; }
.command-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 10px; }
.command-hint { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
kbd { font-family: inherit; }
.command-hint kbd { display: inline-block; margin-right: 3px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }

.toast { position: fixed; z-index: 70; right: 24px; bottom: 24px; min-width: 280px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 13px; border: 1px solid #cbdad5; border-radius: 11px; color: var(--ink); background: #f7fbf8; box-shadow: var(--shadow); transform: translateY(90px); opacity: 0; pointer-events: none; transition: .35s ease; }
.toast.show { transform: none; opacity: 1; }
.toast > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); }
.toast p { margin: 0; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 10px; }
.toast small { margin-top: 3px; color: var(--muted); font-size: 8px; }

@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .offers-panel, .activity-panel { grid-column: auto; grid-row: auto; }
  .job-board, .customer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 248px; transform: translateX(-100%); transition: .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.15); }
  .sidebar.open { transform: none; }
  .menu-button { display: grid; }
  .topbar { padding: 0 18px; }
  .search-button { min-width: 38px; width: 38px; height: 38px; padding: 0; justify-content: center; }
  .search-button span:not([data-icon]), .search-button kbd { display: none; }
  .view { padding: 26px 18px 40px; }
  .job-board, .customer-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .inline-search { min-width: 0; }
  .calendar-cell { min-height: 75px; }
}

@media (max-width: 580px) {
  .topbar .primary-button { font-size: 0; width: 39px; padding: 0; }
  .topbar .primary-button svg { width: 17px; height: 17px; }
  .page-heading { align-items: start; }
  .page-heading .secondary-button, .page-heading > .primary-button { min-width: 40px; font-size: 0; padding: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 1fr auto; }
  .job-row .job-progress, .job-row .job-meta { display: none; }
  .offer-summary { grid-template-columns: 1fr 1fr; }
  .offer-summary > div:nth-child(2) { border-right: 0; }
  .offer-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .panel-header .inline-search { display: none; }
  .filter-group { overflow-x: auto; }
  .filter { flex: 0 0 auto; }
  .calendar-card { padding: 10px; overflow-x: auto; }
  .calendar-grid { min-width: 650px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}

/* ─────────────────────────────────────────────────────────────
   LIQUID GLASS THEME
   Translucent, layered materials inspired by modern iOS surfaces.
   ───────────────────────────────────────────────────────────── */

:root {
  --ink: #16312d;
  --ink-2: #2f4b46;
  --green: #177b67;
  --green-dark: #0d6554;
  --green-soft: rgba(202, 241, 228, .54);
  --sand: #eaf0ea;
  --paper: rgba(255, 255, 255, .48);
  --white: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .54);
  --muted: #6a7c78;
  --gold: #c4812f;
  --blue: #397d9a;
  --coral: #bd5a49;
  --glass-border: rgba(255, 255, 255, .62);
  --glass-shadow: 0 18px 45px rgba(35, 70, 62, .10),
                  inset 0 1px 0 rgba(255, 255, 255, .78),
                  inset 0 -1px 0 rgba(72, 103, 96, .08);
  --glass-shadow-hover: 0 24px 58px rgba(35, 70, 62, .16),
                        inset 0 1px 0 rgba(255, 255, 255, .9);
}

html { background: #dce8e2; }

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 13% 8%, rgba(255, 207, 126, .52), transparent 29%),
    radial-gradient(circle at 88% 5%, rgba(129, 199, 183, .48), transparent 31%),
    radial-gradient(circle at 68% 78%, rgba(134, 173, 218, .27), transparent 30%),
    linear-gradient(145deg, #edf2e9 0%, #dce9e4 45%, #edf0e7 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .78;
}

body::before {
  width: 370px;
  height: 370px;
  left: 29%;
  top: 7%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 246, 205, .9), rgba(219, 171, 105, .1) 65%, transparent 72%);
}

body::after {
  width: 460px;
  height: 460px;
  right: 1%;
  bottom: -15%;
  background: radial-gradient(circle at center, rgba(117, 199, 180, .4), rgba(85, 131, 171, .08) 68%, transparent 72%);
}

.sidebar {
  background:
    radial-gradient(circle at 18% 3%, rgba(231, 176, 89, .2), transparent 26%),
    linear-gradient(165deg, rgba(12, 48, 42, .94), rgba(13, 43, 39, .84));
  border-right: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 14px 0 45px rgba(24, 54, 48, .12), inset -1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(34px) saturate(145%);
  -webkit-backdrop-filter: blur(34px) saturate(145%);
}

.brand-mark {
  background: linear-gradient(145deg, rgba(255, 212, 137, .98), rgba(211, 147, 55, .94));
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.62), 0 8px 18px rgba(0,0,0,.16);
}

.nav-item {
  border: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.nav-item:hover {
  background: linear-gradient(120deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  border-color: rgba(255,255,255,.11);
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(115deg, rgba(255,255,255,.17), rgba(255,255,255,.075));
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 25px rgba(0,0,0,.10);
}

.nav-count {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

.plan-card {
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 14px 35px rgba(0,0,0,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-card .avatar {
  background: linear-gradient(145deg, #f1bd67, #ce8732);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px rgba(255,255,255,.45), 0 7px 16px rgba(0,0,0,.16);
}

.topbar {
  height: 76px;
  background: rgba(245, 249, 245, .48);
  border-bottom: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 10px 35px rgba(52, 83, 76, .055), inset 0 -1px rgba(76, 104, 97, .05);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
}

.icon-button,
.search-button,
.secondary-button {
  border-color: rgba(255, 255, 255, .72);
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  box-shadow: 0 8px 24px rgba(31, 71, 62, .08), inset 0 1px 0 rgba(255,255,255,.88), inset 0 -1px 0 rgba(44,79,72,.07);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
}

.icon-button:hover,
.secondary-button:hover {
  border-color: rgba(255,255,255,.94);
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.52));
  box-shadow: 0 12px 30px rgba(31,71,62,.13), inset 0 1px 0 #fff;
}

.search-button { border-radius: 14px; }
.search-button kbd { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.42); box-shadow: inset 0 1px rgba(255,255,255,.65); }

.primary-button {
  position: relative;
  overflow: hidden;
  border-color: rgba(12, 105, 87, .46);
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(36, 151, 126, .96), rgba(12, 100, 84, .98));
  box-shadow: 0 12px 26px rgba(15, 100, 83, .23), inset 0 1px 1px rgba(255,255,255,.42), inset 0 -1px rgba(0,0,0,.12);
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 1px 3px auto;
  height: 48%;
  border-radius: 10px 10px 50% 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.20), transparent);
  pointer-events: none;
}

.primary-button:hover {
  background: linear-gradient(150deg, rgba(42, 164, 137, 1), rgba(9, 91, 76, 1));
  box-shadow: 0 15px 32px rgba(15,100,83,.30), inset 0 1px 1px rgba(255,255,255,.48);
}

.view { padding-top: 39px; }
.page-heading { margin-bottom: 30px; }
.eyebrow { color: #a66821; }
h1 { text-shadow: 0 1px 0 rgba(255,255,255,.64); }

.stat-card,
.panel,
.job-card,
.customer-card,
.offer-summary,
.calendar-card {
  border-color: var(--glass-border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.64), rgba(255,255,255,.29)),
    radial-gradient(circle at 8% 4%, rgba(255,255,255,.55), transparent 37%);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 19px;
  padding: 20px;
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -46px;
  top: -54px;
  border-radius: 50%;
  background: rgba(255,255,255,.33);
  filter: blur(2px);
  pointer-events: none;
}

.stat-icon {
  border: 1px solid rgba(255,255,255,.67);
  box-shadow: inset 0 1px rgba(255,255,255,.82), 0 7px 17px rgba(31,70,62,.08);
  backdrop-filter: blur(12px);
}

.stat-icon.green { background: linear-gradient(145deg, rgba(216,246,236,.83), rgba(188,226,214,.45)); }
.stat-icon.gold { background: linear-gradient(145deg, rgba(255,237,202,.86), rgba(232,205,158,.43)); }
.stat-icon.blue { background: linear-gradient(145deg, rgba(219,239,246,.86), rgba(185,218,231,.43)); }
.stat-icon.coral { background: linear-gradient(145deg, rgba(252,224,218,.86), rgba(231,191,182,.43)); }

.trend,
.job-status,
.status-pill {
  border: 1px solid rgba(255,255,255,.56);
  box-shadow: inset 0 1px rgba(255,255,255,.64), 0 3px 9px rgba(42,75,68,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.progress { background: rgba(83, 108, 101, .10); box-shadow: inset 0 1px 2px rgba(47,76,69,.09), 0 1px rgba(255,255,255,.62); }
.progress i { background: linear-gradient(90deg, #207866, #45a58d); box-shadow: 0 0 8px rgba(37,143,119,.24); }

.panel { border-radius: 19px; }
.panel-header { padding: 21px 22px 16px; }
.job-list { padding-inline: 22px; }
.job-main > span {
  border: 1px solid rgba(255,255,255,.68);
  background: linear-gradient(145deg, rgba(228,243,236,.8), rgba(212,229,222,.38));
  box-shadow: inset 0 1px rgba(255,255,255,.82), 0 6px 15px rgba(35,70,62,.06);
}

th { background: rgba(240, 245, 241, .34); border-color: rgba(104,128,122,.11); }
td { border-color: rgba(104,128,122,.12); }
tbody tr:hover { background: rgba(255,255,255,.34); }

.activity-icon {
  border: 1px solid rgba(255,255,255,.66);
  box-shadow: inset 0 1px rgba(255,255,255,.7), 0 5px 13px rgba(43,75,68,.07);
}

.filter-group,
.inline-search {
  border-color: rgba(255,255,255,.68);
  background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,255,255,.27));
  box-shadow: 0 9px 24px rgba(31,71,62,.07), inset 0 1px 0 rgba(255,255,255,.77);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.filter.active {
  color: var(--green-dark);
  background: linear-gradient(145deg, rgba(216,241,232,.88), rgba(190,223,212,.58));
  box-shadow: 0 4px 12px rgba(39,94,80,.10), inset 0 1px rgba(255,255,255,.76);
}

.job-card,
.customer-card { border-radius: 18px; }
.job-card:hover,
.customer-card:hover { border-color: rgba(255,255,255,.9); box-shadow: var(--glass-shadow-hover); }
.job-card::before { border-radius: 0 4px 4px 0; background: linear-gradient(#4bb79c, #11705d); }
.assignees span { border-color: rgba(255,255,255,.7); background: linear-gradient(145deg, #e2f0eb, #bfd8d0); box-shadow: 0 3px 8px rgba(31,70,62,.12); }

.offer-summary { border-radius: 19px; overflow: hidden; }
.offer-summary > div { border-color: rgba(93,121,114,.12); }

.customer-avatar {
  border: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(145deg, rgba(211,242,232,.9), rgba(177,218,205,.56));
  box-shadow: inset 0 1px rgba(255,255,255,.8), 0 7px 17px rgba(31,70,62,.09);
}

.calendar-day-name { background: rgba(239,244,240,.42); }
.calendar-cell { background: rgba(255,255,255,.13); border-color: rgba(95,122,115,.13); }
.calendar-cell.muted { background: rgba(244,246,242,.22); }
.calendar-cell.today { background: rgba(216,241,232,.42); box-shadow: inset 0 0 0 1px rgba(37,132,109,.11); }
.calendar-cell.today > span { background: linear-gradient(145deg, #32a085, #116c59); box-shadow: inset 0 1px rgba(255,255,255,.38), 0 5px 13px rgba(26,115,94,.23); }
.calendar-event { border-top: 1px solid rgba(255,255,255,.42); border-right: 1px solid rgba(255,255,255,.34); border-bottom: 1px solid rgba(255,255,255,.34); box-shadow: inset 0 1px rgba(255,255,255,.37); }

.empty-view .empty-icon {
  border: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(145deg, rgba(219,244,236,.78), rgba(185,220,209,.44));
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
}

.modal-backdrop,
.command-backdrop {
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.16), transparent 31%),
    rgba(19, 44, 39, .39);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.modal,
.command-box {
  border: 1px solid rgba(255,255,255,.68);
  background:
    linear-gradient(145deg, rgba(250,253,250,.86), rgba(236,244,239,.65)),
    radial-gradient(circle at 8% 0, rgba(255,255,255,.9), transparent 40%);
  box-shadow: 0 35px 90px rgba(12,42,35,.27), inset 0 1px 0 rgba(255,255,255,.98), inset 0 -1px rgba(41,76,67,.10);
  backdrop-filter: blur(38px) saturate(155%);
  -webkit-backdrop-filter: blur(38px) saturate(155%);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.47);
  box-shadow: inset 0 1px 2px rgba(38,72,64,.06), 0 1px rgba(255,255,255,.74);
  backdrop-filter: blur(12px);
}

.detail-top,
.detail-grid { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.25); }
.detail-grid > div { background: rgba(255,255,255,.44); }
.command-input, .command-hint { border-color: rgba(89,116,109,.13); }
.command-result:hover { background: rgba(255,255,255,.54); }
.command-result > span:first-child { border: 1px solid rgba(255,255,255,.68); background: rgba(210,239,230,.62); }

.toast {
  border-color: rgba(255,255,255,.8);
  background: linear-gradient(145deg, rgba(245,253,248,.9), rgba(225,242,234,.72));
  box-shadow: 0 22px 55px rgba(20,60,50,.20), inset 0 1px rgba(255,255,255,.96);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stat-card, .panel, .job-card, .customer-card, .offer-summary, .calendar-card { background: rgba(248, 250, 247, .93); }
  .topbar { background: rgba(245, 249, 245, .96); }
}

@media (max-width: 800px) {
  body {
    background:
      radial-gradient(circle at 4% 5%, rgba(255, 202, 115, .45), transparent 28%),
      radial-gradient(circle at 100% 18%, rgba(112, 192, 175, .42), transparent 33%),
      linear-gradient(155deg, #edf1e8, #dce8e3 58%, #e7ece5);
    background-attachment: fixed;
  }

  .sidebar { background: linear-gradient(165deg, rgba(12,48,42,.97), rgba(13,43,39,.93)); }
  .topbar { background: rgba(241,247,243,.51); }
  .stat-card, .panel, .job-card, .customer-card, .offer-summary, .calendar-card { backdrop-filter: blur(21px) saturate(140%); -webkit-backdrop-filter: blur(21px) saturate(140%); }
}

/* ─────────────────────────────────────────────────────────────
   MODERN BUTTON SYSTEM
   Calm, crisp controls without glossy or skeuomorphic effects.
   ───────────────────────────────────────────────────────────── */

button {
  -webkit-tap-highlight-color: transparent;
}

.primary-button,
.secondary-button,
.icon-button,
.search-button {
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.primary-button {
  min-height: 40px;
  padding-inline: 16px;
  border: 1px solid rgba(9, 91, 75, .22);
  border-radius: 10px;
  background: #167563;
  color: #fff;
  box-shadow: 0 1px 2px rgba(8, 54, 46, .13), 0 5px 14px rgba(12, 92, 76, .12);
  font-weight: 700;
}

.primary-button::after { display: none; }

.primary-button:hover {
  background: #126a59;
  border-color: rgba(7, 75, 62, .28);
  box-shadow: 0 2px 4px rgba(8,54,46,.14), 0 8px 18px rgba(12,92,76,.15);
  transform: translateY(-1px);
}

.primary-button:active {
  background: #0e604f;
  box-shadow: 0 1px 2px rgba(8,54,46,.12);
  transform: translateY(0) scale(.985);
}

.secondary-button {
  min-height: 40px;
  padding-inline: 15px;
  border: 1px solid rgba(48, 78, 71, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .56);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(31, 61, 54, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.secondary-button:hover {
  border-color: rgba(24, 115, 95, .24);
  background: rgba(255, 255, 255, .76);
  color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(31,61,54,.08);
  transform: translateY(-1px);
}

.secondary-button:active { transform: translateY(0) scale(.985); }

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(48, 78, 71, .11);
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(31,61,54,.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.icon-button:hover {
  border-color: rgba(48,78,71,.18);
  background: rgba(255,255,255,.76);
  color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(31,61,54,.08);
  transform: translateY(-1px);
}

.icon-button:active { transform: translateY(0) scale(.96); }

.search-button {
  min-height: 38px;
  border: 1px solid rgba(48, 78, 71, .10);
  border-radius: 10px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 1px 2px rgba(31,61,54,.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.search-button:hover {
  border-color: rgba(48,78,71,.18);
  background: rgba(255,255,255,.7);
  color: var(--ink-2);
  box-shadow: 0 4px 12px rgba(31,61,54,.07);
}

.search-button kbd {
  border: 0;
  border-radius: 5px;
  background: rgba(40, 69, 62, .07);
  box-shadow: none;
}

.filter-group {
  border-color: rgba(48,78,71,.10);
  border-radius: 11px;
  background: rgba(255,255,255,.40);
  box-shadow: 0 1px 2px rgba(31,61,54,.04);
}

.filter {
  min-height: 32px;
  border-radius: 7px;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.filter:hover { color: var(--ink); background: rgba(255,255,255,.42); }

.filter.active {
  color: var(--green-dark);
  background: rgba(255,255,255,.78);
  box-shadow: 0 1px 3px rgba(35,68,60,.08);
}

.text-button,
.customer-contact button,
.plan-card button {
  text-decoration: none;
  transition: color .16s ease, opacity .16s ease, background-color .16s ease;
}

.text-button:hover,
.customer-contact button:hover,
.plan-card button:hover { color: #0d5e4e; opacity: .78; }

.more-button {
  border-radius: 7px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.more-button:hover { background: rgba(37, 74, 65, .07); }
.more-button:active { transform: scale(.92); }

.nav-item { border-radius: 9px; }

.nav-item:hover {
  transform: none;
  background: rgba(255,255,255,.07);
  box-shadow: none;
}

.nav-item.active {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.plan-card button { font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  .primary-button, .secondary-button, .icon-button, .search-button,
  .filter, .more-button, .nav-item { transition: none; }
}

/* AI overview and live company feed */

.ai-top-button {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(122, 93, 184, .14);
  border-radius: 10px;
  background: rgba(247, 244, 255, .58);
  color: #67529a;
  box-shadow: 0 1px 2px rgba(63, 47, 102, .05);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ai-top-button svg { width: 15px; height: 15px; }
.ai-top-button:hover { background: rgba(249,247,255,.85); border-color: rgba(111,83,176,.24); box-shadow: 0 4px 12px rgba(63,47,102,.08); transform: translateY(-1px); }
.ai-top-button:active { transform: translateY(0) scale(.985); }

.ai-panel { grid-column: 1 / -1; overflow: hidden; }
.ai-panel-head { min-height: 67px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(72,102,94,.10); background: linear-gradient(100deg, rgba(242,238,255,.28), rgba(229,247,241,.16)); }
.ai-title { display: flex; align-items: center; gap: 11px; }
.ai-title h2 { margin: 2px 0 0; font-size: 14px; }
.ai-kicker { display: block; color: #7660aa; font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.ai-orb { position: relative; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 11px; color: #6c52a4; background: linear-gradient(145deg, rgba(242,235,255,.94), rgba(211,235,232,.68)); box-shadow: 0 6px 17px rgba(83,61,130,.10), inset 0 1px rgba(255,255,255,.9); }
.ai-orb::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(109,80,166,.09); border-radius: 14px; }
.ai-orb svg { width: 17px; height: 17px; }
.ai-status, .live-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border: 1px solid rgba(29,123,103,.14); border-radius: 999px; color: var(--green); background: rgba(221,242,234,.52); font-size: 8px; font-weight: 800; }
.ai-status i, .live-badge i, .live-footer i { width: 6px; height: 6px; border-radius: 50%; background: #27a983; box-shadow: 0 0 0 4px rgba(39,169,131,.10); }

.ai-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.6fr); gap: 0; }
.ai-summary { padding: 18px 20px; border-right: 1px solid rgba(72,102,94,.10); }
.ai-answer { min-height: 60px; }
.ai-answer p { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.55; }
.ai-answer small { display: block; margin-top: 7px; color: #87938f; font-size: 8px; }
.ai-answer.thinking p { color: var(--muted); }
.ai-answer.thinking p::after { content: ""; display: inline-block; width: 14px; height: 7px; margin-left: 7px; background: radial-gradient(circle, currentColor 1.5px, transparent 2px) 0 50% / 6px 6px repeat-x; animation: aiThinking .8s linear infinite; opacity: .55; }
@keyframes aiThinking { to { background-position: 6px 50%; } }

.ai-ask { min-height: 39px; margin-top: 14px; padding: 0 5px 0 11px; display: grid; grid-template-columns: 17px 1fr 30px; gap: 7px; align-items: center; border: 1px solid rgba(72,102,94,.12); border-radius: 11px; background: rgba(255,255,255,.52); box-shadow: inset 0 1px rgba(255,255,255,.75), 0 2px 7px rgba(37,68,60,.04); }
.ai-ask > span { color: #8067b5; }
.ai-ask > span svg { width: 14px; height: 14px; }
.ai-ask input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 9px; }
.ai-ask input::placeholder { color: #899590; }
.ai-ask button { width: 29px; height: 29px; border: 0; border-radius: 8px; display: grid; place-items: center; color: #fff; background: #6f5aa1; cursor: pointer; transition: background-color .16s ease, transform .16s ease; }
.ai-ask button:hover { background: #5f4a91; transform: translateX(1px); }
.ai-ask button svg { width: 13px; height: 13px; }
.ai-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ai-prompts button { border: 0; padding: 3px 0; color: #7968a2; background: none; font-size: 8px; cursor: pointer; }
.ai-prompts button:hover { color: #58457f; text-decoration: underline; text-underline-offset: 3px; }

.ai-insights { padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ai-insight { min-width: 0; min-height: 107px; padding: 13px; display: grid; grid-template-columns: 29px minmax(0, 1fr) 13px; gap: 9px; align-items: start; text-align: left; border: 1px solid rgba(72,102,94,.10); border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.32); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.ai-insight:hover { border-color: rgba(72,102,94,.17); background: rgba(255,255,255,.57); box-shadow: 0 7px 18px rgba(35,67,59,.07); transform: translateY(-2px); }
.ai-insight > span:nth-child(2) { min-width: 0; }
.ai-insight > span:last-child { align-self: center; color: #8b9693; }
.ai-insight > span:last-child svg { width: 13px; height: 13px; }
.ai-insight small, .ai-insight strong, .ai-insight em { display: block; overflow: hidden; text-overflow: ellipsis; }
.ai-insight small { margin: 1px 0 6px; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ai-insight strong { font-size: 9px; line-height: 1.35; }
.ai-insight em { margin-top: 5px; color: var(--muted); font-size: 7px; font-style: normal; white-space: nowrap; }
.insight-icon { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 8px; }
.insight-icon svg { width: 14px; height: 14px; }
.ai-insight.priority .insight-icon { color: var(--coral); background: rgba(247,224,218,.58); }
.ai-insight.opportunity .insight-icon { color: #7960ac; background: rgba(234,227,248,.66); }
.ai-insight.finance .insight-icon { color: var(--green); background: rgba(218,241,232,.64); }

.live-header { align-items: center; }
.live-title { display: flex; align-items: center; gap: 8px; }
.live-badge { min-height: 20px; padding-inline: 7px; font-size: 7px; }
.live-badge i { width: 5px; height: 5px; animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(39,169,131,.32); } 70%,100% { box-shadow: 0 0 0 6px rgba(39,169,131,0); } }
.live-toggle { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(55,84,77,.10); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.38); cursor: pointer; transition: .16s ease; }
.live-toggle:hover { color: var(--green-dark); background: rgba(255,255,255,.68); }
.live-toggle svg { width: 12px; height: 12px; }
.live-panel.paused .live-badge { color: var(--muted); background: rgba(226,230,227,.52); border-color: rgba(90,108,103,.12); }
.live-panel.paused .live-badge i { background: #8b9995; animation: none; box-shadow: none; }

.live-panel .activity-list { max-height: 255px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(52,84,76,.16) transparent; }
.activity-list > div { position: relative; cursor: pointer; animation: feedIn .32s ease both; }
.activity-list > div:hover { background: rgba(255,255,255,.20); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
.activity-list > div.live-new::after { content: ""; position: absolute; right: 1px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: #23a37e; }
.activity-list > .command-empty { display: block; padding: 28px 4px; border-top: 1px solid var(--line); line-height: 1.6; }
.activity-icon.job { color: var(--blue); background: rgba(219,237,245,.65); }
.activity-icon.customer { color: #7861aa; background: rgba(234,228,247,.68); }
.activity-icon.system { color: var(--gold); background: rgba(248,234,208,.65); }
.live-footer { min-height: 37px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(72,102,94,.10); color: #8b9693; font-size: 7px; }
.live-footer > span { display: flex; align-items: center; gap: 7px; }
.live-footer i { width: 4px; height: 4px; box-shadow: none; }
.live-footer b { font-weight: 650; }

@media (max-width: 1120px) {
  .ai-layout { grid-template-columns: 1fr; }
  .ai-summary { border-right: 0; border-bottom: 1px solid rgba(72,102,94,.10); }
}

@media (max-width: 800px) {
  .ai-top-button span:not([data-icon]) { display: none; }
  .ai-top-button { width: 38px; padding: 0; justify-content: center; }
  .ai-insights { grid-template-columns: 1fr; }
  .ai-insight { min-height: 78px; }
}

@media (max-width: 580px) {
  .ai-panel-head { padding: 14px; }
  .ai-status { display: none; }
  .ai-summary { padding: 15px; }
  .ai-insights { padding: 12px; }
  .ai-prompts { display: none; }
  .ai-ask { margin-top: 12px; }
}

/* Functional application views */

.actionable-card { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.actionable-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.88); box-shadow: var(--glass-shadow-hover); }
.actionable-card:active { transform: translateY(0); }

.finance-summary,
.team-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.finance-metric,
.team-metric { position: relative; overflow: hidden; min-height: 116px; padding: 20px; border: 1px solid var(--glass-border); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.30)); box-shadow: var(--glass-shadow); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.finance-metric::after,
.team-metric::after { content: ""; position: absolute; width: 74px; height: 74px; right: -25px; top: -28px; border-radius: 50%; background: radial-gradient(circle, rgba(90,177,155,.18), transparent 68%); pointer-events: none; }
.finance-metric span,
.finance-metric strong,
.team-metric span,
.team-metric strong { display: block; }
.finance-metric span,
.team-metric span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.finance-metric strong,
.team-metric strong { margin-top: 9px; font: 500 27px Georgia, serif; letter-spacing: -.02em; }
.finance-metric small,
.team-metric small { display: block; margin-top: 7px; color: #7d8d88; font-size: 9px; }
.finance-metric.danger strong { color: var(--coral); }
.finance-metric.success strong { color: var(--green); }
.invoice-filters { padding: 3px; }
.invoice-filters .filter { min-height: 27px; padding: 5px 8px; font-size: 8px; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.member-card { display: flex; flex-direction: column; min-height: 226px; padding: 21px; border: 1px solid var(--glass-border); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.30)); box-shadow: var(--glass-shadow); cursor: pointer; backdrop-filter: blur(22px) saturate(125%); -webkit-backdrop-filter: blur(22px) saturate(125%); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.member-card:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-hover); }
.member-card:hover { border-color: rgba(255,255,255,.88); }
.member-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; align-items: center; }
.member-avatar { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.76); border-radius: 15px; color: var(--green-dark); background: linear-gradient(145deg, rgba(213,239,231,.96), rgba(170,211,199,.62)); box-shadow: inset 0 1px rgba(255,255,255,.9), 0 8px 18px rgba(31,70,62,.10); font-size: 12px; font-weight: 850; }
.member-head strong, .member-head small { display: block; }
.member-head strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.member-head small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.member-presence { width: 8px; height: 8px; border-radius: 50%; background: #2ba681; box-shadow: 0 0 0 4px rgba(43,166,129,.10); }
.member-presence.away { background: #d19a42; box-shadow: 0 0 0 4px rgba(209,154,66,.10); }
.member-stats { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10px; margin: 20px 0 17px; }
.member-stats div { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.40); border-radius: 11px; background: rgba(255,255,255,.34); }
.member-stats span, .member-stats strong { display: block; }
.member-stats span { color: var(--muted); font-size: 8px; }
.member-stats strong { overflow: hidden; margin-top: 5px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.capacity-label { display: flex; justify-content: space-between; margin-top: auto; color: var(--muted); font-size: 9px; }
.capacity-label b { color: var(--ink); }
.member-card > .progress { height: 6px; margin: 9px 0 0; background: rgba(80,116,106,.12); }
.member-card > .progress i { background: linear-gradient(90deg, #177b67, #48aa93); }

.modal.danger-modal { border-color: rgba(190,76,58,.25); }
.modal-actions.split { justify-content: space-between; }
.danger-button { min-height: 40px; padding: 0 14px; border: 1px solid rgba(183,68,49,.16); border-radius: 10px; color: #a84334; background: rgba(249,231,226,.60); font-size: 10px; font-weight: 700; cursor: pointer; }
.danger-button:hover { background: rgba(247,219,212,.86); }
.modal-action-group { display: flex; gap: 8px; }
.form-field input[type="range"] { padding: 0; accent-color: var(--green); box-shadow: none; }
.range-value { color: var(--green-dark); font-size: 9px; font-weight: 750; }
.modal-note { padding: 11px 12px; border: 1px solid rgba(89,117,109,.10); border-radius: 9px; background: rgba(255,255,255,.32); color: var(--muted); font-size: 9px; line-height: 1.5; }

.notification-list { margin-top: 18px; }
.notification-row { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 12px 0; border-top: 1px solid rgba(73,101,94,.11); }
.notification-row > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: rgba(216,240,232,.64); }
.notification-row > span svg { width: 15px; height: 15px; }
.notification-row strong, .notification-row small { display: block; }
.notification-row strong { font-size: 10px; }
.notification-row p { margin: 3px 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.notification-row small { color: #9ca6a3; font-size: 7px; }
.notification-button.read i { display: none; }

.plan-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.plan-option { padding: 14px; border: 1px solid rgba(72,102,94,.11); border-radius: 11px; background: rgba(255,255,255,.30); text-align: left; cursor: pointer; }
.plan-option.active { border-color: rgba(24,117,98,.28); background: rgba(214,239,231,.55); box-shadow: inset 0 0 0 1px rgba(24,117,98,.06); }
.plan-option strong, .plan-option small { display: block; }
.plan-option strong { font-size: 10px; }
.plan-option small { margin-top: 5px; color: var(--muted); font-size: 8px; }

.calendar-cell:not(.muted) { cursor: pointer; transition: background-color .15s ease; }
.calendar-cell:not(.muted):hover { background: rgba(255,255,255,.38); }
.calendar-event { cursor: pointer; }

@media (max-width: 1120px) {
  .finance-summary, .team-summary { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .finance-summary, .team-summary, .team-grid { grid-template-columns: 1fr; }
  .invoice-filters { max-width: 100%; overflow-x: auto; }
  .plan-options { grid-template-columns: 1fr; }
  .modal-actions.split { gap: 12px; flex-direction: column-reverse; }
  .modal-actions.split > *, .modal-action-group { width: 100%; }
  .modal-action-group > * { flex: 1; }
}

/* Public entry, company login and secure checkout */

.auth-gate {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 26px clamp(22px, 5vw, 72px) 20px;
  overflow: hidden;
}

.auth-gate::before,
.auth-gate::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.auth-gate::before {
  width: 520px;
  height: 520px;
  right: -150px;
  top: -170px;
  background: radial-gradient(circle, rgba(93, 191, 163, .38), rgba(93, 191, 163, 0) 70%);
}

.auth-gate::after {
  width: 430px;
  height: 430px;
  left: 23%;
  bottom: -270px;
  background: radial-gradient(circle, rgba(92, 139, 191, .25), rgba(92, 139, 191, 0) 70%);
}

.auth-header,
.auth-footer {
  width: min(1240px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .13em;
}

.auth-brand .brand-mark { color: #17352f; }

.secure-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(169, 109, 25, .18);
  border-radius: 999px;
  color: #176e5b;
  background: rgba(221, 243, 235, .60);
  box-shadow: inset 0 1px rgba(255,255,255,.75);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-layout {
  width: min(1160px, 100%);
  min-height: calc(100vh - 166px);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .72fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.auth-hero { max-width: 610px; }
.auth-kicker,
.auth-card-kicker {
  color: #9d6827;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-hero h1 {
  margin-top: 17px;
  font-size: clamp(45px, 5.3vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.auth-hero h1 em { color: var(--green); font-style: normal; }
.auth-hero > p { max-width: 535px; margin: 25px 0 0; color: #526b65; font-size: 16px; line-height: 1.65; }
.auth-benefits { display: grid; gap: 12px; margin-top: 30px; color: #324f48; font-size: 13px; font-weight: 650; }
.auth-benefits span { display: flex; align-items: center; gap: 10px; }
.auth-benefits b { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(34,131,105,.18); border-radius: 50%; color: var(--green); background: rgba(221,245,236,.55); }

.auth-price {
  width: fit-content;
  margin-top: 35px;
  padding: 15px 19px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 1px rgba(255,255,255,.84), 0 12px 30px rgba(31,68,60,.07);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.auth-price strong { font: 500 28px Georgia, serif; }
.auth-price span { color: #536a64; font-size: 10px; line-height: 1.45; }
.auth-price small { color: var(--green); font-weight: 750; }

.auth-card {
  position: relative;
  overflow: hidden;
  min-height: 515px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.80);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(245,250,248,.38));
  box-shadow: 0 32px 80px rgba(33,70,61,.16), inset 0 1px rgba(255,255,255,.95), inset 0 -1px rgba(73,110,101,.08);
  backdrop-filter: blur(38px) saturate(145%);
  -webkit-backdrop-filter: blur(38px) saturate(145%);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.52), transparent 35%, rgba(126,216,190,.11) 80%, rgba(255,255,255,.3));
}

.auth-card-glow { position: absolute; width: 210px; height: 210px; right: -80px; top: -100px; border-radius: 50%; background: rgba(104,198,171,.20); filter: blur(8px); }
.auth-card > *:not(.auth-card-glow) { position: relative; z-index: 1; }
.auth-card-head { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.auth-card-head h2 { margin: 7px 0 0; font: 500 29px Georgia, serif; letter-spacing: -.03em; }
.auth-lock { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 14px; color: var(--green-dark); background: rgba(221,241,235,.64); box-shadow: inset 0 1px rgba(255,255,255,.9), 0 8px 20px rgba(36,76,66,.09); font-size: 10px; font-weight: 850; }

.auth-message { margin: 0 0 17px; padding: 10px 12px; border: 1px solid rgba(190,82,64,.16); border-radius: 10px; color: #9d4738; background: rgba(250,229,224,.58); font-size: 9px; line-height: 1.45; }
.auth-message.success { border-color: rgba(31,130,102,.16); color: #176e5b; background: rgba(220,243,235,.58); }
.auth-step { animation: authStepIn .3s ease both; }
@keyframes authStepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.auth-step label { display: block; margin-bottom: 8px; color: #435f58; font-size: 10px; font-weight: 750; }
.auth-input-wrap { min-height: 53px; display: grid; grid-template-columns: 52px 1fr; align-items: center; border: 1px solid rgba(64,99,90,.14); border-radius: 15px; background: rgba(255,255,255,.60); box-shadow: inset 0 1px rgba(255,255,255,.85), 0 4px 12px rgba(40,74,66,.04); }
.auth-input-wrap span { height: 27px; display: grid; place-items: center; border-right: 1px solid rgba(67,96,89,.12); color: #81908c; font-size: 10px; font-weight: 800; }
.auth-input-wrap input,
.auth-input { width: 100%; min-height: 51px; padding: 0 15px; border: 1px solid rgba(64,99,90,.14); border-radius: 14px; outline: 0; color: var(--ink); background: rgba(255,255,255,.60); box-shadow: inset 0 1px rgba(255,255,255,.85), 0 4px 12px rgba(40,74,66,.04); font-size: 14px; }
.auth-input-wrap input { min-height: 49px; border: 0; border-radius: 0 14px 14px 0; background: transparent; box-shadow: none; }
.auth-input-wrap:focus-within,
.auth-input:focus { border-color: rgba(23,123,103,.38); box-shadow: 0 0 0 4px rgba(23,123,103,.08), inset 0 1px rgba(255,255,255,.9); }
.auth-primary { width: 100%; min-height: 52px; margin-top: 14px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(7,82,67,.22); border-radius: 15px; color: #fff; background: linear-gradient(145deg, #238d76, #0c6755); box-shadow: inset 0 1px rgba(255,255,255,.24), 0 11px 25px rgba(11,93,75,.20); font-size: 12px; font-weight: 780; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.auth-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 15px 31px rgba(11,93,75,.25); filter: brightness(1.03); }
.auth-primary:active { transform: translateY(0) scale(.99); }
.auth-primary span { font-size: 18px; font-weight: 400; }
.auth-primary .busy-label,.auth-free-button .busy-label,.primary-button .busy-label,.secondary-button .busy-label,.danger-button .busy-label { font: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.auth-primary .busy-dots { font-size: 14px; letter-spacing: .08em; }
.is-busy { cursor: wait; }
.auth-helper { margin: 13px 0 0; color: #7c8d88; font-size: 9px; line-height: 1.5; text-align: center; }
.auth-helper b { color: var(--green-dark); }
.auth-step-copy { margin: 0 0 4px; color: #60746f; font-size: 10px; line-height: 1.6; }
.auth-email-copy { margin-top: 10px; }
.auth-back { margin: -3px 0 16px; padding: 0; border: 0; color: #687d77; background: none; font-size: 9px; font-weight: 700; cursor: pointer; }
.auth-back:hover { color: var(--green); }
.company-result { margin-bottom: 17px; padding: 14px; display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; border: 1px solid rgba(29,127,101,.15); border-radius: 14px; background: rgba(220,244,235,.48); }
.company-result-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #3fa98d, #177b67); font-weight: 850; }
.company-result small, .company-result strong, .company-result div > span { display: block; }
.company-result small { color: #6f8981; font-size: 8px; }
.company-result strong { margin-top: 4px; font-size: 12px; }
.company-result div > span { margin-top: 3px; color: #70837e; font-size: 8px; }
.auth-code-input { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: .26em; }
.checkout-summary { margin-bottom: 17px; padding: 15px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; border: 1px solid rgba(57,92,83,.11); border-radius: 14px; background: rgba(255,255,255,.40); }
.checkout-summary span { color: #536b65; font-size: 10px; font-weight: 750; }
.checkout-summary strong { font-size: 11px; }
.checkout-summary small { grid-column: 1 / -1; color: #82908d; font-size: 8px; }
.plan-divider { height: 25px; display: flex; align-items: center; gap: 10px; color: #8a9995; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.plan-divider::before,.plan-divider::after { content: ""; height: 1px; flex: 1; background: rgba(66,96,88,.12); }
.auth-free-button { width: 100%; min-height: 55px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(28,125,99,.20); border-radius: 15px; color: #145f4f; background: linear-gradient(145deg,rgba(229,248,241,.88),rgba(205,237,226,.65)); box-shadow: inset 0 1px rgba(255,255,255,.88),0 10px 22px rgba(32,113,91,.10); cursor: pointer; transition: transform .18s ease,box-shadow .18s ease; }
.auth-free-button:hover { transform: translateY(-1px); box-shadow: inset 0 1px rgba(255,255,255,.95),0 14px 28px rgba(32,113,91,.15); }
.auth-free-button > span,.auth-free-button b,.auth-free-button small { display: block; text-align: left; }
.auth-free-button b { font-size: 11px; }
.auth-free-button small { margin-top: 3px; color: #638078; font-size: 8px; font-weight: 600; }
.auth-free-button em { font-size: 18px; font-style: normal; }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.admin-badge { margin-bottom: 18px; padding: 12px; border: 1px solid rgba(111,83,176,.16); border-radius: 12px; color: #655190; background: rgba(239,233,251,.51); font-size: 10px; font-weight: 800; text-align: center; }
.auth-legal { position: absolute !important; left: 30px; right: 30px; bottom: 22px; margin: 0; color: #8b9995; font-size: 7px; line-height: 1.5; text-align: center; }
.auth-footer { color: #6d817c; font-size: 9px; }

.logout-button { min-height: 35px; padding: 0 10px; border: 1px solid rgba(69,98,90,.12); border-radius: 9px; color: #657772; background: rgba(255,255,255,.45); font-size: 9px; font-weight: 750; cursor: pointer; }
.logout-button:hover { color: var(--green-dark); background: rgba(255,255,255,.74); }

.admin-nav-shell[hidden] { display: none; }
.admin-nav-shell .nav-item { width: 100%; }
.admin-nav-item { color: #fff4d2; }
.admin-nav-item::after { content: "ADMIN"; margin-left: auto; padding: 3px 6px; border: 1px solid rgba(241,181,83,.24); border-radius: 999px; color: #f2c476; background: rgba(238,170,60,.09); font-size: 6px; font-weight: 850; letter-spacing: .09em; }
.admin-page-heading { align-items: flex-end; }
.admin-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.admin-metric { position: relative; overflow: hidden; min-height: 102px; padding: 18px; border: 1px solid rgba(255,255,255,.72); border-radius: 18px; background: linear-gradient(145deg,rgba(255,255,255,.68),rgba(242,248,245,.43)); box-shadow: inset 0 1px rgba(255,255,255,.92),0 12px 30px rgba(30,73,62,.07); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.admin-metric::after { content: ""; position: absolute; width: 90px; height: 90px; right: -28px; bottom: -50px; border-radius: 50%; background: rgba(48,160,129,.10); filter: blur(2px); }
.admin-metric.success::after { background: rgba(234,171,69,.15); }
.admin-metric.admin-access::after { background: rgba(119,84,171,.14); }
.admin-metric > span,.admin-metric > small { display: block; position: relative; z-index: 1; }
.admin-metric > span { color: var(--muted); font-size: 9px; font-weight: 720; }
.admin-metric > strong { display: block; position: relative; z-index: 1; margin: 8px 0 4px; font: 500 26px Georgia,serif; color: var(--ink); }
.admin-metric > small { color: #7c8e89; font-size: 8px; }
.admin-registry-panel { overflow: visible; }
.admin-toolbar { padding: 20px 21px 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(66,97,88,.09); }
.admin-toolbar h2 { margin: 0; font-size: 14px; }
.admin-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.admin-toolbar-controls { display: flex; align-items: flex-end; gap: 9px; }
.admin-search { width: min(310px,36vw); margin: 0; }
.admin-status-filter { display: grid; gap: 5px; color: #70817d; font-size: 7px; font-weight: 780; }
.admin-status-filter select { min-width: 138px; height: 37px; padding: 0 30px 0 11px; border: 1px solid rgba(60,92,84,.13); border-radius: 11px; outline: 0; color: var(--ink); background: rgba(255,255,255,.62); font: inherit; font-size: 9px; box-shadow: inset 0 1px rgba(255,255,255,.9); }
.admin-status-filter select:focus { border-color: rgba(23,123,103,.36); box-shadow: 0 0 0 3px rgba(23,123,103,.07); }
.admin-table { min-width: 920px; }
.admin-table th { white-space: nowrap; }
.admin-table td { vertical-align: middle; }
.admin-company-cell { min-width: 235px; display: flex; align-items: center; gap: 11px; }
.admin-company-cell > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.78); border-radius: 11px; color: #fff; background: linear-gradient(145deg,#3c9c83,#176b59); box-shadow: inset 0 1px rgba(255,255,255,.24),0 6px 13px rgba(24,101,83,.14); font-size: 9px; font-weight: 850; }
.admin-company-cell strong,.admin-company-cell small,.admin-email-cell span,.admin-email-cell small { display: block; }
.admin-company-cell strong { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.admin-company-cell small { max-width: 270px; margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.admin-cvr { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.admin-email-cell > span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.admin-email-cell small { margin-top: 4px; color: #8b9693; font-size: 7px; }
.admin-email-cell small.verified { color: #168169; font-weight: 750; }
.admin-status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; border: 1px solid rgba(104,117,113,.13); border-radius: 999px; color: #667570; background: rgba(238,242,240,.72); white-space: nowrap; font-size: 8px; font-weight: 780; }
.admin-status.status-active,.admin-status.status-trialing { border-color: rgba(26,132,102,.17); color: #17765f; background: rgba(218,243,234,.68); }
.admin-status.status-free { border-color: rgba(79,105,182,.17); color: #5266a7; background: rgba(228,233,250,.72); }
.admin-status.status-complimentary { border-color: rgba(133,91,180,.18); color: #72519a; background: rgba(239,231,249,.76); }
.admin-status.status-admin_panel { border-color: rgba(150,92,32,.20); color: #86571e; background: rgba(250,237,214,.80); }
.admin-status.status-past_due { border-color: rgba(186,72,52,.16); color: #a44738; background: rgba(249,228,222,.72); }
.admin-status.status-pending { border-color: rgba(185,128,37,.17); color: #94661d; background: rgba(251,240,212,.72); }
.admin-edit-button { min-height: 31px; padding: 0 11px; border: 1px solid rgba(33,112,91,.14); border-radius: 9px; color: var(--green-dark); background: rgba(233,246,241,.58); font-size: 8px; font-weight: 780; cursor: pointer; transition: transform .16s ease,background .16s ease; }
.admin-edit-button:hover { transform: translateY(-1px); background: rgba(218,241,233,.88); }
.admin-row-actions { display: flex; align-items: center; gap: 6px; }
.admin-delete-button { min-height: 31px; padding: 0 10px; border: 1px solid rgba(183,68,49,.13); border-radius: 9px; color: #a44738; background: rgba(249,231,226,.48); font-size: 8px; font-weight: 780; cursor: pointer; transition: transform .16s ease,background .16s ease; }
.admin-delete-button:hover { transform: translateY(-1px); background: rgba(247,219,212,.82); }
.admin-registry-status { min-height: 17px; margin: 0; padding: 4px 21px 14px; color: #7d8e89; font-size: 8px; }
.admin-danger-zone { margin-top: 20px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid rgba(183,68,49,.14); border-radius: 13px; background: rgba(249,231,226,.38); }
.admin-danger-zone strong { color: #953f32; font-size: 10px; }
.admin-danger-zone p { margin: 4px 0 0; color: #8b655e; font-size: 8px; line-height: 1.5; }
.admin-confirm-field { margin-top: 20px; }
.danger-copy { color: #a44738; }
.form-field small { color: #7d8c88; font-size: 8px; line-height: 1.45; }

/* Sammenhængende sagsflow */
.case-number {
  display: inline-flex;
  width: fit-content;
  min-height: 21px;
  margin: 0 7px 4px 0;
  padding: 0 8px;
  align-items: center;
  border: 1px solid rgba(24,125,102,.16);
  border-radius: 999px;
  color: #126d59;
  background: linear-gradient(145deg,rgba(229,247,240,.92),rgba(208,238,228,.68));
  box-shadow: inset 0 1px rgba(255,255,255,.9),0 4px 11px rgba(25,105,85,.07);
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .045em;
  white-space: nowrap;
  vertical-align: middle;
}
.job-main .case-number { display: flex; margin-bottom: 4px; }
.job-card-top { justify-content: flex-start; align-items: center; }
.job-card-top .job-status { margin-left: auto; }
.offer-table-wrap td .case-number { margin: 0; }
.calendar-event b { display: inline; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 6px; letter-spacing: .03em; }
.modal-case-head { min-height: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-case-head .eyebrow { margin-top: 5px; }
.workflow-note {
  padding: 12px;
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(31,131,104,.14);
  border-radius: 13px;
  color: var(--green-dark);
  background: linear-gradient(145deg,rgba(226,246,238,.75),rgba(244,249,247,.58));
  box-shadow: inset 0 1px rgba(255,255,255,.85);
}
.workflow-note > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg,#40a98d,#14715d); }
.workflow-note svg { width: 15px; height: 15px; }
.workflow-note strong,.workflow-note small { display: block; }
.workflow-note strong { font-size: 9px; }
.workflow-note small { margin-top: 3px; color: #6d817b; font-size: 8px; line-height: 1.45; }

.completed-summary { margin-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 13px; }
.completed-summary > article,.completed-summary > div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(255,255,255,.68),rgba(237,247,243,.43));
  box-shadow: inset 0 1px rgba(255,255,255,.92),0 12px 30px rgba(30,73,62,.07);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.completed-summary article > span,.completed-summary article > small { display: block; color: var(--muted); font-size: 8px; }
.completed-summary article > strong { display: block; margin: 7px 0 4px; font: 500 25px Georgia,serif; }
.completed-summary > div { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; }
.completed-summary > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#3aa187,#126752); box-shadow: inset 0 1px rgba(255,255,255,.25),0 8px 18px rgba(18,103,82,.16); }
.completed-summary svg { width: 18px; height: 18px; }
.completed-summary p,.completed-summary strong,.completed-summary small { display: block; margin: 0; }
.completed-summary p > strong { font-size: 10px; }
.completed-summary p > small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.completed-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.receipt-card { padding: 18px; border: 1px solid rgba(255,255,255,.73); border-radius: 19px; background: linear-gradient(145deg,rgba(255,255,255,.70),rgba(235,246,241,.45)); box-shadow: inset 0 1px rgba(255,255,255,.92),0 14px 34px rgba(29,70,60,.08); }
.receipt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.receipt-head > div small { display: block; color: #81908c; font-size: 7px; }
.receipt-head > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #198069; }
.receipt-head svg { width: 15px; height: 15px; }
.receipt-card h3 { margin: 17px 0 4px; font-size: 13px; }
.receipt-card > p { margin: 0 0 17px; color: var(--muted); font-size: 9px; }
.receipt-details { margin-bottom: 16px; display: grid; gap: 8px; }
.receipt-details span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 8px; }
.receipt-details strong { color: var(--ink); font-size: 8px; text-align: right; }
.receipt-card .secondary-button { width: 100%; justify-content: center; }
.completed-empty { grid-column: 1 / -1; min-height: 260px; padding: 40px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed rgba(35,119,97,.18); border-radius: 22px; background: rgba(255,255,255,.38); }
.completed-empty > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #1a7b65; background: rgba(218,242,233,.78); }
.completed-empty svg { width: 21px; height: 21px; }
.completed-empty h3 { margin: 15px 0 6px; font-size: 13px; }
.completed-empty p { max-width: 380px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

/* Kundesignering */
.status-signed { color:#126d59; background:#dcf1e9; }
.status-signature_pending { color:#84611e; background:#f5ead2; }
.signature-confirmed,.signature-pending { margin:17px 0; padding:13px; display:grid; grid-template-columns:34px 1fr auto; gap:11px; align-items:center; border:1px solid rgba(24,128,101,.16); border-radius:14px; background:rgba(222,244,236,.62); }
.signature-pending { grid-template-columns:34px 1fr; border-color:rgba(185,137,51,.16); background:rgba(250,239,214,.58); }
.signature-confirmed > span,.signature-pending > span,.signature-sent-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#178068; }
.signature-pending > span { color:#8b641f; background:#f2dfb8; }
.signature-confirmed svg,.signature-pending svg,.signature-sent-icon svg { width:16px; height:16px; }
.signature-confirmed strong,.signature-confirmed small,.signature-pending strong,.signature-pending small { display:block; }
.signature-confirmed strong,.signature-pending strong { font-size:9px; }
.signature-confirmed small,.signature-pending small { margin-top:3px; color:var(--muted); font-size:8px; }
.signature-sent-icon { width:46px; height:46px; margin-bottom:17px; }
.signature-link-box { margin:20px 0 12px; padding:10px; display:grid; grid-template-columns:1fr auto; gap:9px; align-items:center; border:1px solid rgba(50,91,81,.13); border-radius:12px; background:rgba(244,248,246,.78); }
.signature-link-box > span { overflow:hidden; color:#667a75; text-overflow:ellipsis; white-space:nowrap; font:8px ui-monospace,SFMono-Regular,Menlo,monospace; }
.signature-legal-note,.signature-disclosure { color:#758681; font-size:8px; line-height:1.55; }
.signature-proof { margin:20px 0; padding:20px; display:grid; place-items:center; border:1px solid rgba(45,89,78,.12); border-radius:16px; background:rgba(249,251,250,.76); }
.signature-proof img { width:min(100%,480px); height:130px; object-fit:contain; }
.signature-proof strong,.signature-proof small { display:block; margin-top:6px; }
.signature-proof small { color:var(--muted); font-size:8px; }
.signature-audit { display:grid; gap:8px; }
.signature-audit span { padding:10px 12px; display:grid; grid-template-columns:130px 1fr; gap:10px; border-radius:10px; color:var(--muted); background:rgba(238,244,241,.66); font-size:8px; }
.signature-audit strong { overflow-wrap:anywhere; color:var(--ink); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }

.signing-gate { min-height:100vh; padding:0 5vw 24px; overflow:hidden; background:radial-gradient(circle at 8% 20%,rgba(244,190,86,.25),transparent 30%),radial-gradient(circle at 88% 18%,rgba(82,207,176,.25),transparent 33%),radial-gradient(circle at 62% 90%,rgba(111,172,205,.18),transparent 31%),linear-gradient(135deg,#f3f0e6,#e4efeb 54%,#edf1e8); }
.signing-header,.signing-footer { max-width:1400px; margin:auto; display:flex; align-items:center; justify-content:space-between; }
.signing-header { min-height:105px; }
.signing-header .auth-brand { padding:0; }
.signing-layout { width:min(1180px,100%); min-height:calc(100vh - 190px); margin:auto; display:grid; grid-template-columns:minmax(290px,.8fr) minmax(480px,1.2fr); gap:70px; align-items:center; }
.signing-intro h1 { font-size:clamp(42px,5vw,66px); line-height:.97; }
.signing-intro h1 em { color:#168169; font-style:normal; }
.signing-intro > p:not(.eyebrow) { max-width:470px; margin:22px 0; color:#536d66; font-size:14px; line-height:1.7; }
.signing-trust { display:grid; gap:10px; color:#294f47; font-size:11px; font-weight:700; }
.signing-card { min-height:520px; padding:30px; border:1px solid rgba(255,255,255,.83); border-radius:28px; background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(242,249,246,.47)); box-shadow:0 30px 80px rgba(28,72,61,.15),inset 0 1px rgba(255,255,255,.96); backdrop-filter:blur(30px) saturate(145%); -webkit-backdrop-filter:blur(30px) saturate(145%); }
.signing-loading { min-height:450px; display:grid; place-items:center; align-content:center; gap:15px; color:#5f756f; }
.signing-loading i { width:34px; height:34px; border:3px solid rgba(23,118,94,.15); border-top-color:#17765e; border-radius:50%; animation:signSpin .8s linear infinite; }
@keyframes signSpin { to { transform:rotate(360deg); } }
.signing-card-head { display:flex; justify-content:space-between; gap:20px; }
.signing-card-head h2 { margin:10px 0 5px; font:500 28px Georgia,serif; }
.signing-card-head p { margin:0; color:var(--muted); font-size:9px; }
.signing-offer-details { margin:23px 0 15px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.signing-offer-details > div { padding:12px; border:1px solid rgba(55,93,83,.10); border-radius:12px; background:rgba(255,255,255,.48); }
.signing-offer-details span,.signing-offer-details strong { display:block; }
.signing-offer-details span { margin-bottom:5px; color:var(--muted); font-size:8px; }
.signing-offer-details strong { font-size:10px; }
.signing-note { padding:12px; border-radius:12px; background:rgba(239,244,242,.68); }
.signing-note span { color:var(--muted); font-size:8px; }
.signing-note p { margin:5px 0 0; font-size:9px; line-height:1.5; }
.signing-document-hash { margin:14px 0 18px; padding:10px 12px; display:grid; grid-template-columns:26px 1fr; gap:9px; align-items:center; border:1px solid rgba(22,124,99,.12); border-radius:11px; background:rgba(223,243,235,.55); }
.signing-document-hash > span { color:#168069; }
.signing-document-hash svg { width:16px; height:16px; }
.signing-document-hash p,.signing-document-hash strong,.signing-document-hash small { display:block; margin:0; }
.signing-document-hash strong { font-size:8px; }
.signing-document-hash small { max-width:430px; margin-top:3px; overflow:hidden; color:#6d837d; font:6px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow:ellipsis; white-space:nowrap; }
.signing-name { display:grid; gap:7px; color:#435f58; font-size:9px; font-weight:750; }
.signing-name input { width:100%; min-height:43px; padding:0 13px; border:1px solid rgba(57,91,83,.15); border-radius:11px; outline:0; background:rgba(255,255,255,.66); }
.signature-pad-head { margin:16px 0 7px; display:flex; align-items:center; justify-content:space-between; color:#435f58; font-size:9px; font-weight:750; }
.signature-pad-head button { padding:0; border:0; color:#17765e; background:none; font-size:8px; cursor:pointer; }
#signatureCanvas { width:100%; height:145px; display:block; border:1px solid rgba(49,88,78,.17); border-radius:13px; background:rgba(255,255,255,.75); box-shadow:inset 0 1px 6px rgba(30,68,59,.04); cursor:crosshair; touch-action:none; }
.signing-consent { margin:15px 0 8px; display:grid; grid-template-columns:17px 1fr; gap:9px; align-items:start; font-size:9px; line-height:1.5; }
.signing-consent input { margin:2px 0 0; accent-color:#17765e; }
.signing-submit { width:100%; margin-top:12px; }
.signing-success,.signing-unavailable { min-height:455px; display:grid; place-items:center; align-content:center; text-align:center; }
.signing-success > span { width:64px; height:64px; margin-bottom:20px; display:grid; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(145deg,#45ad90,#14725d); box-shadow:0 14px 34px rgba(20,114,93,.23); }
.signing-success > span svg { width:28px; height:28px; }
.signing-success h2,.signing-unavailable h2 { margin:8px 0 10px; font:500 32px Georgia,serif; }
.signing-success p,.signing-unavailable p { max-width:470px; margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.signing-footer { min-height:70px; color:#6e827c; font-size:8px; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 610px; gap: 45px; padding-top: 55px; }
  .auth-hero { text-align: center; }
  .auth-hero > p { margin-inline: auto; }
  .auth-benefits { width: fit-content; margin-inline: auto; text-align: left; }
  .auth-price { margin-inline: auto; }
  .auth-footer { margin-top: 25px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-toolbar-controls { width: 100%; }
  .admin-search { width: 100%; }
  .completed-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .signing-layout { grid-template-columns:1fr; gap:35px; padding:35px 0; }
  .signing-intro { text-align:center; }
  .signing-intro > p:not(.eyebrow),.signing-trust { margin-left:auto; margin-right:auto; }
}

@media (max-width: 600px) {
  .auth-gate { padding: 18px 14px; }
  .auth-brand { font-size: 11px; }
  .auth-brand .brand-mark { width: 32px; height: 32px; }
  .auth-layout { padding: 50px 0 24px; }
  .auth-hero h1 { font-size: 44px; }
  .auth-hero > p { font-size: 14px; }
  .auth-card { min-height: 525px; padding: 23px; border-radius: 24px; }
  .auth-legal { left: 23px; right: 23px; }
  .auth-footer { flex-direction: column; gap: 6px; }
  .logout-button { padding-inline: 8px; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-toolbar-controls { align-items: stretch; flex-direction: column; }
  .admin-status-filter select { width: 100%; }
  .admin-danger-zone { align-items: stretch; flex-direction: column; }
  .completed-summary,.completed-grid { grid-template-columns: 1fr; }
  .signing-gate { padding:0 14px 20px; }
  .signing-header { min-height:80px; }
  .signing-card { min-height:0; padding:20px; border-radius:22px; }
  .signing-offer-details { grid-template-columns:1fr; }
  .signing-header .secure-access-pill { display:none; }
  .signing-footer { flex-direction:column; justify-content:center; gap:5px; }
  .signature-confirmed { grid-template-columns:32px 1fr; }
  .signature-confirmed button { grid-column:1 / -1; }
}
