:root {
  --ink: #19313d;
  --muted: #7c919c;
  --green: #087f75;
  --bg: #f3f6f8;
  --line: #dfe8ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Malgun Gothic",
    sans-serif;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
}
button {
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #eef6f2;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select {
  min-height: 43px;
  max-width: 100%;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #4abca7;
  outline-offset: 2px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #09695e;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #58717e;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 8px;
}
.muted,
.note {
  color: var(--muted);
  font-size: 11px;
}
.note {
  padding: 14px;
  background: #f4f8fa;
  border: 1px solid #e5edf1;
  border-radius: 9px;
  line-height: 1.9;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1040px;
  margin: auto;
  align-content: center;
  padding: 35px;
}
.login-brand {
  padding: 50px 40px;
  background: linear-gradient(130deg, #112b39, #145c50);
  color: white;
  border-radius: 20px 0 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}
.login-brand small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a3cdc4;
}
.login-brand h1 {
  font-size: 38px;
  margin: 55px 0 23px;
}
.login-brand p {
  color: #a6c7c9;
  font-size: 12px;
}
.login-card {
  padding: 55px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 20px 20px 0;
}
.login-card h2 {
  font-size: 28px;
}
.login-card p {
  font-size: 12px;
  color: var(--muted);
}
.login-card input {
  font-size: 24px;
  letter-spacing: 8px;
  width: 100%;
}
.login-card button {
  width: 100%;
  margin: 20px 0;
}
.login-card small {
  font-size: 10px;
  color: var(--muted);
}
#loginError {
  color: #a74335;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 28px 18px;
  background: #112632;
  color: #bbced8;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}
.brand span {
  font-size: 15px;
}
.brand small {
  font-size: 7px;
  display: block;
  letter-spacing: 1px;
  color: #83a1af;
}
.workspace {
  margin: 30px 0;
  padding: 14px;
  background: #ffffff07;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  font-size: 12px;
}
.workspace small {
  display: block;
  color: #80b7a8;
  font-size: 10px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  text-align: left;
  border: 0;
  background: none;
  color: inherit;
  font-size: 12px;
}
nav button.active {
  color: #d9f5e9;
  background: #17463f;
  box-shadow: inset 3px 0 #44bd9b;
}
.subnav {
  border-left: 1px solid #395660;
  margin: 0 0 8px 20px;
  padding-left: 7px;
}
.subnav button {
  font-size: 11px;
}
.aside-note {
  font-size: 10px;
  color: #73939f;
  margin-top: auto;
  padding-top: 20px;
}
#logout {
  border: 0;
  background: none;
  text-align: left;
  color: #a9c2ce;
  padding-left: 0;
}
.main {
  margin-left: 240px;
}
header {
  height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: white;
  color: #7e929e;
  font-size: 10px;
}
#ownerLabel {
  overflow: hidden;
  text-overflow: ellipsis;
}
main {
  padding: 30px 36px;
  max-width: 1450px;
  margin: auto;
}
.banner {
  padding: 11px 15px;
  border-radius: 8px;
  background: #eaf2f7;
  border: 1px solid #dae7ef;
  color: #728a99;
  font-size: 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}
