/* Restore the blue-white sales workspace shown in the approved reference. */
:root{--ink:#14213d;--ink-deep:#0d1a33;--cream:#f5f8ff;--paper:#fff;--sage-soft:#edf3fc;--line:#dbe5f2;--muted:#64748b;--gold:#a97835;--blue:#246bfd;--blue-deep:#1d55cc;--shadow:0 10px 28px rgba(38,79,145,.07)}
html,body{background:#f5f8ff!important;color:var(--ink)!important}body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;font-size:15px}.topbar{color:var(--ink);background:transparent}.brand-mark{background:var(--blue)!important;color:#fff!important}.brand-name{color:var(--ink)}.brand-subtitle,.eyebrow,.overview-note,.support-note{color:var(--muted)}.offline-pill{color:#31537f;background:#fff;border-color:#d4e1f2}.offline-pill span{background:#46a879}
.page-panel{background:#fff;border-color:var(--line);box-shadow:var(--shadow)}.overview{background:transparent;box-shadow:none;border:0}.overview h1{color:var(--ink)}.total-card{background:linear-gradient(145deg,var(--blue),var(--blue-deep));border:1px solid #5c8df4;box-shadow:0 12px 28px rgba(36,107,253,.22)}.total-card span,.total-card small{color:#dce9ff}.total-card strong{color:#fff2c9}
.mode-strip{background:rgba(255,255,255,.9);border-color:#dce7f6;box-shadow:0 8px 22px rgba(38,79,145,.06)}.mode-button{background:#f7faff;border-color:#d7e2f2;color:#526987}.mode-button.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 7px 16px rgba(36,107,253,.2)}
.section-kicker{color:var(--gold)}.live-badge{background:#eaf7f0;color:#347b55}.category-chip{background:#fff;border-color:var(--line);color:var(--ink);box-shadow:0 5px 16px rgba(38,79,145,.05)}.category-chip small{color:var(--muted)}.category-chip.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 8px 20px rgba(36,107,253,.18)}.category-chip.active small{color:#dce9ff}
.form-card,.cost-card,.history-item,.stats-detail,.talk-card,.service-card,.document-tool{background:#fff;border-color:var(--line);box-shadow:var(--shadow)}.field label,.history-count,.cost-intro,.stats-intro,.talk-intro{color:var(--muted)}.field input,.field select,.field textarea,.product-type-select,.month-picker input,.talk-search{background:#fbfdff;border-color:#d4e0f0;color:var(--ink)}.field input::placeholder,.field textarea::placeholder{color:#a2b0c2}.field input:focus,.field select:focus,.field textarea:focus,.talk-search:focus-within{border-color:#72a0f4;box-shadow:0 0 0 3px rgba(36,107,253,.14)}.unit{color:#71839d}
.primary-button,.add-side-stone,.fee-add,.service-card-accent{background:var(--blue)!important;border-color:var(--blue)!important;color:#fff!important}.secondary-button{background:#edf3fc;color:#254c85;border-color:#d5e1f1}.ghost-button{background:#fff;color:#1d5bdd;border-color:#bdd0ee}.text-button{color:#1d5bdd}
.breakdown-card{background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important}.breakdown-card .eyebrow,.breakdown-card .formula-tag{color:#1d5bdd!important}.breakdown-list{border-color:#dbe5f2}.breakdown-row{border-color:#dbe5f2}.breakdown-row span:first-child,.breakdown-total span{color:var(--ink)}.breakdown-row span:last-child,.breakdown-total strong{color:var(--blue)}.breakdown-row small{color:var(--muted)}.formula-tag{border-color:#83a9ef}.summary-actions .ghost-button{color:#1d5bdd;background:#fff;border-color:#bdd0ee}
.side-stones-section{background:#f8fbff!important;border-color:#dce7f5!important}.side-stone-card{background:#fff!important;border-color:#dbe5f2!important;box-shadow:0 6px 18px rgba(38,79,145,.06)!important}.side-stone-header small,.side-stone-match,.side-stones-grand-total{color:var(--muted)}.side-stone-match{background:#eef4fc}.side-stone-total input{background:#f2f6fc;color:#1d5bdd}.remove-side-stone{background:#fff7f4;color:#9c5c51;border-color:#e7cbc2}
/* Fees live inside the same extra-fee form group; no separate visual card. */
.custom-extra-fields{margin-top:16px}.setting-fees-inline{grid-column:1/-1;display:block;margin:0;padding:0;background:transparent;border:0;border-radius:0}.setting-fees-inline-title{display:grid;gap:2px;margin:14px 0 8px;padding-top:14px;border-top:1px solid #e5edf7}.setting-fees-inline-title h3{margin:0;color:var(--ink);font-size:16px}.setting-fees-inline-title small{color:var(--muted);font-size:11px}.setting-fees-inline .fee-lines-section{margin:10px 0 0!important;padding:12px 0 0!important;background:transparent!important;border:0!important;border-top:1px solid #e5edf7!important;border-radius:0!important;box-shadow:none!important}.setting-fees-inline .fee-lines-head{padding-bottom:8px;border-bottom:0}.setting-fees-inline .fee-lines-head h4{font-size:14px!important;color:var(--ink)}.setting-fees-inline .fee-add{min-height:36px!important;padding:0 11px!important;font-size:11px!important}.setting-fees-inline .fee-line{grid-template-columns:100px minmax(0,1fr) 100px minmax(0,1fr) 70px!important;gap:8px!important;padding:11px 0!important;border-bottom:1px solid #e5edf7!important}.setting-fees-inline .fee-line>label{color:var(--muted)!important;font-size:12px!important}.setting-fees-inline .fee-line input{min-height:42px!important;background:#fbfdff!important;border:1px solid #d4e0f0!important;color:var(--ink)!important}.setting-fees-inline .fee-line .fee-remove{min-height:34px!important;background:#fff7f4!important;color:#9c5c51!important;border-color:#e7cbc2!important}.setting-fees-inline .side-fee-group{margin-top:10px;padding-top:10px;border-top:1px dashed #dbe5f2}.setting-fees-inline .side-setting-fee-total{color:var(--muted)}.setting-fees-inline .side-setting-fee-total strong{color:var(--blue)}
.bottom-nav{background:rgba(255,255,255,.97);border-color:#dbe5f2;box-shadow:0 -8px 24px rgba(38,79,145,.08)}.nav-item{color:#8795a8}.nav-item.active{background:#eaf2ff;color:#1d5bdd}.nav-item.active span,.nav-item.active b{color:#1d5bdd}
.stats-section{background:#f8faff}.stats-category-card{background:#fff;border-color:var(--line);color:var(--ink)}.stats-category-card.active{background:var(--blue);border-color:var(--blue);color:#fff}.stats-detail-cell{background:#edf4fc;color:var(--ink)}.stats-detail-cell strong{color:var(--ink)}.talk-category{background:#f7faff;border-color:#d7e2f2;color:var(--muted)}.talk-category.active{background:var(--blue);border-color:var(--blue);color:#fff}.talk-copy{background:#eef4fc;color:#1d5bdd}.service-card .service-icon{background:#edf4ff;color:var(--blue)}.document-upload{background:#f7faff;color:var(--blue);border-color:#9ab8ef}.toast{background:var(--blue);color:#fff}
.category-scroller{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;padding:2px 0 5px!important}.category-chip{min-width:0!important;width:100%!important}.services-hero{background:linear-gradient(135deg,#edf4ff,#fff)!important;border-color:#dbe5f4!important}.service-card-accent small,.service-card-accent b{color:#e3edff!important}.section-kicker,.eyebrow,.cost-source b,.cost-item-sales{color:#1d5bdd!important}.bottom-nav .nav-item.active{color:#1d5bdd!important;background:#eaf2ff!important}.bottom-nav .nav-item.active span,.bottom-nav .nav-item.active b{color:#1d5bdd!important}.fee-lines-head h4{color:var(--ink)!important}
@media(max-width:560px){.category-scroller{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.category-chip{min-height:84px!important}}
@media(max-width:640px){.setting-fees-inline .fee-line{grid-template-columns:1fr 1fr!important;gap:7px!important}.setting-fees-inline .fee-line>label:first-child{grid-column:1/-1}.setting-fees-inline .fee-line>.unit-wrap:nth-of-type(1),.setting-fees-inline .fee-line>.unit-wrap:nth-of-type(2){grid-column:1/-1}.setting-fees-inline .fee-line .fee-remove{grid-column:1/-1;justify-self:start}.setting-fees-inline .fee-lines-head{align-items:flex-start!important}}

/* Final readability pass for the compact fee rows.  Do not generate duplicate labels. */
body[data-page="custom"] .main-fee-section .fee-line>label:first-child{font-size:12px!important;color:var(--muted)!important}
body[data-page="custom"] .main-fee-section .fee-line>label:first-child::after{content:none!important}
body[data-page="custom"] .main-fee-section .fee-line .fee-qty-label{display:none!important}
.setting-fees-inline .fee-line-final{grid-template-columns:96px minmax(0,1fr) minmax(150px,1fr) 60px!important;align-items:center!important}
.setting-fees-inline .fee-line-final>label{white-space:nowrap!important}
.setting-fees-inline .fee-line-final .fee-qty-input{min-width:0}
.setting-fees-inline .fee-line-final .fee-remove{justify-self:end}
.setting-fees-inline .fee-line-final .fee-total-line{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding-top:2px}
.setting-fees-inline .fee-line-final .fee-total-line>label{min-width:96px;color:var(--muted)!important;font-size:12px!important}
.setting-fees-inline .fee-line-final .fee-total-line .unit-wrap{flex:1;min-width:0}
.setting-fees-inline .fee-line-final .fee-total-line .unit-wrap{position:relative}
.setting-fees-inline .fee-line-final .fee-total-line input{width:100%;padding-right:48px!important;box-sizing:border-box}
.setting-fees-inline .fee-line-final .fee-total-line input{background:#edf4ff!important;color:var(--blue)!important;font-weight:700}
.embedded-fees{margin-top:16px!important;padding-top:14px!important;border-top:1px solid #dbe5f2!important}
.embedded-fees .setting-fees-inline-title{margin:0 0 8px!important;padding:0!important;border:0!important}
.embedded-fees .fee-lines-section{background:transparent!important;border-top:1px solid #e5edf7!important}
.embedded-fees .fee-lines-head{padding:10px 0 6px!important}
.embedded-fees .fee-lines-head h4{color:var(--ink)!important}
.service-card-grid [data-service-page="talk"]{order:1}
.service-card-grid [data-service-tool="document"]{order:2}
.service-card-grid [data-service-page="stats"]{order:3}
.service-card-grid [data-service-page="history"]{order:4}
@media(max-width:640px){
  .setting-fees-inline .fee-line-final{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .setting-fees-inline .fee-line-final>label:first-child{grid-column:1/-1!important}
  .setting-fees-inline .fee-line-final .fee-price-input,.setting-fees-inline .fee-line-final .fee-qty-input{grid-column:auto!important}
  .setting-fees-inline .fee-line-final .fee-remove{grid-column:1/-1!important;justify-self:start!important}
}

/* Blue-only finishing pass: remove legacy burgundy accents from every visible control. */
:root{--cartier-burgundy:var(--blue)!important;--cartier-burgundy-deep:var(--blue-deep)!important}
.breakdown-card .breakdown-total strong,.breakdown-card .breakdown-row span:last-child{color:var(--blue)!important}
.breakdown-card .summary-actions button,.breakdown-card .summary-actions .ghost-button{color:var(--blue)!important;border-color:#bdd0ee!important;background:#fff!important}
.bottom-nav,.bottom-nav .nav-item{border-color:#dbe5f2!important}
.bottom-nav .nav-item.active{background:#eaf2ff!important;color:var(--blue)!important}
.bottom-nav .nav-item.active span,.bottom-nav .nav-item.active b{color:var(--blue)!important}
.bottom-nav .nav-item:not(.active){color:#7f8ea4!important}
.fee-remove,.setting-fees-inline .fee-line .fee-remove{color:#1d5bdd!important;background:#edf4ff!important;border-color:#bdd0ee!important}
.fee-remove:hover{background:#dceaff!important}
.history-item .history-price,.history-detail-item summary>b,.stats-history-button,.text-button{color:var(--blue)!important}
