:root {
  /* DB Financial Consulting brand palette (Brand guide) */
  --plum: #1E1530;      /* Midnight plum: main text, dark backgrounds */
  --violet: #3B1F6B;    /* Deep violet */
  --purple: #6A3BB8;    /* Royal purple: signature colour */
  --lavender: #C9BEE6;  /* text on dark */
  --silver: #BDB8CB;
  --platinum: #DCD8E6;  /* borders */
  --pearl: #F3F2F7;     /* light backgrounds */
  --ink: var(--plum); --muted: #4F4763; --bg: var(--pearl); --card: #fff; --line: var(--platinum);
  --brand: var(--purple);
  --btn: linear-gradient(135deg, #7C4DD1, #4B238F);
  --btn-hover: linear-gradient(135deg, #6A3BB8, #3B1F6B);
  --go: #1a7f37; --ok-bg: #e8f5ec; /* green kept only for "received" confirmations */
  --err: #b42318;
  --radius: 14px;
  --head: "Outfit", "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 20px; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
[hidden] { display: none !important; }
.top { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; background: linear-gradient(120deg, #140E22, #3B1F6B 60%, #4A2382); color: #fff; }
.logo-img { height: 52px; width: auto; display: block; }
.top-actions { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.top .link-btn { color: #fff; font-size: 1rem; text-decoration-color: var(--lavender); }
main { max-width: 860px; margin: 0 auto; padding: 32px 20px 48px; outline: none; }
.card { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: 0 2px 10px rgba(0,0,0,.06); max-width: 560px; margin: 0 auto; }
h1, h2, .drop-text, .success-title, .notice-title { font-family: var(--head); }
h1 { font-size: 1.8rem; margin: 0 0 8px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; }
.step { margin: 0 0 4px; font-weight: 700; color: var(--brand); }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input { width: 100%; font-size: 1.15rem; padding: 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(106,59,184,.25); }
.code-input { font-size: 1.8rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font-family: inherit; }
.btn { font-family: var(--head); display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 60px; padding: 14px 28px; font-size: 1.15rem; font-weight: 700; border-radius: 12px; border: 0; cursor: pointer; }
.btn:focus-visible, .link-btn:focus-visible { outline: 4px solid #ffbf47; outline-offset: 2px; }
.btn.primary { background: var(--btn); color: #fff; width: 100%; margin-top: 16px; box-shadow: 0 4px 12px rgba(75,35,143,.25); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.primary.big { width: auto; min-width: 280px; }
.btn.secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); min-height: 52px; font-size: 1rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.error { color: var(--err); font-weight: 600; min-height: 1.5em; margin: 8px 0 0; }
.help { color: var(--muted); margin: 16px 0 0; }
.muted { color: var(--muted); }

.drop { border: 4px dashed var(--brand); border-radius: var(--radius); background: #fff; padding: 40px 20px; text-align: center; transition: background .15s, border-color .15s; }
.drop.over { background: #efe9fa; border-color: var(--purple); border-style: solid; }
.drop-icon { width: 72px; height: 72px; fill: var(--brand); }
.drop-text { font-size: 1.5rem; font-weight: 700; margin: 8px 0 0; }
.drop-or { color: var(--muted); margin: 4px 0; }
.drop-hint { color: var(--muted); margin: 16px 0 0; font-size: .95rem; }

#status { margin-top: 20px; display: grid; gap: 10px; }
.up { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.up-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.up-name { overflow-wrap: anywhere; }
.bar { height: 12px; background: #e2e8f0; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.up.ok { border-color: var(--go); background: var(--ok-bg); }
.up.ok .bar > span { background: var(--go); }
.up.fail { border-color: var(--err); background: #fdecea; }
.up-msg { margin: 6px 0 0; }
.up.fail .up-msg { color: var(--err); }

.success { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding: 20px; border-radius: var(--radius); background: var(--ok-bg); border: 3px solid var(--go); }
.success svg { flex: none; width: 56px; height: 56px; fill: #fff; background: var(--go); border-radius: 50%; padding: 8px; }
.success p { margin: 0; }
.success-title { font-size: 1.25rem; font-weight: 800; }

.file-list, .client-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-list li, .client-list li { background: #fff; border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.file-list .when, .client-list .when { color: var(--muted); }

.firm-bar { display: flex; gap: 12px; margin: 16px 0; }
.firm-bar input { flex: 1; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); }
.firm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.firm-table th, .firm-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.firm-table th { background: var(--pearl); color: var(--plum); }
.firm-table .new { display: inline-block; background: var(--purple); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.firm-table .btn.secondary { min-height: 44px; padding: 8px 16px; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 200px; font-size: 1rem; padding: 12px; }

.foot { background: var(--plum); color: var(--lavender); font-size: .9rem; margin-top: 24px; }
.foot-inner { max-width: 1100px; margin: 0 auto; padding: 28px 20px 36px; }
.foot p { margin: 0 0 6px; }
.foot-safe { color: #fff; font-weight: 600; }
.foot-small { font-size: .8rem; color: var(--silver); }
.foot a { color: #fff; }

@media (max-width: 600px) {
  html { font-size: 18px; }
  .logo-img { height: 34px; }
  .card { padding: 24px 18px; }
  .btn.primary.big { width: 100%; min-width: 0; }
  .drop { padding: 28px 14px; }
}

/* Phones and tablets: there is nothing to drag, so lead with the button. */
@media (pointer: coarse) {
  .drop-text, .drop-or { display: none; }
  .drop { border-style: solid; }
}

/* Keep me signed in */
.check { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; margin: 20px 0 0; cursor: pointer; }
.check input { width: 30px; height: 30px; flex: none; margin: 2px 0 0; accent-color: var(--purple); }
.check small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* Firm area */
main:has(.wide:not([hidden])) { max-width: 1100px; }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 2px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 4px solid transparent; padding: 12px 18px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; margin-bottom: -2px; }
.tab[aria-pressed="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.primary.small { width: auto; margin-top: 0; min-height: 52px; font-size: 1rem; }
.profile-form { background: #fff; border-radius: var(--radius); padding: 24px; margin: 16px 0 24px; border: 2px solid var(--brand); }
.profile-form h2 { margin: 0 0 16px; }
.profile-form input, .profile-form textarea { font-size: 1rem; padding: 12px; margin-bottom: 14px; }
.profile-form .check input { width: 26px; height: 26px; margin: 0; padding: 0; }
textarea { width: 100%; font: inherit; border: 2px solid var(--line); border-radius: 10px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.profile-form label:not(.check) { font-size: .9rem; margin-bottom: 4px; }
.form-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.client-search { margin: 8px 0 16px; font-size: 1rem; padding: 12px; }
.firm-table .sub { display: block; color: var(--muted); font-size: .85rem; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
tr.inactive td { opacity: .55; }
.sp-link { font-size: .8rem; display: block; margin-top: 4px; color: var(--muted); }
@media (max-width: 700px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* Header actions */
.top-actions { display: flex; gap: 20px; }

/* Yearly check banner */
.notice { background: #fff; border: 3px solid var(--purple); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.notice p { margin: 0 0 8px; }
.notice-title { font-size: 1.25rem; font-weight: 800; }
.notice-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.success.slim { margin: 0 0 24px; padding: 14px 20px; }


/* My details */
.back { margin-bottom: 16px; font-size: 1rem; }
.details-list { display: grid; gap: 14px; margin-top: 20px; }
.detail-card { background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-head h2 { margin: 0; font-size: 1.2rem; }
.detail-card dl { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; }
.detail-card dt { color: var(--muted); }
.detail-card dd { margin: 0; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.pending { display: inline-block; background: #f3eefc; color: var(--violet); border: 2px solid var(--purple); font-weight: 700; font-size: .85rem; padding: 2px 10px; border-radius: 999px; margin-top: 12px; }
.edit-card { max-width: none; margin: 24px 0 0; border: 3px solid var(--brand); }
.edit-card h2 { margin-top: 0; }
.edit-card input, .edit-card select, .edit-card textarea { margin-bottom: 16px; }
select { width: 100%; font-size: 1.15rem; padding: 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.proof-pick { background: #f6f3fc; border: 2px dashed var(--brand); border-radius: 12px; padding: 18px; margin-top: 8px; }
.proof-label { font-weight: 800; margin: 0 0 4px; }
.req { color: var(--err); font-weight: 600; font-size: .9rem; }
.proof-chosen { font-weight: 700; color: var(--go); margin: 10px 0 0; }
@media (max-width: 600px) { .detail-card dl { grid-template-columns: minmax(0, 1fr); } .detail-card dd { margin-bottom: 8px; } }

/* Firm: detail changes */
.count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--purple); color: #fff; font-size: .8rem; text-align: center; }
.change-card { background: #fff; border-radius: var(--radius); padding: 20px; margin: 16px 0; border: 2px solid var(--purple); }
.change-card header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.change-card header strong { font-size: 1.1rem; }
.change-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: pre-line; }
.compare tr.changed td { background: #f3eefc; }
.compare tr.changed td:last-child { font-weight: 700; }
.proof-box { border: 2px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; background: var(--pearl); }
.proof-box svg { width: 54px; height: 54px; fill: var(--brand); }
.proof-box p { margin: 6px 0; overflow-wrap: anywhere; }
.proof-none { color: var(--muted); font-style: italic; }
.decide { margin-top: 16px; display: grid; gap: 12px; }
.decide .check { margin: 0; font-size: .95rem; }
.decide .check input { width: 24px; height: 24px; }
.decide textarea { font-size: .95rem; padding: 10px; }
.safety { background: #fdecea; border-left: 5px solid var(--err); padding: 10px 14px; border-radius: 6px; font-size: .9rem; margin: 0; }
.decision-ok { color: var(--go); font-weight: 700; }
.decision-no { color: var(--err); font-weight: 700; }
@media (max-width: 800px) { .change-grid { grid-template-columns: minmax(0, 1fr); } }

/* Staff sign-in with Microsoft (uses the firm's Microsoft 365 MFA) */
.staff-signin { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.staff-signin p { margin: 0; }
.btn.ms { min-height: 44px; padding: 8px 16px; font-size: .9rem; background: #fff; color: #1f1f1f; border: 1px solid #8c8c8c; border-radius: 4px; text-decoration: none; font-weight: 600; }
.btn.ms svg { width: 18px; height: 18px; }

/* ===== Version 2: home tiles, requests, progress, messages, services, language ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small-print { font-size: .85rem; }
.lang-btn { background: rgba(255,255,255,.12); color: #fff; border: 2px solid var(--lavender); border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; min-height: 44px; }
.lang-btn:hover { background: rgba(255,255,255,.22); }
.lang-btn:focus-visible { outline: 4px solid #ffbf47; outline-offset: 2px; }
.top-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* Home */
.attention { display: grid; gap: 10px; margin: 0 0 24px; }
.att { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-weight: 700; font-size: 1.1rem;
  background: #fff; color: var(--violet); border: 3px solid var(--purple); border-radius: var(--radius); padding: 16px 20px; cursor: pointer; margin: 0; }
.att:hover { background: #f6f3fc; }
.att-go { white-space: nowrap; color: var(--purple); }
.att-ok { border-color: var(--go); color: var(--go); background: var(--ok-bg); cursor: default; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; cursor: pointer; min-height: 150px; box-shadow: 0 2px 8px rgba(30,21,48,.06); transition: border-color .15s, transform .1s; }
.tile:hover { border-color: var(--purple); transform: translateY(-1px); }
.tile:focus-visible { outline: 4px solid #ffbf47; outline-offset: 2px; }
.tile svg { width: 44px; height: 44px; fill: #fff; background: var(--btn); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.tile-title { font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.tile-sub { color: var(--muted); font-size: .9rem; }
.badge { position: absolute; top: 14px; right: 14px; min-width: 2em; height: 2em; border-radius: 999px; background: #c2410c; color: #fff; font-weight: 800; display: grid; place-items: center; padding: 0 8px; }

/* Upload tags */
.upload-tags { margin-bottom: 18px; }
.upload-tags select { font-size: 1rem; padding: 12px; }
.upload-tags label { font-size: .95rem; }

/* Requests */
.stack { display: grid; gap: 14px; }
.req-card { background: #fff; border: 2px solid var(--purple); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.req-card h2 { margin: 0; font-size: 1.2rem; }
.req-card p { margin: 4px 0 0; }
.req-card.overdue { border-color: #c2410c; }
.req-card.done { border-color: var(--line); grid-template-columns: minmax(0, 1fr); }
.req-card.done h2 { color: var(--go); }
.req-status { grid-column: 1 / -1; display: grid; gap: 8px; }
.success-title.small { font-size: 1.05rem; color: var(--go); margin: 0; }
@media (max-width: 600px) { .req-card { grid-template-columns: minmax(0, 1fr); } .req-card .btn { width: 100%; } }

/* Progress */
.year-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 8px; }
.year-tab { font: inherit; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--ink); }
.year-tab strong { display: block; font-family: var(--head); font-size: 1.1rem; }
.year-tab span { color: var(--muted); font-size: .8rem; }
.year-tab[aria-selected="true"] { border-color: var(--purple); background: #f3eefc; box-shadow: inset 0 -4px 0 var(--purple); }
.year-summary { background: var(--plum); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin: 16px 0; }
.year-summary h2 { margin: 0 0 8px; font-size: 1.15rem; color: #fff; }
.year-summary .muted { color: var(--lavender); margin: 0; }
.summary-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.summary-list .outcome { color: var(--lavender); }
.job-card { background: #fff; border-radius: var(--radius); padding: 20px 22px; margin: 0 0 14px; box-shadow: 0 1px 6px rgba(0,0,0,.05); border-left: 6px solid var(--purple); }
.job-card.complete { border-left-color: var(--go); }
.job-head { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: baseline; }
.job-head h3 { margin: 0; font-family: var(--head); font-size: 1.2rem; }
.job-head .muted { font-size: .85rem; }
.tracker { list-style: none; padding: 0; margin: 18px 0 8px; display: flex; gap: 0; counter-reset: s; }
.tracker li { flex: 1 1 0; position: relative; text-align: center; padding: 0 4px; font-size: .85rem; color: var(--muted); }
.tracker li::before { content: ''; position: absolute; top: 18px; left: -50%; width: 100%; height: 4px; background: var(--platinum); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.now::before { background: var(--purple); }
.tracker .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 3px solid var(--platinum); font-weight: 800; color: var(--muted); }
.tracker li.done .dot { background: var(--purple); border-color: var(--purple); color: #fff; }
.tracker li.now .dot { border-color: var(--purple); color: var(--purple); box-shadow: 0 0 0 5px rgba(106,59,184,.18); }
.tracker li.now .label { color: var(--ink); font-weight: 700; }
.tracker li.done .label { color: var(--ink); }
.tracker .label { display: block; line-height: 1.25; }
.tracker .when { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.job-card.complete .tracker li .dot { background: var(--go); border-color: var(--go); color: #fff; }
.job-card.complete .tracker li::before { background: var(--go); }
.job-note, .job-result, .job-sub { margin: 8px 0 0; }
.job-note { background: #f6f3fc; border-radius: 8px; padding: 10px 14px; }
.job-result { font-weight: 600; }
.job-card .link-btn { margin-top: 10px; font-size: .95rem; }
@media (max-width: 640px) {
  .year-tabs { grid-template-columns: minmax(0, 1fr); }
  .tracker { flex-direction: column; gap: 10px; }
  .tracker li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; text-align: left; align-items: center; }
  .tracker li::before { left: 18px; top: -14px; width: 4px; height: 18px; }
  .tracker .dot { margin: 0; grid-row: span 2; }
  .tracker .when { grid-column: 2; margin: 0; }
}

/* Messages */
.thread { display: grid; gap: 12px; margin: 8px 0 20px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.bubble.mine { justify-self: end; background: #efe9fa; border-bottom-right-radius: 4px; }
.bubble.theirs { justify-self: start; border-bottom-left-radius: 4px; border: 2px solid var(--platinum); }
.bubble-meta { margin: 0 0 4px; font-size: .8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bubble-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.compose { max-width: none; }
.compose textarea, #svc-note { font-size: 1.1rem; padding: 14px; }
.thread.small .bubble { max-width: 95%; font-size: .9rem; padding: 10px 12px; }
.thread.small { max-height: 420px; overflow-y: auto; padding: 4px; }

/* Services */
.svc-list { display: grid; gap: 10px; margin-bottom: 20px; }
.check.svc { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; align-items: center; }
.check.svc:has(input:checked) { border-color: var(--purple); background: #f6f3fc; }
.check.svc.owned { opacity: .7; cursor: default; }
.check.svc small { display: block; color: var(--go); font-weight: 600; }
.svc-tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.svc-tags li { background: #f3eefc; color: var(--violet); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.detail-card dd.empty { color: var(--muted); font-weight: 400; font-style: italic; }

/* Firm: inbox and client page */
.inbox-list { display: grid; gap: 8px; }
.inbox-row { background: #fff; border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.inbox-row .pill { margin-left: 8px; }
.inbox-text { margin: 4px 0 0; color: var(--muted); font-size: .9rem; white-space: pre-line; }
.overdue-text { color: #c2410c; font-weight: 700; white-space: nowrap; }
.link-btn.strong { font-weight: 700; text-decoration: none; color: var(--violet); }
.link-btn.strong:hover { text-decoration: underline; }
.link-btn.danger { color: var(--err); font-size: .9rem; }
td.attn { color: #c2410c; font-weight: 600; }
#panel-inbox h2 { font-size: 1.1rem; margin: 28px 0 10px; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.panel h2 { margin: 0 0 12px; font-size: 1.15rem; }
.panel .head-row { margin-bottom: 8px; }
.panel .head-row h2 { margin: 0; }
.panel .btn.secondary { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
.panel .btn.primary.small { min-height: 44px; font-size: .95rem; }
.panel .profile-form { margin: 8px 0 16px; padding: 16px; }
.panel select, .panel input:not([type=checkbox]), .panel textarea { font-size: .95rem; padding: 10px; }
.panel label:not(.check) { font-size: .85rem; margin-bottom: 4px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.grid3 > div > input, .grid3 > div > select { margin-bottom: 0; }
.job-edit { border: 2px solid var(--line); border-left: 6px solid var(--purple); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.job-edit.complete { border-left-color: var(--go); }
.job-edit h3 { margin: 0; font-size: 1.05rem; }
.job-edit .form-actions { align-items: center; margin-top: 10px; }
.mini-tracker { display: flex; gap: 4px; margin: 10px 0; }
.mini-tracker span { flex: 1; height: 8px; border-radius: 4px; background: var(--platinum); }
.mini-tracker span.done { background: var(--purple); }
.mini-tracker span.now { background: repeating-linear-gradient(45deg, var(--purple), var(--purple) 6px, var(--lavender) 6px, var(--lavender) 12px); }
.job-edit.complete .mini-tracker span { background: var(--go); }
.check.mini { margin: 0; font-size: .9rem; font-weight: 500; align-items: center; gap: 8px; }
.check.mini input { width: 20px; height: 20px; margin: 0; padding: 0; }
.svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 12px; margin: 0 0 12px; border: 0; padding: 0; }
.svc-pick legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.req-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.req-row.received strong { color: var(--go); }
.req-row .row-actions { font-size: .9rem; }
.mini-dl { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: .9rem; }
.mini-dl dt { color: var(--muted); }
.mini-dl dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
#cp-sub { margin: 0; }
#cp-msg-form textarea { margin-bottom: 4px; }
@media (max-width: 900px) { .cp-grid, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.req-row .sub, .inbox-row .sub { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) {
  .top { padding: 14px 16px; }
  .top-actions { gap: 10px 14px; }
  .top .link-btn { font-size: .9rem; }
  .lang-btn { padding: 6px 12px; font-size: .85rem; min-height: 40px; }
  #nav-home { display: none; } /* every client screen has a "Back to home" link */
}

/* Companies and trusts */
.context-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff; border: 2px solid var(--purple); border-radius: 999px; padding: 8px 18px; margin: 0 0 20px; font-size: .95rem; }
.context-bar strong { color: var(--violet); }
.whose { background: #fff; border-radius: var(--radius); padding: 18px 20px; margin: 0 0 20px; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.whose h2 { margin: 0 0 4px; font-size: 1.15rem; }
.whose p { margin: 0 0 12px; }
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.profile { position: relative; text-align: left; font: inherit; background: var(--pearl); border: 3px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; color: var(--ink); min-height: 76px; }
.profile strong { display: block; font-family: var(--head); font-size: 1.05rem; }
.profile span { color: var(--muted); font-size: .85rem; }
.profile[aria-checked="true"] { border-color: var(--purple); background: #f3eefc; box-shadow: inset 0 0 0 1px var(--purple); }
.profile[aria-checked="true"]::after { content: '✓'; position: absolute; top: 10px; right: 12px; color: var(--purple); font-weight: 800; font-size: 1.2rem; }
.profile .badge { position: static; display: inline-grid; margin-top: 6px; width: auto; height: auto; padding: 2px 10px; font-size: .8rem; color: #fff; }
.profile:focus-visible { outline: 4px solid #ffbf47; outline-offset: 2px; }
/* Contact card */
.contact-card { margin-top: 28px; background: var(--plum); color: #fff; border-radius: var(--radius); padding: 22px 24px; }
.contact-card h2 { margin: 0 0 4px; color: #fff; }
.contact-card p { margin: 0 0 14px; color: var(--lavender); }
.contact-card .muted { color: var(--silver); margin: 14px 0 0; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.contact { background: #fff; color: var(--violet); text-decoration: none; min-height: 56px; font-size: 1rem; padding: 12px 18px; }
.btn.contact svg { width: 24px; height: 24px; fill: var(--purple); flex: none; }
.btn.contact:hover { background: var(--pearl); }
@media (max-width: 600px) { .btn.contact { width: 100%; justify-content: flex-start; } }
/* Firm */
.kind-row { max-width: 360px; margin-bottom: 8px; }
.kind-row select, .profile-form select { font-size: 1rem; padding: 12px; margin-bottom: 14px; }
.link-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.link-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: .95rem; }
.firm-table .linked { display: block; font-size: .8rem; color: var(--violet); }
.profile .badge { margin-left: 6px; }

.links-card { margin-top: 28px; background: #fff; border: 1px solid var(--pearl); border-radius: var(--radius); padding: 22px 24px; }
.links-card h2 { margin: 0 0 4px; }
.links-card p { margin: 0 0 14px; }
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-height: 72px; border: 2px solid var(--lavender); border-radius: var(--radius); text-decoration: none; color: inherit; }
.link-tile strong { color: var(--violet); font-size: 1.1rem; }
.link-tile strong::after { content: " ↗"; }
.link-tile:hover, .link-tile:focus-visible { border-color: var(--purple); background: var(--pearl); }
@media (max-width: 600px) { .links-grid { grid-template-columns: 1fr; } }

.shared-list { display: grid; gap: 12px; }
.shared-year { margin: 18px 0 2px; font-size: 1.15rem; }
.shared-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.shared-card.is-new { border-color: var(--purple); }
.shared-card h3 { margin: 2px 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.shared-card p { margin: 2px 0; }
.shared-kind { color: var(--purple); font-weight: 700; font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.shared-note { color: var(--ink); }
.pill.new { background: #c2410c; color: #fff; border-color: #c2410c; }
.empty-note { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); }
.shared-card .btn { text-decoration: none; min-height: 52px; }
@media (max-width: 600px) { .shared-card { grid-template-columns: minmax(0, 1fr); } .shared-card .btn { width: 100%; justify-content: center; } }
.invite-panel { margin-bottom: 16px; }
.share-drop { border: 2px dashed var(--lavender); border-radius: var(--radius); padding: 14px; text-align: center; }
.share-drop.over { border-color: var(--purple); background: var(--pearl); }
.form-msg { min-height: 1.4em; margin: 8px 0 0; font-weight: 600; color: var(--muted); }
.form-msg.error { color: var(--err); }
.form-msg.ok { color: var(--go); }

/* ==========================================================================
   v3: calmer look. Fewer borders and shadows, more white space, one accent.
   Breakpoints: phone < 600px, tablet 600–1023px, desktop >= 1024px.
   ========================================================================== */
html { font-size: 18px; }
body { background: #F7F6FA; }
.top { padding: 12px 20px; background: var(--plum); }
.logo-img { height: 40px; }
main { max-width: 760px; padding: 28px 20px 40px; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; margin: 28px 0 10px; }
.lead { font-size: 1rem; margin: 0 0 18px; }
.btn { min-height: 52px; font-size: 1.05rem; border-radius: 10px; }
.btn.primary { box-shadow: none; }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: .95rem; background: var(--btn); color: #fff; }
input { padding: 13px 14px; font-size: 1.05rem; border-width: 1.5px; }
.card { box-shadow: none; border: 1px solid var(--line); }

/* Home */
.home-head { margin-bottom: 14px; }
.home-head .lead { margin: 0; }
.whose { display: flex; align-items: center; gap: 10px; background: none; box-shadow: none; padding: 0; margin: 0 0 16px; }
.whose-label { font-size: .85rem; color: var(--muted); font-weight: 600; flex: none; }
.profiles { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.profiles::-webkit-scrollbar { display: none; }
.profile { flex: none; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; display: flex; align-items: center; gap: 8px; }
.profile strong { font-size: .95rem; display: inline; }
.profile span { display: none; }
.profile .badge { display: inline-grid !important; margin: 0; padding: 0 7px; min-width: 1.5em; height: 1.5em; font-size: .75rem; }
.profile[aria-checked="true"] { background: var(--plum); border-color: var(--plum); color: #fff; box-shadow: none; }
.profile[aria-checked="true"]::after { content: none; }

.notice.slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; border: 0; background: #EFE9FA; padding: 14px 18px; margin: 0 0 16px; border-radius: 12px; }
.notice.slim p { margin: 0; }
.notice.slim .notice-actions { margin: 0; align-items: center; gap: 16px; }
.success.slim { border-width: 0; border-radius: 12px; }

.attention { gap: 0; margin: 0 0 18px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.attention:empty { display: none; }
.att { border: 0; border-radius: 0; background: #fff; font-size: 1rem; padding: 14px 18px; min-height: 52px; }
.att + .att { border-top: 1px solid var(--line); }
.att::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #c2410c; margin-right: 4px; }
.att > span:first-child { flex: 1; }
.att-ok { background: #fff; color: var(--go); font-weight: 600; }
.att-ok::before { background: var(--go); }

.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { flex-direction: row; align-items: center; gap: 14px; padding: 16px; min-height: 84px; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.tile:hover { border-color: var(--purple); transform: none; }
.tile svg { flex: none; width: 40px; height: 40px; padding: 8px; margin: 0; border-radius: 10px; background: #EFE9FA; fill: var(--purple); }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-title { font-size: 1.02rem; line-height: 1.25; }
.tile-sub { font-size: .82rem; line-height: 1.3; margin-top: 2px; }
.tile .badge { top: 10px; right: 10px; min-width: 1.6em; height: 1.6em; font-size: .75rem; padding: 0 6px; }
.home-more { margin: 14px 0 0; font-size: .95rem; }

.home-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0; }
.mini-card h2 { margin: 0 0 10px; font-size: 1rem; color: var(--ink); }
.mini-card .small-print { margin: 10px 0 0; font-size: .8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--violet); font-weight: 600; text-decoration: none; font-size: .95rem; }
.chip-link:hover, .chip-link:focus-visible { border-color: var(--purple); background: #F7F4FD; }
.contact-card.mini-card { background: #fff; color: var(--ink); margin: 0; }
.contact-card.mini-card h2 { color: var(--ink); }
.contact-card .contact-actions { flex-direction: column; gap: 6px; }
.contact-card .btn.contact { min-height: 44px; padding: 6px 0; background: none; border: 0; font-family: inherit; font-weight: 600; font-size: .95rem; color: var(--violet); justify-content: flex-start; width: auto; }
.contact-card .btn.contact svg { width: 20px; height: 20px; }
.contact-card .btn.contact:hover { text-decoration: underline; background: none; }

.foot { background: transparent; color: var(--muted); border-top: 1px solid var(--line); margin-top: 32px; }
.foot-inner { max-width: 760px; padding: 18px 20px 28px; }
.foot-safe { color: var(--muted); font-weight: 500; font-size: .85rem; }
.foot-small { color: var(--muted); font-size: .75rem; }
.foot a { color: var(--violet); }

/* Other client screens: lighter cards */
.req-card, .shared-card, .detail-card, .job-card, .bubble, .svc-item { box-shadow: none !important; }
.req-card, .shared-card { border-width: 1px; }
.req-card { border-color: var(--line); }
.shared-card.is-new { border-color: var(--purple); }

/* Tablet (600–1023px) */
@media (min-width: 600px) and (max-width: 1023px) {
  main { max-width: 900px; padding: 32px 28px 44px; }
  .foot-inner { max-width: 900px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { flex-direction: column; align-items: flex-start; min-height: 128px; }
}
/* Desktop */
@media (min-width: 1024px) {
  main { max-width: 880px; }
  .foot-inner { max-width: 880px; }
}
/* Phone (< 600px) */
@media (max-width: 599px) {
  html { font-size: 17px; }
  .top { padding: 10px 16px; }
  .logo-img { height: 32px; }
  main { padding: 20px 16px 32px; }
  h1 { font-size: 1.45rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 108px; padding: 14px; }
  .tile-sub { display: none; }
  .tile-title { font-size: .98rem; }
  .home-extra { grid-template-columns: 1fr; }
  .notice.slim .btn.small { width: 100%; }
  .notice.slim .notice-actions { width: 100%; justify-content: space-between; }
}
.att { font-weight: 600; }
@media (max-width: 599px) {
  .att { font-size: .95rem; padding: 12px 14px; }
  .att-go { font-size: 0; }
  .att-go::after { content: '›'; font-size: 1.6rem; line-height: 1; color: var(--purple); }
}
/* Progress: lighter */
.context-bar { border: 1px solid var(--line); padding: 6px 16px; font-size: .9rem; }
.year-tabs { display: flex; gap: 8px; margin: 24px 0 8px; overflow-x: auto; }
.year-tab { flex: 1 1 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: none; min-height: 48px; }
.year-tab strong { font-size: 1rem; }
.year-tab[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; box-shadow: none; }
.year-tab[aria-selected="true"] span { color: var(--lavender); }
.year-summary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.year-summary h2 { color: var(--ink); }
.year-summary .muted, .summary-list .outcome { color: var(--muted); }
.job-card { box-shadow: none; border: 1px solid var(--line); border-left: 4px solid var(--purple); padding: 18px 20px; }
.job-card.complete { border-left-color: var(--go); }
/* Finished work: just the result, no step-by-step tracker */
.job-card.complete .tracker { display: none; }
.job-card.complete .job-head h3::after { content: '  ✓ Done'; font-family: inherit; font-size: .8rem; font-weight: 600; color: var(--go); white-space: nowrap; }
@media (max-width: 599px) {
  .year-tab { text-align: center; padding: 10px 8px; }
  .year-tab span { display: none; }
  .context-bar { border-radius: 12px; }
}
/* My information: grouped */
.info-group { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 14px; }
.info-group > h2 { margin: 0 0 6px; font-size: 1.1rem; }
.info-block { padding: 10px 0; }
.info-block + .info-block { border-top: 1px solid var(--line); }
.info-block dl { margin: 0; display: grid; gap: 4px; }
.info-row { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 2px 16px; }
.info-row dt { color: var(--muted); font-size: .9rem; font-weight: 500; }
.info-row dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.info-row dd.empty { color: var(--muted); font-style: italic; }
.info-block > .muted { margin: 0; font-size: .95rem; }
.info-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.edit-btn { font-weight: 600; min-height: 44px; }
.edit-btn[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.info-actions .pending { font-size: .85rem; color: #8a5a00; }
#svc-section select, #svc-section textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 14px; }
#svc-section label { font-size: .9rem; margin-bottom: 4px; }
.entity-title { margin: 0 0 12px; }
@media (max-width: 599px) { .info-row { grid-template-columns: minmax(0, 1fr); } .info-row dd { margin-bottom: 6px; } }
/* Documents grouped by tax year, then type */
.doc-groups { display: grid; gap: 10px; }
.doc-year { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 12px; }
.doc-year > summary { cursor: pointer; font-family: var(--head); font-weight: 700; padding: 12px 0 8px; min-height: 44px; list-style-position: outside; }
.doc-type { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--purple); margin: 14px 0 6px; font-family: inherit; }
.doc-year .shared-card { margin-bottom: 8px; }
.doc-year .shared-card h4 { margin: 0 0 2px; font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.doc-year .file-list { margin: 0; }
.firm-table tr.type-row th { background: #F3F2F7; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--purple); padding: 6px 10px; }
.dl-group { grid-column: 1 / -1; font-weight: 700; color: var(--purple); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.grid3.upload-tags { margin-bottom: 16px; }
.upload-tags select { width: 100%; }
@media (max-width: 900px) { .grid3.upload-tags { grid-template-columns: minmax(0, 1fr); } }

/* Terms and privacy pages */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; font-size: .9rem; }
.legal h1 { font-family: var(--head); margin: 12px 0 4px; }
.legal h2 { font-family: var(--head); font-size: 1.05rem; margin: 28px 0 8px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); }
.legal-meta { color: var(--muted); font-size: .8rem; margin-top: 0; }
.legal-links { margin-top: 32px; }
.draft-note { background: #fff7d6; border: 1px solid #e0b400; border-radius: 10px; padding: 10px 14px; font-size: .85rem; }
.foot-links { font-size: .8rem; }
.foot-links a, .agree-note a { color: var(--brand); }
.agree-note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* Upload: choose details, add files, then submit */
.up-step { font-size: 1.05rem; margin: 22px 0 10px; }
.up-pending { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.up-pending li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.pending-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
#pending-box { margin-top: 8px; }
#up-submit[disabled] { opacity: .5; cursor: not-allowed; }

/* Client details per type (from the onboarding forms) */
.info-sub { font-size: .95rem; margin: 0 0 6px; color: var(--muted); }
.info-block + .info-block { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row-list li { display: flex; flex-direction: column; }
.row-list .muted { font-size: .8rem; }
.info-row.wide { grid-column: 1 / -1; }
.list-label { font-weight: 600; margin: 14px 0 6px; }
.list-edit { display: grid; gap: 10px; margin-bottom: 8px; }
.list-rows { display: grid; gap: 10px; }
.list-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--pearl); }
.list-row label { font-size: .8rem; }
.small-btn { padding: 6px 14px; font-size: .85rem; justify-self: start; }
fieldset.checks { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 12px 0; }
fieldset.checks legend { font-weight: 600; padding: 0 4px; }
fieldset.checks .check { margin: 4px 0; }
td.pre, dd.pre { white-space: pre-line; }

/* Layout guards: nothing may push the firm client page wider than its columns */
.cp-main, .cp-side, .cp-main > *, .cp-side > * { min-width: 0; }
.table-wrap { max-width: 100%; }
.firm-table td { overflow-wrap: anywhere; }
.firm-table td:first-child, .firm-table td:last-child { white-space: nowrap; overflow-wrap: normal; }
.cp-side .link-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cp-side .link-form > :first-child { grid-column: 1 / -1; }
.cp-side .link-form select { width: 100%; text-overflow: ellipsis; }

/* Bulk import and export */
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bulk-steps { margin: 8px 0 16px; padding-left: 1.3em; line-height: 1.6; }
.bulk-summary { font-weight: 600; margin: 14px 0 8px; }
.bulk-table td { vertical-align: top; }
.bulk-table td:first-child { width: 3em; }
.bulk-pill-add { background: #dcfce7; color: #166534; }
.bulk-pill-update { background: #ede9fe; color: #5b21b6; }
.bulk-pill-error { background: #fee2e2; color: #991b1b; }
#bulk-msg:empty { display: none; }
.bulk-table { table-layout: fixed; }
.bulk-table th:nth-child(1) { width: 3.5em; } .bulk-table th:nth-child(2) { width: 28%; } .bulk-table th:nth-child(3) { width: 9.5em; }
.bulk-table td, .bulk-table td:first-child, .bulk-table td:last-child { white-space: normal; overflow-wrap: break-word; }
.bulk-table .pill { white-space: nowrap; }