.panel {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head span {
  font-size: 10px;
  color: var(--muted);
}
.period-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.period-tabs button {
  font-size: 12px;
  background: #f3f7f8;
  color: #64818e;
}
.period-tabs button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.filter label {
  flex: 1;
  min-width: 135px;
}
.filter button {
  font-size: 12px;
}
#rangeLabel {
  margin: 15px 0 0;
}
.metrics {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 22px;
}
.metrics article {
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  background: white;
}
.metrics span {
  font-size: 11px;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin: 15px 0 6px;
}
.metrics .hero {
  background: linear-gradient(130deg, #103e48, #0a6b5c);
  color: #fff;
}
.hero span,
.hero small {
  color: #bce1d6;
}
.hero strong {
  font-size: 38px;
}
.hero small {
  font-size: 10px;
}
.goal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.goal-summary > div {
  background: #f1f7f4;
  border: 1px solid #e0ece5;
  border-radius: 9px;
  padding: 15px;
  flex: 1;
  min-width: 145px;
}
.goal-summary span {
  display: block;
  font-size: 10px;
  color: #728c80;
}
.goal-summary strong {
  font-size: 23px;
  color: #155a46;
}
.goal-row {
  margin-top: 23px;
}
.goal-row > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.goal-row b {
  color: #13896f;
}
.goal-row progress {
  appearance: none;
  width: 100%;
  height: 11px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 9px;
  background: #edf1f4;
}
.goal-row progress::-webkit-progress-bar {
  background: #edf1f4;
}
.goal-row progress::-webkit-progress-value {
  background: linear-gradient(90deg, #0c8d80, #58c59f);
  border-radius: 10px;
}
.goal-row progress::-moz-progress-bar {
  background: #0c8d80;
}
.goal-row small {
  display: block;
  font-size: 10px;
  color: #83998c;
  margin-top: 5px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #e4ecf0;
  border-radius: 9px;
  margin-top: 16px;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #f4f8fa;
  color: #78919c;
  font-size: 10px;
  font-weight: 600;
}
th,
td {
  padding: 14px;
  border-bottom: 1px solid #edf1f4;
}
tr:last-child td {
  border-bottom: 0;
}
.amount {
  text-align: right;
  white-space: nowrap;
  font-weight: 650;
}
td details {
  min-width: 170px;
}
summary {
  cursor: pointer;
}
summary small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
#uploadForm button {
  margin: 5px 5px 5px 0;
}
#uploadResult,
#restoreResult {
  font-size: 12px;
  margin: 12px 0;
}
#notice {
  padding: 12px 16px;
  background: #fff2db;
  border: 1px solid #ebd6af;
  border-radius: 8px;
  color: #8b642b;
  font-size: 12px;
}
.empty {
  font-size: 12px;
  color: #8a9ea9;
  padding: 20px;
  text-align: center;
}
footer {
  color: #9eb0bb;
  font-size: 9px;
  padding-top: 20px;
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 17px;
  }
  .workspace,
  .aside-note {
    display: none;
  }
  .brand {
    font-size: 23px;
  }
  .brand span {
    font-size: 14px;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 3px;
    margin-top: 15px;
    align-items: flex-start;
  }
  .subnav {
    border: 0;
    margin: 0;
    padding: 0;
  }
  nav button {
    font-size: 10px;
    padding: 9px;
    white-space: nowrap;
  }
  #logout {
    margin-top: 10px;
    font-size: 11px;
  }
  .main {
    margin: 0;
  }
  header {
    height: 47px;
    padding: 0 17px;
    font-size: 8px;
  }
  main {
    padding: 17px;
  }
  .banner {
    font-size: 9px;
  }
  .page-heading {
    margin: 23px 0;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading button {
    font-size: 10px;
    padding: 9px;
  }
  .panel {
    padding: 18px;
    margin-bottom: 17px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  h2 {
    font-size: 16px;
  }
  .period-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  .period-tabs button {
    font-size: 11px;
    padding: 8px;
  }
  .filter {
    gap: 9px;
  }
  .filter label {
    min-width: 130px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metrics .hero {
    grid-column: 1/-1;
  }
  .metrics article {
    padding: 18px;
  }
  .metrics strong {
    font-size: 25px;
  }
  .metrics .hero strong {
    font-size: 36px;
  }
  .goal-summary {
    gap: 8px;
  }
  .goal-summary > div {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
  }
  .goal-summary strong {
    font-size: 22px;
  }
  .goal-row > div {
    font-size: 11px;
  }
  .input-grid {
    grid-template-columns: 1fr;
  }
  .login {
    display: block;
    padding: 20px;
    min-height: 100vh;
  }
  .login-brand {
    min-height: 0;
    padding: 27px;
    border-radius: 17px 17px 0 0;
  }
  .login-brand h1 {
    font-size: 28px;
    margin: 18px 0 12px;
  }
  .login-brand p {
    margin: 0;
  }
  .login-card {
    padding: 30px 27px;
    border-radius: 0 0 17px 17px;
  }
  .login-card h2 {
    font-size: 25px;
  }
  th,
  td {
    padding: 11px;
    font-size: 11px;
  }
}

#passwordFields input {
  font-size: 16px;
  letter-spacing: normal;
}
#passwordFields label {
  margin-bottom: 12px;
}

#pcImportForm button,
#pcCommit {
  margin: 14px 0;
}
#pcDataClass {
  max-width: 340px;
}
.check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}
.check-label input {
  min-height: auto;
}
#pcEntryForm button {
  margin-top: 12px;
}
#pcFilePassword {
  letter-spacing: normal;
}
#pcRows td,
#pcSettings td {
  max-width: 320px;
  overflow-wrap: anywhere;
}
#pcSites {
  margin-bottom: 28px;
}

