/* TianSiCalculator Production V1.03.1 — Tian Si Jewellery branding update */
:root{
  font-family: Arial, Helvetica, sans-serif;
  color:#211a13;
  background:#f6f2e9;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  --blue:#0b3b70;
  --blue2:#082b57;
  --gold:#d5b35a;
  --cream:#f6f2e9;
  --paper:#fffdf8;
  --line:#dfcfad;
  --muted:#6d7885;
  --danger:#a34141;
  --ok:#26734d;
}
*{box-sizing:border-box}
html,body,#root{margin:0;min-height:100%;background:var(--cream)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.app-shell{min-height:100vh;padding-bottom:88px}
.topbar{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;background:rgba(255,253,248,.96);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--line)
}
.brand-lockup{display:flex;align-items:center;gap:12px}
.compact-brand{gap:9px}
.brand-logo{display:block;height:auto;object-fit:contain}
.brand-logo-header{width:128px;max-width:36vw}
.auth-brand{flex-direction:column;justify-content:center;text-align:center;gap:7px}
.brand-logo-auth{width:min(260px,86%)}
.brand-logo-profile{width:138px;max-width:32vw;flex:0 0 auto}
.brand-lockup h1{margin:2px 0 0;color:var(--blue);font-size:24px}
.eyebrow{font-size:11px;letter-spacing:.17em;color:#806833;font-weight:700}
.top-actions{display:flex;gap:8px;align-items:center}
.lang-select{border:1px solid var(--line);background:white;border-radius:10px;padding:9px}
.main-content{max-width:760px;margin:0 auto}
.page{padding:14px;display:flex;flex-direction:column;gap:14px}
.section-card,.record-card,.stat-card{
  background:var(--paper);border:1px solid var(--line);border-radius:18px;
  box-shadow:0 4px 18px rgba(79,55,20,.06)
}
.section-card{padding:16px}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.section-title h2{margin:0;color:var(--blue);font-size:20px}
.section-title span{font-size:13px;color:#664e31;background:#f7edd9;padding:7px 9px;border-radius:999px}
.item-list{display:flex;flex-direction:column;gap:12px}
.item-card{
  border:1px solid #e3d7bf;border-radius:16px;padding:14px;background:#fff
}
.item-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:var(--blue)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field{display:flex;flex-direction:column;gap:6px}
.field>span{font-size:13px;color:#664e31;font-weight:700}
.field input,.field select,.field textarea,.filters input,.filters select,.price-row input,.user-row select{
  width:100%;border:1.5px solid #c8d8e8;background:#fbfdff;border-radius:11px;
  padding:11px 12px;outline:none;color:#082b57
}
.field input:focus,.field select:focus,.field textarea:focus,.filters input:focus,.filters select:focus{
  border-color:#6f91b3;box-shadow:0 0 0 3px rgba(111,145,179,.14)
}
.readonly b{min-height:43px;display:flex;align-items:center;padding:10px 12px;border-radius:11px;background:#eef4fa;color:var(--blue)}
.line-total,.summary-strip{
  display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:10px 12px;border-radius:12px
}
.line-total{background:#eef4fa;color:var(--blue)}
.line-total strong{font-size:18px}
.summary-strip{background:#fff7e4;border:1px solid #dfcfad;color:#614817}
.summary-strip strong{color:var(--blue)}
.primary-btn,.secondary-btn,.ghost-btn,.small-btn{
  border:0;border-radius:12px;padding:12px 14px;font-weight:700
}
.primary-btn{background:var(--blue);color:#fff}
.primary-btn:hover{background:var(--blue2)}
.secondary-btn{width:100%;background:#eef4fa;color:var(--blue);border:1px solid #c8d8e8;margin-top:12px}
.ghost-btn{width:100%;margin-top:12px;background:white;border:1px solid var(--line);color:#664e31}
.ghost-btn.fit{width:auto}
.small-btn{background:var(--blue);color:white;padding:9px 12px}
.icon-btn{border:0;background:#eef4fa;color:var(--blue);border-radius:10px;min-width:38px;height:38px;display:grid;place-items:center}
.icon-btn.danger{background:#fff1ee;color:var(--danger);font-size:21px}
.danger-text{color:var(--danger)!important}
.ok{color:var(--ok)!important}
.warn{color:#9a6d25!important}
.receipt-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0}
.receipt-row>span{font-size:13px;font-weight:700;color:#664e31}
.segmented{display:grid;grid-template-columns:1fr 1fr;background:#eef4fa;border-radius:12px;padding:4px;gap:4px}
.segmented button{border:0;background:transparent;color:#5f7185;padding:10px;border-radius:9px;font-weight:700}
.segmented button.active{background:var(--blue);color:white;box-shadow:0 3px 9px rgba(11,59,112,.2)}
.segmented.compact{min-width:220px}
.cash-check{display:flex;align-items:center;gap:9px;padding:10px 0;color:var(--blue);font-weight:700}
.cash-check input{width:20px;height:20px;accent-color:var(--blue)}
.cash-target{
  background:#eef4fa;border:1px solid #c8d8e8;border-radius:14px;padding:12px;margin-bottom:12px;
  display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 12px
}
.cash-target strong{font-size:20px;color:var(--blue);text-align:right}
.cash-target em{grid-column:1/-1;font-size:12px;font-style:normal}
.recovery-table{margin-top:12px;border:1px solid #dce7f2;border-radius:12px;overflow:hidden}
.recovery-table>div{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:10px 11px;border-bottom:1px solid #dce7f2;align-items:center}
.recovery-table>div:last-child{border-bottom:0}
.recovery-table span{font-size:13px;color:#5f7185}
.recovery-table b{font-size:13px;color:#664e31}
.recovery-table strong{min-width:86px;text-align:right;color:var(--blue)}
.recovery-total{background:#eef4fa}
.recovery-total strong{font-size:20px}
.hero-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.metric{background:#f7edd9;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:5px}
.metric span{font-size:12px;color:#796b58}
.metric strong{font-size:18px;color:var(--blue)}
.metric.hero{grid-column:1/-1;background:var(--blue)}
.metric.hero span,.metric.hero strong{color:white}
.metric.hero strong{font-size:28px}
.customer-box{margin-top:14px}
.form-stack{display:flex;flex-direction:column;gap:12px}
.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.action-grid .secondary-btn{margin-top:0}
.notice{margin-top:12px;padding:11px 12px;border:1px solid #d5b56b;background:#fff7e4;border-radius:12px;color:#7a4d18;white-space:pre-wrap}
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:30;
  display:flex;justify-content:center;background:rgba(255,253,248,.97);border-top:1px solid var(--line);
  padding:7px 8px calc(7px + env(safe-area-inset-bottom));backdrop-filter:blur(14px)
}
.bottom-nav button{
  flex:1;max-width:180px;border:0;background:transparent;color:#77889a;
  display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px;border-radius:12px;font-size:11px
}
.bottom-nav button.active{color:var(--blue);background:#eef4fa}
.version{text-align:center;color:#796b58;font-size:11px;padding:12px 0 5px}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stat-card{padding:14px;display:flex;flex-direction:column;gap:7px}
.stat-card span{font-size:12px;color:#796b58}
.stat-card strong{font-size:20px;color:var(--blue)}
.filters{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.filters input:first-child{grid-column:1/-1}
.record-list{display:flex;flex-direction:column;gap:12px}
.record-card{padding:14px}
.record-head{display:flex;justify-content:space-between;gap:12px}
.record-head>div{display:flex;flex-direction:column;gap:3px}
.record-head strong{color:var(--blue);font-size:17px}
.record-head span,.record-head time{font-size:12px;color:#796b58}
.record-head time{text-align:right}
.staff-chip{display:inline-block;margin-top:8px;background:#eef4fa;color:#315b86;padding:6px 8px;border-radius:999px;font-size:11px}
.record-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.record-grid>div{background:#f6f2e9;border-radius:10px;padding:9px;display:flex;flex-direction:column;gap:4px}
.record-grid span{font-size:11px;color:#796b58}
.record-grid strong{color:#082b57}
.record-bottom{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin-top:12px}
.record-bottom select{border:1px solid #c8d8e8;border-radius:10px;padding:9px;background:#fbfdff}
.status-pill{display:inline-flex;padding:7px 9px;border-radius:999px;font-size:11px;font-weight:700}
.status-pill.sold{background:#e5f4ec;color:#26734d}
.status-pill.follow_up{background:#fff2cc;color:#806833}
.status-pill.lost{background:#fbe8e8;color:#a34141}
.empty{text-align:center;color:#796b58;padding:28px}
.price-table{overflow-x:auto}
.price-row{min-width:690px;display:grid;grid-template-columns:70px repeat(3,1fr) 80px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eee3cf}
.price-row.header{font-size:12px;color:#796b58;font-weight:700}
.user-list{display:flex;flex-direction:column;gap:10px}
.user-row{display:grid;grid-template-columns:1fr 120px 130px;gap:9px;align-items:center;padding:11px;border:1px solid #e3d7bf;border-radius:12px;background:white}
.user-row>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.user-row strong{color:var(--blue);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-row span{font-size:11px;color:#796b58;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auth-shell,.center-screen{min-height:100vh;display:grid;place-items:center;padding:22px;background:linear-gradient(160deg,#f6f2e9,#eef4fa)}
.auth-card,.state-card{width:min(100%,430px);background:#fffdf8;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 22px 60px rgba(11,59,112,.12)}
.auth-card .segmented{margin:22px 0 16px}
.state-card{text-align:center}
.state-card h2{color:var(--blue)}
.account-card{text-align:center;padding:30px}
.account-card svg{color:var(--blue);margin:auto}
.account-card h2{color:var(--blue)}
@media (max-width:560px){
  .page{padding:11px}
  .section-card{padding:13px}
  .section-title h2{font-size:19px}
  .grid-2{grid-template-columns:1fr 1fr}
  .segmented.compact{min-width:0;flex:1}
  .receipt-row{align-items:stretch;flex-direction:column}
  .recovery-table>div{grid-template-columns:1fr auto}
  .recovery-table b{display:none}
  .user-row{grid-template-columns:1fr 1fr}
  .user-row>div{grid-column:1/-1}
}

/* cPanel parity runtime additions */
[hidden]{display:none!important}.auth-error{margin-top:12px;color:var(--danger)}.lang-auth{margin-left:auto}.cash-input-empty{background:#fff}.record-details{margin-top:10px}.record-details summary{cursor:pointer;color:var(--blue);font-weight:700}.record-details pre{white-space:pre-wrap;word-break:break-word;background:#f5f7fa;border-radius:10px;padding:10px;font-size:11px}.status-note{font-size:12px;color:#796b58}.account-card p{margin:4px}.price-updated{font-size:10px;color:#796b58}.auth-actions{display:flex;justify-content:flex-end}.main-content{padding-bottom:8px}


/* V1.07 UX + bugfix patch */
.settlement-overview{background:linear-gradient(145deg,#082b57,#0b3b70);border-radius:18px;padding:14px;color:#fff;box-shadow:0 8px 24px rgba(11,59,112,.20)}
.overview-title{font-size:13px;font-weight:800;letter-spacing:.04em;color:#f4d987;margin-bottom:10px}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.overview-card{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:13px;padding:11px;display:flex;flex-direction:column;gap:4px}
.overview-card span{font-size:11px;color:#dce8f5}.overview-card strong{font-size:20px;color:#fff}.overview-card b{font-size:13px;color:#f5d97e}
.overview-final{margin-top:9px;background:#fff;border-radius:13px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;color:#0b3b70}
.overview-final span{font-weight:800}.overview-final strong{font-size:28px}.overview-final.refund strong{color:#26734d}
.hero-metrics .metric b{font-size:13px;color:#806833}.hero-metrics .metric.hero b{color:#fff}
.user-row-password{grid-template-columns:minmax(0,1fr) 120px 130px}.password-reset-row{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:8px;padding-top:2px}.password-reset-row input{width:100%;border:1.5px solid #c8d8e8;background:#fbfdff;border-radius:11px;padding:10px 12px;outline:none;color:#082b57}
.password-reset-row input:focus{border-color:#6f91b3;box-shadow:0 0 0 3px rgba(111,145,179,.14)}
@media (max-width:560px){
  .settlement-overview{position:sticky;top:63px;z-index:12;margin:-1px 0 1px;padding:12px;border-radius:15px}
  .overview-card{padding:9px}.overview-card strong{font-size:18px}.overview-final strong{font-size:25px}
  .hero-metrics{grid-template-columns:1fr 1fr}.metric.hero{grid-column:1/-1}
  .user-row-password{grid-template-columns:1fr 1fr}.password-reset-row{grid-column:1/-1;grid-template-columns:1fr}.password-reset-row .small-btn{width:100%}
}


/* V1.08 fixed quotation summary dock */
.calculator-page{padding-bottom:218px}
.quote-dock{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:72px;
  z-index:29;
  width:min(1180px,calc(100% - 24px));
  background:linear-gradient(145deg,#0a315f,#123f72);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:12px 14px;
  color:#fff;
  box-shadow:0 -5px 28px rgba(8,43,87,.20),0 12px 34px rgba(8,43,87,.18);
}
.quote-dock-title{
  margin:0 0 8px;
  font-size:13px;
  line-height:1;
  font-weight:800;
  color:#f6d878;
}
.quote-dock-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.quote-dock-card{
  min-width:0;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  border-radius:13px;
  padding:9px 12px;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:"label label" "amount weight";
  align-items:end;
  gap:3px 10px;
}
.quote-dock-card span{grid-area:label;font-size:11px;color:#dce8f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quote-dock-card strong{grid-area:amount;font-size:20px;line-height:1.1;color:#fff;white-space:nowrap}
.quote-dock-card b{grid-area:weight;font-size:13px;line-height:1.1;color:#f6d878;white-space:nowrap;text-align:right}
.quote-dock-final{
  margin-top:9px;
  background:#fff;
  border-radius:13px;
  min-height:48px;
  padding:8px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#0b3b70;
}
.quote-dock-final span{font-size:16px;font-weight:800}
.quote-dock-final strong{font-size:28px;line-height:1;color:#0b3b70;white-space:nowrap}
.quote-dock-final.refund strong{color:#26734d}
.quotation-form-card .customer-box{margin-top:0}

@media (min-width:900px){
  .main-content{max-width:1040px}
  .page{padding-left:20px;padding-right:20px}
  .calculator-page{padding-bottom:178px}
  .quote-dock{
    bottom:70px;
    width:min(1000px,calc(100% - 40px));
    display:grid;
    grid-template-columns:auto minmax(0,1fr) minmax(250px,.78fr);
    grid-template-areas:"title cards final";
    align-items:center;
    gap:12px;
    padding:11px 13px;
  }
  .quote-dock-title{grid-area:title;margin:0;writing-mode:vertical-rl;transform:rotate(180deg);font-size:12px;letter-spacing:.06em}
  .quote-dock-grid{grid-area:cards}
  .quote-dock-final{grid-area:final;margin:0;min-height:65px}
  .quote-dock-final strong{font-size:30px}
}

@media (max-width:600px){
  .calculator-page{padding:10px 10px 226px}
  .quote-dock{
    width:calc(100% - 16px);
    bottom:68px;
    border-radius:16px;
    padding:10px 11px;
  }
  .quote-dock-title{font-size:12px;margin-bottom:8px}
  .quote-dock-grid{gap:7px}
  .quote-dock-card{padding:8px 9px;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
  .quote-dock-card span{font-size:10px;width:100%}
  .quote-dock-card strong{font-size:18px}
  .quote-dock-card b{font-size:12px;text-align:left}
  .quote-dock-final{min-height:44px;margin-top:7px;padding:7px 11px}
  .quote-dock-final span{font-size:14px}
  .quote-dock-final strong{font-size:25px}
}

/* V1.09 Account / Profile */
.account-page{max-width:900px}.profile-card,.password-card{text-align:left}.profile-heading{display:flex;align-items:center;gap:16px;margin-bottom:22px}.profile-heading .brand-logo-profile{flex:0 0 auto}.profile-heading h2{margin:2px 0 8px;color:var(--blue)}.profile-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;color:#8a6a2c;text-transform:uppercase}.profile-form-grid,.password-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.password-form-grid label:first-child{grid-column:1/-1}.profile-actions{display:flex;justify-content:flex-end;margin-top:16px}.profile-card .notice,.password-card .notice{margin-top:12px}.password-card>.primary-btn{margin-top:16px}.profile-card select{width:100%}
@media(max-width:700px){.account-page{padding-bottom:150px}.profile-heading{align-items:flex-start}.profile-form-grid,.password-form-grid{grid-template-columns:1fr}.password-form-grid label:first-child{grid-column:auto}.profile-actions .primary-btn,.password-card>.primary-btn{width:100%}}


/* ===== V1.18 Admin Gold Sync ===== */
.gold-sync-admin-card{border-color:#e7cf9b!important}
.gold-sync-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.gold-sync-head h2{margin:0 0 4px}.gold-sync-head p{margin:0;color:#6e7b89;font-size:13px}
.gold-sync-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.gold-sync-meta>div{background:#f4f7fb;border:1px solid #d6e2ee;border-radius:11px;padding:10px}
.gold-sync-meta span{display:block;font-size:11px;color:#7a8998;margin-bottom:4px}.gold-sync-meta strong{font-size:13px;color:#123f73}
.gold-sync-actions{display:flex;gap:9px;margin-top:13px}.gold-sync-actions button{min-height:43px}
.gps-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;white-space:nowrap}
.gps-badge.success{background:#e7f7ed;color:#17733b}.gps-badge.danger{background:#fdeaea;color:#a33434}.gps-badge.neutral{background:#edf3fa;color:#49627c}
.gps-modal{position:fixed;inset:0;background:rgba(8,26,48,.55);z-index:5000;display:flex;align-items:center;justify-content:center;padding:14px}
.gps-modal-card{width:min(900px,100%);max-height:88vh;overflow:auto;background:#fffdf8;border-radius:18px;padding:15px}
.gps-modal-head{display:flex;justify-content:space-between;align-items:flex-start;position:sticky;top:-15px;background:#fffdf8;padding:10px 0;border-bottom:1px solid #ead9b9;z-index:2}
.gps-modal-head h3{margin:0;color:#123f73}.gps-modal-head p{margin:3px 0 0;color:#7b8794;font-size:12px}.gps-close{width:38px;height:38px;border:0;border-radius:50%;background:#f7eaea;color:#a53737;font-size:24px}
.gps-log-wrap{display:grid;gap:10px;padding-top:10px}.gps-log{border:1px solid #d9e2ec;border-left:5px solid #27915a;border-radius:12px;padding:12px;background:#fff}.gps-log.fail{border-left-color:#c54747}
.gps-log-top{display:flex;justify-content:space-between;gap:10px}.gps-log-top strong,.gps-log-top small{display:block}.gps-log-top small{margin-top:3px;color:#7c8794}.gps-message{margin:9px 0;padding:7px 9px;border-radius:8px;background:#f6f8fa;font-size:13px}
.gps-price-row{display:grid;grid-template-columns:50px repeat(3,1fr);gap:6px;padding:6px 0;border-bottom:1px dashed #e0e5ea;font-size:12px}.gps-empty{padding:25px;text-align:center;color:#7b8794}
@media(max-width:700px){.gold-sync-meta{grid-template-columns:1fr}.gold-sync-actions{display:grid;grid-template-columns:1fr 1fr}.gps-price-row{grid-template-columns:42px 1fr}.gps-price-row span{display:block}}

/* ===== V1.19 Calculator / Records / Admin polish ===== */
.calc-v119{padding-bottom:130px}.calc-section{padding:16px}.section-title.stacked small{display:block;color:#8a6b3a;margin-top:3px}.calc-item{background:#fffdf9;border:1px solid #e3c98e;border-radius:14px;padding:12px;margin:10px 0}.calc-item-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.calc-item-head strong{color:#0d3d70}.calc-item-head small{display:block;color:#9a7950;font-size:11px;margin-top:3px}.calc-input-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin-top:10px}.calc-input-grid label,.rate-box{display:grid;gap:5px;min-width:0}.calc-input-grid span,.rate-box span{font-size:11px;color:#73552d;font-weight:800}.calc-input-grid input,.calc-input-grid select{width:100%;min-width:0;min-height:39px;padding:8px 9px;border:1px solid #cbd9e8;border-radius:9px;background:#fff}.rate-box{background:#f2f6fa;border-radius:9px;padding:7px 9px}.rate-box b{color:#0d3d70}.rate-note{font-size:9px;color:#a26737}.receipt-switch{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:9px;padding:7px 9px;border-radius:9px;border:1px solid #b9d5c1;background:#eef8f1;color:#1e6e3d;font-size:12px;font-weight:800}.receipt-switch.none{background:#fff6e6;border-color:#e9ca91;color:#9a6021}.calc-breakdown{margin-top:10px;background:#eef4fa;border-radius:10px;overflow:hidden}.calc-breakdown>div{display:flex;justify-content:space-between;gap:8px;padding:7px 10px;border-bottom:1px solid #d5e2ee;font-size:12px}.calc-breakdown>div:last-child{border-bottom:0}.calc-breakdown .grand{font-weight:900;color:#0d3d70}.cash-allocation-line{margin-top:10px;border:1px solid #d5aa55;background:#fff7e4;border-radius:10px;padding:8px;display:grid;gap:8px}.cash-weight-field{display:grid;grid-template-columns:1fr 120px auto;align-items:center;gap:7px}.cash-weight-field input{min-height:38px;border:1px solid #d3dbe5;border-radius:8px;padding:7px}.calc-total-bar{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#edf5fc;border:1px solid #cbddea;border-radius:10px;padding:10px 12px;margin-top:11px;color:#49627c}.calc-total-bar b{color:#0d3d70}.add-dashed{width:100%;margin-top:10px;min-height:40px;border:1px dashed #6994c4;border-radius:10px;background:#fff;color:#0d3d70;font-weight:800}.cash-target.modern{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0;background:#fff4da;border:1px solid #e5bd67;border-radius:10px;padding:10px}.cash-target.modern small{display:block;color:#9b773d;margin-top:2px}
.quote-dock-v119{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);width:min(1000px,calc(100vw - 24px));background:#123f73;border:1px solid #35689a;border-radius:17px;padding:10px;z-index:1200;box-shadow:0 8px 25px rgba(10,36,66,.23);overflow:visible}.quote-dock-arrow-v119{position:absolute;top:-18px;left:50%;transform:translateX(-50%);width:48px;height:36px;border:0;border-radius:12px 12px 8px 8px;background:#245989;color:#fff;font-size:23px;font-weight:900;z-index:20;display:flex;align-items:center;justify-content:center}.dock-summary-row{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:7px}.dock-card{min-width:0;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:7px 10px;display:grid}.dock-card span{font-size:9px;color:#dbe7f3}.dock-card strong{font-size:19px;color:#fff;line-height:1.05}.dock-card b{font-size:10px;color:#f2cf62}.dock-result{background:#fff;border-radius:10px;padding:7px 12px;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#123f73}.dock-result span{font-size:11px;font-weight:900}.dock-result strong{font-size:25px;white-space:nowrap}.dock-expanded{display:none;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.2)}.quote-dock-v119.open .dock-expanded{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr);gap:12px}.settlement-breakdown{background:#173d6b;border:1px solid rgba(255,255,255,.14);border-radius:13px;padding:12px;color:#fff}.settlement-hero span{display:block;color:#d9e4ef;font-size:12px}.settlement-hero strong{display:block;color:#f2cf62;font-size:32px;margin-top:3px}.settlement-growth,.settlement-lines>div,.settlement-final{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 0;border-top:1px solid rgba(255,255,255,.15)}.settlement-growth{margin-top:10px}.settlement-lines span,.settlement-growth span{color:#dbe7f3;font-size:12px}.settlement-lines b,.settlement-growth b{color:#fff}.settlement-final{margin-top:4px}.settlement-final>span{color:#f2cf62;font-weight:900}.settlement-final div{text-align:right}.settlement-final small{display:block;color:#dbe7f3}.settlement-final strong{color:#f2cf62;font-size:22px}.settlement-hint{margin:8px 0 0;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.07);color:#cbd9e7;font-size:10px;line-height:1.35}.dock-customer h3{color:#f2cf62;margin:0 0 8px}.dock-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dock-fields label{display:grid;gap:5px}.dock-fields label span,.dock-status-label{font-size:11px;color:#f2cf62;font-weight:800}.dock-fields .note{grid-column:1/-1}.dock-fields input,.dock-fields textarea{width:100%;box-sizing:border-box;border:1px solid #cbd9e8;border-radius:9px;background:#fff;color:#123f73;padding:9px;font-size:16px}.dock-fields input{min-height:42px}.dock-fields textarea{min-height:64px}.dock-status-label{margin-top:8px}.dock-status{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:5px}.dock-status button{min-height:42px;border:1px solid rgba(255,255,255,.28);border-radius:9px;background:transparent;color:#fff;font-weight:800}.dock-status button.active{background:#fff;color:#123f73}.dock-submit{width:100%;min-height:46px;margin-top:9px;border:0;border-radius:9px;background:#f2cf62;color:#0d315c;font-size:16px;font-weight:900}
.records-v119{max-width:1180px}.records-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#dce9f6;border-radius:9px;margin-bottom:14px;overflow:hidden}.records-tabs button{border:0;background:transparent;padding:9px;color:#3b5b7a}.records-tabs .active{background:#fff;color:#0d3d70;font-weight:900}.records-filter-bar{display:grid;grid-template-columns:1.2fr .8fr .8fr .8fr;gap:8px;background:#fff;border:1px solid #e0cfad;border-radius:12px;padding:10px}.records-filter-bar input,.records-filter-bar select{min-height:39px;border:1px solid #ccd8e4;border-radius:8px;padding:7px}.records-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}.records-stats>div{background:#fff;border:1px solid #bfd4e7;border-radius:12px;padding:13px}.records-stats span{display:block;color:#587089;font-size:11px}.records-stats strong{display:block;color:#0d3d70;font-size:20px;margin-top:4px}.records-list-card{background:#fffdf9;border:1px solid #e2c98f;border-radius:14px;padding:14px}.records-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.records-title h2{margin:0}.records-title small{color:#8d6e43}.modern-record-list{display:grid;gap:9px;margin-top:10px}.modern-record{border:1px solid #bed7ea;border-radius:12px;background:#fff;padding:11px}.modern-record-main{display:grid;grid-template-columns:1fr auto;gap:12px}.record-person strong,.record-person span,.record-person small{display:block}.record-person span{font-size:11px;color:#4e6480;margin-top:3px}.record-person small{font-size:10px;color:#7b8da0;margin-top:4px}.record-person em{display:inline-block;margin-top:6px;background:#fff1cf;border-radius:7px;padding:5px 8px;color:#755019;font-size:10px;font-style:normal}.record-amount{text-align:right}.record-amount span{display:block;color:#73859a;font-size:10px}.record-amount strong{display:block;color:#0d3d70;font-size:18px}.record-amount small{display:block;color:#6d7d8e;margin-top:3px}.modern-record-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:8px}.modern-record-actions select{min-width:120px;min-height:36px;border:1px solid #bfd3e6;border-radius:8px;background:#fff}.record-details summary{color:#0d3d70;font-weight:800;font-size:11px;margin-top:6px}
.price-table.v119{overflow-x:auto}.price-row.v119{grid-template-columns:55px repeat(4,minmax(130px,1fr));min-width:700px}.price-row.v119.header{font-size:10px;text-transform:none}.price-remark{margin:12px 0;background:#fff3d7;border:1px solid #e3bd6c;border-radius:10px;padding:10px 12px;color:#785522;font-size:12px}
@media(max-width:820px){.calc-v119{padding-bottom:108px}.calc-section{padding:12px}.calc-input-grid{grid-template-columns:1fr 1fr}.calc-input-grid.new-grid label:last-child{grid-column:1/-1}.rate-box{grid-column:1/-1}.quote-dock-v119{left:8px;right:8px;bottom:calc(72px + env(safe-area-inset-bottom,0px));width:auto;transform:none;padding:7px}.quote-dock-v119:not(.open){height:70px;overflow:hidden}.dock-summary-row{grid-template-columns:1fr 1fr 1.1fr;gap:5px}.dock-card{padding:5px 6px}.dock-card span{font-size:7px}.dock-card strong{font-size:14px}.dock-card b{font-size:8px}.dock-result{padding:5px 7px;display:grid;align-content:center}.dock-result span{font-size:8px}.dock-result strong{font-size:18px}.quote-dock-v119.open{max-height:min(76vh,680px);overflow-y:auto;-webkit-overflow-scrolling:touch}.quote-dock-v119.open .dock-expanded{grid-template-columns:1fr}.dock-fields{grid-template-columns:1fr 1fr}.records-filter-bar{grid-template-columns:1fr 1fr}.records-stats{grid-template-columns:1fr 1fr}.modern-record-main{grid-template-columns:1fr}.record-amount{text-align:left;border-top:1px solid #e3ebf1;padding-top:7px}.records-tabs{position:sticky;top:0;z-index:2}.price-row.v119{min-width:650px}.cash-weight-field{grid-template-columns:1fr 90px auto}}



/* Production V1 — Old Gold Trade Cash visual state */
.auto-cash{background:#fff7e1;border:1px solid #dfbd69;border-radius:11px;padding:9px!important}
.auto-cash .cash-check{font-weight:900;color:#714e0d}
.auto-cash input[readonly]{background:#fff!important;color:#123f73!important}
/* =========================================================
   V1.22 — CLEAN QUOTE DOCK
   Intentionally does NOT use legacy .quote-dock class.
   ========================================================= */

.quote-dock-v122{
  position:fixed;
  z-index:1200;
  box-sizing:border-box;
  background:#123f73;
  border:1px solid #2a5a89;
  border-radius:18px;
  box-shadow:0 8px 26px rgba(7,31,59,.22);
  color:#fff;
  padding:10px;
}

.dock-arrow-v122{
  position:absolute;
  left:50%;
  top:-18px;
  transform:translateX(-50%);
  width:48px;
  height:36px;
  min-width:48px;
  min-height:36px;
  border:0;
  border-radius:12px 12px 9px 9px;
  background:#245889;
  cursor:pointer;
  z-index:20;
}
.dock-arrow-v122 span{
  display:block;
  width:11px;
  height:11px;
  margin:auto;
  border-right:3px solid #fff;
  border-bottom:3px solid #fff;
  transform:rotate(225deg);
}
.quote-dock-v122.open .dock-arrow-v122 span{
  transform:rotate(45deg);
}

.dock-summary-v122{
  display:grid;
  grid-template-columns:1fr 1fr 1.15fr;
  gap:8px;
  min-width:0;
}
.dock-card-v122{
  min-width:0;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:11px;
  background:rgba(255,255,255,.09);
  display:grid;
  align-content:center;
}
.dock-card-v122 span{
  font-size:10px;
  color:#dce7f2;
  line-height:1.1;
}
.dock-card-v122 strong{
  font-size:20px;
  line-height:1.05;
  white-space:nowrap;
}
.dock-card-v122 b{
  margin-top:2px;
  color:#f2cf62;
  font-size:11px;
}
.dock-balance-v122{
  min-width:0;
  padding:8px 13px;
  border-radius:11px;
  background:#fff;
  color:#123f73;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.dock-balance-v122 span{
  font-size:12px;
  font-weight:900;
}
.dock-balance-v122 strong{
  font-size:27px;
  line-height:1;
  white-space:nowrap;
}

.dock-expanded-v122{
  display:none;
}
.quote-dock-v122.open .dock-expanded-v122{
  display:grid;
}

.settlement-v122,
.customer-v122{
  min-width:0;
  box-sizing:border-box;
}
.settlement-top-v122{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  padding:0 0 11px;
  border-bottom:1px solid rgba(255,255,255,.18);
}
.settlement-top-v122 span{
  color:#dce7f2;
  font-size:12px;
}
.settlement-top-v122 strong{
  color:#f2cf62;
  font-size:31px;
  white-space:nowrap;
}
.settlement-row-v122{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.15);
}
.settlement-row-v122 span{
  color:#dce7f2;
  font-size:13px;
  min-width:0;
}
.settlement-row-v122 span em{
  color:#fff;
  font-style:normal;
  font-weight:800;
}
.settlement-row-v122 b{
  flex:0 0 auto;
  color:#fff;
  font-size:15px;
  white-space:nowrap;
}
.settlement-row-v122.alert span,
.settlement-row-v122.alert b{
  color:#f2cf62;
}
.settlement-final-v122{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding-top:11px;
  border-top:1px solid rgba(255,255,255,.2);
}
.settlement-final-v122>span{
  color:#f2cf62;
  font-size:14px;
  font-weight:900;
}
.settlement-final-v122>div{
  text-align:right;
}
.settlement-final-v122 small{
  display:block;
  color:#dce7f2;
  font-size:10px;
}
.settlement-final-v122 strong{
  display:block;
  color:#f2cf62;
  font-size:25px;
}

.customer-v122 h3{
  margin:0 0 10px;
  color:#f2cf62;
}
.customer-fields-v122{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.customer-fields-v122 label{
  min-width:0;
  display:grid;
  gap:5px;
}
.customer-fields-v122 label.note{
  grid-column:1/-1;
}
.customer-fields-v122 label span,
.status-label-v122{
  color:#f2cf62;
  font-size:11px;
  font-weight:800;
}
.customer-fields-v122 input,
.customer-fields-v122 textarea{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border:1px solid #cbd9e8;
  border-radius:10px;
  background:#fff;
  color:#123b67;
  padding:9px 10px;
  font-size:16px;
}
.customer-fields-v122 input{min-height:44px}
.customer-fields-v122 textarea{min-height:76px;resize:vertical}
.status-label-v122{margin:10px 0 6px}
.status-v122{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.status-v122 button{
  min-height:44px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:900;
}
.status-v122 button.active{
  background:#fff;
  color:#123f73;
}
.submit-v122{
  width:100%;
  min-height:48px;
  margin-top:9px;
  border:0;
  border-radius:10px;
  background:#f2cf62;
  color:#0c315d;
  font-size:16px;
  font-weight:900;
}

/* Desktop / Web — completely separate layout */
@media (min-width:821px){
  .quote-dock-v122{
    left:50%;
    bottom:74px;
    transform:translateX(-50%);
    width:min(900px,calc(100vw - 50px));
    max-width:900px;
  }
  .quote-dock-v122:not(.open){
    height:78px;
    overflow:hidden;
  }
  .quote-dock-v122.open{
    max-height:calc(100vh - 160px);
    overflow-y:auto;
    overflow-x:hidden;
    padding:15px 18px 18px;
  }
  .quote-dock-v122.open .dock-expanded-v122{
    grid-template-columns:1fr;
    gap:16px;
    margin-top:13px;
    padding-top:13px;
    border-top:1px solid rgba(255,255,255,.18);
  }
  /* On Web, stack settlement and customer form vertically.
     This is intentional: no squeezing, no 3-column conflict. */
  .customer-v122{
    padding-top:13px;
    border-top:1px solid rgba(255,255,255,.18);
  }
  .bottom-nav{
    z-index:1500!important;
  }
  .main-content{
    padding-bottom:180px!important;
  }
}

/* Mobile */
@media (max-width:820px){
  body{
    padding-bottom:calc(84px + env(safe-area-inset-bottom,0px));
  }
  .quote-dock-v122{
    left:8px;
    right:8px;
    bottom:calc(72px + env(safe-area-inset-bottom,0px));
    width:auto;
  }
  .quote-dock-v122:not(.open){
    height:70px;
    overflow:hidden;
    padding:7px;
  }
  .quote-dock-v122.open{
    max-height:72vh;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    padding:12px;
  }
  .dock-summary-v122{
    grid-template-columns:1fr 1fr 1.15fr;
    gap:5px;
  }
  .dock-card-v122{
    padding:5px 6px;
    border-radius:8px;
  }
  .dock-card-v122 span{font-size:7px}
  .dock-card-v122 strong{font-size:14px}
  .dock-card-v122 b{font-size:9px}
  .dock-balance-v122{
    padding:5px 7px;
    border-radius:8px;
    display:grid;
    align-content:center;
  }
  .dock-balance-v122 span{font-size:8px}
  .dock-balance-v122 strong{font-size:18px}
  .quote-dock-v122.open .dock-expanded-v122{
    grid-template-columns:1fr;
    gap:12px;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.18);
  }
  .customer-v122{
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.18);
  }
  .customer-fields-v122{
    grid-template-columns:1fr 1fr;
  }
  .settlement-row-v122{
    padding:8px 0;
  }
  .settlement-row-v122 span{font-size:12px}
  .settlement-row-v122 b{font-size:14px}
}

/* =========================================================
   V1.22 — HUMAN-READABLE RECORD DETAILS
   ========================================================= */
.record-details-v122>summary{
  cursor:pointer;
  color:#123f73;
  font-weight:900;
  padding:8px 0;
}
.record-detail-v122{
  margin-top:7px;
  padding:12px;
  border-radius:12px;
  background:#f7f9fc;
  border:1px solid #dbe5ef;
}
.record-detail-summary-v122{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.record-detail-summary-v122>div{
  padding:9px;
  border-radius:9px;
  background:#fff;
  border:1px solid #dce5ed;
}
.record-detail-summary-v122 span{
  display:block;
  color:#748395;
  font-size:10px;
}
.record-detail-summary-v122 strong{
  display:block;
  margin-top:3px;
  color:#123f73;
  font-size:16px;
}
.record-detail-v122 h4{
  margin:14px 0 7px;
  color:#123f73;
}
.record-item-v122{
  margin-top:7px;
  padding:10px;
  border-radius:10px;
  background:#fff;
  border:1px solid #dce5ed;
}
.record-item-head-v122{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.record-item-head-v122 strong{
  color:#123f73;
}
.record-item-head-v122 b{
  color:#123f73;
  font-size:16px;
}
.record-item-grid-v122{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-top:8px;
}
.record-item-grid-v122 span{
  padding:7px 8px;
  border-radius:8px;
  background:#f5f7fa;
  color:#687789;
  font-size:11px;
}
.record-item-grid-v122 span b{
  display:block;
  margin-top:2px;
  color:#123f73;
  font-size:13px;
}
.record-final-v122{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:13px;
  padding:11px 12px;
  border-radius:10px;
  background:#123f73;
  color:#fff;
}
.record-final-v122 strong{
  color:#f2cf62;
}
.record-empty-v122{
  color:#8a96a4;
}

@media(max-width:700px){
  .record-detail-summary-v122{
    grid-template-columns:1fr 1fr;
  }
  .record-item-grid-v122{
    grid-template-columns:1fr 1fr;
  }
}

/* ===== V1.22.3 Editable Trade Cash ===== */
.cash-allocation-line.manual-cash{
  border-color:#e5c36d!important;
  background:#fff7dc!important;
}
.cash-check input[type="checkbox"]{
  cursor:pointer!important;
  opacity:1!important;
}
.cash-weight-field input:not(:disabled){
  background:#fff!important;
  cursor:text!important;
}
.cash-weight-field input:disabled{
  opacity:.55!important;
}
.cash-return-note{
  display:block;
  grid-column:1/-1;
  color:#587044!important;
  font-weight:800;
  margin-top:5px;
}


/* =========================================================
   V1.22.5 — Account / Profile UI Polish
   Scoped ONLY to .account-page
   ========================================================= */

.account-page{
  width:min(980px,calc(100% - 28px))!important;
  max-width:980px!important;
  margin:18px auto 120px!important;
  display:grid!important;
  gap:18px!important;
}

.account-page .section-card{
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #e5cf9e!important;
  border-radius:20px!important;
  background:#fffdf8!important;
  box-shadow:0 7px 22px rgba(26,50,78,.06)!important;
}

/* ---------- Profile header ---------- */
.account-page .profile-heading{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  margin:0!important;
  padding:22px 24px 20px!important;
  border-bottom:1px solid #eadbb9!important;
  background:
    linear-gradient(135deg,rgba(18,63,115,.055),rgba(242,207,98,.055))!important;
}

.account-page .profile-heading::after{
  content:""!important;
  position:absolute!important;
  left:24px!important;
  right:24px!important;
  bottom:-1px!important;
  height:2px!important;
  background:linear-gradient(90deg,#123f73 0 90px,#f0ce69 90px 135px,transparent 135px)!important;
}

.account-page .profile-heading .brand-logo-profile{
  width:138px!important;
  height:auto!important;
  min-width:118px!important;
  filter:drop-shadow(0 7px 12px rgba(18,63,115,.12))!important;
}

.account-page .profile-kicker{
  display:block!important;
  margin-bottom:2px!important;
  color:#93712f!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
}

.account-page .profile-heading h2{
  margin:0 0 7px!important;
  color:#123f73!important;
  font-size:27px!important;
  line-height:1.1!important;
}

.account-page .status-pill{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:5px 10px!important;
  border-radius:999px!important;
  background:#e7f6ed!important;
  color:#217442!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:capitalize!important;
}

/* ---------- Profile form ---------- */
.account-page .profile-form-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:16px 18px!important;
  padding:22px 24px 8px!important;
}

.account-page .profile-form-grid label,
.account-page .password-form-grid label{
  display:grid!important;
  gap:7px!important;
  min-width:0!important;
  color:#6c5324!important;
  font-size:12px!important;
  font-weight:900!important;
}

.account-page .profile-form-grid input,
.account-page .profile-form-grid select,
.account-page .password-form-grid input{
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  box-sizing:border-box!important;
  padding:0 13px!important;
  border:1px solid #c8d8e8!important;
  border-radius:12px!important;
  outline:none!important;
  background:#f9fbfd!important;
  color:#173c65!important;
  font-size:16px!important;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease!important;
}

.account-page .profile-form-grid input:focus,
.account-page .profile-form-grid select:focus,
.account-page .password-form-grid input:focus{
  border-color:#2c69a3!important;
  background:#fff!important;
  box-shadow:0 0 0 3px rgba(44,105,163,.11)!important;
}

.account-page .profile-form-grid input[type="email"]{
  background:#fffceb!important;
}

.account-page .profile-actions{
  display:flex!important;
  justify-content:flex-end!important;
  padding:10px 24px 22px!important;
  margin:0!important;
}

.account-page .profile-actions .primary-btn{
  min-width:150px!important;
  min-height:48px!important;
  padding:0 22px!important;
  border-radius:12px!important;
  font-size:15px!important;
}

/* ---------- Password / Security card ---------- */
.account-page .password-card{
  padding-bottom:22px!important;
}

.account-page .password-card .section-title{
  margin:0!important;
  padding:20px 24px 17px!important;
  border-bottom:1px solid #eadbb9!important;
  background:#fffaf0!important;
}

.account-page .password-card .section-title h2{
  position:relative!important;
  margin:0!important;
  padding-left:36px!important;
  color:#123f73!important;
  font-size:20px!important;
}

.account-page .password-card .section-title h2::before{
  content:"🔒"!important;
  position:absolute!important;
  left:0!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:26px!important;
  height:26px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:#eaf2fa!important;
  font-size:14px!important;
}

.account-page .password-form-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:16px 18px!important;
  padding:22px 24px 4px!important;
}

.account-page .password-form-grid label:first-child{
  grid-column:1/-1!important;
  max-width:calc(50% - 9px)!important;
}

.account-page .password-card>.primary-btn{
  min-width:160px!important;
  min-height:48px!important;
  margin:14px 24px 0!important;
  padding:0 22px!important;
  border-radius:12px!important;
  font-size:15px!important;
}

/* ---------- Notices ---------- */
.account-page .notice{
  margin:12px 24px 0!important;
  border-radius:11px!important;
}

/* ---------- Desktop refinement ---------- */
@media(min-width:901px){
  .account-page{
    grid-template-columns:1fr!important;
  }
}

/* ---------- Tablet ---------- */
@media(max-width:760px){
  .account-page{
    width:calc(100% - 20px)!important;
    margin:12px auto 130px!important;
    gap:14px!important;
  }

  .account-page .profile-heading{
    padding:18px!important;
  }

  .account-page .profile-heading::after{
    left:18px!important;
    right:18px!important;
  }

  .account-page .profile-heading .brand-logo-profile{
    width:122px!important;
    min-width:108px!important;
  }

  .account-page .profile-heading h2{
    font-size:23px!important;
  }

  .account-page .profile-form-grid,
  .account-page .password-form-grid{
    grid-template-columns:1fr!important;
    padding:18px 18px 6px!important;
    gap:14px!important;
  }

  .account-page .password-form-grid label:first-child{
    grid-column:auto!important;
    max-width:none!important;
  }

  .account-page .profile-actions{
    padding:10px 18px 18px!important;
  }

  .account-page .profile-actions .primary-btn,
  .account-page .password-card>.primary-btn{
    width:100%!important;
  }

  .account-page .password-card .section-title{
    padding:18px!important;
  }

  .account-page .password-card>.primary-btn{
    margin:12px 18px 0!important;
  }

  .account-page .notice{
    margin-left:18px!important;
    margin-right:18px!important;
  }
}

/* ---------- Small phones ---------- */
@media(max-width:430px){
  .account-page{
    width:calc(100% - 14px)!important;
  }

  .account-page .profile-heading{
    align-items:flex-start!important;
    gap:12px!important;
    padding:16px!important;
  }

  .account-page .profile-heading .brand-logo-profile{
    width:110px!important;
    min-width:96px!important;
  }

  .account-page .profile-heading h2{
    font-size:21px!important;
  }

  .account-page .profile-form-grid,
  .account-page .password-form-grid{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .account-page .profile-actions,
  .account-page .password-card .section-title{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .account-page .password-card>.primary-btn{
    margin-left:14px!important;
    margin-right:14px!important;
    width:calc(100% - 28px)!important;
  }
}


/* =========================================================
   Production V1.01 — Mobile Quote Dock Arrow Fix
   Keep the collapse arrow outside the inner scrolling area so
   Mobile Safari does not clip it when the dock is expanded.
   ========================================================= */

/* Reliable arrow: pure CSS triangle, no font dependency. */
.quote-dock-v122 .dock-arrow-v122{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  z-index:40!important;
}
.quote-dock-v122 .dock-arrow-v122 span{
  width:0!important;
  height:0!important;
  margin:0!important;
  border-left:7px solid transparent!important;
  border-right:7px solid transparent!important;
  border-bottom:9px solid #fff!important;
  border-top:0!important;
  transform:none!important;
}
.quote-dock-v122.open .dock-arrow-v122 span{
  border-bottom:0!important;
  border-top:9px solid #fff!important;
  transform:none!important;
}

@media (max-width:820px){
  body{
    padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))!important;
  }

  .quote-dock-v122{
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-width:none!important;
    bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  /* Compact closed bar */
  .quote-dock-v122:not(.open){
    height:72px!important;
    min-height:72px!important;
    max-height:72px!important;
    padding:7px!important;
    overflow:visible!important;
  }

  /* Open as a half-screen bottom sheet */
  .quote-dock-v122.open{
    height:auto!important;
    min-height:0!important;
    max-height:52vh!important;
    padding:12px 12px 14px!important;
    overflow:visible!important;
    border-radius:18px 18px 14px 14px!important;
  }

  /* Keep the compact price row fixed; only the detail area scrolls. */
  .quote-dock-v122.open .dock-summary-v122{
    position:relative!important;
    top:auto!important;
    z-index:12!important;
    margin:0!important;
    padding:0 0 9px!important;
    background:#123f73!important;
    border-bottom:1px solid rgba(255,255,255,.17)!important;
  }

  .quote-dock-v122.open .dock-expanded-v122{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
    margin-top:8px!important;
    padding-top:0!important;
    border-top:0!important;
    max-height:calc(52vh - 104px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
  }

  /* Denser settlement view */
  .quote-dock-v122.open .settlement-top-v122{
    padding-bottom:7px!important;
  }
  .quote-dock-v122.open .settlement-top-v122 strong{
    font-size:25px!important;
  }
  .quote-dock-v122.open .settlement-row-v122{
    padding:6px 0!important;
  }
  .quote-dock-v122.open .settlement-row-v122 span{
    font-size:11px!important;
  }
  .quote-dock-v122.open .settlement-row-v122 b{
    font-size:13px!important;
  }
  .quote-dock-v122.open .settlement-final-v122{
    margin-top:7px!important;
    padding-top:8px!important;
  }
  .quote-dock-v122.open .settlement-final-v122 strong{
    font-size:21px!important;
  }

  /* Compact but touch-friendly customer form */
  .quote-dock-v122.open .customer-v122{
    padding-top:9px!important;
  }
  .quote-dock-v122.open .customer-v122 h3{
    margin-bottom:7px!important;
    font-size:17px!important;
  }
  .quote-dock-v122.open .customer-fields-v122{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  .quote-dock-v122.open .customer-fields-v122 input{
    min-height:42px!important;
    padding:7px 9px!important;
  }
  .quote-dock-v122.open .customer-fields-v122 textarea{
    min-height:58px!important;
    padding:7px 9px!important;
  }
  .quote-dock-v122.open .status-v122 button{
    min-height:42px!important;
  }
  .quote-dock-v122.open .submit-v122{
    min-height:46px!important;
    margin-top:7px!important;
  }

  /* When typing, shrink the sheet more so keyboard doesn't dominate. */
  .quote-dock-v122.open:focus-within{
    max-height:45vh!important;
  }
  .quote-dock-v122.open:focus-within .dock-expanded-v122{
    max-height:calc(45vh - 104px)!important;
  }

  .bottom-nav{
    z-index:1600!important;
  }
}

@media (max-width:390px){
  .quote-dock-v122.open{
    max-height:48vh!important;
  }
  .quote-dock-v122.open .dock-expanded-v122{
    max-height:calc(48vh - 104px)!important;
  }
  .quote-dock-v122.open:focus-within{
    max-height:42vh!important;
  }
  .quote-dock-v122.open:focus-within .dock-expanded-v122{
    max-height:calc(42vh - 104px)!important;
  }
  .quote-dock-v122.open .customer-fields-v122{
    grid-template-columns:1fr!important;
  }
}
