/* BAYON/DueDigit application styles extracted from index.html in v0.21.0. */

:root{--bg:#f4f5f7;--panel:#fff;--ink:#15181d;--muted:#6b7280;--line:#e4e7eb;--nav:#10141b;--gold:#c7a85a;--green:#087a55;--amber:#9a6700;--red:#b42318;--blue:#175cd3}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial;background:var(--bg);color:var(--ink)}
header{background:var(--nav);color:#fff;padding:16px 22px;position:sticky;top:0;z-index:20;box-shadow:0 2px 12px #0002}
.bar{max-width:1250px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px}
.logo{font-weight:850;letter-spacing:5px;font-size:24px}.version{color:#d6d9de;font-size:12px;margin-top:2px}
.ai{font-size:12px;border:1px solid #ffffff33;border-radius:999px;padding:7px 10px}.ai.ready{color:#b9f4dd;border-color:#2d8369}.ai.off{color:#ffd59c;border-color:#8c632b}
main{max-width:1250px;margin:auto;padding:24px}.hero{display:flex;justify-content:space-between;gap:20px;align-items:end}.hero h1{font-size:30px;margin:0 0 5px}.hero p{margin:0;color:var(--muted)}
button,.button{border:0;background:var(--nav);color:#fff;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block;font-size:14px}
.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.tiny{padding:7px 9px;font-size:12px}.blue{background:var(--blue)}.danger{background:var(--red)}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:11px;margin:20px 0}
.metric,.panel{background:var(--panel);border:1px solid var(--line);border-radius:15px}.metric{padding:15px}.metric .k{font-size:12px;text-transform:uppercase;color:var(--muted);letter-spacing:.05em}.metric .v{font-size:26px;font-weight:800;margin:5px 0}.hint,.small{font-size:12px;color:var(--muted)}
.panel{padding:19px;margin:14px 0}.panel h2{margin:0 0 4px;font-size:20px}
.upload{border:2px dashed #c8ced7;border-radius:15px;margin-top:14px;padding:22px;text-align:center;background:#fbfcfd}.actions{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:13px}input[type=file]{display:none}
select,input,textarea{width:100%;padding:9px 10px;border:1px solid #d7dbe1;border-radius:9px;background:white;color:var(--ink)}
.mode{width:auto;min-width:230px}
.notice{margin-top:12px;border-radius:10px;padding:11px 13px;background:#fff8e6;border:1px solid #f0d79a;color:#6c4b00;font-size:12px}
.success{background:#ecfdf3;border-color:#abefc6;color:#05603a}.error{background:#fef3f2;border-color:#fecdca;color:#912018}
.tablewrap{overflow:auto;margin-top:12px}table{width:100%;border-collapse:collapse;min-width:1100px}th,td{padding:11px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;font-size:13px}th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.filename{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.money{font-variant-numeric:tabular-nums}.confidence{white-space:nowrap}
.pill{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}.pill.ok{background:#e8f7f0;color:#067647}.pill.review{background:#fff1cc;color:#7a4d00}.pill.processing{background:#eef4ff;color:#175cd3}
.reason{max-width:210px;color:#8a5a00;font-size:11px;margin-top:4px}.docActions{display:flex;gap:5px;flex-wrap:wrap}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.taxcontrols{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.taxmode{background:#fff;color:var(--ink);border:1px solid var(--line)}.taxmode.active{background:#245f3d;color:#fff;border-color:#245f3d}.taxmetric{border-color:#c8dfd0}.taxdetail{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px}.taxdetail>div{min-width:140px}.taxlabel{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.taxvalue{font-weight:800;margin-top:2px}.filter{background:#fff;color:var(--ink);border:1px solid var(--line)}.filter.active{background:var(--nav);color:#fff}
.modal{position:fixed;inset:0;background:rgba(11,45,92,.45);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:20px;z-index:50;-webkit-tap-highlight-color:transparent}.modal.open{display:flex}.dialog{width:min(1050px,96vw);max-height:92vh;overflow:auto;background:white;border-radius:16px;padding:19px}
.dialogHead{display:flex;justify-content:space-between;gap:15px;align-items:center}.reviewLayout{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:22px;margin-top:14px;align-items:start}
.preview{background:#f6f7f9;border:1px solid var(--line);border-radius:12px;min-height:360px;display:flex;align-items:center;justify-content:center;overflow:hidden}.preview img{max-width:100%;max-height:610px;object-fit:contain}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.field label{display:block;font-size:11px;font-weight:750;color:var(--muted);text-transform:uppercase;margin-bottom:5px}.span2{grid-column:span 2}.field textarea{min-height:75px;resize:vertical}.modalActions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px;flex-wrap:wrap}
.foot{margin:24px 0;color:var(--muted);font-size:12px}
@media(max-width:900px){.metrics{grid-template-columns:repeat(2,1fr)}.reviewLayout{grid-template-columns:1fr}.hero{display:block}.mode{width:100%}}

.authscreen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px;background:linear-gradient(135deg,#0e131b 0%,#171d27 48%,#f4f5f7 48%)}
.authcard{width:min(930px,96vw);display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 25px 70px #0004}
.authbrand{background:#10141b;color:#fff;padding:46px;display:flex;flex-direction:column;justify-content:space-between;min-height:570px}
.authbrand .biglogo{font-size:38px;font-weight:900;letter-spacing:8px}.authbrand h1{font-size:36px;line-height:1.08;margin:34px 0 12px}.authbrand p{color:#cfd4dc;line-height:1.55}
.authform{padding:42px}.authform h2{margin:0 0 7px;font-size:28px}.authform .lead{color:var(--muted);margin-bottom:22px}
.authfield{margin:12px 0}.authfield label{display:block;font-size:12px;color:var(--muted);font-weight:750;margin-bottom:6px}.authfield input{padding:12px}.authcheck{display:flex;gap:8px;align-items:flex-start;margin-top:12px;font-size:13px;font-weight:600;line-height:1.4}.authcheck input{width:auto;min-height:0;margin-top:2px}
.authsubmit{width:100%;padding:12px;margin-top:8px}.authswitch{text-align:center;margin-top:15px;font-size:13px;color:var(--muted)}.authswitch button{background:transparent;color:var(--blue);padding:0}
.authmsg{margin-top:14px;padding:11px;border-radius:10px;font-size:13px;display:none}.authmsg.show{display:block}.authmsg.bad{background:#fef3f2;color:#912018}.authmsg.good{background:#ecfdf3;color:#05603a}
.headerRight{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.userpill{font-size:12px;color:#e8ebef;border-left:1px solid #ffffff2b;padding-left:10px}.cloud{font-size:12px;border:1px solid #2d8369;border-radius:999px;padding:7px 10px;color:#b9f4dd}.cloud.bad{border-color:#8c632b;color:#ffd59c}
.cloudstate{font-size:11px;margin-top:4px}.cloudstate.synced{color:#067647}.cloudstate.error{color:#b42318}.cloudstate.pending{color:#175cd3}
@media(max-width:760px){.authcard{grid-template-columns:1fr}.authbrand{min-height:auto;padding:28px}.authbrand h1{font-size:28px}.authform{padding:28px}.headerRight{justify-content:flex-start}}

/* BAYON v0.14.0 — simplified user interface */
:root{
  --bg:#f4f5f7;
  --panel:#ffffff;
  --ink:#17202a;
  --muted:#707989;
  --line:#e1e6eb;
  --nav:#ffffff;
  --green:#23764b;
  --green-dark:#195d3a;
  --green-soft:#edf7f1;
  --light-blue:#69aee5;
  --light-blue-soft:#edf7ff;
  --red:#b42318;
}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink)}
header{
  background:var(--panel);
  color:var(--ink);
  border-bottom:1px solid var(--line);
  box-shadow:0 2px 10px #17202a0d;
}
.logo{color:var(--green-dark)}
.version{color:var(--muted)}
.ai,.cloud{background:var(--green-soft);color:var(--green-dark)!important;border-color:#bbd9c8!important}
.userpill{color:var(--muted);border-left-color:var(--line)}

main{max-width:1180px;padding:22px 20px 42px}
.hero{padding:18px 4px 8px}
.hero h1{
  color:var(--light-blue);
  font-size:34px;
  line-height:1.12;
  font-weight:800;
}
.hero p{font-size:15px;line-height:1.55}

.sectionTitle{
  color:var(--light-blue);
  font-size:22px;
  font-weight:800;
  margin:30px 2px 8px;
  scroll-margin-top:105px;
}
.simpleSection{scroll-margin-top:105px}
.panel{
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  box-shadow:0 1px 3px #17202a08;
}
.panel h2,
.panel h3,
.dialog h2,
.dialog h3{
  color:var(--light-blue);
  font-weight:800;
}
.panel h2{font-size:22px;margin-bottom:7px}
.panel h3{font-size:16px}
.small,.hint{line-height:1.45}

button,.button{
  background:var(--green);
  color:#fff;
  border:1px solid var(--green);
  min-height:42px;
  border-radius:12px;
  padding:10px 16px;
  font-size:14px;
  transition:background .15s ease,transform .05s ease,border-color .15s ease;
}
button:hover,.button:hover{background:var(--green-dark);border-color:var(--green-dark)}
button:active,.button:active{transform:translateY(1px)}
button:focus-visible,.button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid #a8d8f6;
  outline-offset:2px;
}
.secondary{
  background:#fff;
  color:var(--green-dark);
  border:1px solid #a9ccb9;
}
.secondary:hover{background:var(--green-soft);color:var(--green-dark);border-color:#86b59b}
.blue{background:var(--green);border-color:var(--green)}
.blue:hover{background:var(--green-dark)}
.danger{background:var(--red);border-color:var(--red)}
.danger:hover{background:#8f1d15;border-color:#8f1d15}
.tiny{min-height:34px;padding:6px 10px;font-size:12px}

.simpleNav{
  position:sticky;
  top:76px;
  z-index:15;
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding:10px 0 12px;
  margin:5px 0 12px;
  background:linear-gradient(var(--bg) 72%,transparent);
  scrollbar-width:none;
}
.simpleNav::-webkit-scrollbar{display:none}
.simpleNav button{
  flex:0 0 auto;
  min-width:115px;
  background:var(--green);
  border-color:var(--green);
}

.metrics{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:12px;
  margin:8px 0 18px;
}
.metric{
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:0 1px 3px #17202a08;
}
.metric .k{
  color:var(--light-blue);
  font-size:13px;
  font-weight:800;
  letter-spacing:.025em;
}
.metric .v{font-size:30px}
.taxmetric{border-color:#c7dfd2}

.upload{
  background:#fbfcfd;
  border:2px dashed #bad5c6;
  padding:28px 18px;
}
.actions{gap:9px}
.actions button{min-width:128px}

select,input,textarea{
  min-height:43px;
  border-radius:11px;
  border-color:#d7dde3;
  font-size:14px;
}
.field label{
  color:#667080;
  font-size:12px;
  text-transform:none;
  letter-spacing:0;
}
textarea{line-height:1.45}

.filter,.taxmode{
  background:#fff;
  color:var(--green-dark);
  border:1px solid #afd0bd;
}
.filter.active,.taxmode.active{
  background:var(--green);
  color:#fff;
  border-color:var(--green);
}
.notice{
  border-radius:12px;
  line-height:1.5;
}
.success{
  background:var(--green-soft);
  border-color:#badbc8;
  color:var(--green-dark);
}

.tablewrap{
  border:1px solid var(--line);
  border-radius:13px;
  overflow:auto;
}
table{background:#fff}
th{
  background:#f8fafb;
  color:#6b7480;
  text-transform:none;
  letter-spacing:0;
  font-size:12px;
}
th,td{padding:12px 10px}

.dialog{
  border-radius:20px;
  box-shadow:0 28px 80px #0005;
}
.modalActions button{min-width:120px}

/* Sign in gets the same calm background and colour language as the app. */
.authscreen{background:var(--bg)}
.authcard{
  border:1px solid var(--line);
  box-shadow:0 18px 50px #17202a1a;
}
.authbrand{
  background:var(--green-dark);
}
.authbrand .biglogo{color:#fff}
.authbrand h1{color:#bfe0f7}
.authsubmit{background:var(--green)}
.authswitch button{
  background:transparent;
  border:0;
  color:var(--green-dark);
  min-height:auto;
  padding:0;
}

/* Keep advanced areas visually quieter than the main action. */
#accountingLedger .tablewrap,
#reconciliationPanel .tablewrap,
#emailIntake .tablewrap,
#documentRegisterSection .tablewrap{margin-top:14px}

@media(max-width:900px){
  header{position:static}
  .simpleNav{top:0}
  .hero h1{font-size:29px}
}
@media(max-width:640px){
  main{padding:16px 12px 34px}
  .panel{padding:17px}
  .metrics{grid-template-columns:1fr 1fr}
  .metric{padding:14px}
  .metric .v{font-size:25px}
  .simpleNav button{min-width:102px;padding:9px 13px}
  .actions{justify-content:stretch}
  .actions button{flex:1 1 145px}
}
@media(max-width:420px){
  .metrics{grid-template-columns:1fr}
}


/* BAYON plans */
.planBadge{
  display:inline-flex;align-items:center;justify-content:center;
  background:#edf7f1;color:#195d3a;border:1px solid #badbc8;
  border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900;letter-spacing:.05em
}
.planGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px;align-items:stretch}
.planCard{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:18px;display:flex;flex-direction:column;min-height:355px
}
.planCard.popularPlan{border:2px solid var(--light-blue);box-shadow:0 8px 24px #69aee522}
.popularLabel{
  position:absolute;top:-11px;right:14px;background:var(--green);color:#fff;
  border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;letter-spacing:.06em
}
.planName{color:var(--light-blue);font-size:21px;font-weight:900}
.planPrice{font-size:32px;font-weight:900;margin:7px 0 2px}
.planPrice span{font-size:13px;color:var(--muted);font-weight:600}
.planTagline{color:var(--muted);font-size:13px;margin-bottom:14px}
.planFeatures{display:grid;gap:7px;font-size:13px;line-height:1.35;margin-bottom:16px;flex:1}
.planCard.currentPlan{border-color:var(--green);box-shadow:0 0 0 2px #23764b20}
.planCard.currentPlan:after{
  content:"CURRENT PLAN";position:absolute;left:16px;bottom:70px;
  color:var(--green-dark);font-size:10px;font-weight:900;letter-spacing:.06em
}
.planLockBanner{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:#edf7ff;border:1px solid #c8e2f4;border-radius:12px;
  padding:11px 12px;margin:9px 0 14px;color:#315d7c
}
.planLockBanner strong{color:var(--light-blue)}
.planLocked .planFeatureBody{opacity:.45;pointer-events:none}
.planLocked button:not(.planLockBanner button),
.planLocked input,
.planLocked select,
.planLocked textarea{pointer-events:none}
@media(max-width:850px){.planGrid{grid-template-columns:1fr}.planCard{min-height:auto}.planCard.currentPlan:after{bottom:68px}}


/* BAYON v0.14.0 — GOV.UK-inspired colour theme */
:root{
  --bg:#f3f2f1;
  --panel:#ffffff;
  --ink:#0b0c0c;
  --muted:#505a5f;
  --line:#d8d8d8;
  --nav:#ffffff;
  --green:#00703c;
  --green-dark:#005a30;
  --green-soft:#e7f4ea;
  --light-blue:#1d70b8;
  --light-blue-soft:#e8f1f8;
  --red:#b10e1e;
}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
}

a{color:var(--light-blue)}
a:hover{color:#003078}

header{
  background:var(--light-blue);
  color:#fff;
  border-bottom:0;
  box-shadow:none;
}
.logo{color:#fff}
.version{color:#dbe8f4}
.ai,.cloud{
  background:#0b0c0c;
  color:#fff !important;
  border-color:#0b0c0c !important;
}
.userpill{
  color:#fff;
  border-left-color:#8fb7dd;
}
.planBadge{
  background:#fff;
  color:var(--light-blue);
  border-color:#fff;
}

main{max-width:1180px;padding:20px 20px 42px}
.hero{
  background:transparent;
  padding:18px 4px 8px;
}
.hero h1{
  color:var(--ink);
  font-size:42px;
  line-height:1.06;
  font-weight:800;
}
.hero p{
  font-size:18px;
  color:var(--muted);
  line-height:1.45;
}

.sectionTitle{
  color:var(--light-blue);
  font-size:22px;
  font-weight:800;
  margin:30px 2px 8px;
  scroll-margin-top:105px;
}
.panel{
  background:var(--panel);
  border:1px solid #b1b4b6;
  border-radius:16px;
  padding:22px;
  box-shadow:none;
}
.panel h2,
.panel h3,
.dialog h2,
.dialog h3{
  color:var(--ink);
  font-weight:800;
}
.panel h2{font-size:24px;margin-bottom:7px}
.panel h3{font-size:18px}

.simpleNav{
  position:sticky;
  top:76px;
  z-index:15;
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:10px 0 12px;
  margin:5px 0 12px;
  background:linear-gradient(var(--bg) 72%,transparent);
}
.simpleNav button{
  flex:0 0 auto;
  min-width:115px;
  background:#fff;
  color:var(--light-blue);
  border:2px solid var(--light-blue);
  font-weight:700;
}
.simpleNav button:hover{
  background:var(--light-blue-soft);
  border-color:var(--light-blue);
  color:#003078;
}

.metrics{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:12px;
  margin:8px 0 18px;
}
.metric{
  background:#fff;
  border:1px solid #b1b4b6;
  border-radius:16px;
  padding:18px;
  box-shadow:none;
}
.metric .k{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.metric .v{
  font-size:32px;
  color:var(--ink);
}
.taxmetric{border-color:#98c6ea}

button,.button{
  background:var(--green);
  color:#fff;
  border:2px solid var(--green);
  min-height:42px;
  border-radius:10px;
  padding:10px 16px;
  font-size:14px;
  font-weight:700;
  transition:background .15s ease,transform .05s ease,border-color .15s ease;
}
button:hover,.button:hover{
  background:var(--green-dark);
  border-color:var(--green-dark);
}
button:active,.button:active{transform:translateY(1px)}
button:focus-visible,.button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid #ffdd00;
  outline-offset:1px;
}

.secondary{
  background:#fff;
  color:var(--light-blue);
  border:2px solid var(--light-blue);
}
.secondary:hover{
  background:var(--light-blue-soft);
  color:#003078;
  border-color:#003078;
}
.blue{
  background:var(--green);
  border-color:var(--green);
}
.blue:hover{
  background:var(--green-dark);
  border-color:var(--green-dark);
}
.danger{
  background:var(--red);
  border-color:var(--red);
}
.danger:hover{
  background:#8f1020;
  border-color:#8f1020;
}
.tiny{
  min-height:34px;
  padding:6px 10px;
  font-size:12px;
}

.upload{
  background:#fff;
  border:2px dashed #6f777b;
  padding:28px 18px;
  border-radius:14px;
}
.notice{
  border-radius:10px;
  line-height:1.5;
  background:#fff;
  border:1px solid #b1b4b6;
  color:var(--ink);
}
.success{
  background:var(--green-soft);
  border-color:#9bccab;
  color:#004b28;
}

.tablewrap{
  border:1px solid #b1b4b6;
  border-radius:12px;
  overflow:auto;
  background:#fff;
}
table{background:#fff}
th{
  background:#f8f8f8;
  color:var(--muted);
  text-transform:none;
  letter-spacing:0;
  font-size:12px;
  border-bottom:1px solid #d8d8d8;
}
th,td{padding:12px 10px}
tr + tr td{border-top:1px solid #efefef}

select,input,textarea{
  min-height:43px;
  border-radius:8px;
  border:2px solid #b1b4b6;
  font-size:14px;
  background:#fff;
  color:var(--ink);
}
.field label{
  color:#505a5f;
  font-size:12px;
  letter-spacing:0;
}
textarea{line-height:1.45}

.filter,.taxmode{
  background:#fff;
  color:var(--light-blue);
  border:2px solid var(--light-blue);
}
.filter.active,.taxmode.active{
  background:var(--light-blue);
  color:#fff;
  border-color:var(--light-blue);
}

.dialog{
  border-radius:18px;
  border:1px solid #b1b4b6;
  box-shadow:0 18px 40px rgba(11,12,12,.22);
}
.dialogHead{border-bottom:1px solid #d8d8d8;padding-bottom:10px}
.modalActions button{min-width:120px}

.planCard{
  background:#fff;
  border:1px solid #b1b4b6;
  border-radius:16px;
  box-shadow:none;
}
.planCard.popularPlan{
  border:2px solid var(--light-blue);
  box-shadow:none;
}
.popularLabel{
  background:var(--light-blue);
  color:#fff;
}
.planName{
  color:var(--ink);
  font-size:22px;
}
.planPrice{
  color:var(--ink);
}
.planPrice span{
  color:var(--muted);
}
.planCard.currentPlan{
  border-color:var(--green);
  box-shadow:none;
}
.planCard.currentPlan:after{
  color:var(--green-dark);
}
.planLockBanner{
  background:var(--light-blue-soft);
  border:1px solid #b6d4ef;
  border-radius:10px;
  color:#19456b;
}
.planLockBanner strong{color:var(--light-blue)}

.authscreen{background:var(--bg)}
.authcard{
  border:1px solid #b1b4b6;
  box-shadow:0 18px 50px rgba(11,12,12,.18);
}
.authbrand{
  background:var(--light-blue);
}
.authbrand .biglogo{color:#fff}
.authbrand h1{color:#fff}
.authsubmit{background:var(--green)}
.authsubmit:hover{background:var(--green-dark)}
.authswitch button{
  background:transparent;
  border:0;
  color:var(--light-blue);
}

#accountingLedger .tablewrap,
#reconciliationPanel .tablewrap,
#emailIntake .tablewrap,
#documentRegisterSection .tablewrap{
  margin-top:14px;
}

@media(max-width:900px){
  header{position:static}
  .simpleNav{top:0}
  .hero h1{font-size:34px}
}
@media(max-width:640px){
  main{padding:16px 12px 34px}
  .panel{padding:17px}
  .metrics{grid-template-columns:1fr 1fr}
  .metric{padding:14px}
  .metric .v{font-size:25px}
  .simpleNav button{min-width:102px;padding:9px 13px}
  .actions{justify-content:stretch}
  .actions button{flex:1 1 145px}
}
@media(max-width:420px){
  .metrics{grid-template-columns:1fr}
}


/* BAYON v0.14.0 — closer GOV.UK service-flow styling */
:root{
  --gov-blue:#1d70b8;
  --gov-blue-dark:#003078;
  --gov-green:#00703c;
  --gov-green-dark:#005a30;
  --gov-black:#0b0c0c;
  --gov-grey:#505a5f;
  --gov-light:#f3f2f1;
  --gov-border:#b1b4b6;
  --gov-focus:#ffdd00;
}

header{
  border-bottom:8px solid #0b0c0c;
}
.logo{
  letter-spacing:.01em;
  font-weight:900;
}
.version{
  font-weight:600;
}
main{
  max-width:1100px;
  padding:0 22px 42px;
}
.serviceBar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  padding:16px 0 10px;
  border-bottom:1px solid var(--gov-border);
}
.serviceName{
  font-size:19px;
  font-weight:800;
  color:var(--gov-black);
}
.serviceMeta{
  font-size:14px;
  color:var(--gov-grey);
}
.breadcrumbs{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  padding:14px 0 8px;
  font-size:15px;
}
.breadcrumbs a{
  color:var(--gov-blue);
  text-decoration:underline;
}
.crumbSep{
  color:var(--gov-grey);
  font-size:18px;
  line-height:1;
}

.hero{
  padding:14px 0 6px;
}
.hero h1{
  font-size:48px;
  line-height:1.02;
  margin:0 0 14px;
  max-width:900px;
}
.hero p{
  font-size:19px;
  line-height:1.5;
  max-width:840px;
}

.sectionTitle{
  color:var(--gov-blue);
  font-size:20px;
  font-weight:800;
  margin:28px 0 10px;
}
.panel{
  border-radius:0;
  border:1px solid var(--gov-border);
  padding:22px;
  margin-bottom:16px;
}
.panel h2{
  font-size:28px;
  line-height:1.1;
  margin:0 0 8px;
}
.panel h3{
  font-size:20px;
  line-height:1.2;
}

.simpleNav{
  position:sticky;
  top:74px;
  z-index:12;
  gap:0;
  padding:0;
  margin:14px 0 16px;
  background:var(--gov-light);
  border-bottom:3px solid var(--gov-blue);
}
.simpleNav button{
  min-width:auto;
  border-radius:0;
  border:0;
  border-bottom:4px solid transparent;
  margin:0;
  padding:14px 18px 12px;
  background:transparent;
  color:var(--gov-blue);
  font-size:16px;
}
.simpleNav button:hover{
  background:#fff;
  color:var(--gov-blue-dark);
  border-bottom-color:var(--gov-blue-dark);
}

.metrics{
  gap:14px;
  margin:6px 0 20px;
}
.metric{
  border-radius:0;
  padding:18px;
}
.metric .k{
  font-size:13px;
}
.metric .v{
  font-size:40px;
  line-height:1.08;
}
.metric .hint{
  font-size:15px;
}

button,.button{
  border-radius:0;
  min-height:44px;
  padding:10px 18px;
  font-size:16px;
  box-shadow:none;
}
.secondary,
.filter,
.taxmode{
  border-radius:0;
}
.tiny{
  min-height:34px;
  padding:6px 10px;
  font-size:13px;
}

.upload{
  border-radius:0;
  padding:30px 18px;
}
.notice{
  border-radius:0;
  font-size:15px;
}
.tablewrap{
  border-radius:0;
}
select,input,textarea{
  border-radius:0;
  font-size:16px;
}
.field label{
  font-size:14px;
  font-weight:700;
  color:var(--gov-black);
  margin-bottom:6px;
}
.small{
  font-size:14px;
  color:var(--gov-grey);
}
.formgrid{
  gap:16px;
}
.formgrid .field{
  margin-bottom:4px;
}

.dialog{
  border-radius:0;
}
.dialogHead{
  padding-bottom:12px;
}
.planGrid{
  gap:16px;
}
.planCard{
  border-radius:0;
  padding:20px;
}
.planCard.popularPlan{
  outline:3px solid var(--gov-blue);
  outline-offset:0;
}
.planName{
  font-size:24px;
}
.planPrice{
  font-size:38px;
}
.popularLabel{
  border-radius:0;
  top:0;
  right:0;
  padding:6px 10px;
}
.planLockBanner{
  border-radius:0;
  font-size:15px;
}

.authcard{
  border-radius:0;
}
.authbrand{
  padding:28px 24px;
}
.authbrand h1{
  font-size:32px;
}
.authcopy,.authform{
  padding:24px;
}

#planBillingPanel .small,
#reportsSection .small,
#taxEstimatePanel .small,
#emailIntake .small,
#accountingLedger .small{
  font-size:14px;
}

@media(max-width:900px){
  main{padding:0 16px 34px}
  .hero h1{font-size:38px}
  .simpleNav{top:0}
}
@media(max-width:640px){
  .serviceBar{padding:14px 0 9px}
  .breadcrumbs{padding:12px 0 4px}
  .hero h1{font-size:32px}
  .hero p{font-size:18px}
  .panel h2{font-size:24px}
  .metrics{grid-template-columns:1fr}
  .metric .v{font-size:33px}
  .simpleNav{overflow-x:auto;white-space:nowrap}
  .simpleNav button{padding:12px 14px 10px;font-size:15px}
}


/* BAYON v0.14.0 — monthly/yearly billing */
.billingToggle{
  display:inline-flex;
  border:2px solid var(--gov-blue);
  margin-top:16px;
  background:#fff;
}
.billingCycleButton{
  border:0;
  border-radius:0;
  margin:0;
  background:#fff;
  color:var(--gov-blue);
  min-height:46px;
  padding:10px 18px;
  font-weight:800;
}
.billingCycleButton + .billingCycleButton{border-left:2px solid var(--gov-blue)}
.billingCycleButton.active{background:var(--gov-blue);color:#fff}
.billingCycleButton span{display:inline-block;margin-left:5px;font-size:11px;font-weight:800}
.planAnnualNote{
  min-height:22px;
  color:var(--gov-grey);
  font-size:13px;
  font-weight:700;
  margin-top:2px;
  margin-bottom:7px;
}
.planAnnualNote strong{
  color:var(--gov-green-dark);
  font-weight:900;
}


.quickActions{background:#fff;border-left:5px solid var(--gov-blue);padding:20px 22px;margin:14px 0 18px}
.quickActionsTitle{font-size:22px;font-weight:800;margin-bottom:12px}
.quickActionButtons{display:flex;gap:12px;flex-wrap:wrap}
.quickActionButtons button,.quickActionButtons .button{min-width:190px;min-height:52px;display:inline-flex;align-items:center;justify-content:center;font-size:17px;margin:0}
.quickStatus,.quickRule{margin-top:10px;color:var(--gov-grey);font-size:14px}
#reviewItemsButton.hasPending{background:#b10e1e;border-color:#b10e1e}
.mandatoryReview{z-index:1000}
.mandatoryReview .dialog{width:min(1040px,97vw);max-height:95vh;overflow:auto}
.mandatoryNotice{background:#fff7bf;border-left:5px solid var(--gov-focus);padding:13px 15px;margin:14px 0 4px;line-height:1.45}
.mandatoryActions{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--gov-border);padding-top:14px;z-index:4}
body.reviewRequired{overflow:hidden}
@media(max-width:640px){.quickActionButtons{display:grid}.quickActionButtons button,.quickActionButtons .button{width:100%;min-width:0}.mandatoryActions{display:grid;grid-template-columns:1fr 1fr}.mandatoryActions button{width:100%;min-width:0}#approveReviewButton{grid-column:1/-1}}


.simplifiedReviewHead{
  align-items:flex-start;
}
.reviewHeadContent{
  flex:1 1 auto;
  min-width:0;
}
.reviewHeadTopLine{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.reviewHeadTopLine h2{
  font-size:34px;
  line-height:1.05;
}
.reviewHeaderQuestion{
  margin-top:8px;
  font-size:24px;
  line-height:1.2;
  font-weight:800;
  color:var(--gov-black);
}
.reviewFilename{
  margin-top:6px;
}
.reviewSimpleHint{
  color:var(--gov-grey);
  font-size:15px;
  line-height:1.4;
  margin:10px 0 16px;
}
.bankConfidence{
  white-space:nowrap;
  background:#fff;
  border:1px solid #b1b4b6;
  padding:6px 9px;
  font-size:13px;
  font-weight:800;
}
@media(max-width:640px){
  .reviewHeadTopLine{
    align-items:flex-start;
  }
  .reviewHeadTopLine h2{
    font-size:29px;
  }
  .reviewHeaderQuestion{
    font-size:21px;
  }
}

.bankAlternative{
  border-color:#b1b4b6!important;
  color:var(--gov-black)!important;
  background:#fff!important;
}
.bankAlternative:hover{
  border-color:var(--gov-black)!important;
  background:#f3f2f1!important;
}
.bankRouteBanner{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
  padding:13px 15px;
  background:#e7f4ea;
  border-left:5px solid var(--gov-green);
}
.bankRouteBanner strong{color:var(--gov-green-dark)}
.bankRouteBanner span{flex:1 1 280px}
@media(max-width:640px){
  .reviewDecisionRow{align-items:flex-start}
  .bankRouteBanner{align-items:stretch}
  .bankRouteBanner button{width:100%}
  .mandatoryActions{grid-template-columns:1fr}
  .mandatoryActions button{grid-column:auto!important}
}


.reviewScanColumn{min-width:0}
.reviewScanPrimary{
  display:block!important;
  margin:0;
  min-height:0;
}
.reviewScanPrimary .scanSummaryHead{margin-bottom:8px}
/* BAYON v0.14.0 — task-first human-factors redesign */
.simpleHeader{
  min-height:68px;
  align-items:center;
}
.brandBlock{display:flex;align-items:center;gap:12px}
.simpleHeader .logo{font-size:27px;line-height:1;color:#fff}
.headerRight{align-items:center}
.headerButton{
  background:#fff;
  color:var(--gov-blue);
  border:2px solid #fff;
  min-height:38px;
  padding:7px 13px;
  font-size:14px;
}
.headerButton:hover{background:#f3f2f1;color:var(--gov-blue-dark);border-color:#f3f2f1}
.userpill{
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-left:0;
  color:#fff;
  font-weight:700;
}
.planBadge{font-size:12px;padding:6px 10px}

.homeStatus{
  display:flex;
  align-items:center;
  gap:18px;
  padding:26px 0 16px;
}
.homeStatusIcon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e7f4ea;
  color:var(--gov-green);
  font-size:29px;
  font-weight:900;
}
.homeStatus.hasAttention .homeStatusIcon{
  background:#fff7bf;
  color:#7a5900;
}
.homeEyebrow,
.attentionEyebrow{
  color:var(--gov-grey);
  font-size:14px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.homeStatus h1{
  margin:3px 0 4px;
  color:var(--gov-black);
  font-size:34px;
  line-height:1.08;
}
.homeStatus p{
  margin:0;
  color:var(--gov-grey);
  font-size:17px;
}

.quickActions{
  border-left:0;
  border-top:4px solid var(--gov-blue);
  padding:18px 0 20px;
  margin:0 0 14px;
  background:transparent;
}
.quickActionsTitle{font-size:19px;margin-bottom:11px}
.quickActionButtons{gap:10px}
.quickActionButtons button,
.quickActionButtons .button{
  min-width:180px;
  min-height:50px;
  font-size:16px;
  font-weight:800;
}
.captureAction{
  background:var(--gov-green)!important;
  border-color:var(--gov-green)!important;
  color:#fff!important;
}
.captureAction:hover{background:var(--gov-green-dark)!important;border-color:var(--gov-green-dark)!important}
.uploadAction{
  background:var(--gov-blue)!important;
  border-color:var(--gov-blue)!important;
  color:#fff!important;
}
.uploadAction:hover{background:var(--gov-blue-dark)!important;border-color:var(--gov-blue-dark)!important}
.reviewAction{
  background:#fff!important;
  border-color:var(--gov-blue)!important;
  color:var(--gov-blue)!important;
}
.reviewAction.hasPending{
  background:#f3a712!important;
  border-color:#f3a712!important;
  color:#0b0c0c!important;
}
.reviewAction.hasPending:hover{background:#d99300!important;border-color:#d99300!important}
.quickStatus:empty{display:none}
.quickStatus{
  margin-top:10px;
  padding:8px 10px;
  background:#e7f4ea;
  border-left:4px solid var(--gov-green);
  color:#004b28;
}

.attentionPanel{
  background:#fff;
  border:1px solid var(--gov-border);
  padding:20px;
  margin:0 0 18px;
}
.attentionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.attentionHead h2{
  margin:3px 0 0;
  font-size:24px;
  line-height:1.15;
}
.attentionCount{
  min-width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:900;
  background:#fff7bf;
  color:#594400;
}
.attentionCount.ok{
  background:#e7f4ea;
  color:var(--gov-green-dark);
}
.attentionList{margin-top:12px;display:grid;gap:8px}
.attentionItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-top:1px solid #e5e5e5;
}
.attentionItem:first-child{border-top:0}
.attentionItemText strong{display:block;font-size:16px}
.attentionItemText span{display:block;color:var(--gov-grey);font-size:14px;margin-top:2px}
.attentionItem button{
  min-height:36px;
  padding:6px 12px;
  font-size:14px;
  background:#fff;
  color:var(--gov-blue);
  border:2px solid var(--gov-blue);
}
.attentionEmpty{
  padding:10px 0 2px;
  color:var(--gov-green-dark);
  font-weight:700;
}

.simpleNav{
  margin-top:18px;
}
.sectionTitle{
  color:var(--gov-black);
  font-size:25px;
  margin-top:26px;
}
.homeMetrics{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.simpleMetric{
  min-height:158px;
  position:relative;
  display:flex;
  flex-direction:column;
}
.simpleMetric .k{
  font-size:14px;
  text-transform:none;
  letter-spacing:0;
  color:var(--gov-grey);
}
.simpleMetric .v{
  font-size:35px;
  margin-top:8px;
}
.simpleMetric .hint{margin-top:auto}
.metricDetail{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #e5e5e5;
  color:var(--gov-grey);
  font-size:12px;
}
.metricLink{
  align-self:flex-start;
  margin-top:8px;
  padding:0;
  min-height:auto;
  background:transparent;
  border:0;
  color:var(--gov-blue);
  text-decoration:underline;
  font-size:13px;
}
.metricLink:hover{background:transparent;color:var(--gov-blue-dark);border:0}
.reviewMetric .v{color:#7a5900}
.secondaryDetailPanel{
  border-left:4px solid var(--gov-blue);
}
.settingsStatusRows{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:10px;
}
.settingsStatusRows>div{
  background:#f3f2f1;
  padding:12px;
}
.settingsStatus{
  margin-top:4px;
  color:var(--gov-grey);
  font-size:14px;
}
.settingsStatus.ready{color:var(--gov-green-dark)}
.settingsStatus.off,.settingsStatus.bad{color:#8f1020}

/* keep lower-level accounting tools visually secondary */
#emailIntake,
#accountingLedger,
#reconciliationPanel,
#reportsSection,
#recordsSection{
  scroll-margin-top:90px;
}

@media(max-width:900px){
  .homeMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .userpill{display:none}
}
@media(max-width:640px){
  .simpleHeader{min-height:58px}
  .simpleHeader .logo{font-size:23px}
  .planBadge{display:none}
  .headerButton{padding:6px 9px;font-size:13px}
  .homeStatus{align-items:flex-start;padding-top:20px}
  .homeStatusIcon{width:44px;height:44px;flex-basis:44px;font-size:23px}
  .homeStatus h1{font-size:28px}
  .homeStatus p{font-size:16px}
  .quickActionButtons{grid-template-columns:1fr}
  .attentionHead{align-items:flex-start}
  .attentionItem{align-items:flex-start;flex-direction:column}
  .attentionItem button{width:100%}
  .homeMetrics{grid-template-columns:1fr}
  .simpleMetric{min-height:135px}
  .settingsStatusRows{grid-template-columns:1fr}
}


/* BAYON v0.14.0 — commercial processing access */
.processingAccessBanner{
  margin-top:14px;
  padding:14px 16px;
  background:#e8f1f8;
  border-left:5px solid var(--gov-blue);
  font-weight:700;
  line-height:1.45;
}
.processingAccessBanner strong{color:var(--gov-blue-dark)}
.periodPresetRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}
.periodPresetRow button{min-height:38px}
.reportGroups{display:grid;gap:12px;margin-top:14px}
.reportGroup{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding:15px;
  border:1px solid var(--gov-border);
  background:#fff;
}
.vatReportGroup{border-left:5px solid var(--gov-blue)}
.processingSettings{
  margin-top:12px;
  padding:12px 14px;
  background:#f3f2f1;
  line-height:1.5;
}
.processingSettings .progressLine{
  margin-top:8px;
  font-weight:800;
}
.unlockMessage{
  margin-top:16px;
  font-size:17px;
  line-height:1.5;
}
.unlockOptions{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.unlockOption{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  border:1px solid var(--gov-border);
  padding:15px;
}
.unlockOptionName{font-size:18px;font-weight:900}
.unlockOptionText{font-size:14px;color:var(--gov-grey);margin-top:4px}
.unlockPrice{font-size:23px;font-weight:900;margin-bottom:7px;text-align:right}
.unlockOption button{min-width:155px}
.unlockOwnership{
  margin-top:16px;
  padding:12px 14px;
  background:#f3f2f1;
  font-size:14px;
  line-height:1.45;
}
.pill.stored{
  background:#f3f2f1;
  color:#505a5f;
  border-color:#b1b4b6;
}
.lockedTx{
  color:#505a5f;
  font-size:13px;
  font-weight:700;
}
@media(max-width:640px){
  .unlockOption{grid-template-columns:1fr}
  .unlockPrice{text-align:left}
  .unlockOption button{width:100%}
  .reportGroup{align-items:stretch}
  .reportGroup>button{width:100%}
}


/* BAYON v0.14.0 — Smart Scan */
.scanSummary{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--gov-border);
  border-left:5px solid var(--gov-blue);
  background:#f8f8f8;
}
.scanSummaryHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.scanDetailChips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:11px;
}
.scanChip{
  background:#fff;
  border:1px solid #b1b4b6;
  padding:6px 9px;
  font-size:13px;
  line-height:1.3;
}
.scanEvidence{
  display:grid;
  gap:6px;
  margin-top:12px;
}
.scanEvidenceRow{
  display:grid;
  grid-template-columns:minmax(100px,140px) 1fr;
  gap:10px;
  padding-top:6px;
  border-top:1px solid #d8d8d8;
  font-size:13px;
}
.scanEvidenceLabel{font-weight:800;color:var(--gov-grey)}
.scanEvidenceQuote{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.scanText{
  max-height:260px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  background:#fff;
  border:1px solid #b1b4b6;
  padding:10px;
  margin:8px 0 0;
  font-size:12px;
  line-height:1.4;
}
.scanSummary details{margin-top:12px}
.scanSummary summary{cursor:pointer;color:var(--gov-blue);font-weight:800}
.scanCardNotice{margin-top:10px!important}
.cameraScanHint{
  position:absolute;
  inset:8%;
  border:2px dashed rgba(255,255,255,.75);
  pointer-events:none;
  border-radius:4px;
}
@media(max-width:640px){
  .scanEvidenceRow{grid-template-columns:1fr}
  .scanSummaryHead{flex-direction:column}
}

/* ========================================================================
   BAYON v0.18.0 — simplicity-first human-factors layer
   ------------------------------------------------------------------------
   Design rules:
   1. One obvious primary action at a time.
   2. Advanced/technical information stays available but starts collapsed.
   3. Repetition is removed; status appears once, close to the next action.
   4. Destructive actions never compete visually with the primary action.
   5. Controls remain large, predictable and keyboard accessible.
   ======================================================================== */

:root{
  --ux-text:#1f2933;
  --ux-muted:#5f6b76;
  --ux-border:#d8dee4;
  --ux-soft:#f7f8f9;
  --ux-green:#007a45;
  --ux-green-dark:#005f35;
  --ux-blue:#1769aa;
  --ux-amber:#f3a712;
  --ux-danger:#b10e1e;
}

body{
  background:#f7f8f9;
  color:var(--ux-text);
}

main{
  max-width:1120px;
  padding-top:18px;
}

header{
  position:sticky;
  top:0;
  z-index:35;
}

.simpleHeader{
  max-width:1120px;
  min-height:62px;
}

.headerButton{
  min-height:40px;
  border-radius:8px;
}

.homeStatus{
  padding:24px 4px 14px;
}

.homeEyebrow,
.attentionEyebrow{
  font-size:12px;
  letter-spacing:.02em;
  text-transform:none;
}

.homeStatus h1{
  font-size:32px;
}

.homeStatus p{
  max-width:650px;
}

.uxTaskPanel{
  border:1px solid var(--ux-border);
  border-radius:14px;
  background:#fff;
  padding:18px;
  margin:8px 0 16px;
}

.quickActionsTitle{
  font-size:16px;
  margin-bottom:10px;
}

.quickActionButtons{
  align-items:stretch;
}

.quickActionButtons button,
.quickActionButtons .button{
  min-height:48px;
  border-radius:9px;
  font-size:15px;
  min-width:0;
}

.uxPrimaryAction{
  flex:1 1 250px;
}

.uxSecondaryAction{
  flex:0 1 180px;
  background:#fff!important;
  color:var(--ux-blue)!important;
  border:2px solid var(--ux-blue)!important;
}

.quickRule{
  margin-top:10px;
  color:var(--ux-muted);
  font-size:13px;
}

.uxAttentionPanel{
  margin:12px 0 18px;
  border:2px solid #e4b437;
  border-radius:12px;
  background:#fffaf0;
  box-shadow:none;
}

.attentionHead{
  padding-bottom:8px;
}

.attentionItem{
  background:#fff;
  border:1px solid #ead9a3;
  border-radius:9px;
}

.attentionItemText span{
  color:var(--ux-muted);
}

.uxMainNav{
  position:sticky;
  top:62px;
  z-index:30;
  background:#fff;
  border:1px solid var(--ux-border);
  border-radius:12px;
  padding:4px;
  gap:4px;
  box-shadow:0 5px 14px #17202a10;
}

.uxMainNav button{
  flex:1 1 0;
  background:transparent!important;
  color:var(--ux-muted)!important;
  border:0!important;
  border-radius:8px!important;
  min-height:42px;
  font-weight:750;
}

.uxMainNav button.active{
  background:#eef5fb!important;
  color:var(--ux-blue)!important;
}

.uxSectionTitle{
  margin-top:24px;
}

.homeMetrics{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

.simpleMetric{
  min-height:128px;
  border:1px solid var(--ux-border);
  border-radius:12px;
  box-shadow:none;
  padding:17px;
}

.simpleMetric .k{
  font-size:12px;
  text-transform:none;
  letter-spacing:0;
}

.simpleMetric .v{
  font-size:25px;
}

.taxmetric{
  grid-column:span 2;
}

.uxHiddenMetric{
  display:none!important;
}

.metricDetails{
  margin-top:7px;
}

.metricDetails summary,
.advancedPanel summary,
.inlineAdvanced summary,
.actionMore summary,
.bankTotalsDetails summary{
  cursor:pointer;
  color:var(--ux-blue);
  font-weight:750;
  font-size:13px;
}

.metricDetails .metricDetail{
  margin-top:7px;
}

.panel{
  border:1px solid var(--ux-border);
  border-radius:14px;
  box-shadow:none;
  padding:20px;
  margin-top:16px;
}

.panel h2{
  color:var(--ux-text);
  font-size:21px;
}

.sectionTitle{
  color:var(--ux-text);
}

.filters{
  gap:5px;
}

.filter{
  min-height:38px;
  padding:7px 11px;
  border-radius:999px;
}

.tablewrap{
  border:1px solid var(--ux-border);
  border-radius:10px;
  margin-top:12px;
}

table th{
  background:#f7f8f9;
  color:var(--ux-muted);
  text-transform:none;
  letter-spacing:0;
  font-size:12px;
}

table td{
  font-size:13px;
}

.inlineAdvanced{
  position:relative;
}

.inlineAdvanced > summary{
  list-style:none;
  border:1px solid var(--ux-border);
  border-radius:8px;
  padding:9px 12px;
  background:#fff;
}

.inlineAdvanced > summary::-webkit-details-marker{
  display:none;
}

.advancedActions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:8px;
}

.bankTaskSummary{
  display:grid;
  grid-template-columns:minmax(220px,320px) 1fr;
  gap:14px;
  align-items:start;
  margin-top:14px;
}

.bankReviewMetric{
  border:2px solid #e4b437;
  background:#fffaf0;
}

.bankTotalsDetails{
  border:1px solid var(--ux-border);
  border-radius:10px;
  padding:12px 14px;
  background:#fff;
}

.bankTotalsGrid{
  grid-template-columns:repeat(3,1fr)!important;
  margin-top:10px;
}

.advancedPanel{
  margin-top:14px;
  border:1px solid var(--ux-border);
  border-radius:10px;
  padding:12px 14px;
  background:#fff;
}

details.advancedPanel[open] > summary{
  margin-bottom:10px;
}

.matchedHistory{
  margin-top:18px;
}

.reportPeriodBox{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--ux-border);
  border-radius:10px;
  background:var(--ux-soft);
}

.reportDates{
  margin-top:10px!important;
  max-width:600px;
}

.compactAccess{
  margin-top:10px;
}

.reportChoiceGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}

.reportChoice{
  text-align:left;
  min-height:92px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  background:#fff!important;
  color:var(--ux-text)!important;
  border:1px solid var(--ux-border)!important;
  border-radius:11px!important;
  padding:15px!important;
}

.reportChoice strong{
  color:var(--ux-text);
  font-size:16px;
}

.reportChoice span{
  color:var(--ux-muted);
  font-size:13px;
  font-weight:500;
}

.reportChoice:hover{
  border-color:var(--ux-blue)!important;
  background:#f7fbff!important;
}

.reportChoice.primaryReport{
  border:2px solid var(--ux-green)!important;
}

.reportChoice.primaryReport strong{
  color:var(--ux-green-dark);
}

.mandatoryReview .dialog{
  width:min(940px,97vw);
}

.reviewLayout{
  grid-template-columns:minmax(280px,.85fr) minmax(350px,1.15fr)!important;
}

.reviewScanPrimary{
  border:1px solid var(--ux-border);
  border-radius:10px;
  padding:14px;
  background:#fff;
}

.scanEvidenceRow{
  padding:8px 0;
}

.formgrid{
  gap:10px 12px;
}

.field label{
  text-transform:none;
  letter-spacing:0;
  color:var(--ux-muted);
  font-size:12px;
}

input,select,textarea{
  border-radius:8px!important;
  min-height:42px;
}

.uxReviewActions{
  gap:8px;
  align-items:center;
}

.uxReviewActions .uxApprove{
  min-width:150px;
  min-height:48px;
  background:var(--ux-green)!important;
  border-color:var(--ux-green)!important;
}

.actionMore{
  position:relative;
}

.actionMore > summary{
  list-style:none;
  min-height:42px;
  display:flex;
  align-items:center;
  border:1px solid var(--ux-border);
  border-radius:8px;
  padding:8px 13px;
  background:#fff;
}

.actionMore > summary::-webkit-details-marker{
  display:none;
}

.actionMoreMenu{
  position:absolute;
  right:0;
  bottom:48px;
  z-index:25;
  min-width:170px;
  display:grid;
  gap:6px;
  background:#fff;
  border:1px solid var(--ux-border);
  border-radius:10px;
  padding:8px;
  box-shadow:0 10px 28px #0002;
}

.actionMoreMenu button{
  width:100%;
}

.bankAlternative{
  min-height:44px;
}

.copyTextInside{
  margin-top:8px;
}

.settingsStatusRows{
  margin-top:10px;
}

.systemStatusPanel{
  display:block;
}

.planExplanation,
.testingPanel{
  background:#f9fafb;
}

.notice{
  border-radius:9px;
}

button,.button{
  border-radius:8px;
  font-weight:750;
}

button.danger,.danger{
  background:#fff!important;
  color:var(--ux-danger)!important;
  border:1px solid #d88!important;
}

button.danger:hover,.danger:hover{
  background:#fff5f5!important;
  border-color:var(--ux-danger)!important;
}

/* Keep attention/destructive semantics, but avoid using colour everywhere. */
.captureAction,
#approveReviewButton,
#authSubmit{
  background:var(--ux-green)!important;
  border-color:var(--ux-green)!important;
}

@media(max-width:900px){
  .homeMetrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .taxmetric{
    grid-column:span 1;
  }
  .bankTaskSummary{
    grid-template-columns:1fr;
  }
  .reviewLayout{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:640px){
  main{
    padding-left:12px;
    padding-right:12px;
  }
  .simpleHeader{
    padding-left:12px;
    padding-right:12px;
  }
  .userpill{
    display:none;
  }
  .homeStatus h1{
    font-size:27px;
  }
  .quickActionButtons{
    display:grid;
    grid-template-columns:1fr;
  }
  .uxMainNav{
    top:61px;
  }
  .homeMetrics{
    grid-template-columns:1fr!important;
  }
  .reportChoiceGrid{
    grid-template-columns:1fr;
  }
  .bankTotalsGrid{
    grid-template-columns:1fr!important;
  }
  .mandatoryActions{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .mandatoryActions > *{
    width:100%;
  }
  .actionMoreMenu{
    position:static;
    box-shadow:none;
    margin-top:6px;
  }
}

.homeMenuShell{
  margin:8px 0 16px;
  padding:24px;
  border:1px solid var(--ux-border);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);
  box-shadow:0 10px 30px #17202a0b;
}

.homeMenuTop{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}

.homeMenuTop h1{
  margin:4px 0 6px;
  font-size:34px;
  line-height:1.08;
  color:var(--ux-text);
}

.homeMenuTop p{
  margin:0;
  color:var(--ux-muted);
  font-size:15px;
}

.homeMenuUtility{
  display:flex;
  gap:8px;
}

.homeIconButton{
  width:42px;
  height:42px;
  min-height:42px;
  padding:0;
  border-radius:50%!important;
  background:#fff!important;
  color:var(--ux-text)!important;
  border:1px solid var(--ux-border)!important;
  font-size:19px;
}

.homeIconButton:hover{
  background:#f5f7f9!important;
}

.homeStatusMini{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  color:var(--ux-muted);
  font-size:14px;
}

.homeStatusMini strong{
  color:var(--ux-text);
}

.homeStatusDot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#edf7f1;
  color:var(--ux-green);
  font-weight:900;
}

.homeStatusDot.attention{
  background:#fff3cd;
  color:#8a5a00;
}

.homeStatusAction{
  margin-left:auto;
  min-height:36px;
  padding:7px 12px;
  background:#fff!important;
  color:var(--ux-blue)!important;
  border:1px solid #b8cee1!important;
}

.homeMenuTabs{
  margin:18px auto 14px;
  max-width:520px;
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:3px;
  border-radius:999px;
  background:#eef0f2;
}

.homeMenuTabs button{
  min-height:40px;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--ux-muted)!important;
  box-shadow:none!important;
}

.homeMenuTabs button.active{
  color:#fff!important;
  background:linear-gradient(90deg,#18a843,#10a2a3)!important;
}

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

.homeShortcutCard{
  position:relative;
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:16px;
  border:1px solid #e0e5ea!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--ux-text)!important;
  box-shadow:0 5px 16px #17202a12;
  cursor:pointer;
  text-align:center;
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;
}

.homeShortcutCard:hover{
  transform:translateY(-2px);
  border-color:#a8c6dc!important;
  box-shadow:0 9px 22px #17202a18;
}

.homeShortcutCard:focus-visible{
  outline:3px solid #8ec9ee;
  outline-offset:2px;
}

.homeShortcutIcon{
  width:50px;
  height:50px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#effaf3,#eaf8fb);
  color:#0d8b78;
  font-size:30px;
  line-height:1;
  font-weight:800;
}

.homeShortcutLabel{
  font-size:15px;
  font-weight:800;
}

.homeShortcutBadge{
  position:absolute;
  right:10px;
  top:10px;
  min-width:23px;
  height:23px;
  padding:0 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#f3a712;
  color:#111;
  font-size:12px;
  font-weight:900;
}

.homeShortcutGrid[data-mode="shortcuts"] .shortcutMore{
  display:none;
}

.homeControlNote{
  margin-top:15px;
  padding-top:13px;
  border-top:1px solid #e6eaee;
  color:var(--ux-muted);
  font-size:13px;
  text-align:center;
}

.homeUploadStatus{
  text-align:center;
  margin-top:10px;
}

.businessSummaryPanel{
  margin:16px 0 0;
  border:1px solid var(--ux-border);
  border-radius:13px;
  background:#fff;
  padding:0 14px 14px;
}

.businessSummaryPanel > summary{
  cursor:pointer;
  padding:13px 0;
  font-weight:800;
  color:var(--ux-text);
}

.businessSummaryPanel .homeMetrics{
  margin-top:0;
}

.homeSecondaryNav{
  margin-top:12px;
}

@media(max-width:820px){
  .homeShortcutGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px){
  .homeMenuShell{
    padding:17px 14px;
    border-left:0;
    border-right:0;
    border-radius:0;
    margin-left:-12px;
    margin-right:-12px;
  }

  .homeMenuTop h1{
    font-size:28px;
  }

  .homeMenuTop p{
    font-size:14px;
  }

  .homeMenuUtility{
    gap:5px;
  }

  .homeIconButton{
    width:38px;
    height:38px;
    min-height:38px;
  }

  .homeShortcutGrid{
    gap:10px;
  }

  .homeShortcutCard{
    min-height:118px;
    padding:12px 8px;
  }

  .homeShortcutIcon{
    width:46px;
    height:46px;
    font-size:26px;
  }

  .homeShortcutLabel{
    font-size:14px;
  }

  .homeSecondaryNav{
    display:none;
  }

  .uxSectionTitle{
    margin-top:18px;
  }
}

.homeShortcutSub{
  margin-top:-7px;
  font-size:11px;
  font-weight:600;
  color:var(--ux-muted);
}

.humanFilingCard{
  border-style:dashed!important;
}

.pilotBadge{
  position:absolute;
  top:10px;
  left:10px;
  padding:3px 7px;
  border-radius:999px;
  background:#eef5fb;
  color:var(--ux-blue);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.humanFilingDialog{
  max-height:92vh;
  overflow:auto;
}

.pilotEyebrow{
  margin-bottom:4px;
  color:var(--ux-blue);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.humanFilingNotice{
  margin-top:16px;
  padding:13px 15px;
  border-left:5px solid #f3a712;
  border-radius:8px;
  background:#fff8df;
  line-height:1.45;
}

.humanFilingSteps{
  display:grid;
  gap:9px;
  margin-top:16px;
}

.filingStep{
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:10px 12px;
  border:1px solid var(--ux-border);
  border-radius:9px;
  background:#fff;
}

.filingStep > span{
  flex:0 0 27px;
  height:27px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#edf7f1;
  color:var(--ux-green);
  font-weight:900;
}

.filingStep div{
  display:grid;
  gap:2px;
}

.filingStep small{
  color:var(--ux-muted);
}

.humanFilingForm{
  margin-top:16px;
}

.filingSummary{
  margin-top:10px;
  padding:12px 14px;
  border-radius:9px;
  background:#f6f8fa;
  font-size:14px;
}

.humanTerms{
  margin-top:18px;
}

.humanTerms h3{
  margin:0 0 10px;
  font-size:17px;
}

.consentRow{
  display:grid;
  grid-template-columns:24px 1fr;
  gap:10px;
  align-items:start;
  margin:9px 0;
  padding:10px 12px;
  border:1px solid var(--ux-border);
  border-radius:9px;
  cursor:pointer;
  background:#fff;
}

.consentRow input{
  width:19px;
  height:19px;
  min-height:19px;
  margin-top:2px;
}

.consentRow span{
  font-size:13px;
  line-height:1.45;
}

.filingPrivacy{
  margin-top:14px;
}

.humanFilingActions{
  margin-top:17px;
}

#humanFilingSubmit:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.filingStatus{
  margin-top:8px;
}

@media(max-width:640px){
  .humanFilingDialog{
    width:98vw!important;
  }
}

.filingProgressCard{
  margin-top:14px;
  padding:13px 15px;
  border:1px solid var(--ux-border);
  border-radius:10px;
  background:#fbfcfd;
}
.filingProgressTop{display:flex;justify-content:space-between;gap:12px;align-items:center}
.filingProgressTrack{height:8px;border-radius:999px;background:#e7ebef;overflow:hidden;margin:9px 0 7px}
.filingProgressTrack span{display:block;height:100%;background:linear-gradient(90deg,#18a843,#10a2a3);transition:width .2s ease}
.filingSection{margin-top:16px;padding-top:15px;border-top:1px solid var(--ux-border)}
.filingSectionHead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.filingSectionHead>div{display:flex;align-items:center;gap:9px}
.filingStepNo{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#edf7f1;color:var(--ux-green);font-weight:900}
.filingDynamicFields{display:grid;grid-template-columns:1fr 1fr;gap:11px 13px}
.filingField{min-width:0}
.filingField.wide{grid-column:1/-1}
.filingField label{display:block;font-size:12px;font-weight:800;color:var(--ux-muted);margin-bottom:5px}
.requiredMark{font-size:9px;text-transform:uppercase;letter-spacing:.03em;color:#8a5a00;background:#fff4cc;padding:2px 5px;border-radius:999px;margin-left:4px}
.filingFieldHelp{margin-top:4px}
.filingDatePair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.filingMulti{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.filingCheckOption{display:flex;gap:8px;align-items:flex-start;padding:8px 9px;border:1px solid var(--ux-border);border-radius:8px;background:#fff;cursor:pointer}
.filingCheckOption input{width:17px;height:17px;min-height:17px;margin-top:1px}
.filingCheckOption span{font-size:12px;line-height:1.35}
.credentialWarning{margin-top:10px;padding:10px 12px;border-left:4px solid var(--ux-blue);background:#f2f8fd;font-size:12px;line-height:1.45}
.filingEvidenceList{display:grid;gap:7px}
.filingEvidenceItem{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;padding:8px 10px;border:1px solid var(--ux-border);border-radius:8px;background:#fff;font-size:13px}
.filingEvidenceItem>span{color:var(--ux-green);font-weight:900}
.filingEvidenceNote{margin-top:8px}
.filingActionsMain{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:18px}
.filingResult{margin-top:10px}
.filingReady{padding:11px 13px;background:#edf7f1;border:1px solid #b7dbc6;border-radius:9px;color:#175d3a}
.filingBlocker{margin-top:8px;padding:10px 12px;background:#fff7dc;border:1px solid #efd68b;border-radius:9px;color:#6c4b00}
.savedFilingCases{display:grid;gap:7px}
.savedFilingCase{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 10px;border:1px solid var(--ux-border);border-radius:8px}
.pilotFeedbackNote{margin-top:14px;padding:11px 13px;background:#f6f8fa;border-radius:9px;font-size:12px;color:var(--ux-muted);line-height:1.45}
@media(max-width:700px){
  .filingDynamicFields{grid-template-columns:1fr}
  .filingField.wide{grid-column:auto}
  .filingMulti{grid-template-columns:1fr}
  .filingDatePair{grid-template-columns:1fr}
}
