:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1e293b; background: #f7f8fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: 100%; margin: 0 auto; min-height: 100vh; padding: 28px 20px 48px; }
.shell--consumer { max-width: 680px; }
.shell--admin { max-width: 760px; }
.brand { color: #165e68; letter-spacing: -.03em; font-size: 1.35rem; font-weight: 800; }
.prototype { margin-left: 8px; color: #8b5e00; border: 1px solid #e5bd64; background: #fff5d8; border-radius: 999px; padding: 3px 8px; font-size: .72rem; letter-spacing: .06em; vertical-align: middle; }
h1 { margin: 26px 0 8px; font-size: clamp(1.9rem, 6vw, 2.5rem); letter-spacing: -.045em; }
h2 { margin: 0 0 18px; font-size: 1.35rem; letter-spacing: -.025em; }
p { line-height: 1.55; color: #51606f; }
.card { background: #fff; border: 1px solid #e4e7eb; border-radius: 18px; box-shadow: 0 10px 30px rgb(20 35 52 / 6%); padding: 22px; margin-top: 22px; }
.grid { display: grid; gap: 14px; }
.two { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label { display: grid; gap: 7px; color: #334155; font-size: .9rem; font-weight: 700; }
input, select { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid #bec7d0; padding: 10px 12px; background: #fff; }
input:focus, select:focus { outline: 3px solid #b8e5e2; border-color: #177b82; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid #165e68; border-radius: 10px; background: #165e68; color: #fff; font-weight: 750; text-decoration: none; }
.button.secondary { background: #fff; color: #165e68; }
.button.warning { border-color: #9c5d00; color: #7b4900; }
.button:disabled { opacity: .52; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.subtle { font-size: .88rem; color: #64748b; }
.message { min-height: 24px; margin: 14px 0 0; font-weight: 650; }
.error { color: #a71d31; }.success { color: #08775c; }
.details { display: grid; gap: 12px; padding: 0; margin: 0; }.details div { border-bottom: 1px solid #e9edf0; padding-bottom: 12px; }.details dt { color: #6b7280; font-size: .8rem; }.details dd { margin: 4px 0 0; font-weight: 700; word-break: break-word; }
.notice { padding: 14px; border-radius: 12px; background: #ecfdf5; color: #075e48; line-height: 1.5; }.notice.warning { background: #fff7e2; color: #7b4900; }
.checklist { display: grid; gap: 8px; padding-left: 20px; }.checklist .complete { color: #08775c; }.checklist .pending { color: #9c5d00; }.delivery-sheet { width: min(100%, 680px); }.delivery-sheet .share-qr { margin: 0 auto 16px; display: block; }
.store-list { display: grid; gap: 14px; margin-top: 18px; }.store-row { display: grid; gap: 18px; padding: 20px; border: 1px solid #dfe7e9; border-radius: 14px; background: linear-gradient(135deg, #fff 0%, #fbfdfd 100%); }.store-card-header { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }.store-row h3 { margin: 0 0 5px; }.store-email { margin: 0; color: #64748b; font-size: .9rem; overflow-wrap: anywhere; }.status-pill { flex: 0 0 auto; border-radius: 999px; padding: 5px 9px; font-size: .78rem; font-weight: 800; }.status-pill.active { color: #075e48; background: #dcfce7; }.status-pill.disabled { color: #8a3b12; background: #ffedd5; }.store-card-details { display: grid; gap: 12px; padding: 0; margin: 0; }.store-card-details div { min-width: 0; }.store-card-details dt { color: #64748b; font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }.store-card-details dd { margin: 5px 0 0; color: #334155; font-weight: 650; overflow-wrap: anywhere; }.store-card-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid #e6eaed; }
.security-warning { color: #9c5d00 !important; }
.store-filter-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid #e6eaed; }.store-filter-bar label { width: min(100%, 260px); }.store-filter-bar .subtle { margin: 0; }
.admin-dashboard-layout, .store-dashboard-layout { display: grid; gap: 22px; }
.audit-panel { min-width: 0; }.audit-filters { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }.audit-list { display: grid; gap: 0; margin-top: 18px; }.audit-list article { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid #e6eaed; }.audit-list span { color: #64748b; font-size: .88rem; }.audit-detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; margin: 10px 0 0; padding: 12px; border-radius: 10px; background: #f6faf9; }.audit-detail-list div { min-width: 0; }.audit-detail-list dt { color: #64748b; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }.audit-detail-list dd { margin: 3px 0 0; color: #25434a; font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; }.account-card { min-width: 0; }
.environment-panel { max-width: 900px; }.environment-form { gap: 18px; }.environment-grid { display: grid; gap: 14px; }.environment-summary { display: grid; gap: 12px; margin: 0; padding: 16px; border-radius: 12px; background: #f2f7f7; }.environment-summary dt { color: #64748b; font-size: .76rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }.environment-summary dd { margin: 5px 0 0; color: #213f45; font-weight: 700; overflow-wrap: anywhere; }
.account-management-grid { display: grid; gap: 22px; align-items: start; }.account-management-grid .card { margin-top: 0; }.account-password-panel { max-width: 640px; }
.role-overview-grid, .admin-account-list { display: grid; gap: 14px; }.role-overview-grid article { padding: 16px; border: 1px solid #dfe7e9; border-radius: 12px; background: #fbfdfd; }.role-overview-grid h3 { margin: 0 0 6px; }.role-overview-grid p { margin: 0; }.admin-account-panel { max-width: 1020px; }.admin-account-row { display: grid; gap: 18px; padding: 20px; border: 1px solid #dfe7e9; border-radius: 14px; background: linear-gradient(135deg, #fff 0%, #fbfdfd 100%); }.platform-account { border-color: #b9ded9; background: #f1faf8; }.role-pill { flex: 0 0 auto; border-radius: 999px; padding: 5px 9px; color: #0f5961; background: #dff3f0; font-size: .78rem; font-weight: 800; }
.store-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.store-stat-grid strong { font-size: clamp(1.2rem, 3vw, 1.7rem); overflow-wrap: anywhere; }.store-self-card { max-width: 780px; }.contact-form { margin-top: 24px; }.contact-form h3 { margin: 0; }
.share-entry { display: grid; gap: 16px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid #e6eaed; }.share-entry h3 { margin: 0 0 6px; font-size: 1.05rem; }.share-entry p { margin: 0; }.share-entry .subtle { margin-top: 10px; }.share-qr { width: 200px; }
.public-entry-page { padding-top: 14px; }.public-entry-page h1 { margin-top: 8px; }.public-intro { max-width: 620px; margin: 0; }.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }.photo-preview { display: grid; gap: 12px; margin-top: 18px; }.photo-preview img { width: 100%; max-height: 360px; object-fit: contain; border: 1px solid #d8e6e4; border-radius: 12px; background: #f6faf9; }.photo-preview p { margin: 0; }.photo-preview .button { width: fit-content; }
.dashboard-shell { max-width: 1440px; padding: 0; }.dashboard-shell > .brand { display: none; }.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #f7f8fa; }.admin-sidebar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #dce3e8; background: #113e46; color: #effafa; }.admin-sidebar-brand { font-weight: 850; letter-spacing: -.03em; font-size: 1.15rem; white-space: nowrap; }.admin-sidebar-brand span { margin-left: 6px; color: #b9ded9; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }.admin-nav { display: flex; flex: 1 1 300px; gap: 4px; overflow-x: auto; }.admin-nav button, .text-button { border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 700; }.admin-nav button { white-space: nowrap; border-radius: 8px; padding: 9px 10px; color: #cce5e2; }.admin-nav button.active, .admin-nav button:hover { background: #1b5d66; color: #fff; }.admin-account { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #cce5e2; font-size: .78rem; }.admin-account strong { color: #fff; overflow-wrap: anywhere; }.admin-account .text-button { color: #fff; text-decoration: underline; }.admin-main { width: min(100%, 1200px); margin: 0 auto; padding: 30px 20px 52px; }.admin-page-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }.admin-page-heading h1 { margin: 4px 0 8px; }.admin-page-heading p { margin: 0; max-width: 680px; }.eyebrow { margin: 0; color: #177b82; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }.stat-card { display: grid; gap: 6px; min-width: 0; padding: 18px; border: 1px solid #dce6e8; border-radius: 14px; background: #eaf5f3; }.stat-card span { color: #47656a; font-size: .85rem; font-weight: 700; }.stat-card strong { color: #133f47; font-size: 2rem; letter-spacing: -.05em; }.dashboard-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.section-heading h2 { margin-bottom: 6px; }.section-heading p { margin: 0; }.section-heading .text-button { color: #176b73; white-space: nowrap; text-decoration: underline; }.readiness-list { display: grid; margin-top: 18px; }.readiness-list article { display: grid; gap: 3px; padding: 13px 0; border-top: 1px solid #e6eaed; }.readiness-list span { color: #64748b; font-size: .88rem; }
.dashboard-shell .admin-main { background: radial-gradient(circle at 90% 0%, #e3f5f1 0, transparent 26rem); }.admin-sidebar { box-shadow: 10px 0 30px rgb(15 62 70 / 12%); }.admin-sidebar-brand { padding: 0 10px 16px; border-bottom: 1px solid rgb(204 229 226 / 20%); }.admin-nav { gap: 7px; }.admin-nav button { transition: background .16s ease, transform .16s ease; }.admin-nav button:hover { transform: translateX(2px); }.admin-main { padding-top: 48px; }.admin-page-heading { padding-bottom: 22px; border-bottom: 1px solid #dce8e6; }.card { border-color: #dbe7e5; box-shadow: 0 12px 32px rgb(20 62 68 / 7%); }.stat-card { border-color: #cfe4e0; background: linear-gradient(145deg, #f6fdfb, #e4f4f1); box-shadow: 0 8px 20px rgb(20 62 68 / 5%); }.stat-card strong { font-size: clamp(2rem, 3vw, 2.45rem); }.store-row, .admin-account-row { border-color: #d8e6e4; box-shadow: 0 7px 18px rgb(20 62 68 / 4%); }.store-row:hover, .admin-account-row:hover { border-color: #a9d4ce; }.audit-detail-list { border: 1px solid #dfebe9; }.environment-summary { border: 1px solid #d8e8e5; }.button { box-shadow: 0 3px 8px rgb(22 94 104 / 16%); }.button.secondary { box-shadow: none; }.modal { border: 1px solid #d5e5e2; }
.modal-backdrop { position: fixed; inset: 0; padding: 20px; background: rgb(15 23 42 / .5); display: grid; place-items: center; }.modal { width: min(100%, 460px); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 24px 80px rgb(0 0 0 / .22); }.credential { display: block; margin: 10px 0 18px; padding: 12px; color: #102f35; background: #e4f5f4; border-radius: 10px; overflow-wrap: anywhere; font: 700 1rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.qr { width: min(100%, 220px); background: white; border: 1px solid #e3e6ea; padding: 10px; border-radius: 12px; }
@media (min-width: 600px) {
  .shell--consumer { max-width: 720px; padding: 40px 32px 56px; }
  .shell--admin { max-width: 960px; padding: 40px 32px 56px; }
  .store-dashboard-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); align-items: start; }
  .store-dashboard-layout .account-card { grid-column: 1 / -1; }
  .store-card-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .environment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.environment-grid label:last-child { max-width: 260px; }
  .account-management-grid { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); }
  .role-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-entry { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .admin-sidebar { align-items: flex-start; }.admin-account { flex-basis: 100%; margin-left: 0; }.stat-grid { grid-template-columns: 1fr; }.dashboard-grid { grid-template-columns: 1fr; }.admin-page-heading { flex-direction: column; }.admin-page-heading .button { width: 100%; }.admin-main { padding-inline: 16px; }
}
@media (min-width: 1024px) {
  .shell--admin { max-width: 1320px; padding: 48px 56px 72px; }
  .page-heading { max-width: 760px; }
  .admin-dashboard-layout { grid-template-columns: 1fr; align-items: start; }
  .admin-dashboard-layout .card { margin-top: 0; }
  .store-dashboard-layout { grid-template-columns: minmax(360px, .95fr) minmax(440px, 1.15fr); }
}
@media (min-width: 1024px) {
  .dashboard-shell { max-width: none; }.admin-layout { grid-template-columns: 248px minmax(0, 1fr); }.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; align-items: stretch; align-self: start; min-height: 100vh; padding: 28px 18px; border-right: 1px solid #0e333a; border-bottom: 0; }.admin-nav { display: grid; flex: initial; overflow: visible; margin-top: 26px; }.admin-nav button { text-align: left; padding: 12px; }.admin-account { display: grid; gap: 6px; margin-top: auto; margin-left: 0; }.admin-main { max-width: 1280px; padding: 42px 44px 64px; }.dashboard-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (min-width: 1200px) {
  .admin-dashboard-layout { grid-template-columns: 330px minmax(0, 1fr); }
  .audit-panel { grid-column: 1 / -1; }
  .store-card-actions { justify-content: flex-end; }
}
@media (max-width: 420px) { .shell { padding-inline: 16px; }.card { padding: 18px; } }
/* Shrink grid/flex children instead of allowing navigation or forms to widen the page. */
.dashboard-shell { padding: 0; max-width: none; }
.admin-layout { grid-template-columns: minmax(0, 1fr); }
.admin-layout, .admin-main, .admin-sidebar, .admin-nav, .admin-account, .dashboard-grid > *, .grid > * { min-width: 0; }
.admin-main { max-width: 1280px; }
.admin-nav { max-width: 100%; }
.admin-account { flex-wrap: wrap; }
.store-card-header { flex-wrap: wrap; }
input, select { min-width: 0; }
.modal-backdrop { z-index: 100; overflow-y: auto; }
.modal { max-height: calc(100dvh - 40px); overflow-y: auto; }
.share-qr { width: 200px; max-width: 100%; }
.saved-session { padding: 18px 0; border-top: 1px solid #e0e9e7; }
.saved-session:first-child { border-top: 0; }
.results-shell.shell--consumer { max-width: 1180px; padding-bottom: calc(126px + env(safe-area-inset-bottom)); }
.result-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px 0 10px; font-size: .85rem; color: #657578; }
.result-nav a { color: #165e68; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.result-heading { max-width: 760px; padding: 25px 0; }
.result-heading h1 { margin: 10px 0 14px; font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.08; color: #183f45; }
.result-heading > p { margin: 10px 0; }
.result-store-source { font-size: .88rem; }
.result-network:empty { display: none; }
.result-network { padding: 12px 0; color: #8c5a13; font-weight: 650; }
.generation-panel { text-align: center; padding-block: 36px; max-width: 720px; margin: 20px auto; }
.generation-spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid #d6e9e5; border-top-color: #165e68; border-radius: 50%; animation: result-spin 1.2s linear infinite; margin-bottom: 18px; }
@keyframes result-spin { to { transform: rotate(360deg); } }
.recommendation-section { margin-top: 30px; }
.recommendation-section > .section-heading { margin-bottom: 16px; }
.recommendation-section h2 { margin: 5px 0 10px; }
.option-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.option-tabs button { display: grid; gap: 6px; text-align: left; min-width: 0; min-height: 84px; border: 1px solid #d2dfdd; border-radius: 12px; background: #fff; color: #345052; padding: 14px 12px; }
.option-tabs span { font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; }
.option-tabs strong { font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.option-tabs [aria-selected="true"] { border: 2px solid #165e68; padding: 13px 11px; background: #edf7f3; color: #114c55; }
.option-panel { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid #d9e5e1; border-radius: 20px; box-shadow: 0 16px 42px rgb(24 63 69 / 6%); }
.effect-column, .option-information { min-width: 0; }
.effect-image-frame { position: relative; background: #eaf0ed; min-height: 220px; }
.effect-image { width: 100%; height: auto; max-height: 600px; display: block; object-fit: contain; }
.preview-expand { display: flex; gap: 7px; align-items: center; min-height: 44px; position: absolute; right: 12px; bottom: 12px; padding: 10px 12px; border: 1px solid #cedbd8; background: #fffffff2; color: #164b52; border-radius: 9px; font-weight: 750; font-size: .8rem; box-shadow: 0 3px 12px #143e4420; }
.preview-caption { padding: 13px 18px; margin: 0; font-size: .76rem; background: #f4f7f4; color: #5f716e; }
.option-information { padding: 24px 22px; overflow-wrap: anywhere; }
.quality-pill { display: inline-block; padding: 6px 10px; font-size: .72rem; font-weight: 750; border-radius: 8px; background: #e7f5ef; color: #12644c; }
.quality-caution { background: #fff3d9; color: #805611; }
.option-information > h2 { margin-top: 14px; font-size: 1.65rem; }
.rationale h3, .product-summary h3 { margin: 0 0 10px; font-size: 1rem; }
.rationale { margin-block: 24px; }
.rationale ul { padding-left: 20px; color: #506260; line-height: 1.65; }
.rationale li { margin-bottom: 9px; }
.product-summary { padding-top: 20px; border-top: 1px solid #e3ebe5; }
.product-summary > .eyebrow { margin-bottom: 10px; }
.product-summary p { margin: 8px 0 12px; }
.functional-summary { padding: 18px 0 0; margin-top: 18px; border-top: 1px solid #e3ebe5; }
.functional-summary .text-button { color: #165e68; padding: 10px 0; min-height: 44px; text-decoration: underline; }
.result-contact { margin-top: 30px; }
.result-contact > h2 { margin-top: 10px; }
.result-contact .details { margin-top: 22px; }
.result-contact-bar { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px max(16px, calc((100vw - 1116px) / 2)) calc(14px + env(safe-area-inset-bottom)); background: #fffffff7; backdrop-filter: blur(14px); border-top: 1px solid #d6e4e0; box-shadow: 0 -5px 25px #16434a0c; }
.result-contact-bar > div { min-width: 0; display: grid; gap: 4px; font-size: .87rem; overflow-wrap: anywhere; }
.result-contact-bar span { color: #657578; font-size: .8rem; }
.result-contact-bar .button { flex: 0 0 auto; }
.preview-unavailable { min-height: 260px; display: grid; align-content: center; justify-items: start; padding: 30px; gap: 10px; }
.preview-unavailable h3, .preview-unavailable p { margin: 0; }
.preview-unavailable > span { font-size: 2.5rem; color: #7e9991; }
.result-dialog { width: min(700px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #d5e4de; border-radius: 18px; color: #1e393d; background: #fff; overflow: auto; box-shadow: 0 24px 100px #0d242f66; }
.result-dialog:has(.zoom-surface) { width: min(1300px, calc(100vw - 24px)); }
.result-dialog::backdrop { background: #0d242fd6; }
.result-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.result-dialog-header h2 { margin: 0; overflow-wrap: anywhere; font-size: 1.2rem; }
.result-dialog-header .button { flex: 0 0 auto; }
.zoom-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.zoom-surface { background: #edf1ed; border-radius: 10px; max-height: 65dvh; overflow: auto; }
.preview-large { display: block; width: 100%; max-width: none; height: auto; margin: auto; }
.result-product { display: flex; gap: 18px; align-items: center; }
.result-product > div { min-width: 0; overflow-wrap: anywhere; }
.result-product h3 { margin: 8px 0; }
.digital-swatch { flex: 0 0 64px; width: 64px; height: 80px; display: grid; place-items: center; border: 1px solid #b8c6c2; border-radius: 8px; box-shadow: inset 0 0 0 4px #ffffff4d; background: #edf1ee; color: #61756f; }
.result-specs { display: grid; gap: 14px; margin: 24px 0; }
.result-specs > div { padding-bottom: 12px; border-bottom: 1px solid #e2e9e5; }
.result-specs dt { font-size: .8rem; color: #61736e; }
.result-specs dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.results-shell button:focus-visible, .results-shell a:focus-visible, .result-dialog button:focus-visible { outline: 3px solid #74b4af; outline-offset: 4px; }
@media (min-width: 800px) { .option-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }.effect-column { position: sticky; top: 15px; }.result-contact .details { grid-template-columns: repeat(3, minmax(0, 1fr)); }.result-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .option-tabs { gap: 5px; }.option-tabs button { padding: 12px 8px; }.option-tabs [aria-selected="true"] { padding: 11px 7px; }.option-tabs strong { font-size: .79rem; }.result-dialog { padding: 18px; }.result-contact .actions .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .generation-spinner { animation: none; } }
.audit-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.ai-admin-panel { margin-top: 24px; min-width: 0; overflow-wrap: anywhere; }
.ai-admin-panel .actions { flex-wrap: wrap; }
.ai-diagnostic { border-top: 1px solid #d5e4de; padding: 18px 0; min-width: 0; }
.ai-diagnostic summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.ai-diagnostic details p, .ai-diagnostic li { overflow-wrap: anywhere; }
.budget-content, .budget-store-name { min-width: 0; overflow-wrap: anywhere; }
.budget-history summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.budget-log-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.budget-log-filters label { flex: 1 1 230px; min-width: 0; }
.history-records { display: grid; gap: 22px; margin-top: 22px; }
.history-record { min-width: 0; overflow-wrap: anywhere; }
.history-record h2 { margin: 0; font-size: 1.2rem; }
.history-record .store-card-header p { margin: 6px 0; }
.history-image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 18px 0; }
.history-image-grid > section { min-width: 0; }
.history-image { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.history-image figcaption { display: grid; gap: 6px; margin-bottom: 10px; }
.history-image figcaption span { color: #61736e; font-size: .8rem; }
.history-image img { display: block; width: 100%; height: 230px; object-fit: contain; border-radius: 12px; background: #edf3ef; border: 1px solid #d5e4de; }
.history-image-placeholder, .history-image-error { padding: 24px; border-radius: 12px; background: #edf3ef; color: #61736e; }
.history-dialog { width: min(1080px, calc(100vw - 24px)); }
.history-dialog > .history-image { max-width: 550px; }
.history-dialog .history-image img { height: 300px; }
.history-task { border-top: 1px solid #d5e4de; margin-top: 24px; padding-top: 18px; }
.history-task h3 { overflow-wrap: anywhere; }
.budget-usage-record { padding: 18px 0; border-top: 1px solid #d5e4de; min-width: 0; overflow-wrap: anywhere; }
.budget-usage-record h3 { margin: 0; overflow-wrap: anywhere; }
.budget-store-actions { display: grid; gap: 12px; }
.budget-store-actions article { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid #d5e4de; }
.budget-store-actions strong { flex: 1 1 240px; overflow-wrap: anywhere; }
.task-cost-summary { display: flex; gap: 10px 20px; flex-wrap: wrap; padding: 12px; margin: 12px 0; border-radius: 10px; background: #edf3ef; overflow-wrap: anywhere; }
.task-cost-requests { display: grid; gap: 10px; margin-top: 12px; }
.task-cost-requests article { display: grid; gap: 6px; padding: 12px; background: #f4f7f6; border-radius: 8px; overflow-wrap: anywhere; }
.budget-usage-record .environment-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 1024px) { .admin-layout { grid-template-columns: 248px minmax(0, 1fr); } }
@media (max-width: 1023px) { .admin-nav { flex-basis: 100%; } .admin-sidebar-brand { padding-bottom: 8px; } }
@media print {
  @page { size: A4; margin: 14mm; }
  :root, body { background: #fff; }
  .shell { width: 182mm; max-width: 100%; min-height: auto; padding: 0; }
  .shell--consumer { max-width: none; }
  .print-entry { display: none !important; }
  .consumer-actions { display: none !important; }
  .result-contact-bar, .result-nav, .preview-expand, .option-tabs, .result-dialog, .results-shell button { display: none !important; }
  body:has(.delivery-modal) #app { display: none !important; }
  .delivery-modal { position: static; display: block; padding: 0; background: transparent; }
  .delivery-sheet { width: 182mm; max-width: 100%; max-height: none; overflow: visible; margin: 0; padding: 0; box-shadow: none; }
  .delivery-actions { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
  .share-entry { break-inside: avoid; }
}
/* Consumer photo confirmation and catalogue media must fit phones/tablets. */
.photo-preferences { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border, #dce3df); }
.preference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.photo-preferences label { display: grid; gap: .45rem; margin-bottom: 1rem; min-width: 0; }
.photo-preferences select, .photo-preferences textarea { width: 100%; min-width: 0; box-sizing: border-box; padding: .8rem; border: 1px solid #ccd6d0; border-radius: .65rem; background: white; font: inherit; }
.catalogue-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.catalogue-media figure { margin: 0; min-width: 0; }
.catalogue-media img { width: 100%; height: 220px; object-fit: contain; background: #f4f5f1; border-radius: .6rem; }
.catalogue-media figcaption { margin-top: .5rem; color: #53645b; }
@media (max-width: 480px) { .preference-grid, .catalogue-media { grid-template-columns: minmax(0, 1fr); } }
.shell--health { max-width: 1180px; }
.health-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.health-releases, .health-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.health-release, .health-check { min-width: 0; }
.health-commit { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.health-check { padding: 16px; border: 1px solid #d7e3df; border-left: 4px solid #82938b; border-radius: 12px; background: #f8faf9; }
.health-check > div { display: flex; align-items: start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.health-check h3 { margin: 0; font-size: 1rem; }.health-check p { margin-bottom: 0; overflow-wrap: anywhere; }
.health-pill { border-radius: 99px; padding: 3px 9px; font-size: .78rem; font-weight: 700; background: #e7edeb; }
.health-check--pass { border-color: #4b9474; }.health-check--pass .health-pill { background: #dff3e9; color: #205d42; }
.health-check--fail { border-color: #bc5555; }.health-check--fail .health-pill { background: #fce5e5; color: #8b2929; }
.health-check--warning { border-color: #c99531; }.health-check--warning .health-pill { background: #fff2d7; color: #805912; }
.health-comparison { padding: 12px; border-left: 4px solid #82938b; background: #f4f7f6; }
#expected-commit-form { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; }#expected-commit-form label { flex: 1 1 260px; }
@media (max-width: 640px) { .health-releases, .health-check-grid { grid-template-columns: minmax(0, 1fr); }.health-heading { display: block; }.health-heading > a { margin-bottom: 16px; } }
/* Consumer mobile/tablet hierarchy: actions and previews come before detail. */
.public-entry-page h1 { font-size: clamp(1.75rem, 4vw, 2.2rem); line-height: 1.16; }
.public-intro, .result-store-source, .entry-return { overflow-wrap: anywhere; }
.entry-return { margin: 14px 0 0; }
.entry-return > p { margin: 6px 0 0; }
.entry-return .message:empty { display: none; }
.photo-entry-actions { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.photo-entry-actions .button { width: 100%; min-height: 48px; }
.photo-privacy { font-size: .875rem; line-height: 1.5; margin: 14px 0 6px; }
.photo-upload-help summary, .preference-options summary, .review-details summary { cursor: pointer; min-height: 46px; padding: 12px 0; font-size: 1rem; font-weight: 700; color: #165e68; }
.photo-upload-help p { font-size: .875rem; }
.photo-preferences { margin-top: 12px; padding-top: 12px; }
.photo-preferences select, .photo-preferences textarea { font-size: 1rem; }
.photo-preferences > .button { width: 100%; margin-top: 12px; }
.results-shell.shell--consumer { padding-top: 20px; }
.result-nav { padding: 8px 0 0; font-size: .875rem; align-items: center; }
.result-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.result-heading { padding: 8px 0 10px; }
.result-heading h1 { font-size: clamp(1.65rem, 3.5vw, 2rem); line-height: 1.15; margin: 6px 0 8px; }
.result-heading > p { margin: 6px 0; }
.recommendation-section { margin-top: 10px; }
.recommendation-section > .section-heading { align-items: center; margin-bottom: 10px; }
.recommendation-section > .section-heading h2 { margin: 0; font-size: 1.15rem; }
.option-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.option-tabs button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 8px; font-size: 1rem; font-weight: 750; }
.option-tabs [aria-selected="true"] { padding: 9px 7px; }
.effect-image-frame { min-height: 0; }
.effect-image { max-height: min(560px, 52dvh); }
.preview-caption { padding: 10px 14px; font-size: .875rem; line-height: 1.5; }
.preview-expand { font-size: .875rem; }
.option-information { padding: 20px; }
.option-information > h2 { font-size: 1.5rem; line-height: 1.2; }
.results-shell .quality-pill { font-size: .875rem; line-height: 1.4; }
.review-details { border-top: 1px solid #e3ebe5; margin: 18px 0 0; padding-top: 8px; }
.review-details h3 { margin-top: 14px; }
.result-contact-bar span { font-size: .875rem; }
body.consumer-dialog-open { overflow: hidden; }
.consumer-result-dialog { padding: 0; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: hidden; }
.consumer-result-dialog[open] { display: flex; flex-direction: column; }
.consumer-result-dialog > .result-dialog-header { flex: 0 0 auto; margin: 0; padding: 16px; background: white; border-bottom: 1px solid #dbe7e5; }
.consumer-result-dialog > .result-dialog-header h2 { font-size: 1.125rem; line-height: 1.3; }
.consumer-dialog-body { min-height: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; }
.consumer-dialog-body:focus-visible { outline: 2px solid #74b4af; outline-offset: -2px; }
.consumer-dialog-body .subtle, .consumer-dialog-body .result-specs dt { font-size: .875rem; }
@media (min-width: 600px) { .photo-entry-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) and (max-height: 850px) { .effect-image { max-height: min(400px, max(180px, calc(100dvh - 430px))); } }
@media (max-width: 420px) { .consumer-result-dialog { padding: 0; } }

/* Shared portal visual system. Consumer layouts keep their own presentation. */
:root {
  --admin-primary: #165e68;
  --admin-ink: #203840;
  --admin-muted: #5e7079;
  --admin-border: #dce5e7;
  --admin-surface: #f4f7f8;
  --admin-success: #17634b;
  --admin-success-bg: #e9f5ef;
  --admin-warning: #80520c;
  --admin-warning-bg: #fff5df;
}
.dashboard-shell .admin-layout { background: var(--admin-surface); }
.dashboard-shell .admin-main { background: none; color: var(--admin-ink); }
.dashboard-shell .admin-main p { color: var(--admin-muted); }
.admin-main a:not(.button), .admin-dialog a:not(.button) { color: var(--admin-primary); text-underline-offset: 3px; overflow-wrap: anywhere; }
.admin-main a:not(.button):hover, .admin-dialog a:not(.button):hover { color: #0d444c; text-decoration-thickness: 2px; }
.admin-main :is(button, a, input, select, summary):focus-visible, .admin-nav button:focus-visible, .admin-dialog :is(button, a, input, select, summary):focus-visible { outline: 3px solid #78b9b5; outline-offset: 3px; }
.admin-main :is(input, select), .admin-dialog :is(input, select) { font-size: 1rem; font-weight: 500; color: var(--admin-ink); border-color: #bfcdd1; }
.admin-main .button, .admin-dialog .button { font-size: .9375rem; line-height: 1.4; border-radius: 10px; min-height: 46px; }
.admin-main .card { border-color: var(--admin-border); box-shadow: 0 4px 18px #173d4607; padding: 24px; }
.admin-main .stat-card { background: #fff; border-color: var(--admin-border); box-shadow: 0 4px 18px #173d4607; }
.admin-main .stat-card strong { color: var(--admin-primary); }
.admin-main .store-row, .admin-main .admin-account-row { background: #fff; box-shadow: none; }
.admin-main .platform-account { background: #f4faf9; }
.admin-main .environment-summary, .admin-dialog .environment-summary, .admin-main .audit-detail-list { background: #f5f8f9; border-color: var(--admin-border); }
.admin-main :is(.store-card-details, .environment-summary, .audit-detail-list) dt, .admin-dialog .environment-summary dt { color: var(--admin-muted); font-size: .8125rem; line-height: 1.4; letter-spacing: .025em; }
.admin-main .audit-detail-list dd { font-size: .9375rem; font-weight: 550; }
.admin-main :is(.status-pill, .role-pill, .quality-pill), .admin-dialog .status-pill { display: inline-flex; align-items: center; align-self: start; width: fit-content; max-width: 100%; border-radius: 999px; padding: 6px 10px; font-size: .8125rem; line-height: 1.35; font-weight: 700; }
.admin-main .status-pill.active, .admin-main .quality-pill { color: var(--admin-success); background: var(--admin-success-bg); }
.admin-main .status-pill.disabled { color: var(--admin-warning); background: var(--admin-warning-bg); }
.admin-main .status-pill.neutral { color: #365e69; background: #edf3f5; }
.admin-main .status-pill.danger { color: #9b2940; background: #fcebef; }
.admin-main .role-pill { color: var(--admin-primary); background: #eaf4f4; }
.dashboard-grid { align-items: start; }
.dashboard-grid > .card { margin-top: 0; }
.admin-main .section-heading { flex-wrap: wrap; gap: 12px 20px; }
.admin-main .section-heading > div { flex: 1 1 240px; min-width: 0; }
.admin-main .section-heading > button { flex: 0 0 auto; min-height: 32px; padding: 4px 0; }
.admin-main .section-heading h2 { line-height: 1.25; }
.admin-nav { grid-template-columns: minmax(0, 1fr); }
.admin-nav button { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; font-size: .9375rem; }
.admin-nav button:hover { transform: none; }
.admin-sidebar { box-shadow: 4px 0 16px #173d4608; }
.store-admin-layout .store-dashboard-layout { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.store-admin-layout .store-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-admin-layout .store-stat-grid strong { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.025em; }
.audit-event-summary { display: grid; gap: 5px; min-width: 0; }
.audit-event-summary strong, .audit-event-summary span { overflow-wrap: anywhere; }
.audit-event-summary time, .budget-event-summary time { color: var(--admin-muted); font-size: .875rem; }
.audit-list-compact article { padding: 16px 0; }
.record-details { margin-top: 8px; min-width: 0; }
.record-details > summary { cursor: pointer; color: var(--admin-primary); font-size: .875rem; font-weight: 650; padding: 8px 0; width: fit-content; }
.record-details[open] > summary { margin-bottom: 8px; }
.budget-event-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .65fr) minmax(160px, .55fr); gap: 16px; align-items: center; }
.budget-event-summary > div { min-width: 0; display: grid; gap: 6px; }
.budget-event-summary h3 { font-size: 1rem; line-height: 1.4; }
.budget-event-amount { color: var(--admin-ink); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.budget-usage-record { padding: 18px 0 12px; }
.budget-store-actions article { gap: 12px; }
.admin-main .notice.warning, .admin-dialog .notice.warning { color: var(--admin-warning); background: var(--admin-warning-bg); }
html:has(dialog.admin-dialog[open]) { overflow: hidden; }
.admin-dialog { width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; color: var(--admin-ink); border: 1px solid var(--admin-border); border-radius: 18px; }
.admin-dialog[open], .admin-dialog > .modal { display: flex; flex-direction: column; min-height: 0; }
.admin-dialog > .modal { width: 100%; max-height: inherit; margin: 0; border: 0; padding: 0; overflow: hidden; border-radius: inherit; box-shadow: none; }
.admin-dialog-compact { width: min(520px, calc(100vw - 32px)); }
.admin-dialog.history-dialog { width: min(1080px, calc(100vw - 32px)); }
.admin-dialog::backdrop { background: #0d242fb3; }
.admin-dialog .result-dialog-header { flex: 0 0 auto; align-items: center; padding: 20px 24px; margin: 0; background: #fff; border-bottom: 1px solid var(--admin-border); }
.admin-dialog .result-dialog-header h2 { line-height: 1.3; font-size: 1.2rem; }
.admin-dialog-body { flex: 1 1 auto; min-height: 0; padding: 24px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.admin-dialog-body > :first-child { margin-top: 0; }
.admin-dialog-body:focus-visible { outline: 2px solid #78b9b5; outline-offset: -3px; }
.admin-dialog-body > .history-image { max-width: 550px; }
.admin-dialog .environment-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-dialog .message:empty { min-height: 0; margin: 0; }
@media (min-width: 1200px) {
  .admin-nav { width: 100%; }
  .admin-nav button { text-align: left; }
  .audit-event-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .audit-event-summary > strong { grid-column: 1; }
  .audit-event-summary > span { grid-column: 1; }
  .audit-event-summary > time { grid-column: 2; grid-row: 1 / 3; text-align: right; align-self: center; }
  .audit-list-compact .audit-event-summary { grid-template-columns: minmax(0, 1fr); }
  .audit-list-compact .audit-event-summary > time { grid-column: 1; grid-row: auto; text-align: left; }
}
@media (max-width: 1199px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { position: static; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; align-self: auto; min-height: 0; padding: 20px 24px; gap: 16px; border-right: 0; }
  .admin-sidebar-brand { border: 0; padding: 0; }
  .admin-account { display: flex; flex-basis: auto; margin: 0 0 0 auto; max-width: 60%; gap: 6px 10px; }
  .admin-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1 0 100%; order: 3; width: 100%; margin: 0; overflow: visible; gap: 6px; }
  .admin-nav button { text-align: left; padding: 10px 12px; min-height: 46px; }
  .admin-main { padding: 32px 24px 48px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-page-heading { gap: 16px; }
  .admin-page-heading h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
}
@media (min-width: 900px) and (max-width: 1199px) { .admin-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .admin-sidebar { padding: 16px; gap: 12px; }
  .admin-account { flex-basis: 100%; max-width: 100%; margin: 0; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav button { font-size: .875rem; }
  .admin-main { padding: 24px 16px 40px; }
  .admin-main .card { padding: 18px; }
  .admin-main .store-card-actions .button { flex: 1 1 100%; }
  .store-admin-layout .store-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .budget-event-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .budget-event-summary > div { grid-column: 1 / -1; }
  .budget-event-amount { font-size: .9375rem; }
  .admin-dialog .result-dialog-header { padding: 16px; gap: 12px; }
  .admin-dialog-body { padding: 18px 16px; }
  .admin-dialog .environment-summary { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  html:has(dialog.admin-dialog[open]) { overflow: visible; }
  .admin-dialog.delivery-modal { display: block !important; position: static; width: 182mm; max-width: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; box-shadow: none; }
  .admin-dialog.delivery-modal::backdrop { background: transparent; }
  .admin-dialog.delivery-modal .delivery-sheet, .admin-dialog.delivery-modal .admin-dialog-body { display: block; width: 100%; max-height: none; padding: 0; overflow: visible; }
  .admin-dialog.delivery-modal .result-dialog-header { padding: 0; margin-bottom: 18px; border: 0; }
  .admin-dialog.delivery-modal .result-dialog-header button { display: none !important; }
}
