:root {
  --accent: #f7941d;
  --accent-dark: #d86f00;
  --ink: #142033;
  --muted: #68748a;
  --line: #dfe5ee;
  --soft: #f8f6f2;
  --success: #147a4a;
  --danger: #b42318;
  --warning: #9a6700;
  --shadow: 0 18px 50px rgba(26, 43, 70, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--soft); line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 clamp(20px, 4vw, 54px); background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 780; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center;
  color: white; background: linear-gradient(145deg, var(--accent), #ef6c00); font-size: 13px;
  font-weight: 850; letter-spacing: -.04em; box-shadow: 0 9px 20px rgba(247,148,29,.24);
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a, .nav-button { padding: 10px 13px; border-radius: 9px; color: #526079; font-size: 14px; font-weight: 650; border: 0; background: transparent; }
.nav a:hover, .nav a.active, .nav-button:hover { color: var(--ink); background: var(--soft); }
.nav form { margin: 0; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: 23px; margin-bottom: 18px; }
h3 { font-size: 17px; margin-bottom: 10px; }
.lead, .muted { color: var(--muted); }
.lead { font-size: 17px; margin: 0; }
.small { font-size: 13px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 17px;
  color: white; background: var(--accent); border: 1px solid var(--accent); border-radius: 10px; font-weight: 750;
  font-size: 14px; box-shadow: 0 8px 20px rgba(247,148,29,.18); transition: .16s ease;
}
.button:hover { color: white; background: var(--accent-dark); transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-secondary { color: var(--ink); background: white; border-color: var(--line); box-shadow: none; }
.button-secondary:hover { color: var(--ink); background: var(--soft); }
.button-danger { color: var(--danger); background: white; border-color: #f3c7c3; box-shadow: none; }
.button-danger:hover { color: white; background: var(--danger); }
.button-small { min-height: 34px; padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.actions form { margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat, .card { background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 26px rgba(28,42,66,.045); }
.stat { padding: 23px; }
.stat strong { display: block; font-size: 30px; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 650; }
.card { padding: 26px; }
.section-gap { margin-top: 24px; }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: white; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { padding: 13px 16px; text-align: left; color: #758198; background: #f9fbfd; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 16px; border-top: 1px solid #edf0f5; vertical-align: middle; font-size: 14px; }
td strong { display: block; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active { color: #087443; background: #eaf8f1; }
.status-completed { color: #6f4a00; background: #fff3df; }
.status-approved { color: #6f4a00; background: #fff3df; }
.status-changes_requested { color: #9c2f19; background: #fff0ec; }
.status-pending { color: #087443; background: #eaf8f1; }
.status-paused { color: #7e5c00; background: #fff7d6; }
.status-inactive { color: #7e5c00; background: #fff7d6; }
.status-inactive, .status-expired, .status-closed { color: #7e5c00; background: #fff7d6; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
label { color: #344157; font-size: 13px; font-weight: 750; }
input, select, textarea {
  width: 100%; border: 1px solid #ccd4e0; border-radius: 10px; background: white; color: var(--ink);
  padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(247,148,29,.12); }
textarea { min-height: 126px; resize: vertical; }
input[type="color"] { height: 45px; padding: 5px; }
input[type="checkbox"] { width: auto; }
.check { display: flex; gap: 9px; align-items: center; font-weight: 600; }
.hint { color: var(--muted); font-size: 12px; margin: 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.input-action { display: flex; gap: 8px; }
.input-action input { min-width: 0; }

.alert { padding: 13px 15px; margin-bottom: 18px; border: 1px solid; border-radius: 11px; font-size: 14px; }
.alert-success { color: var(--success); border-color: #bfe4cf; background: #edf9f2; }
.alert-error { color: var(--danger); border-color: #f2c5c1; background: #fff2f1; }
.alert-warning { color: var(--warning); border-color: #f0d995; background: #fffbeb; }

.auth-body, .installer-body { display: grid; min-height: 100vh; place-items: center; padding: 28px; background: radial-gradient(circle at 20% 10%, #fff0dc 0, transparent 35%), var(--soft); }
.auth-card, .installer-card { width: min(100%, 460px); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.installer-card { width: min(100%, 860px); }
.auth-card .brand, .installer-card .brand { margin-bottom: 34px; }
.auth-card h1, .installer-card h1 { font-size: 31px; }
.stack { display: grid; gap: 17px; }
.full { width: 100%; }

.public-body { background: #f5f8fc; }
.public-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 68px; }
.public-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.public-brand img { display: block; max-height: 52px; max-width: 240px; object-fit: contain; }
.upload-card { padding: clamp(24px, 6vw, 48px); background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.upload-head { text-align: center; max-width: 570px; margin: 0 auto 30px; }
.upload-head h1 { font-size: clamp(29px, 5vw, 42px); }
.customer { color: var(--accent); font-weight: 750; margin-bottom: 7px; }
.message { color: #536078; white-space: pre-line; }
.request-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.request-meta span { padding: 6px 10px; border-radius: 999px; background: var(--soft); color: #5f6c80; font-size: 12px; font-weight: 650; }
.dropzone { display: block; padding: 38px 20px; border: 2px dashed #bdcbe0; border-radius: 16px; text-align: center; background: #fbfcfe; transition: .16s ease; cursor: pointer; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); background: #f0f7ff; }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 15px; color: var(--accent); background: #eaf3ff; font-size: 26px; }
.selected-files { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 7px; }
.selected-files li { padding: 9px 11px; border-radius: 8px; background: var(--soft); color: #526079; font-size: 13px; }
.progress { margin: 16px 0; }
.progress-track { height: 8px; overflow: hidden; background: #e7ecf3; border-radius: 999px; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .15s linear; }
.file-list { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.file-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-list li { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; color: #435067; border-bottom: 1px solid #edf0f5; font-size: 13px; }
.privacy-note { margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 12px; }
.state-panel { padding: 26px; border-radius: 15px; background: var(--soft); text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.requirement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0 28px; }
.requirement { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.pass { color: var(--success); font-weight: 800; }
.fail { color: var(--danger); font-weight: 800; }
.divider { height: 1px; background: var(--line); margin: 28px 0; }
.empty { padding: 46px 24px; text-align: center; color: var(--muted); }
.error-page { width: min(540px, calc(100% - 40px)); margin: 12vh auto; padding: 36px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.error-page .brand-mark { margin-bottom: 24px; }
.demo-banner { padding: 8px 18px; text-align: center; color: #725800; background: #fff5c7; font-size: 12px; font-weight: 750; }

@media (max-width: 820px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .topbar { height: auto; min-height: 66px; padding: 12px 18px; align-items: flex-start; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .nav a, .nav-button { padding: 8px; }
  .brand span:last-child { display: none; }
  .shell { width: min(100% - 28px, 1180px); padding-top: 28px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .requirement-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .card, .auth-card, .installer-card { padding: 22px; }
  .upload-card { border-radius: 18px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .actions { width: 100%; }
  .form-footer .button { flex: 1; }
}


/* CMC application style */
:root {
  --accent: #f7941d;
  --accent-dark: #d86f00;
  --orange: #f7941d;
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe7ef;
  --soft: #f1f2f2;
  --shadow: 0 8px 22px rgba(15, 23, 42, .08);
  font-family: Arial, Helvetica, sans-serif;
}

body { background: var(--soft); }
.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 3px solid var(--orange);
  backdrop-filter: none;
}
.brand { font-weight: 700; letter-spacing: 0; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  border-bottom: 4px solid var(--orange);
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0;
}
.nav a, .nav-button { border-radius: 6px; font-weight: 700; }
.nav a:hover, .nav a.active, .nav-button:hover { background: #fff0dc; color: #7a3c00; }

.shell { padding-top: 32px; }
.page-head { align-items: center; margin-bottom: 22px; }
.eyebrow {
  color: #a75100;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
h1, h2, h3 { letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 3.5vw, 38px); }
.lead { font-size: 16px; }

.button {
  border-radius: 7px;
  box-shadow: none;
  font-weight: 700;
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { transform: none; }
.button-secondary { background: #fff; }
.button-small { border-radius: 6px; }

.stat, .card, .table-wrap {
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
}
.card { padding: 22px; }
.stat { padding: 19px; }
.stat strong { color: #a75100; font-size: 28px; }

th { background: #fff7ec; color: #66513b; }
td { border-top-color: #e4ebf0; }
.status { border-radius: 6px; text-transform: none; letter-spacing: 0; }
.status::before { border-radius: 2px; }

input, select, textarea { border-radius: 7px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 148, 29, .16);
}

.alert { border-radius: 7px; }
.auth-body, .installer-body { background: #f1f2f2; }
.auth-card, .installer-card {
  border-radius: 12px;
  border-top: 5px solid var(--accent);
  box-shadow: var(--shadow);
}
.auth-card::after, .installer-card::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 26px;
  background: var(--orange);
}
.upload-card, .public-card, .portal-card { border-radius: 10px; }

@media (max-width: 700px) {
  .topbar { border-bottom-width: 2px; }
  .card, .auth-card, .installer-card { border-radius: 9px; }
}

/* AZ-FIVE focus tools: warm, compact and deliberately non-generic. */
:root { --accent: #f7941d; --accent-dark: #d86f00; --orange: #f7941d; --line: #e4ddd3; --soft: #f8f6f2; }
.brand-mark { background: var(--accent); border-bottom-color: #342414; }
.nav a:hover, .nav a.active, .nav-button:hover { background: #fff0dc; color: #7a3c00; }
.eyebrow, .stat strong { color: #a75100; }
th { background: #fff7ec; color: #66513b; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(247,148,29,.16); }
.auth-card, .installer-card { border-top-color: var(--accent); }
.status-open, .status-sent, .status-new, .status-draft, .status-in_progress, .status-unpaid { color: #8a4b00; background: #fff3df; }
.status-waiting, .status-review, .status-awaiting, .status-partial { color: #6b5310; background: #fff9d9; }
.status-completed, .status-acknowledged, .status-resolved, .status-won, .status-paid, .status-closed { color: #087443; background: #eaf8f1; }
.status-cancelled, .status-lost, .status-rejected { color: #7a3030; background: #fff0ec; }
.filterbar { display: grid; grid-template-columns: minmax(220px,1fr) minmax(180px,260px) auto; gap: 12px; align-items: end; margin-bottom: 20px; }
.filterbar .field { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.text-link { font-weight: 750; }
.stat-alert { border-color: #f2b8ae; background: #fff8f6; }
.field-wide { grid-column: 1 / -1; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 20px; border-left: 2px solid #eee6da; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline strong, .timeline span, .timeline time { display: block; }
.timeline span { color: var(--muted); margin: 3px 0; }
.timeline time { color: #8992a0; font-size: 12px; }
.danger-zone { align-self: start; }
.public-body { min-height: 100vh; background: #f8f6f2; }
.public-top { padding: 24px clamp(20px,5vw,64px); border-bottom: 3px solid var(--accent); background: #fff; }
.public-shell { width: min(820px,calc(100% - 36px)); margin: 46px auto 80px; padding: 0; }
.public-card { padding: clamp(25px,5vw,48px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.summary div { padding: 16px; background: var(--soft); border-radius: 8px; }
.summary span, .summary strong { display: block; }
.summary span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.summary strong { margin-top: 4px; }
.detail-list { margin: 26px 0; }
.detail-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.detail-list dd { margin: 6px 0 0; }
.card-inner { padding: 22px; background: var(--soft); border-radius: 9px; }
.confirmation { padding: 20px; border-radius: 9px; background: #eaf8f1; color: #075f39; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; }

@media (max-width: 760px) {
  .filterbar, .summary { grid-template-columns: 1fr; }
  .copy-row { grid-template-columns: 1fr; }
}

