/* Approved direction A: white surfaces, black typography, restrained red actions. */
:root{--ink:#161823;--sub:#64656f;--muted:#64656f;--bg:#fff;--paper:#fff;--line:#e7e7ec;--green:#d91946;--brand:#d91946;--mint:#fff2f5;--soft:#f5f5f7;--shadow:none}
body{background:#fff;color:#161823;font:17px/1.6 "Segoe UI","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea,.button{border-radius:6px;border-color:#dedee5;box-shadow:none}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #d91946;outline-offset:3px}
button.primary,.primary{background:#d91946;border-color:#d91946;color:#fff;box-shadow:none;font-weight:650}
button.primary:hover,.primary:hover{background:#c9123d;border-color:#c9123d}
button:disabled,.primary:disabled{opacity:1!important;background:#f3f3f5!important;color:#686872!important;border-color:#e2e2e7!important;box-shadow:none;cursor:not-allowed}
input[type=checkbox]{accent-color:#161823}a{color:#161823}a:hover{color:#c91541}
h1,h2,h3{color:#161823}p,small{line-height:1.6}h1{font-weight:750;letter-spacing:-.5px}
table{font-variant-numeric:tabular-nums}th{background:#f5f5f7;color:#555660}td{color:#161823;border-color:#ededf0}
tbody tr:hover{background:#fafafa}tbody tr:has(input[type=checkbox]:checked){background:#fff4f6}
.panel,.tablewrap,dialog{border-color:#e7e7ec;box-shadow:none;border-radius:8px}
.preview-notice{background:#161823;color:#ededf2;border:0;font-size:13px}
.muted{color:#64656f}.brandicon,.logo{background:#161823;color:white;border-radius:6px;box-shadow:none}
dialog::backdrop{background:#16182366}

aside{background:#fff;border-right:1px solid #e7e7ec;padding:28px 18px;color:#161823}.brand{color:#161823;font-size:22px;font-weight:750}.brand span{color:#64656f}.brandicon{background:#161823;border:0;color:#fff}.asidefoot,.asidefoot a,.asidefoot button{color:#64656f}.asidefoot{border-top:1px solid #e7e7ec}.asidefoot button{color:#161823}
nav{margin-top:38px;gap:8px}nav button{color:#292a33;font-size:17px;font-weight:500;padding:11px 14px}nav button.active{background:#fff2f5;color:#cf1541;font-weight:700}nav button:hover:not(.active){background:#f5f5f7;color:#161823}
main{padding:32px 34px 40px}header{padding-bottom:24px;border-bottom:1px solid #e7e7ec;margin-bottom:26px}header h1{font-size:32px;font-weight:750}header p,.eyebrow{color:#64656f}.context.panel{border:0;border-bottom:1px solid #e7e7ec;border-radius:0;padding:0 0 24px;gap:16px 24px}.context label{color:#555660}.currencyCheck{border-color:#e7e7ec}.currencyCheck label,.currencyCheck small{color:#64656f}.currencyCheck input[type=checkbox]{width:20px;min-height:20px;flex:0 0 20px}
.sectionhead{margin:28px 0 18px}.sectionhead h2{font-size:23px;font-weight:750}.sectionhead p{color:#64656f}.importcard{border-color:#e7e7ec;border-radius:8px;padding:24px}.importcard h3{font-weight:700;border-bottom:1px solid #e7e7ec;padding-bottom:14px}.importcard p{color:#64656f}.uploadbutton{background:#f5f5f7;border-color:#b4b4bf;border-radius:6px;color:#161823}.uploadbutton:hover{background:#ededf1}.filename{color:#161823}.formula{background:#f5f5f7;border:0;border-radius:6px;color:#161823}.formula small{color:#64656f}
.metrics{border:0;border-radius:0;box-shadow:none;gap:0;background:#fff;margin:28px 0 32px}.metric,.metric.feature{background:#fff;border:0;border-right:1px solid #e7e7ec;border-radius:0;padding:0 24px;min-height:110px;box-shadow:none}.metric:first-child{padding-left:0}.metric:last-child{border:0}.metric span,.metric.feature span{font-size:15px;color:#64656f}.metric strong,.metric.feature strong{color:#161823;font-size:36px;font-weight:750;margin-top:12px;letter-spacing:-.7px}.metric.feature span:before{content:'';display:inline-block;width:7px;height:7px;background:#fe2c55;border-radius:50%;margin-right:8px}.metric.feature .negative{color:#b42318!important}
.tablewrap{border:0;border-top:1px solid #e7e7ec;border-bottom:1px solid #e7e7ec;border-radius:0;box-shadow:none}#productTable th{background:#f5f5f7;color:#555660;padding:14px 16px;font-weight:500}#productTable td{padding:22px 16px;font-size:16px}.adinput{background:#fffdf8;border-color:#e5dcc6;border-radius:5px}.total td,#productTable .total td{background:#f5f5f7;border-color:#e7e7ec;color:#161823}.tablewrap tbody tr:hover{background:#fafafa}#historyTable th{background:#f5f5f7}#historyTable .dailyTotalRow td{background:#f5f5f7}
#recalculate{background:#161823;border-color:#161823;color:#fff}.goodnote{background:#f5f5f7;color:#33343d;border:1px solid #e7e7ec}.goodnote p{color:#33343d}details.panel{border-color:#e7e7ec;background:#fff}.summaryTotals article,.mastercard{background:#fff;border-color:#e7e7ec}.teamHint{color:#64656f}.dialoghead h2{font-weight:750}.dialoghead{border-bottom:1px solid #e7e7ec;padding-bottom:16px}#chooseImportDrop{background:#f5f5f7;border-color:#b4b4bf}
@media(max-width:1200px){.metric,.metric.feature{padding:16px;border:0}.metric:first-child{padding-left:16px}.metrics{gap:16px}}
@media(max-width:750px){aside{padding:12px 16px}nav{margin:0}main{padding:24px 16px}.context.panel{padding-bottom:20px}header h1{font-size:28px}.metric strong,.metric.feature strong{font-size:30px}.metric,.metric.feature{padding:10px 0}.metric:first-child{padding-left:0}.preview-notice{font-size:12px}}

.actionrow>span{color:#64656f;background:#fff}

/* Login uses the same approved black, white and red product language. */
body.authbody{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  place-items:center;
  box-sizing:border-box;
  margin:0;
  padding:32px 20px;
  overflow:auto;
  background:#f6f6f8;
  color:#161823;
}
body.authbody::before{
  content:"";
  position:fixed;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg,#161823 0 82%,#fe2c55 82% 100%);
}
.authbody .authcard{
  width:min(420px,100%);
  min-width:0;
  justify-self:center;
  box-sizing:border-box;
  margin:0;
  padding:38px 40px 34px;
  background:#fff;
  border:1px solid #e7e7ec;
  border-radius:8px;
  box-shadow:0 20px 60px rgba(22,24,35,.09);
}
.authcard .eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  color:#64656f;
  font-size:12px;
  font-weight:750;
  line-height:1.3;
  letter-spacing:1.4px;
}
.authcard .eyebrow::before{
  content:"";
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:5px;
  background:linear-gradient(135deg,#161823 0 70%,#fe2c55 70% 100%);
}
.authcard h1{
  margin:0 0 6px;
  color:#161823;
  font-size:27px;
  line-height:1.35;
  font-weight:750;
  letter-spacing:0;
}
.authcard>p:not(#authError){margin:0 0 26px;color:#64656f;font-size:15px}
.authcard form{display:grid;min-width:0;gap:17px}
.authcard form label{
  display:grid;
  min-width:0;
  gap:7px;
  color:#3f4048;
  font-size:14px;
  font-weight:600;
}
.authcard input{
  width:100%;
  min-height:46px;
  box-sizing:border-box;
  padding:10px 13px;
  background:#fff;
  border:1px solid #d8d8df;
  border-radius:6px;
  color:#161823;
  font:16px/1.4 "Segoe UI","Microsoft YaHei",sans-serif;
}
.authcard input:hover{border-color:#a9a9b2}
.authcard input:focus{
  border-color:#161823;
  outline:0;
  box-shadow:0 0 0 3px rgba(22,24,35,.09);
}
.authcard input:-webkit-autofill,
.authcard input:-webkit-autofill:hover,
.authcard input:-webkit-autofill:focus{
  -webkit-text-fill-color:#161823;
  -webkit-box-shadow:0 0 0 1000px #fff inset;
  transition:background-color 9999s ease-out 0s;
}
.authcard button.primary{
  width:100%;
  min-height:46px;
  margin-top:4px;
  border:1px solid #fe2c55;
  border-radius:6px;
  background:#fe2c55;
  color:#fff;
  font-size:16px;
  font-weight:700;
}
.authcard button.primary:hover{border-color:#e9214a;background:#e9214a}
.authcard button.primary:focus-visible{outline:2px solid #161823;outline-offset:3px}
.authcard #authError{min-height:22px;margin:14px 0 0;color:#c91541;font-size:14px}
.authcard #backLogin{width:100%;min-height:42px;margin:4px 0 16px;background:#fff;color:#161823}
.authcard>small{
  display:block;
  margin-top:16px;
  padding-top:18px;
  border-top:1px solid #ededf0;
  color:#777883;
  font-size:13px;
}
@media(max-width:520px){
  body.authbody{display:flex;align-items:center;justify-content:center;padding:20px 14px;background:#fff}
  body.authbody::before{height:3px}
  .authbody .authcard{flex:0 1 auto;width:calc(100vw - 48px);max-width:420px;padding:30px 22px;border:0;box-shadow:none}
  .authcard h1{font-size:24px}
}