#pc .table-wrap table {
  min-width: 680px;
}
#pcSites table {
  min-width: 480px;
}
#pcRows td:first-child {
  white-space: nowrap;
}
#pcRows td {
  overflow-wrap: break-word;
}
#pcRows td:nth-child(3) {
  min-width: 160px;
}

.live-toss-hero {
  background: linear-gradient(130deg, #103e48, #0a6b5c);
  color: white;
}
.live-toss-hero strong,
#tossTotal {
  font-size: 38px;
}
.live-toss-hero p {
  font-size: 12px;
}
.live-toss-hero button {
  margin-top: 12px;
}
#toss table {
  min-width: 900px;
}
#toss input[type="password"] {
  letter-spacing: normal;
}
#tossSiteRows button {
  margin: 4px;
}
#tossConfigForm > button {
  margin-top: 15px;
}

#workspace table {
  min-width: 720px;
}
#monthlyCells label {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#workspace form > button {
  margin-top: 15px;
}
#transactionEditor {
  padding: 20px;
  background: #f4f8fa;
  margin-top: 20px;
}
aside nav {
  overflow-y: auto;
  min-height: 0;
}
#shell aside .aside-note {
  flex-shrink: 0;
}
.live-toss-hero summary {
  font-size: 12px;
}
.sales-groups{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.sales-branch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.sales-hub-total{display:block;font-size:clamp(30px,5vw,48px);color:var(--green,#174c3e);margin:12px 0}
.sales-branch strong{display:block;font-size:26px}.sales-branch progress{width:100%;height:12px}.sales-branch small{display:block;margin:8px 0}.sales-branch button{margin-top:12px}
@media(max-width:900px){.sales-branch-grid{grid-template-columns:1fr}}
.company-logo{object-fit:contain;background:#fff;border-radius:8px;padding:4px}.company-logo[hidden]{display:none}.header-logo{max-width:150px;height:52px}.sidebar-logo{width:100%;height:auto;max-height:80px;flex-shrink:0}.brand:has(.sidebar-logo:not([hidden])) .brand-initial,.brand:has(.sidebar-logo:not([hidden])) .brand-name{display:none}.login-logo{width:min(320px,100%);height:auto;max-height:340px;margin:0 auto 24px;display:block}@media(max-width:600px){.header-logo{max-width:95px;height:40px}}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.dashboard-site{text-align:left;min-width:0;padding:18px;cursor:pointer}.dashboard-site span{font-size:13px}.dashboard-site strong{display:block;font-size:24px;margin-top:12px;overflow-wrap:anywhere}.dashboard-site small{display:block;font-size:11px;color:#63776d;margin:6px 0}.compare{font-size:12px}.compare.up{color:#18865b}.compare.down{color:#c74747}.compare.unknown,.compare.same{color:#728077}.dashboard-week{font-size:14px}.live-toss-hero .dashboard-week.up{color:#b9f2d3}.live-toss-hero .dashboard-week.down{color:#ffd2d2}#liveTossToday{font-size:24px;font-weight:700}@media(max-width:1100px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.dashboard-grid{grid-template-columns:1fr}}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-scroll{overflow-x:auto}.sales-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:700px;border:1px solid #e4e9e7;border-radius:12px;overflow:hidden}.calendar-weekday{text-align:center;padding:12px;background:#f4f7f5;font-size:13px}.calendar-day,.calendar-blank{border:0;border-radius:0;border-right:1px solid #e4e9e7;border-top:1px solid #e4e9e7;min-height:135px;padding:10px;background:white;min-width:0}.calendar-day{text-align:right;display:flex;flex-direction:column;gap:6px;cursor:pointer}.calendar-day:hover,.calendar-day:focus-visible{background:#edf6f1;outline:2px solid #28826a;outline-offset:-2px}.calendar-day span{text-align:left;font-size:13px}.calendar-day strong{font-size:14px}.calendar-day small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;color:#62766d}.calendar-day .negative{color:#bd3c40}.sales-day-dialog{border:1px solid #dce5df;border-radius:20px;width:min(520px,calc(100vw - 24px));max-height:80vh;padding:28px;overflow:auto;color:#173e33}.sales-day-dialog::backdrop{background:#153e334d;backdrop-filter:blur(3px)}.dialog-close{float:right;font-size:24px;padding:0 9px}.sales-day-dialog>strong{font-size:28px;display:block;margin:12px 0}.calendar-detail-channel{background:#f6f8f5;padding:14px;border-radius:12px;margin:12px 0}.calendar-detail-channel h3{font-size:14px;margin:0 0 8px}.calendar-detail-channel p{font-size:12px;color:#61756a;overflow-wrap:anywhere}

/* Quiet, compact visual theme. Existing layout and access controls stay intact. */
:root{--ink:#20372e;--muted:#6c7b73;--green:#285d48;--bg:#f6f7f3;--line:#e3e8e0}
body{font-size:14px;line-height:1.65;letter-spacing:-.15px;-webkit-font-smoothing:antialiased}
button,input,select{border-radius:9px;transition:background-color .15s,border-color .15s}
button{font-size:13px;font-weight:550}
button:hover{background:#f0f5ee;border-color:#b9cabb}
button.primary{background:var(--green);border-color:var(--green);color:#fff}
button.primary:hover{background:#204d3b}
input,select{background:#fff;border-color:#dce3d9;min-height:44px}
input:focus,select:focus,button:focus-visible{outline:2px solid #80a58a;outline-offset:2px}
label{font-size:12px;color:#536458;font-weight:550}
h1{font-size:28px;letter-spacing:-.8px;font-weight:700}
h2{font-size:18px;letter-spacing:-.4px}
h3{font-size:14px;font-weight:650;margin:22px 0 12px}
.eyebrow{font-size:9px;letter-spacing:1.8px;color:#849185}
.note{font-size:12px;line-height:1.8;background:#f6f8f3;border:1px solid #e8ece3;color:#69776b;padding:12px 14px}
.muted{color:#6c7b73}
aside{width:232px;padding:28px 16px 20px;background:#fff;color:#56665b;border-right:1px solid var(--line)}
.brand{color:#243e2e;min-height:44px;gap:10px}
.brand-initial{display:grid;place-items:center;border:1px solid #d9e2d5;border-radius:9px;width:37px;height:37px;font-size:13px!important;letter-spacing:-.4px;background:#f5f8f2}
.brand-name{font-size:14px!important;font-weight:750}
.brand small{color:#92a18f;font-size:7px;letter-spacing:1.3px;margin-top:3px}
.sidebar-logo{max-width:196px;max-height:76px;padding:0;border-radius:0}
.workspace{margin:22px 0;padding:12px;background:#f7f9f4;border:1px solid #e8ece3;color:#50654f;border-radius:9px}
.workspace small{color:#859281;font-size:10px;margin-top:2px}
nav{gap:3px}
nav button{font-size:12px;padding:10px 12px;min-height:39px;color:#667363;border-radius:7px}
nav button:hover{background:#f6f8f2;color:#294a34}
nav button.active{background:#edf4e8;color:#285d3c;box-shadow:none;font-weight:700}
.subnav{border-left:1px solid #e0e7da;margin-left:17px;padding-left:9px}
.subnav button{font-size:11px;padding:8px 10px}
.aside-note{font-size:10px;color:#96a18f}
#logout{color:#71816b;font-size:12px;padding:10px 2px}
.main{margin-left:232px}
header{height:66px;background:#fff;padding:0 32px;color:#83907d;font-size:9px;letter-spacing:1.2px}
header .header-logo{display:none}
#ownerLabel{font-size:11px;letter-spacing:0;color:#596b52;background:#f4f7ee;border:1px solid #e8eddf;padding:5px 11px;border-radius:20px}
main{max-width:1440px;padding:25px 32px 40px;min-width:0}
.page-heading{margin:12px 0 24px}
.panel{border-radius:13px;border-color:#e3e8de;box-shadow:none;padding:24px;margin-bottom:20px}
.panel-head span{font-size:11px;color:#7f8e76}
.live-toss-hero,.metrics .hero{background:#285442;border-color:#285442;color:#fff;box-shadow:none}
.live-toss-hero{padding:27px 30px}
.live-toss-hero>p:first-child{color:#dbe8d4;font-size:12px;letter-spacing:.1px}
#liveTossTotal{display:block;font-size:clamp(34px,4vw,48px);line-height:1.3;letter-spacing:-1.2px;font-variant-numeric:tabular-nums;margin:12px 0 17px}
#liveTossToday{font-size:23px;font-weight:650}
.live-toss-hero #liveTossNote{color:#cadcc0;font-size:11px;line-height:1.8}
.live-toss-hero details{border-top:1px solid #ffffff26;padding-top:15px;margin-top:18px}
.live-toss-hero summary{font-size:12px;color:#e5eedf}
.live-toss-hero button{background:#fff;color:#285442;border-color:#fff;font-size:12px;border-radius:8px}
.live-toss-hero .dashboard-week.up{color:#d3edb7}
.live-toss-hero .dashboard-week.down{color:#ffdfce}
.dashboard-grid{gap:14px}
.dashboard-site{padding:20px;box-shadow:none}
.dashboard-site:hover{border-color:#b6cab0;background:#fcfef9}
.dashboard-site span{font-size:12px;color:#617358}
.dashboard-site strong{font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:-.6px;color:#294530}
.dashboard-site small{color:#66775f;font-size:11px;line-height:1.7}
.compare{font-size:11px}
.compare.up{color:#467a37}.compare.down{color:#b45b4a}
.metrics article{padding:22px;border-radius:12px;border-color:var(--line)}
.metrics strong{font-variant-numeric:tabular-nums;font-size:28px}
.period-tabs{gap:6px}
.period-tabs button{background:#fff;border-color:#e0e7d8;color:#718167;border-radius:8px;min-height:38px}
.period-tabs button.active{background:#edf4e7;color:#315e38;border-color:#cbdcc0;font-weight:650}
.filter{gap:12px}
.table-wrap{border-color:#e5eadf;border-radius:10px}
table{font-size:12px}
th{background:#f7f9f3;color:#657759;font-size:11px;padding:13px 15px}
td{padding:14px 15px;border-color:#edf0e8}
tbody tr:hover td{background:#fcfdf9}
#accessUsers table{min-width:650px}
#accessUsers td:first-child{overflow-wrap:anywhere}
#accessUsers td:last-child button{font-size:11px;padding:7px 10px;margin:3px}
#receiptTotals td:nth-child(n+3),#receiptRows td:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}
.check-label{font-size:12px;color:#607253;gap:8px;margin:12px 0;line-height:1.8}
.check-label input{accent-color:var(--green);width:16px;height:16px;flex-shrink:0}
#accessMenus>div{padding:12px 14px;border:1px solid #e4ebdc;border-radius:9px;background:#fbfcf8}
#accounts form>button,#receiving form>button{margin-top:16px}
#accounts [role="status"],#receiving [role="status"],#restrictedView [role="status"]{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.goal-row progress::-webkit-progress-value{background:#739a60}
.goal-row progress::-moz-progress-bar{background:#739a60}
.login{max-width:1040px;padding:40px 30px;grid-template-columns:1.06fr 1fr}
.login-brand{background:#f8faf3;color:#26462e;border:1px solid #e2e9da;padding:40px;min-height:580px;border-radius:20px 0 0 20px}
.login-brand small{color:#7d9373}
.login-brand h1{font-size:34px;letter-spacing:-1.2px;margin:28px 0 18px;font-weight:700;line-height:1.4}
.login-brand p{color:#809475;font-size:12px}
.login-brand:has(.login-logo:not([hidden]))>small{display:none}
.login-logo{width:min(240px,100%);max-height:260px;margin:0 auto 12px;border-radius:0;padding:0;background:transparent}
.login-card{border-color:#e2e9da;border-left:0;border-radius:0 20px 20px 0;padding:40px 36px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.login-card h2{font-size:27px;color:#2a442e;letter-spacing:-.8px;margin-bottom:10px}
.login-card p{font-size:12px;line-height:1.8;color:#66745d}
.login-card label{font-size:12px;font-weight:550;margin:7px 0;color:#65795a}
.login-card input,#passwordFields input{font-size:15px;letter-spacing:0;min-height:45px;padding:11px 13px;border-radius:8px}
.login-card button{margin:10px 0 0;min-height:43px;font-size:13px}
.login-card small{font-size:11px;line-height:1.8;color:#6c7b63;margin-top:16px}
.login-card #loginError,.login-card #signupResult{font-size:12px;margin:10px 0 0;line-height:1.7;color:#a35843;overflow-wrap:anywhere}
#openSignup,#backToLogin{background:#fff;color:#607b51;border-color:#dae5d0}
#openSignup:hover,#backToLogin:hover{background:#f5f9ef}
@media(max-width:1100px){main{padding:22px}.dashboard-site strong{font-size:24px}}
@media(max-width:760px){
 aside{position:static;width:100%;padding:18px 16px 12px;border-right:0;border-bottom:1px solid var(--line)}
 .brand{max-width:220px}.sidebar-logo{max-height:57px;max-width:205px}
 .workspace,.aside-note{display:none}
 nav{display:flex;gap:4px;margin-top:16px;padding-bottom:4px}
 nav button{font-size:11px;min-height:37px;padding:8px 11px}
 .subnav{border:0;margin:0;padding:0}
 #logout{margin-top:7px;padding:4px 0;font-size:11px}
 .main{margin:0}
 header{height:46px;padding:0 17px;font-size:8px}
 #ownerLabel{font-size:10px;max-width:60%}
 main{padding:18px 15px 30px}
 .page-heading{margin:10px 0 20px}
 .page-heading h1{font-size:25px}
 .panel{padding:18px;border-radius:12px;margin-bottom:15px}
 .live-toss-hero{padding:22px}
 #liveTossTotal{font-size:36px}
 #liveTossToday{font-size:20px}
 .period-tabs{display:flex;flex-wrap:wrap}
 .period-tabs button{flex:0 1 auto;padding:8px 12px}
 .input-grid{grid-template-columns:1fr;gap:12px}
 .login{display:block;padding:20px 16px}
 .login-brand{min-height:0;padding:24px;border-radius:16px 16px 0 0;text-align:center}
 .login-brand h1{font-size:23px;margin:12px 0 0;line-height:1.35}
 .login-brand p{display:none}
 .login-logo{width:112px;max-height:108px;margin-bottom:10px}
 .login-card{border-left:1px solid #e2e9da;border-top:0;border-radius:0 0 16px 16px;padding:28px 24px}
 .login-card h2{font-size:24px}
 .login-card label{font-size:12px}
 .login-card input{min-height:46px}
}
@media(prefers-reduced-motion:reduce){button,input,select{transition:none}}

#signupResult[data-state="success"]{color:#285d48}

.account-actions{display:grid;gap:6px;padding-top:12px;border-top:1px solid var(--line);margin-top:12px}
.account-actions button{text-align:left;font-size:12px;padding:9px 10px;background:#f9fbf6}
.account-actions #logout{margin:0;padding:8px 10px}
#adminModeToggle{border-color:#bbcfaf;color:#365f2e}
#adminModeToggle[aria-pressed="true"]{background:#e9f2e0}
#adminNavigation button{width:100%;text-align:left}
.admin-legacy{border-top:1px solid var(--line);padding-top:12px;margin-top:8px}
.admin-legacy summary{padding:9px 10px;color:#7c8b70;font-size:12px}
#adminModeNotice{border-color:#c8d9bd;background:#edf4e7;margin:0 0 16px}
.personal-panel{max-width:820px}.personal-panel form>button{margin-top:18px}
#hqManualForm>button,#purchaseEntryForm>button{margin-top:18px}
#hqManualReload{margin-left:8px}
#hqManualResult,#personalResult{font-size:12px;line-height:1.8;margin:12px 0}
#purchaseDirectInputs>div,#purchaseCommonInputs>div{padding:12px;border:1px solid #e5ecde;border-radius:9px;background:#fcfdf9}
#purchaseEntryPanel>.filter{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
#purchaseHub progress{width:100%;accent-color:#739a60}
#purchaseRows table{min-width:680px}
#purchaseHub .metrics strong{font-size:clamp(20px,2.1vw,28px)}
@media(max-width:760px){
 .account-actions{display:flex;flex-wrap:wrap;gap:7px;padding-top:10px}
 .account-actions button{font-size:11px;padding:8px 10px}
 #adminNavigation{display:grid;grid-template-columns:1fr 1fr;gap:5px;overflow:visible}
 #adminNavigation .admin-legacy{grid-column:1/-1}
 #adminNavigation .admin-legacy[open]{display:grid;grid-template-columns:1fr 1fr}
 #adminNavigation .admin-legacy summary{grid-column:1/-1}
 #purchaseHub .metrics{grid-template-columns:1fr}
 #hqManualReload{margin-left:0;margin-top:8px}
}
