:root {
  --blue: #073b78;
  --blue-2: #0b5db7;
  --blue-soft: #eaf3fb;
  --ink: #10253d;
  --muted: #64758a;
  --line: #dbe6f0;
  --white: #fff;
  --red: #c8192e;
  font-family: "Century Gothic", "Avenir Next", Avenir, Montserrat, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f4f8fc; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.eyebrow { margin: 0 0 .55rem; color: var(--blue-2); font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.muted { color: var(--muted); }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand { padding: clamp(3rem, 8vw, 8rem); color: white; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 15% 20%, #2d79c3, transparent 38%), linear-gradient(145deg, #052b59, #074789 65%, #0b5db7); }
.login-brand .eyebrow { color: #cce4fa; }
.login-brand h1 { margin: .5rem 0 1rem; font-size: clamp(3.3rem, 8vw, 6.7rem); letter-spacing: -.07em; }
.login-brand p:last-child { max-width: 32rem; font-size: 1.1rem; line-height: 1.7; }
.brand-mark { display: inline-flex; align-self: flex-start; gap: .12rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.05em; }
.brand-mark span:nth-child(2) { color: #ef3d4e; }
.login-panel { display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(100%, 430px); padding: clamp(2rem, 5vw, 3.5rem); background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 65px rgba(25, 63, 101, .12); }
.login-card h2 { margin: 0; font-size: 2rem; }
.login-card label { display: block; margin: 1.25rem 0 .4rem; font-size: .85rem; font-weight: 700; }
.login-card input { width: 100%; padding: .9rem 1rem; border: 1px solid #bdcede; border-radius: 9px; outline: none; }
.login-card input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(11,93,183,.12); }
.login-card button { width: 100%; margin: 1.5rem 0 1rem; padding: .95rem; color: white; border: 0; border-radius: 9px; background: var(--blue); font-weight: 700; cursor: pointer; }
.login-card small { display: block; color: var(--muted); text-align: center; }
.alert { margin-top: 1rem; padding: .8rem 1rem; border-radius: 8px; font-size: .86rem; }
.alert.error { color: #8b1723; background: #fdebed; }
.alert.success { color: #17613a; background: #e9f8f0; }
.topbar { position: sticky; top: 0; z-index: 100; min-height: 72px; padding: 0 clamp(1rem, 4vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; color: white; background: var(--blue); box-shadow: 0 4px 18px rgba(0,34,72,.18); }
.topbar-brand-group { display: flex; align-items: center; gap: .8rem; }
.topbar-actions { display: flex; align-items: center; gap: .7rem; }
.logo { display: flex; align-items: baseline; gap: .45rem; font-size: 1.45rem; }
.logo strong { letter-spacing: .04em; }
.logo strong::first-letter { color: white; }
.logo span { color: #9bc7f2; }
.home-button { width: 40px; height: 40px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; transition: background .16s ease, transform .16s ease; }
.home-button:hover { background: rgba(255,255,255,.13); transform: translateY(-1px); }
.home-button:focus-visible { outline: 3px solid rgba(255,255,255,.35); outline-offset: 2px; }
.home-button svg { width: 21px; height: 21px; fill: currentColor; }
.user-area { display: flex; align-items: center; gap: 1.2rem; text-align: right; }
.user-area small { display: block; margin-top: .15rem; color: #bfd9f2; }
.button-quiet { padding: .58rem .85rem; color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: 7px; cursor: pointer; }
.link-button { display: inline-block; }
.button-primary { padding: .72rem 1rem; color: white; background: var(--blue); border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; }
.topbar .button-primary { color: var(--blue); background: white; }
.page-actions { display: flex; align-items: center; gap: .7rem; }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.2rem 0 5rem; }
.hero { padding: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: white; border-radius: 18px; background: linear-gradient(125deg, var(--blue), #0b67c4); box-shadow: 0 16px 35px rgba(8,67,126,.17); }
.hero h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero p:last-child { margin-bottom: 0; color: #d8ebfc; }
.hero .eyebrow { color: #a8d2fa; }
.status { white-space: nowrap; padding: .65rem .9rem; background: rgba(255,255,255,.12); border-radius: 999px; font-size: .82rem; }
.status span { width: .55rem; height: .55rem; margin-right: .45rem; display: inline-block; border-radius: 50%; background: #56e49b; box-shadow: 0 0 0 4px rgba(86,228,155,.14); }
.stats { margin: 1.2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stats article { padding: 1.15rem 1.3rem; background: white; border: 1px solid var(--line); border-radius: 13px; }
.stats strong { display: block; color: var(--blue); font-size: 1.65rem; }
.stats span { color: var(--muted); font-size: .82rem; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.module-card { min-height: 145px; padding: 1.25rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; background: white; border: 1px solid var(--line); border-radius: 15px; transition: .18s ease; }
.module-card:hover { transform: translateY(-3px); border-color: #96bde3; box-shadow: 0 12px 28px rgba(21,67,111,.1); }
.module-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; font-size: .72rem; font-weight: 800; }
.module-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.module-card h2 { margin: 0 0 .38rem; font-size: 1.05rem; }
.module-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.arrow { color: var(--blue-2); font-size: 1.25rem; }
footer { padding: 1.1rem 2rem; color: #718094; background: white; border-top: 1px solid var(--line); text-align: right; font-size: .72rem; }
.module-intro { margin: 5vh auto; max-width: 720px; padding: clamp(2rem, 6vw, 4.5rem); background: white; border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.module-icon.large { width: 72px; height: 72px; margin: 0 auto 1.5rem; font-size: .9rem; }
.module-intro h1 { margin: .2rem 0 .6rem; font-size: 2.5rem; }
.module-intro > p:not(.eyebrow) { color: var(--muted); }
.coming { margin-top: 2rem; padding: 1rem; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-size: .88rem; }
.page-heading { margin-bottom: 1.2rem; display: flex; align-items: end; justify-content: space-between; }
.page-heading h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
.page-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.contacts-shell { max-width: 1480px; }
.contacts-page-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: start; gap: 1.25rem; }
.contacts-page-content { min-width: 0; }
.contacts-actions { position: sticky; top: 92px; min-height: 430px; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 26px rgba(20,62,101,.07); }
.contacts-actions > p { margin: 0 0 .2rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contacts-actions > a { min-height: 54px; padding: .7rem; display: flex; align-items: center; gap: .65rem; color: var(--blue); background: #f4f8fc; border: 1px solid #c7d9e9; border-radius: 9px; font-size: .72rem; font-weight: 800; transition: .16s ease; }
.contacts-actions > a:hover { color: white; background: var(--blue); transform: translateY(-1px); }
.contacts-actions > a span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: inherit; background: rgba(11,93,183,.1); border-radius: 8px; font-size: .58rem; }
.contacts-actions-space { min-height: 115px; margin-top: .35rem; padding-top: .8rem; display: flex; align-items: flex-end; color: #96a5b5; border-top: 1px dashed #cfdae5; font-size: .65rem; line-height: 1.45; }
.contact-stats { grid-template-columns: repeat(3,1fr); }
.filters { margin: 1rem 0; padding: 1rem; display: flex; align-items: end; gap: .75rem; background: white; border: 1px solid var(--line); border-radius: 13px; }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field.grow { flex: 1; }
.field label { color: #2c4058; font-size: .76rem; font-weight: 700; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: .65rem .75rem; color: var(--ink); background: white; border: 1px solid #bfd0df; border-radius: 7px; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(11,93,183,.1); }
.field-help { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.filters .field:not(.grow) { width: 220px; }
.filters button { min-height: 42px; padding: .65rem 1rem; color: white; background: var(--blue); border: 0; border-radius: 7px; font-weight: 700; cursor: pointer; }
.filters > a { min-height: 42px; padding: .75rem .4rem; color: var(--blue-2); font-size: .8rem; }
.contacts-filters { flex-wrap: wrap; }
.contacts-filters .field.grow { min-width: 280px; }
.contacts-filters .field { width: 180px !important; }
.contacts-filters .field.grow { width: auto !important; }
.contacts-filters .field.compact { width: 120px !important; }
.contact-sort { margin: -.35rem 0 .8rem; display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }
.contact-sort span { margin-right: .2rem; color: var(--muted); font-size: .72rem; }
.contact-sort a { padding: .45rem .7rem; color: var(--blue); background: white; border: 1px solid #afc8df; border-radius: 7px; font-size: .7rem; font-weight: 700; }
.contact-sort a.active { color: white; background: var(--blue); border-color: var(--blue); }
.table-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 14px; }
.contact-table-header, .contact-row { display: grid; grid-template-columns: 1.5fr 1.15fr 1.25fr .75fr .65fr 110px; align-items: center; gap: 1rem; }
.contact-table-header { padding: .8rem 1.2rem; color: var(--muted); background: #edf4fa; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.contact-row { min-height: 76px; padding: .85rem 1.2rem; border-top: 1px solid #e5edf4; transition: .15s ease; }
.contact-row:nth-child(odd) { background: #fbfdff; }
.contact-row:hover { background: #eef6fd; }
.contact-row > span { min-width: 0; font-size: .82rem; }
.contact-name strong, .contact-name small, .contact-data small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-name small, .contact-data small { margin-top: .24rem; color: var(--muted); }
.contact-row > span:nth-child(4) small { display: block; margin-top: .22rem; color: var(--muted); font-size: .68rem; }
.status-pill { display: inline-block; padding: .33rem .55rem; color: #34516d; background: #edf3f8; border-radius: 999px; font-size: .7rem; font-style: normal; }
.status-pill.active { color: #17613a; background: #e5f7ed; }
.status-pill.prospect { color: #865d00; background: #fff4d5; }
.status-pill.archived { color: #5f6873; background: #e8edf2; }
.row-arrow { color: var(--blue-2); font-size: 1.2rem !important; }
.row-tools { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.quick-call { padding: .45rem .65rem; color: var(--blue); background: white; border: 1px solid #9ebddd; border-radius: 7px; font-size: .7rem; font-weight: 700; cursor: pointer; }
.quick-call:hover { color: white; background: var(--blue); }
.archive-tabs { margin: 1rem 0 0; display: flex; gap: .5rem; }
.archive-tabs a { padding: .7rem 1rem; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 9px 9px 0 0; font-size: .82rem; font-weight: 700; }
.archive-tabs a.active { color: white; background: var(--blue); border-color: var(--blue); }
.archive-tabs span { margin-left: .35rem; padding: .12rem .4rem; color: inherit; background: rgba(128,150,174,.16); border-radius: 999px; }
.archive-tabs .overdue-count { color: white; background: var(--red); box-shadow: 0 0 0 2px rgba(200,25,46,.12); }
.contact-stats .stat-warning { border-color: #e9b3b8; }
.contact-stats .stat-warning strong { color: #a91d2c; }
.archived-row { color: #5e6d7c; }
.restore-action, .restore-action form { width: 100%; }
.restore-button { width: 100%; min-width: 96px; padding: .55rem .7rem; color: var(--blue); background: white; border: 1px solid #9ebddd; border-radius: 7px; font-size: .72rem; font-weight: 700; cursor: pointer; }
.restore-button:hover { color: white; background: var(--blue); }
.pagination { margin-top: 1rem; padding: .85rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 10px; font-size: .78rem; }
.pagination a:last-child { text-align: right; }
.pagination a { color: var(--blue-2); font-weight: 700; }
.import-shell { max-width: 1320px; }
.import-card { margin-bottom: 1rem; padding: 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.import-card h2, .history-card h2 { margin: 0 0 .45rem; font-size: 1.05rem; }
.import-card p { margin: .25rem 0; font-size: .8rem; line-height: 1.5; }
.upload-form { min-width: 360px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .7rem; }
.upload-form label { grid-column: 1 / -1; font-size: .76rem; font-weight: 700; }
.upload-form input[type="file"] { min-height: 42px; padding: .5rem; color: var(--muted); background: #f7fafc; border: 1px solid #bfd0df; border-radius: 7px; }
.import-summary { margin: 1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.import-summary article { padding: 1rem 1.2rem; background: white; border: 1px solid var(--line); border-radius: 12px; }
.import-summary strong { display: block; color: var(--blue); font-size: 1.5rem; }
.import-summary span { color: var(--muted); font-size: .76rem; }
.import-summary .ready { border-color: #a8d8bc; }
.import-summary .duplicate { border-color: #ead08b; }
.import-summary .error { border-color: #e5adb4; }
.import-confirm-card form { flex: 0 0 auto; }
.import-confirm-card button:disabled { cursor: not-allowed; opacity: .45; }
.category-summary { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.category-summary span { padding: .35rem .55rem; color: #40566d; background: var(--blue-soft); border-radius: 999px; font-size: .7rem; }
.category-summary strong { color: var(--blue); }
.import-preview { overflow-x: auto; }
.import-table-header, .import-row { min-width: 1180px; display: grid; grid-template-columns: 45px 1.55fr 1.05fr .85fr 1.15fr 1.4fr; align-items: center; gap: 1rem; }
.import-table-header { padding: .8rem 1rem; color: var(--muted); background: #edf4fa; font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.import-row { min-height: 72px; padding: .75rem 1rem; border-top: 1px solid #e5edf4; }
.import-row:nth-child(odd) { background: #fbfdff; }
.import-row > span { min-width: 0; font-size: .76rem; }
.import-row strong, .import-row small { display: block; }
.import-row small { margin-top: .2rem; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.import-row.duplicate { background: #fffbef; }
.import-row.error { background: #fff6f7; }
.import-status { display: inline-block; padding: .3rem .5rem; border-radius: 999px; font-size: .68rem; font-style: normal; font-weight: 700; }
.import-status.ready { color: #17613a; background: #e5f7ed; }
.import-status.duplicate { color: #865d00; background: #fff0c4; }
.import-status.error { color: #8b1723; background: #fdebed; }
.preview-note { min-width: 1180px; padding: 1rem; color: var(--muted); background: #f7fafc; border-top: 1px solid var(--line); text-align: center; font-size: .76rem; }
.history-card { margin-top: 1.2rem; padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.history-header, .history-row { display: grid; grid-template-columns: 2fr 1fr .6fr .6fr .6fr; gap: 1rem; }
.history-header { padding: .6rem 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .67rem; font-weight: 700; text-transform: uppercase; }
.history-row { padding: .75rem 0; border-bottom: 1px solid #edf2f7; font-size: .76rem; }
.empty-state { padding: 4rem 1.5rem; text-align: center; }
.empty-state .module-icon { margin: 0 auto 1rem; }
.empty-state h2 { margin-bottom: .5rem; }
.empty-state p { margin-bottom: 1.5rem; color: var(--muted); }
.contact-form-shell { max-width: 1320px; }
.contact-page-topbar { position: sticky; top: 0; z-index: 60; }
.contact-record-header { position: sticky; top: 72px; z-index: 50; margin: 0 -1px 1.2rem; padding: 1rem 1px; background: #f4f8fc; border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgba(16,37,61,.04); }
.contact-record-header h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-workspace { display: grid; grid-template-columns: 185px minmax(0,1fr); align-items: start; gap: 1.2rem; }
.contact-workspace.no-tools { grid-template-columns: minmax(0,1fr); max-width: 1050px; margin: 0 auto; }
.contact-form-content { min-width: 0; }
.contact-tools { position: sticky; top: 190px; min-height: 430px; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 26px rgba(20,62,101,.07); }
.contact-tools-title { margin: 0 0 .8rem; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-tool-button { min-height: 58px; padding: .85rem .9rem; display: flex; align-items: center; gap: .75rem; color: white; background: linear-gradient(125deg, var(--blue), #0b67c4); border-radius: 10px; box-shadow: 0 8px 18px rgba(7,59,120,.18); font-size: .9rem; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease; }
.contact-tool-button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(7,59,120,.24); }
.contact-tool-button:focus-visible { outline: 3px solid rgba(11,93,183,.25); outline-offset: 3px; }
.contact-tool-button svg { width: 24px; height: 24px; flex: 0 0 auto; fill: currentColor; }
.contact-tools-reserved { min-height: 285px; margin-top: 1rem; padding-top: 1rem; display: flex; align-items: flex-end; color: #96a5b5; border-top: 1px dashed #cfdae5; font-size: .65rem; line-height: 1.45; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-section { padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.section-title { margin-bottom: 1.25rem; display: flex; align-items: center; gap: .85rem; }
.section-title > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: .72rem; font-weight: 800; }
.section-title h2 { margin: 0 0 .25rem; font-size: 1rem; }
.section-title p { margin: 0; color: var(--muted); font-size: .76rem; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.address { grid-template-columns: 2fr .55fr .7fr 1.5fr .55fr 1.1fr; }
.maps-search { margin: 0 0 1rem; padding: 1rem; background: #f7fafc; border: 1px solid var(--line); border-radius: 10px; }
.maps-search > label { display: block; margin-bottom: .45rem; color: #2c4058; font-size: .76rem; font-weight: 700; }
.maps-search gmp-place-autocomplete { width: 100%; }
.maps-search small { display: block; margin-top: .45rem; color: var(--muted); font-size: .7rem; }
.maps-panel { margin-top: 1rem; overflow: hidden; background: #f7fafc; border: 1px solid var(--line); border-radius: 12px; }
.maps-panel iframe { width: 100%; height: 300px; display: block; border: 0; }
.maps-placeholder { min-height: 150px; padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; color: var(--muted); background: linear-gradient(135deg, #edf5fc, #f9fbfd); text-align: center; }
.maps-placeholder strong { color: var(--blue); }
.maps-placeholder span { max-width: 580px; font-size: .78rem; }
.maps-actions { padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.maps-actions > span { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.maps-actions > div { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.maps-actions a { color: var(--blue-2); font-size: .76rem; font-weight: 700; }
.maps-actions a.button-primary { color: white; }
.check-field { min-height: 42px; padding: .65rem .8rem; display: flex; align-items: center; gap: .65rem; align-self: end; background: #f6f9fc; border: 1px solid var(--line); border-radius: 7px; font-size: .78rem; }
.check-field input { width: 17px; height: 17px; accent-color: var(--blue); }
.form-footer { padding: 1rem 0; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.form-footer > a { color: var(--muted); font-size: .85rem; }
.form-footer > a.call-link { margin-right: auto; padding: .7rem 1rem; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-weight: 700; }
.duplicate-box { margin-bottom: 1rem; padding: 1rem; display: flex; flex-direction: column; gap: .35rem; color: #704b00; background: #fff4d7; border: 1px solid #ebd49b; border-radius: 10px; }
.duplicate-box a { color: var(--blue); text-decoration: underline; }
.danger-zone { margin-top: 2rem; padding: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff7f7; border: 1px solid #f0c7cb; border-radius: 12px; }
.danger-zone p { margin: .3rem 0 0; color: var(--muted); font-size: .78rem; }
.danger-zone button { padding: .65rem .9rem; color: #a91d2c; background: white; border: 1px solid #d9929a; border-radius: 7px; cursor: pointer; }

/* Flusso intelligente prodotti, e-mail, preventivi e ordini · v0.29 */
.smart-products-shell { max-width: 1540px; }
.smart-products-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 1.2rem; }
.smart-products-catalog { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.smart-product-card { padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 22px rgba(16,55,92,.05); }
.smart-product-card > header { margin-bottom: 1.1rem; display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.smart-product-card > header span { color: var(--blue-2); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.smart-product-card h2 { margin: .22rem 0; font-size: 1.45rem; }
.smart-product-card header p { margin: .3rem 0 0; color: var(--muted); font-size: .78rem; }
.smart-product-card header a { flex: 0 0 auto; padding: .5rem .7rem; color: var(--blue); border: 1px solid #a7c2dd; border-radius: 7px; font-size: .7rem; font-weight: 700; }
.smart-product-card h3 { margin: 1rem 0 .65rem; color: #3c526a; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.mail-photo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.mail-photo-choice { position: relative; overflow: hidden; display: flex; flex-direction: column; background: #f6f9fc; border: 2px solid transparent; border-radius: 10px; cursor: pointer; }
.mail-photo-choice input { position: absolute; top: .55rem; right: .55rem; z-index: 2; width: 21px; height: 21px; accent-color: var(--blue); }
.mail-photo-choice:has(input:checked) { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(11,93,183,.12); }
.mail-photo-choice img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e9f1f8; }
.mail-photo-choice > span { padding: .58rem .65rem; }
.mail-photo-choice b,.mail-photo-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-photo-choice b { font-size: .68rem; }.mail-photo-choice small { margin-top: .18rem; color: var(--muted); font-size: .62rem; }
.mail-document-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.mail-document-choice { min-width: 0; padding: .7rem; display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: .7rem; background: #f7fafc; border: 2px solid transparent; border-radius: 9px; cursor: pointer; }
.mail-document-choice:has(input:checked) { border-color: var(--blue-2); background: #edf6ff; }
.mail-document-choice input { width: 18px; height: 18px; accent-color: var(--blue); }
.mail-document-choice b,.mail-document-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-document-choice b { font-size: .7rem; }.mail-document-choice small { margin-top: .2rem; color: var(--muted); font-size: .62rem; }
.mail-product-empty { padding: 1rem; color: var(--muted); background: #f7fafc; border-radius: 8px; font-size: .75rem; }
.mail-selection-summary,.mail-compose-attachments { position: sticky; top: 92px; padding: 1.2rem; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(16,55,92,.09); }
.mail-selection-summary h2,.mail-compose-attachments h2 { margin: .15rem 0 .8rem; }
.mail-selection-summary > strong,.mail-selection-summary > small { display: block; }
.mail-selection-summary > small { margin-top: .25rem; color: var(--muted); }.mail-selection-summary .limit-exceeded { color: var(--red); font-weight: 700; }
.mail-selection-summary ol { max-height: 310px; margin: 1rem 0; padding-left: 1.3rem; overflow-y: auto; color: #415870; font-size: .68rem; line-height: 1.5; }
.mail-selection-summary li { margin-bottom: .45rem; }.mail-limit-note { color: var(--muted); font-size: .65rem; }
.mail-proceed-button,.mail-send-button { width: 100%; padding: .9rem 1rem; color: white; background: var(--red); border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(200,25,46,.2); }
.mail-proceed-button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.mail-compose-shell { max-width: 1320px; }.mail-compose-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; gap: 1.2rem; }
.mail-compose-card { padding: 1.4rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.mail-mode-picker { margin-bottom: 1rem; display: grid; grid-template-columns: repeat(2,1fr); gap: .7rem; }
.mail-mode-picker label { cursor: pointer; }.mail-mode-picker input { position: absolute; opacity: 0; pointer-events: none; }
.mail-mode-picker span { height: 100%; padding: .9rem; display: block; color: #31485f; background: #f5f8fb; border: 2px solid transparent; border-radius: 10px; }
.mail-mode-picker input:checked + span { color: var(--blue); background: #edf6ff; border-color: var(--blue-2); }
.mail-mode-picker strong,.mail-mode-picker small { display: block; }.mail-mode-picker strong { font-size: .78rem; }.mail-mode-picker small { margin-top: .25rem; color: var(--muted); font-size: .65rem; line-height: 1.35; }
.mail-address-row { margin-bottom: 1rem; padding: .8rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: #f7fafc; border-radius: 9px; }
.mail-address-row small,.mail-address-row strong { display: block; }.mail-address-row small { color: var(--muted); font-size: .62rem; text-transform: uppercase; }.mail-address-row strong { margin-top: .2rem; font-size: .75rem; }
.mail-compose-card .field + .field { margin-top: 1rem; }.mail-compose-attachments ul { max-height: 430px; margin: 0 0 1rem; padding: 0; overflow-y: auto; list-style: none; }
.mail-compose-attachments li { padding: .65rem 0; border-bottom: 1px solid #e9eff5; }.mail-compose-attachments li strong,.mail-compose-attachments li span,.mail-compose-attachments li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-compose-attachments li strong { color: var(--blue); font-size: .68rem; }.mail-compose-attachments li span { margin-top: .15rem; font-size: .7rem; }.mail-compose-attachments li small { margin-top: .15rem; color: var(--muted); font-size: .62rem; }
.mail-send-note { margin-top: .7rem; display: block; color: var(--muted); font-size: .63rem; line-height: 1.4; }
.mail-detail-shell { max-width: 1050px; }.mail-message-card { padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: 15px; }
.mail-message-card > header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }.mail-message-card h1 { margin: .2rem 0; font-size: 1.8rem; }
.mail-status { padding: .45rem .7rem; border-radius: 999px; font-size: .68rem; font-weight: 800; }.mail-status.sent { color: #17613a; background: #e5f7ed; }.mail-status.failed { color: #8b1723; background: #fdebed; }
.mail-message-meta { margin: 1.2rem 0; padding: 1rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; background: #f6f9fc; border-radius: 10px; }.mail-message-meta dt { color: var(--muted); font-size: .62rem; text-transform: uppercase; }.mail-message-meta dd { margin: .2rem 0 0; font-size: .75rem; font-weight: 700; }
.mail-message-body { padding: 1.2rem; color: #253b52; background: #fbfdff; border: 1px solid #e4edf5; border-radius: 10px; white-space: pre-wrap; font-size: .82rem; line-height: 1.65; }
.mail-detail-attachments { margin-top: 1.3rem; }.mail-detail-attachments h2 { font-size: 1rem; }.mail-detail-attachments > a { margin-top: .55rem; padding: .7rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .8rem; background: #f6f9fc; border-radius: 8px; }.mail-detail-attachments strong,.mail-detail-attachments small { display: block; }.mail-detail-attachments strong { font-size: .72rem; }.mail-detail-attachments small { margin-top: .15rem; color: var(--muted); font-size: .63rem; }.mail-detail-attachments > a > b { color: var(--blue); font-size: .7rem; }
.contact-order-list { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 14px; }.contact-order-list > a { min-height: 72px; padding: .85rem 1rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .8rem; border-bottom: 1px solid #e7eef5; }.contact-order-list > a:hover { background: #f1f7fd; }.contact-order-list strong,.contact-order-list small { display: block; }.contact-order-list small { margin-top: .2rem; color: var(--muted); font-size: .7rem; }.contact-order-list > a > b { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.order-status-dot { width: 13px; height: 13px; display: block; border-radius: 50%; }.order-status-dot.open { background: #d3263b; box-shadow: 0 0 0 4px rgba(211,38,59,.12); }.order-status-dot.completed { background: #28a765; box-shadow: 0 0 0 4px rgba(40,167,101,.12); }
.order-detail-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 800; }.order-detail-status i { width: 13px; height: 13px; border-radius: 50%; }.order-detail-status.open i { background: #d3263b; }.order-detail-status.completed i { background: #28a765; }
.record-tab.amber { background: #d88908; }.linked-record-list > a { padding: .8rem 0; display: grid; grid-template-columns: 135px minmax(0,1fr) auto; align-items: center; gap: 1rem; color: inherit; border-bottom: 1px solid #e8eef4; }.linked-record-list > a:hover { background: #f6faff; }.linked-record-list > a time { color: var(--muted); font-size: .68rem; }.linked-record-list > a strong,.linked-record-list > a span { display: block; }.linked-record-list > a strong { font-size: .75rem; }.linked-record-list > a span { margin-top: .2rem; color: var(--muted); font-size: .67rem; }.linked-record-list > a > small { color: var(--blue); font-weight: 700; }.contact-orders-records > a { grid-template-columns: auto 125px minmax(0,1fr) auto; }
.quote-new-shell { max-width: 850px; }.quote-new-form { display: flex; flex-direction: column; gap: 1rem; }.quote-summary { margin-top: 1rem; }.quote-summary dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }.quote-summary dt { color: var(--muted); font-size: .65rem; }.quote-summary dd { margin: .2rem 0; font-weight: 700; }

/* v0.30 · selettore prodotti a due livelli e listini in sola consultazione */
.smart-products-shell { width: min(1840px, calc(100% - 1.5rem)); max-width: none; }
.smart-products-layout { grid-template-columns: 230px minmax(0,1fr) 300px; gap: 1rem; }
.product-bookmarks { position: sticky; top: 92px; max-height: calc(100vh - 112px); padding: 1rem; overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(16,55,92,.08); }
.product-bookmarks nav { display: flex; flex-direction: column; gap: .85rem; }
.product-bookmarks section { padding-bottom: .8rem; border-bottom: 1px solid #e4edf5; }
.product-bookmarks section:last-child { padding-bottom: 0; border-bottom: 0; }
.product-bookmarks h2 { margin: 0 0 .42rem; color: var(--blue); font-size: .78rem; text-transform: uppercase; }
.product-bookmarks a { padding: .38rem .48rem; display: block; color: #40566d; border-left: 3px solid #c9d9e8; font-size: .7rem; font-weight: 700; line-height: 1.35; }
.product-bookmarks a:hover,.product-bookmarks a:focus { color: var(--blue); background: #eef6fd; border-left-color: var(--blue-2); }
.smart-product-card { scroll-margin-top: 92px; }
.smart-product-columns { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr); gap: 1.1rem; }
.smart-product-columns > section { min-width: 0; }
.smart-product-documents { padding-left: 1.1rem; border-left: 1px solid var(--line); }
.smart-product-columns .mail-photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.smart-product-columns .mail-document-list { grid-template-columns: 1fr; }
.mail-price-list-panel { margin-top: 1rem; padding: .85rem; background: #fff8e8; border: 1px solid #e7c978; border-radius: 10px; }
.mail-price-list-panel > strong,.mail-price-list-panel > small { display: block; }
.mail-price-list-panel > strong { color: #6f4b00; font-size: .78rem; }
.mail-price-list-panel > small { margin: .2rem 0 .7rem; color: #806b3e; font-size: .64rem; }
.mail-price-list-panel > a { margin-top: .5rem; padding: .65rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .6rem; background: white; border: 1px solid #dec88f; border-radius: 8px; }
.mail-price-list-panel > a > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.mail-price-list-panel > a > b { color: var(--blue); font-size: .63rem; white-space: nowrap; }
.maps-search-error { padding: .8rem 1rem; color: #8b1723; background: #fdebed; border: 1px solid #efbdc3; border-radius: 8px; font-size: .75rem; line-height: 1.45; }
@media (max-width: 1380px) { .smart-products-layout { grid-template-columns: 200px minmax(0,1fr); }.mail-selection-summary { position: static; grid-column: 2; grid-row: 1; }.product-bookmarks { grid-row: 1 / span 2; }.smart-products-catalog { grid-column: 2; } }
@media (max-width: 980px) { .smart-products-layout { grid-template-columns: 1fr; }.product-bookmarks,.mail-selection-summary,.smart-products-catalog { position: static; grid-column: 1; grid-row: auto; }.product-bookmarks nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.smart-product-columns { grid-template-columns: 1fr; }.smart-product-documents { padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); }.mail-selection-summary { order: -1; } }
@media (max-width: 620px) { .product-bookmarks nav { grid-template-columns: 1fr; }.smart-product-columns .mail-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.mail-price-list-panel > a { grid-template-columns: auto minmax(0,1fr); }.mail-price-list-panel > a > b { grid-column: 2; } }
@media (max-width: 1050px) { .mail-photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.smart-products-layout,.mail-compose-layout { grid-template-columns: minmax(0,1fr); }.mail-selection-summary,.mail-compose-attachments { position: static; }.mail-selection-summary { order: -1; }.mail-selection-summary ol { max-height: 140px; } }
@media (max-width: 720px) { .mail-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.mail-document-list,.mail-mode-picker,.mail-address-row,.mail-message-meta,.quote-summary dl { grid-template-columns: 1fr; }.smart-product-card > header,.mail-message-card > header { flex-direction: column; }.smart-products-shell,.mail-compose-shell { width: min(100% - 1rem,1540px); }.mail-photo-choice input { width: 24px; height: 24px; } }
.activities-shell { max-width: 1320px; }
.activity-stats .stat-warning { border-color: #e9b3b8; }
.activity-stats .stat-warning strong { color: #a91d2c; }
.activity-stats .stat-due-soon { border-color: #efc66a; background: #fffaf0; }
.activity-stats .stat-due-soon strong { color: #9a6200; }
.activity-table-header, .activity-row { display: grid; grid-template-columns: 155px 1fr 1.5fr .8fr 170px; align-items: center; gap: 1rem; }
.activity-table-header { padding: .8rem 1.2rem; color: var(--muted); background: #edf4fa; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.activity-row { min-height: 78px; padding: .85rem 1.2rem; border-top: 1px solid #e5edf4; }
.activity-row:nth-child(odd) { background: #fbfdff; }
.activity-row.overdue { background: #fff6f7; border-left: 4px solid #c8192e; }
.activity-row.due-soon { background: #fffaf0; border-left: 4px solid #e2a100; }
.activity-row strong, .activity-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row small { margin-top: .25rem; color: var(--muted); font-size: .72rem; }
.overdue-label { color: #a91d2c !important; font-weight: 700; }
.due-soon-label { color: #946000 !important; font-weight: 700; }
.status-pill.planned, .status-pill.open { color: #865d00; background: #fff4d5; }
.status-pill.completed { color: #17613a; background: #e5f7ed; }
.activity-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.activity-actions a, .activity-actions button { padding: .48rem .65rem; color: var(--blue); background: white; border: 1px solid #9ebddd; border-radius: 7px; font-size: .7rem; font-weight: 700; cursor: pointer; }
.activity-actions form { margin: 0; }
.campaigns-shell, .list-builder-shell { max-width: 1320px; }
.campaign-section-heading { margin: 1.6rem 0 .8rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.campaign-section-heading h2 { margin: .1rem 0; }
.campaign-section-heading p { margin: .25rem 0 0; color: var(--muted); }
.campaign-heading-spaced { margin-top: 2.4rem; }
.playlist-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.playlist-card, .playlist-empty { min-height: 220px; padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 22px rgba(15,57,96,.06); }
.playlist-card-top, .playlist-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.playlist-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; color: white; background: var(--blue); border-radius: 11px; font-size: .65rem; font-weight: 800; }
.playlist-card h3 { margin: 1rem 0 .4rem; }
.playlist-card p { min-height: 42px; color: var(--muted); font-size: .8rem; }
.playlist-card small { color: var(--muted); }
.playlist-actions { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.playlist-actions a, .playlist-actions button { color: var(--blue); background: none; border: 0; font-size: .74rem; font-weight: 700; cursor: pointer; }
.playlist-actions button { color: #a91d2c; }
.playlist-empty { grid-column: 1 / -1; text-align: center; }
.campaign-table-header, .campaign-row { display: grid; grid-template-columns: 1.5fr 1fr 110px 100px 150px; align-items: center; gap: 1rem; }
.campaign-table-header { padding: .8rem 1.2rem; color: var(--muted); background: #edf4fa; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.campaign-row { padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.campaign-row strong, .campaign-row small { display: block; }
.campaign-row small { margin-top: .25rem; color: var(--muted); }
.list-metadata { margin-bottom: 1rem; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 12px; }
.list-filters { grid-template-columns: minmax(180px,1.5fr) repeat(3,minmax(140px,1fr)) auto; }
.selection-toolbar { margin: 1rem 0 .6rem; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--blue-soft); border: 1px solid #bfd5e8; border-radius: 10px; }
.selection-toolbar small { display: block; margin-top: .2rem; color: var(--muted); }
.selection-toolbar > div:last-child { display: flex; gap: .5rem; }
.selection-toolbar button { padding: .55rem .7rem; color: var(--blue); background: white; border: 1px solid #9ebddd; border-radius: 7px; cursor: pointer; }
.picker-header, .picker-row { display: grid; grid-template-columns: 38px 1.2fr 1fr 1.3fr 1fr 110px; align-items: center; gap: .8rem; }
.picker-header { padding: .75rem 1rem; color: var(--muted); background: #edf4fa; font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.picker-row { min-height: 58px; padding: .65rem 1rem; border-top: 1px solid var(--line); font-size: .78rem; cursor: pointer; }
.picker-row:hover { background: #f7fbff; }
.picker-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.picker-row.unavailable { color: #8794a1; background: #f7f8f9; cursor: not-allowed; }
.result-warning { color: #8b5c00; font-size: .78rem; }
.sticky-save { position: sticky; bottom: 0; z-index: 30; padding: .8rem 1rem; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.campaign-form-shell { max-width: 980px; }
.draft-notice { margin: 1rem 0; padding: 1rem; display: flex; flex-direction: column; gap: .3rem; color: #704b00; background: #fff4d7; border: 1px solid #ebd49b; border-radius: 10px; }
.draft-notice span { font-size: .78rem; line-height: 1.45; }
.call-shell { width: min(1480px, calc(100% - 2rem)); max-width: none; }
.call-workspace { display: grid; grid-template-columns: 180px minmax(0,1fr); align-items: start; gap: 1rem; }
.call-content { min-width: 0; }
.operator-tools { position: sticky; top: 88px; z-index: 42; min-height: 520px; padding: .85rem; display: flex; flex-direction: column; gap: .7rem; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px rgba(16,54,91,.08); }
.operator-tools-title { margin: .2rem .2rem .35rem; color: var(--blue-2); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.operator-tool { width: 100%; min-height: 72px; padding: .7rem .55rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .38rem; color: var(--blue); background: #f4f8fc; border: 1px solid #c7d9e9; border-radius: 10px; font: inherit; font-size: .72rem; font-weight: 700; text-align: center; cursor: pointer; transition: background .16s ease, color .16s ease, transform .16s ease; }
.operator-tool:hover { color: white; background: var(--blue); transform: translateY(-1px); }
.operator-tool.primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-2)); border-color: var(--blue); }
.operator-tool svg { width: 23px; height: 23px; fill: currentColor; }
.operator-tool small { font-size: .58rem; font-weight: 400; }
.operator-tool.pending, .operator-tool:disabled { color: #8191a2; background: #f1f4f7; border-style: dashed; cursor: not-allowed; opacity: .82; transform: none; }
.call-hero { margin-bottom: 1rem; padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: white; background: linear-gradient(125deg, var(--blue), #0b67c4); border-radius: 16px; }
.call-contact-header { position: sticky; top: 88px; z-index: 40; box-shadow: 0 12px 24px rgba(7,59,120,.16); }
.call-hero h1 { margin: 0 0 .35rem; font-size: 2rem; }
.call-hero p:last-child { margin: 0; color: #d8ebfc; }
.call-hero .eyebrow { color: #a8d2fa; }
.call-quick-actions { display: flex; align-items: center; gap: .65rem; }
.call-quick-actions a { padding: .65rem .85rem; color: white; border: 1px solid rgba(255,255,255,.38); border-radius: 8px; font-size: .76rem; font-weight: 700; }
.call-quick-actions a.button-primary { color: var(--blue); background: white; }
.call-navigation { flex-wrap: wrap; justify-content: flex-end; }
.call-navigation a { white-space: nowrap; }
.call-address { margin-top: .28rem !important; font-size: .76rem; }
.call-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); align-items: start; gap: 1rem; }
.call-form { display: flex; flex-direction: column; gap: 1rem; }
.call-contact-strip { padding: 1rem; background: #f4f8fc; border: 1px solid #c7d9e9; border-radius: 10px; }
.call-contact-strip h2 { margin: 0 0 .75rem; color: var(--blue); font-size: 1rem; }
.call-contact-strip dl { margin: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .8rem; }
.call-contact-strip dl > div { min-width: 0; }
.call-contact-strip dt { color: var(--muted); font-size: .66rem; }
.call-contact-strip dd { margin: .22rem 0 0; overflow-wrap: anywhere; font-size: .76rem; font-weight: 700; }
.callback-box { padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: #f4f8fc; border: 1px solid var(--line); border-radius: 10px; }
.callback-box[hidden] { display: none; }
.callback-always { background: #eef6fd; border-color: #aecde8; }
.callback-heading { grid-column: 1 / -1; padding-bottom: .7rem; border-bottom: 1px solid #caddec; }
.callback-heading strong, .callback-heading small { display: block; }
.callback-heading strong { color: var(--blue); font-size: .86rem; text-transform: uppercase; }
.callback-heading small { margin-top: .28rem; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.call-form .form-footer .button-primary { min-width: 190px; min-height: 46px; box-shadow: 0 8px 18px rgba(7,59,120,.2); }
.call-form .form-footer .button-primary:hover { background: var(--blue-2); }
.automatic-status { padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #f6f9fc; border: 1px solid var(--line); border-radius: 9px; font-size: .76rem; }
.automatic-status span { color: var(--muted); }
.automatic-status strong { padding: .35rem .55rem; color: #40566d; background: #e8eef4; border-radius: 999px; font-size: .7rem; }
.automatic-status strong.active { color: #17613a; background: #e5f7ed; }
.automatic-status strong.inactive { color: #865d00; background: #fff4d5; }
.automatic-status strong.archive { color: white; background: var(--red); }
.contact-summary { padding: 1.35rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.contact-summary h2 { margin-top: 0; }
.contact-summary dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: .7rem; font-size: .76rem; }
.contact-summary dt { color: var(--muted); }
.contact-summary dd { margin: 0; overflow-wrap: anywhere; }
.call-side-panel { position: sticky; top: 205px; }
.next-contact-button { margin-bottom: 1rem; padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: white; background: linear-gradient(135deg,var(--blue),var(--blue-2)); border-radius: 10px; font-size: .76rem; font-weight: 800; line-height: 1.35; }
.next-contact-button span { font-size: 1.25rem; }
.next-contact-button.disabled { color: #66788a; background: #e8eef4; }
.call-map { margin-top: 0; padding-top: 0; border-top: 0; }
.call-map > strong { display: block; margin-bottom: .55rem; }
.call-map iframe, .call-map-canvas { width: 100%; height: 190px; display: block; border: 0; border-radius: 9px; }
.call-map-canvas { overflow: hidden; background: #edf4fa; }
.call-map-canvas > span { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.call-map-empty { min-height: 95px; padding: 1rem; display: grid; place-items: center; color: var(--muted); background: #edf4fa; border-radius: 9px; font-size: .7rem; text-align: center; }
.call-map a { margin-top: .55rem; display: inline-block; color: var(--blue-2); font-size: .7rem; font-weight: 700; }
.summary-notes { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.summary-notes p { margin-bottom: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; white-space: pre-wrap; }
.activity-history { margin-top: 1rem; padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.contact-records { margin-top: 1rem; background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.record-tabs { padding: 1rem 1rem 0; display: flex; align-items: end; gap: .45rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.record-tab { min-height: 43px; padding: .7rem .9rem; flex: 0 0 auto; color: white; border: 0; border-radius: 9px 9px 0 0; font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; opacity: .72; transition: opacity .15s ease, transform .15s ease; }
.record-tab:hover, .record-tab.active { opacity: 1; }
.record-tab.active { transform: translateY(1px); box-shadow: inset 0 -3px 0 rgba(255,255,255,.65); }
.record-tab.blue { background: var(--blue); }
.record-tab.red { background: var(--red); }
.record-tab.slate { background: #52677d; }
.record-tab.green { background: #18814b; }
.record-panel { min-height: 150px; padding: 1.35rem 1.5rem 1.5rem; }
.record-panel[hidden] { display: none; }
.empty-record { margin: 1.5rem 0; color: var(--muted); font-size: .82rem; text-align: center; }
.last-call-note { display: grid; grid-template-columns: 180px 1fr; gap: 1.25rem; }
.last-call-note strong, .last-call-note span { display: block; }
.last-call-note strong { font-size: .82rem; }
.last-call-note span { margin-top: .35rem; color: var(--muted); font-size: .72rem; }
.last-call-note p { margin: 0; padding: 1rem; background: #fff7f7; border-left: 4px solid var(--red); border-radius: 0 9px 9px 0; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; }
.linked-record-list { display: flex; flex-direction: column; }
.linked-record-list article { padding: .9rem 0; display: grid; grid-template-columns: 150px 1fr 180px; align-items: start; gap: 1rem; border-top: 1px solid #e8eef4; }
.linked-record-list article:first-child { border-top: 0; }
.linked-record-list time, .linked-record-list small, .linked-record-list span { color: var(--muted); font-size: .72rem; }
.linked-record-list strong, .linked-record-list span { display: block; }
.linked-record-list span { margin-top: .25rem; line-height: 1.45; }
.linked-record-list small { text-align: right; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { padding: .9rem 0; display: grid; grid-template-columns: 145px 1fr auto; gap: 1rem; border-top: 1px solid #e8eef4; }
.timeline-item time { color: var(--muted); font-size: .72rem; }
.timeline-item strong, .timeline-item span { display: block; }
.timeline-item span { margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.timeline-item p { margin: .55rem 0 0; font-size: .78rem; line-height: 1.5; white-space: pre-wrap; }
.timeline-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: .45rem; }
.timeline-actions form { margin: 0; }
.delete-call-button { width: 100%; padding: .4rem .6rem; color: #a51d2b; background: #fff1f2; border: 1px solid #efb9bf; border-radius: 7px; font: inherit; font-size: .64rem; font-weight: 800; cursor: pointer; }
.delete-call-button:hover { color: white; background: var(--red); border-color: var(--red); }
.communication-pill { min-width: 92px; padding: .42rem .62rem; align-self: center; color: white; background: var(--blue); border-radius: 999px; font-size: .68rem; font-style: normal; font-weight: 800; text-align: center; }
.communication-pill.email { background: #52677d; }
.communication-pill.whatsapp { background: #18814b; }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; padding: 1rem; display: grid; place-items: center; background: rgba(8,28,51,.62); backdrop-filter: blur(3px); }
.decision-modal { width: min(100%, 500px); padding: 2rem; background: white; border-radius: 18px; box-shadow: 0 28px 80px rgba(0,20,42,.3); text-align: center; }
.decision-modal-icon { width: 54px; height: 54px; margin: 0 auto 1rem; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50%; font-size: 1.2rem; font-weight: 800; }
.decision-modal h2 { margin: 0 0 .7rem; font-size: 1.45rem; }
.decision-modal p { margin: 0 auto 1.5rem; max-width: 390px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.decision-modal-actions { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.decision-modal-actions a, .decision-modal-actions button { min-height: 42px; padding: .7rem .9rem; border-radius: 8px; font-size: .76rem; font-weight: 700; cursor: pointer; }
.decision-modal-actions a { color: var(--blue); background: white; border: 1px solid #9ebddd; }
.decision-modal-actions form { margin: 0; }
.decision-modal-actions button { color: white; background: var(--red); border: 1px solid var(--red); }
.deadline-notification { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 180; width: min(430px, calc(100% - 2rem)); padding: 1rem 2.8rem 1rem 1rem; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .85rem; color: white; background: linear-gradient(125deg, #9f1223, var(--red)); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; box-shadow: 0 20px 55px rgba(64,5,13,.3); }
.deadline-notification[hidden] { display: none; }
.deadline-bell { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,255,255,.16); border-radius: 10px; font-size: 1.25rem; }
.deadline-notification strong { display: block; font-size: .95rem; }
.deadline-notification p { margin: .35rem 0 .7rem; color: #ffe9ec; font-size: .75rem; line-height: 1.45; }
.deadline-notification a { display: inline-block; padding: .48rem .7rem; color: #83101e; background: white; border-radius: 7px; font-size: .72rem; font-weight: 800; }
.deadline-notification-close { position: absolute; top: .55rem; right: .65rem; padding: .15rem .35rem; color: white; background: transparent; border: 0; font-size: 1.3rem; cursor: pointer; }
.products-shell { max-width: 1420px; }
.product-page-heading { align-items: center; }
.product-stats { grid-template-columns: repeat(4,1fr); }
.product-command-bar { margin: 1rem 0 1.6rem; padding: .8rem; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .65rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.product-command-bar a, .product-command-bar button { min-height: 68px; padding: .65rem; display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--blue); background: #f4f8fc; border: 1px solid #c7d9e9; border-radius: 9px; font: inherit; font-size: .7rem; font-weight: 800; text-align: center; }
.product-command-bar a.active { color: white; background: linear-gradient(135deg,var(--blue),var(--blue-2)); border-color: var(--blue); }
.product-command-bar button:disabled { color: #7c8da0; background: #f5f7f9; border-style: dashed; cursor: not-allowed; }
.product-command-bar span { min-width: 29px; height: 29px; padding: 0 .35rem; display: grid; place-items: center; background: rgba(11,93,183,.1); border-radius: 7px; font-size: .56rem; }
.product-command-bar a.active span { background: rgba(255,255,255,.16); }
.product-section-heading { margin: 1.2rem 0 .8rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.product-section-heading h2 { margin: 0; }
.product-section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: .74rem; text-align: right; }
.product-category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.product-category-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 9px 24px rgba(15,57,96,.06); transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.product-category-card.enabled:hover { transform: translateY(-3px); border-color: #8bb7df; box-shadow: 0 14px 30px rgba(15,57,96,.12); }
.product-cover-placeholder { min-height: 145px; padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; color: #54718d; background: linear-gradient(135deg,#e8f1f9,#f8fbfd); border-bottom: 1px solid var(--line); }
.product-cover-placeholder span { width: 53px; height: 53px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,var(--blue),var(--blue-2)); border-radius: 14px; font-size: .65rem; font-weight: 800; box-shadow: 0 8px 20px rgba(7,59,120,.16); }
.product-cover-placeholder small { font-size: .67rem; font-weight: 700; }
.product-cover-image { min-height: 145px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: white; border-bottom: 1px solid var(--line); }
.product-cover-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.product-category-body { padding: 1.1rem; }
.product-category-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.product-category-title h3 { margin: 0; font-size: .98rem; }
.product-category-title strong { min-width: 31px; height: 31px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: .72rem; }
.product-category-body p { min-height: 50px; margin: .65rem 0 1rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.product-category-body a, .product-category-body button { width: 100%; min-height: 40px; padding: .6rem .75rem; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--blue); border: 1px solid var(--blue); border-radius: 8px; font: inherit; font-size: .72rem; font-weight: 800; }
.product-category-body button:disabled { color: #7e8d9d; background: #f5f7f9; border-color: #d8e1e9; cursor: not-allowed; }
.product-main-tools { display: flex; }
.product-main-tools a { min-width: 210px; }
.product-category-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.product-category-buttons a { min-height: 92px; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: white; background: linear-gradient(135deg,var(--blue),var(--blue-2)); border: 1px solid #115fae; border-radius: 10px; box-shadow: 0 10px 22px rgba(7,59,120,.13); transition: transform .16s ease,box-shadow .16s ease; }
.product-category-buttons a:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(7,59,120,.2); }
.product-category-buttons span { font-size: 1.2rem; font-weight: 800; letter-spacing: .035em; }
.product-category-buttons strong { min-width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.16); border-radius: 50%; }
.compact-category-hero { display: block; padding: 1.6rem 2rem; }
.compact-category-hero h1 { font-size: 2.25rem; }
.product-category-hero { margin-bottom: 1rem; padding: 1.2rem; display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 1.5rem; color: white; background: linear-gradient(125deg,var(--blue),#0b67c4); border-radius: 16px; }
.product-category-hero .product-cover-placeholder { min-height: 150px; border: 1px solid rgba(255,255,255,.26); border-radius: 12px; background: rgba(255,255,255,.12); color: #dcecff; }
.product-category-hero .product-cover-placeholder span { color: var(--blue); background: white; }
.product-category-hero .eyebrow { color: #a8d2fa; }
.product-category-hero h1 { margin: 0 0 .45rem; font-size: 2.5rem; }
.product-category-hero p:last-child { margin: 0; color: #d8ebfc; }
.product-filters .field:not(.grow) { width: 200px; }
.product-list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.product-list-card { min-width: 0; display: grid; grid-template-columns: 190px 1fr; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 22px rgba(15,57,96,.05); }
.product-list-card .card-cover { min-height: 100%; border-right: 1px solid var(--line); border-bottom: 0; }
.product-list-card .product-cover-image img { min-height: 245px; max-height: 310px; object-position: center; }
.product-list-content { min-width: 0; padding: 1rem; }
.product-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.product-card-meta small { color: var(--muted); font-size: .65rem; }
.product-list-content h2 { margin: .75rem 0 .2rem; font-size: 1.15rem; }
.product-list-content > p { margin: .45rem 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.product-list-content .product-brand { color: var(--blue); font-weight: 800; }
.product-quick-data { margin: .8rem 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.product-quick-data div { min-width: 0; padding: .55rem; background: #f5f9fc; border-radius: 7px; }
.product-quick-data dt { color: var(--muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.product-quick-data dd { margin: .25rem 0 0; overflow: hidden; font-size: .68rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-card-actions { padding-top: .75rem; display: flex; flex-wrap: wrap; gap: .45rem; border-top: 1px solid var(--line); }
.product-card-actions a, .product-card-actions button { padding: .48rem .6rem; color: var(--blue); background: white; border: 1px solid #a9c4dc; border-radius: 7px; font: inherit; font-size: .64rem; font-weight: 800; }
.product-card-actions a { color: white; background: var(--blue); border-color: var(--blue); }
.product-card-actions button:disabled { color: #8996a4; border-style: dashed; cursor: not-allowed; }
.product-empty { grid-column: 1 / -1; background: white; border: 1px solid var(--line); border-radius: 14px; }
.status-pill.draft { color: #865d00; background: #fff4d5; }
.status-pill.out_of_catalogue { color: #8b1723; background: #fdebed; }
.product-form-shell { max-width: 1320px; }
.product-form-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); align-items: start; gap: 1rem; }
.product-cover-editor { position: sticky; top: 92px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 26px rgba(20,62,101,.07); }
.product-cover-editor .editor-cover { min-height: 210px; }
.product-cover-editor .product-cover-image { height: 290px; }
.product-cover-editor > button { width: calc(100% - 2rem); margin: 1rem; padding: .7rem; color: #8191a2; background: #f4f7f9; border: 1px dashed #aebfce; border-radius: 8px; font: inherit; font-size: .7rem; font-weight: 800; cursor: not-allowed; }
.product-cover-editor > p { margin: 0 1rem 1rem; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.product-cover-editor nav { padding: 1rem; display: flex; flex-direction: column; gap: .55rem; border-top: 1px solid var(--line); }
.product-cover-editor nav button { min-height: 42px; padding: .6rem; color: #7d8d9e; background: #f7f9fb; border: 1px dashed #c4d1dc; border-radius: 7px; font: inherit; font-size: .67rem; font-weight: 700; cursor: not-allowed; }
.button-danger { min-height: 42px; padding: .72rem 1rem; color: white !important; background: var(--red) !important; border: 1px solid var(--red) !important; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.button-secondary { min-height: 42px; padding: .7rem 1rem; color: var(--blue); background: white; border: 1px solid #8fb4d6; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.product-required-first { margin: 0 0 1rem; padding: 1rem; display: grid; grid-template-columns: minmax(180px,.8fr) minmax(220px,1.2fr) minmax(220px,1fr); align-items: end; gap: 1rem; color: white; background: linear-gradient(125deg,#073b78,#0b67c4); border-radius: 13px; }
.product-required-first strong, .product-required-first small { display: block; }
.product-required-first small { margin-top: .25rem; color: #d9ebfb; }
.product-required-first label { color: white; }
.product-preview-banner { margin-bottom: 1rem; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #654b00; background: #fff7d8; border: 1px solid #e6c958; border-radius: 12px; }
.product-preview-banner strong { display: block; }
.product-preview-banner p { margin: .3rem 0 0; font-size: .75rem; line-height: 1.45; }
.product-preview-banner > span { padding: .45rem .65rem; white-space: nowrap; color: #725300; background: #ffeaa0; border-radius: 999px; font-size: .62rem; font-weight: 900; }
.product-cover-editor > button.upload-trigger { color: var(--blue); background: #edf6ff; border: 1px solid #9bbedd; cursor: pointer; }
.product-cover-editor nav button.upload-trigger { color: var(--blue); background: white; border: 1px solid #a8c4dc; cursor: pointer; }
.product-cover-dropzone { cursor: copy; transition: box-shadow .15s ease,background .15s ease; }
.file-dropzone.dragging { background: #dceeff !important; box-shadow: inset 0 0 0 3px #2582d8; }
.general-dropzone { min-height: 150px; padding: 1.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; color: #45657f; background: #f3f8fc; border: 2px dashed #9dbbd3; border-radius: 11px; text-align: center; }
.general-dropzone strong { color: var(--blue); font-size: 1rem; }
.general-dropzone span { font-size: .72rem; }
.general-dropzone button { margin-top: .3rem; padding: .62rem .9rem; color: white; background: var(--blue); border: 0; border-radius: 7px; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.upload-message { min-height: 1.25rem; margin: .65rem 0; color: #28724b; font-size: .7rem; font-weight: 700; }
.upload-message.error { color: var(--red); }
.product-file-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.product-file-item { min-width: 0; padding: .55rem; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: .65rem; background: white; border: 1px solid var(--line); border-radius: 9px; }
.product-file-item img, .product-material-item img { width: 46px; height: 46px; object-fit: cover; background: #f1f5f8; border-radius: 6px; }
.file-extension { width: 46px; height: 46px; display: grid; place-items: center; color: white; background: #52718d; border-radius: 6px; font-size: .58rem; font-weight: 900; }
.product-file-item strong, .product-file-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-file-item strong { font-size: .7rem; }
.product-file-item small { margin-top: .2rem; color: var(--muted); font-size: .6rem; }
.product-file-item button { padding: .4rem .5rem; color: var(--red); background: white; border: 1px solid #deb0b5; border-radius: 6px; font: inherit; font-size: .6rem; font-weight: 800; cursor: pointer; }
.product-approval-footer { flex-wrap: wrap; }
.approve-product { background: #198754 !important; border-color: #198754 !important; }
.product-card-actions a.product-secondary-link { color: var(--blue); background: white; border-color: #a9c4dc; }
.product-detail-shell { max-width: 1280px; }
.product-with-sidebar { max-width: 1480px; display: grid; grid-template-columns: 225px minmax(0,1fr); align-items: start; gap: 1rem; }
.product-section-content { min-width: 0; }
.product-section-sidebar { position: sticky; top: 92px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 10px 26px rgba(20,62,101,.07); }
.product-section-sidebar > strong { padding: 1rem; display: block; color: white; background: var(--blue); font-size: .9rem; }
.product-section-sidebar nav { padding: .7rem; display: flex; flex-direction: column; gap: .45rem; }
.product-section-sidebar nav a { min-height: 46px; padding: .7rem .75rem; display: flex; align-items: center; color: var(--blue); background: #f4f8fc; border: 1px solid #d3e1ed; border-radius: 8px; font-size: .72rem; font-weight: 800; }
.product-section-sidebar nav a:hover,.product-section-sidebar nav a.active { color: white; background: var(--blue); border-color: var(--blue); }
.product-sidebar-back { margin: 0 .7rem .7rem; padding: .7rem; display: block; color: var(--muted); border-top: 1px solid var(--line); font-size: .67rem; font-weight: 700; }
.product-detail-hero { margin-bottom: 1rem; padding: 1.25rem; display: grid; grid-template-columns: minmax(230px,330px) 1fr; align-items: center; gap: 1.6rem; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 9px 24px rgba(15,57,96,.06); }
.product-detail-cover { min-height: 250px; display: grid; place-items: center; overflow: hidden; background: #f4f8fb; border-radius: 11px; }
.product-detail-cover img { width: 100%; max-height: 330px; object-fit: contain; }
.product-detail-cover .product-cover-placeholder { width: 100%; min-height: 250px; border: 0; }
.product-detail-title { display: flex; align-items: center; gap: 1rem; }
.product-detail-title h1 { margin: .2rem 0; font-size: 2.25rem; }
.product-detail-brand { color: var(--blue); font-weight: 800; }
.product-detail-summary { margin: 1rem 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.product-detail-summary div { padding: .7rem; background: #f4f8fb; border-radius: 8px; }
.product-detail-summary dt, .readonly-data dt { color: var(--muted); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.product-detail-summary dd, .readonly-data dd { margin: .3rem 0 0; font-size: .74rem; font-weight: 700; }
.product-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.product-readonly-card { padding: 1.2rem; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 7px 20px rgba(15,57,96,.045); }
.product-readonly-card.wide { grid-column: 1 / -1; }
.product-readonly-card h2 { margin: 0 0 .85rem; font-size: 1.05rem; }
.product-readonly-card h3 { margin: 1rem 0 .35rem; color: var(--blue); font-size: .72rem; text-transform: uppercase; }
.product-readonly-card p { color: #42566a; font-size: .76rem; line-height: 1.65; }
.preserve-lines { white-space: pre-line; }
.readonly-data { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.readonly-data div { padding-bottom: .6rem; border-bottom: 1px solid #e6edf3; }
.product-materials { margin-top: 1rem; }
.product-document-list { display: grid; gap: .7rem; }
.product-document-list article { min-height: 74px; padding: .85rem 1rem; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: .8rem; background: white; border: 1px solid var(--line); border-radius: 11px; }
.product-document-list article strong,.product-document-list article small { display: block; }
.product-document-list article small { margin-top: .25rem; color: var(--muted); font-size: .68rem; }
.product-document-list article > a,.product-document-list article nav a { padding: .55rem .75rem; color: var(--blue); background: white; border: 1px solid #a8c4dc; border-radius: 7px; font-size: .68rem; font-weight: 800; }
.product-document-list article nav { display: flex; gap: .5rem; }
.product-document-list article nav a.button-primary { color: white; background: var(--blue); }
.product-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.product-gallery-tile { min-width: 0; padding: 0; overflow: hidden; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 7px 20px rgba(15,57,96,.055); text-align: left; }
.product-gallery-tile img { width: 100%; height: 230px; display: block; object-fit: contain; background: #f5f8fb; }
.product-gallery-tile span { padding: .75rem .9rem; display: block; color: var(--blue); font-size: .76rem; font-weight: 800; }
.products-gallery-shell { width: min(1540px,calc(100% - 2rem)); display: grid; grid-template-columns: 220px minmax(0,1fr); align-items: start; gap: 1.2rem; }
.gallery-index { position: sticky; top: 92px; max-height: calc(100vh - 115px); overflow: auto; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 13px; }
.gallery-index > p { margin: 0 0 .8rem; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.gallery-index nav { display: flex; flex-direction: column; gap: .35rem; }
.gallery-index a { padding: .65rem .7rem; color: var(--blue); background: #f4f8fc; border-radius: 7px; font-size: .72rem; font-weight: 700; }
.gallery-index a:hover { color: white; background: var(--blue); }
.gallery-content { min-width: 0; }
.gallery-product-section { margin-bottom: 1.2rem; padding: 1.1rem; scroll-margin-top: 90px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.gallery-product-section > header { margin-bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gallery-product-section h2 { margin: 0; color: var(--blue); }
.gallery-product-section header span { color: var(--muted); font-size: .72rem; }
.product-material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.product-material-item { min-width: 0; padding: .65rem; display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: .65rem; color: inherit; background: #f7fafc; border: 1px solid var(--line); border-radius: 9px; }
.product-photo-open { cursor: zoom-in; }
button.product-material-item { width: 100%; font: inherit; text-align: left; }
.product-material-item strong, .product-material-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-material-item strong { font-size: .7rem; }
.product-material-item small { margin-top: .2rem; color: var(--muted); font-size: .62rem; }
.product-file-actions { margin-top: .38rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.product-file-actions a { padding: .32rem .48rem; color: var(--blue); background: white; border: 1px solid #a8c4dc; border-radius: 5px; font-size: .6rem; font-weight: 800; }
.product-file-actions a.price-print-link { color: white; background: var(--blue); border-color: var(--blue); }
body.lightbox-open { overflow: hidden; }
.product-lightbox[hidden] { display: none; }
.product-lightbox { position: fixed; inset: 0; z-index: 5000; display: grid; grid-template-columns: minmax(54px,9vw) 1fr minmax(54px,9vw); grid-template-rows: auto 1fr; color: white; background: rgba(4,12,22,.97); touch-action: pan-y pinch-zoom; }
.product-lightbox-toolbar { grid-column: 1 / -1; min-height: 64px; padding: .65rem 1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; background: rgba(0,0,0,.32); }
.product-lightbox-toolbar button { min-height: 42px; padding: .62rem .85rem; color: white; background: #1268b3; border: 1px solid #4c96d7; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.product-lightbox-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.product-lightbox-counter { min-width: 54px; text-align: right; font-weight: 800; }
.product-lightbox figure { min-width: 0; min-height: 0; margin: 0; padding: 1rem; display: grid; grid-template-rows: minmax(0,1fr) auto; place-items: center; }
.product-lightbox figure img { max-width: 100%; max-height: calc(100vh - 125px); max-height: calc(100dvh - 125px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.product-lightbox figcaption { padding-top: .55rem; color: #d5e4f1; font-size: .72rem; text-align: center; }
.product-lightbox-arrow { align-self: center; width: 50px; height: 70px; color: white; background: rgba(18,104,179,.72); border: 1px solid rgba(255,255,255,.3); border-radius: 10px; font: inherit; font-size: 2.4rem; cursor: pointer; }
.product-lightbox-arrow.previous { justify-self: end; }
.product-lightbox-arrow.next { justify-self: start; }
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { min-height: 34vh; padding: 2.5rem; }
  .login-brand h1 { font-size: 3.5rem; }
  .login-panel { padding: 1.2rem; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-table-header { display: none; }
  .contact-row { grid-template-columns: 1.4fr 1fr 1fr 110px; }
  .contact-row > span:nth-child(4), .contact-row > span:nth-child(5) { display: none; }
  .form-grid.address { grid-template-columns: repeat(3, 1fr); }
  .activity-table-header { display: none; }
  .activity-row { grid-template-columns: 140px 1fr 150px; }
  .activity-row > span:nth-child(3), .activity-row > span:nth-child(4) { display: none; }
  .call-layout { grid-template-columns: 1fr; }
  .call-contact-strip dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .call-side-panel { position: static; }
  .call-shell { width: min(100% - 1rem, 900px); }
  .call-workspace { grid-template-columns: 1fr; }
  .operator-tools { position: static; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(115px,1fr)); overflow-x: auto; }
  .operator-tools-title { grid-column: 1 / -1; }
  .call-contact-header { top: 80px; }
  .contact-workspace { grid-template-columns: 150px minmax(0,1fr); gap: .8rem; }
  .contact-tools { padding: .75rem; }
  .contact-tool-button { padding: .75rem; }
  .archive-tabs { overflow-x: auto; padding-bottom: .15rem; }
  .archive-tabs a { flex: 0 0 auto; }
  .contacts-page-layout { grid-template-columns: 1fr; }
  .contacts-actions { position: static; min-height: 0; display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); overflow-x: auto; }
  .contacts-actions > p, .contacts-actions-space { display: none; }
  .playlist-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .list-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .list-filters .grow { grid-column: 1 / -1; }
  .picker-header, .picker-row { grid-template-columns: 38px 1.3fr 1fr 1.2fr; }
  .picker-header > span:nth-child(5), .picker-header > span:nth-child(6), .picker-row > span:nth-child(5), .picker-row > span:nth-child(6) { display: none; }
  .campaign-table-header, .campaign-row { grid-template-columns: 1.5fr 1fr 100px 130px; }
  .campaign-table-header > span:nth-child(4), .campaign-row > span:nth-child(4) { display: none; }
  .product-command-bar { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-list-grid { grid-template-columns: 1fr; }
  .product-form-layout { grid-template-columns: 190px minmax(0,1fr); }
  .product-required-first { grid-template-columns: 1fr 1fr; }
  .product-required-first > div:first-child { grid-column: 1 / -1; }
  .product-material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-with-sidebar,.products-gallery-shell { grid-template-columns: 1fr; }
  .product-section-sidebar,.gallery-index { position: static; max-height: none; }
  .product-section-sidebar nav,.gallery-index nav { flex-direction: row; overflow-x: auto; }
  .product-section-sidebar nav a,.gallery-index nav a { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .topbar { min-height: 64px; }
  .topbar { padding: 0 .75rem; }
  .topbar-brand-group { gap: .5rem; }
  .home-button { width: 36px; height: 36px; }
  .topbar-actions { gap: .4rem; }
  .contact-record-header { top: 64px; padding: .75rem 0; }
  .contact-record-header h1 { font-size: 1.65rem; }
  .contact-record-header p:last-child { display: none; }
  .contact-workspace { display: flex; flex-direction: column; gap: .75rem; }
  .contact-tools { top: 142px; z-index: 45; width: 100%; min-height: 0; padding: .65rem; display: flex; align-items: center; gap: .65rem; border-radius: 10px; }
  .contact-tools-title { margin: 0; }
  .contact-tool-button { min-height: 44px; margin-left: auto; padding: .6rem .85rem; }
  .contact-tool-button svg { width: 20px; height: 20px; }
  .contact-tools-reserved { display: none; }
  .user-area > div { display: none; }
  .shell { width: min(100% - 1rem, 1180px); padding-top: .6rem; }
  .hero { align-items: flex-start; flex-direction: column; border-radius: 12px; }
  .stats, .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 112px; }
  footer { text-align: center; }
  .topbar .button-primary { padding: .55rem .65rem; font-size: .74rem; }
  .filters { align-items: stretch; flex-direction: column; }
  .filters .field:not(.grow) { width: 100%; }
  .filters > a { text-align: center; }
  .contacts-actions { grid-template-columns: repeat(4,165px); }
  .contact-stats { grid-template-columns: 1fr; }
  .contacts-filters .field, .contacts-filters .field.grow, .contacts-filters .field.compact { width: 100% !important; min-width: 0; }
  .contact-sort { justify-content: flex-start; overflow-x: auto; }
  .contact-row { grid-template-columns: 1fr 100px; }
  .contact-row > span:not(.contact-name):not(.row-arrow) { display: none; }
  .contact-row > .restore-action { display: block !important; }
  .form-grid.two, .form-grid.three, .form-grid.address { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-section { padding: 1rem; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer > a.call-link { margin-right: 0; text-align: center; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .maps-actions { align-items: stretch; flex-direction: column; }
  .maps-actions > span { white-space: normal; }
  .maps-actions > div { align-items: stretch; flex-direction: column; }
  .maps-actions a { text-align: center; }
  .import-card { align-items: stretch; flex-direction: column; gap: 1rem; }
  .upload-form { min-width: 0; grid-template-columns: 1fr; }
  .upload-form label { grid-column: auto; }
  .import-summary { grid-template-columns: repeat(2, 1fr); }
  .history-card { overflow-x: auto; }
  .history-header, .history-row { min-width: 700px; }
  .call-hero, .call-quick-actions { align-items: stretch; flex-direction: column; }
  .call-navigation { display: none; }
  .call-contact-strip dl { grid-template-columns: 1fr; }
  .call-contact-header { top: 72px; padding: 1rem; }
  .call-contact-header h1 { font-size: 1.45rem; }
  .call-contact-header .call-quick-actions { display: none; }
  .operator-tools { grid-template-columns: repeat(5, 120px); }
  .operator-tool { min-height: 62px; }
  .call-quick-actions a { text-align: center; }
  .callback-box { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 1fr 120px; }
  .activity-row > span:first-child { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: .4rem; }
  .record-tabs { padding: .7rem .7rem 0; }
  .record-panel { padding: 1rem; }
  .last-call-note, .linked-record-list article { grid-template-columns: 1fr; gap: .45rem; }
  .linked-record-list small { text-align: left; }
  .decision-modal { padding: 1.4rem; }
  .decision-modal-actions { align-items: stretch; flex-direction: column; }
  .decision-modal-actions form, .decision-modal-actions button { width: 100%; }
  .deadline-notification { right: .5rem; bottom: .5rem; width: calc(100% - 1rem); }
  .campaign-section-heading, .selection-toolbar { align-items: stretch; flex-direction: column; }
  .playlist-grid { grid-template-columns: 1fr; }
  .list-filters { display: flex; }
  .selection-toolbar > div:last-child { flex-direction: column; }
  .picker-header { display: none; }
  .picker-row { grid-template-columns: 32px 1fr; }
  .picker-row > span:nth-child(n+3) { display: none; }
  .campaign-table-header { display: none; }
  .campaign-row { grid-template-columns: 1fr 110px; }
  .campaign-row > span:nth-child(2), .campaign-row > span:nth-child(3), .campaign-row > span:nth-child(4) { display: none; }
  .product-stats { grid-template-columns: repeat(2,1fr); }
  .product-command-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-category-grid { grid-template-columns: 1fr; }
  .product-category-buttons { grid-template-columns: 1fr; }
  .product-section-heading { align-items: flex-start; flex-direction: column; }
  .product-section-heading > p { text-align: left; }
  .product-category-hero { grid-template-columns: 1fr; }
  .product-category-hero .product-cover-placeholder { min-height: 110px; }
  .product-category-hero h1 { font-size: 2rem; }
  .product-list-card { grid-template-columns: 1fr; }
  .product-list-card .card-cover { min-height: 125px; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-form-layout { grid-template-columns: 1fr; }
  .product-cover-editor { position: static; }
  .product-cover-editor .editor-cover { min-height: 160px; }
  .product-required-first { grid-template-columns: 1fr; }
  .product-required-first > div:first-child { grid-column: auto; }
  .product-file-list, .product-detail-grid, .product-material-grid { grid-template-columns: 1fr; }
  .product-photo-grid { grid-template-columns: 1fr; }
  .product-document-list article { grid-template-columns: 42px minmax(0,1fr); }
  .product-document-list article > a,.product-document-list article nav { grid-column: 1 / -1; }
  .product-detail-hero { grid-template-columns: 1fr; }
  .product-detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-readonly-card.wide { grid-column: auto; }
  .product-lightbox { grid-template-columns: 52px 1fr 52px; }
  .product-lightbox-toolbar { min-height: 58px; padding: .45rem .55rem; grid-template-columns: auto 1fr auto; gap: .45rem; }
  .product-lightbox-toolbar button { padding: .55rem .62rem; font-size: .68rem; }
  .product-lightbox-title { display: none; }
  .product-lightbox figure { padding: .35rem; }
  .product-lightbox figure img { max-height: calc(100dvh - 105px); }
  .product-lightbox-arrow { width: 42px; height: 62px; }
}

/* STS One v0.34 - navigazione e scheda tecnica prodotto */
.history-back-button { padding: 0; background: transparent; cursor: pointer; }
.product-sheet-view { max-width: 1540px; }
.product-sheet-heading { margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.product-sheet-heading p { margin: 0 0 .25rem; color: var(--blue-2); font-size: .68rem; font-weight: 900; }
.product-sheet-heading h1 { margin: 0; font-size: clamp(2rem,4vw,2.8rem); }
.product-sheet-heading span { color: var(--muted); }
.product-sheet-heading > strong { padding: .7rem 1.25rem; color: #216a45; background: #dff5e9; border-radius: 999px; font-size: .72rem; }
.product-sheet-hero { display: grid; grid-template-columns: minmax(320px,.7fr) minmax(0,1.3fr); gap: 1.4rem; }
.product-sheet-cover,.product-sheet-overview,.product-technical-panel,.product-dimension-panel,.product-platform-panel { background: white; border: 1px solid var(--line); border-radius: 14px; }
.product-sheet-cover { min-height: 410px; padding: 1rem; display: grid; place-items: center; overflow: hidden; }
.product-sheet-cover img { width: 100%; height: 390px; object-fit: contain; }
.product-sheet-overview { padding: 1.7rem; }
.product-sheet-overview h2,.product-technical-panel h2,.product-dimension-panel h2,.product-platform-panel h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
.product-sheet-overview > p { min-height: 76px; color: #536a82; line-height: 1.55; }
.product-sheet-metrics { margin: 1.5rem 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; }
.product-sheet-metrics article { padding: .9rem; background: #f0f5fa; border: 1px solid #d5e1ec; border-radius: 9px; }
.product-sheet-metrics strong { display: block; color: #0759c7; font-size: 1.45rem; }
.product-sheet-metrics span { display: block; margin-top: .35rem; color: #6a7d91; font-size: .65rem; }
.product-sheet-overview nav { display: flex; flex-wrap: wrap; gap: .55rem; }
.product-sheet-overview nav a { padding: .65rem .8rem; color: #174a78; background: white; border: 1px solid #a8c4dc; border-radius: 8px; font-size: .7rem; font-weight: 800; }
.product-sheet-overview nav a:first-child { color: white; background: #0759c7; border-color: #0759c7; }
.product-sheet-lower { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr .95fr; gap: 1.2rem; }
.product-technical-panel,.product-dimension-panel,.product-platform-panel { padding: 1.4rem; }
.product-technical-panel dl { margin: 0; }
.product-technical-panel dl div { min-height: 34px; padding: .48rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem; border-bottom: 1px solid #dce6ef; }
.product-technical-panel dt { color: #6c7f93; font-size: .72rem; }
.product-technical-panel dd { margin: 0; max-width: 330px; color: #1a3553; font-size: .72rem; font-weight: 800; text-align: right; }
.product-dimension-panel { display: flex; flex-direction: column; }
.product-dimension-panel > a { min-height: 290px; display: grid; place-items: center; }
.product-dimension-panel img { width: 100%; max-height: 300px; object-fit: contain; }
.product-dimension-panel > p { margin: auto 0 0; color: var(--muted); font-size: .65rem; }
.dimension-placeholder { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #6c7f93; background: #f4f8fc; border-radius: 10px; text-align: center; }
.dimension-placeholder strong { color: #173e64; }
.dimension-placeholder a { padding: .55rem .75rem; color: white; background: #0759c7; border-radius: 7px; font-size: .68rem; font-weight: 800; }
.product-platform-panel { margin-top: 1.2rem; }
.product-platform-table > div { display: grid; grid-template-columns: 1fr 1fr 1.7fr; }
.product-platform-table > div > * { padding: .7rem; border-bottom: 1px solid #d7e2ec; font-size: .72rem; }
.product-platform-table .head { color: white; background: #0759c7; }
.product-platform-table > div:not(.head):nth-child(even) { background: #f0f5fa; }
@media (max-width: 1000px) { .product-sheet-hero,.product-sheet-lower { grid-template-columns: 1fr; } .product-sheet-cover { min-height: 320px; } .product-sheet-cover img { height: 310px; } }
@media (max-width: 650px) { .product-sheet-heading { flex-direction: column; } .product-sheet-metrics { grid-template-columns: repeat(2,1fr); } .product-sheet-overview { padding: 1rem; } .product-technical-panel dd { max-width: 190px; } .product-platform-table > div { grid-template-columns: 1fr 1fr; } .product-platform-table > div > *:last-child { grid-column: 1 / -1; padding-top: .2rem; } }
