@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap");
:root { font-family:"Noto Sans SC","Microsoft YaHei",sans-serif; color:#1d1b19; background:#f7f4ee; --ink:#1d1b19; --muted:#77716a; --line:#e2ddd4; --paper:#fffdf8; --coral:#f35f4b; --coral-soft:#fff0eb; --amber:#d99632; --amber-soft:#fff6e6; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-width:320px; min-height:100vh; background:#f7f4ee; -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
button:focus-visible,input:focus-visible,a:focus-visible { outline:3px solid rgba(243,95,75,.22); outline-offset:2px; }
[hidden] { display:none!important; }
.site-shell { width:min(1380px,100%); margin:auto; padding:0 54px; }
.topbar { height:84px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border-bottom:1px solid var(--line); }
.brand { justify-self:start; display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-size:20px; font-weight:900; letter-spacing:-.04em; }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; color:white; background:var(--coral); box-shadow:0 8px 18px rgba(243,95,75,.2); }
.topbar>p { margin:0; color:#77716a; font-size:12px; }
.topbar>p strong { color:var(--ink); }
.clock { justify-self:end; display:flex; align-items:center; gap:8px; color:#77716a; font-size:10px; }
.clock span { width:7px; height:7px; border-radius:50%; background:#31a36f; box-shadow:0 0 0 4px rgba(49,163,111,.12); }
.hero { min-height:315px; display:flex; align-items:center; justify-content:space-between; gap:70px; padding:45px 4px 38px; }
.hero>div { max-width:650px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--coral); font-size:11px; font-weight:800; letter-spacing:.1em; }
.eyebrow:before { content:""; width:22px; height:2px; background:currentColor; }
.hero h1 { margin:13px 0 17px; font-size:clamp(42px,5vw,66px); line-height:1.03; letter-spacing:-.065em; font-weight:900; }
.hero h1 em { color:var(--coral); font-style:normal; }
.hero>div>p { max-width:590px; margin:0; color:#6d6760; font-size:14px; line-height:1.8; }
.rule-card { flex:0 0 365px; display:flex; gap:15px; align-items:center; padding:21px; border:1px solid #ddd7ce; border-radius:17px; background:rgba(255,253,248,.78); box-shadow:0 18px 55px rgba(68,54,40,.07); transform:rotate(-1deg); }
.snow { flex:0 0 45px; width:45px; height:45px; display:grid; place-items:center; border-radius:14px; background:#e7f1f3; color:#4b8893; font-size:20px; }
.rule-card small,.rule-card strong,.rule-card p { display:block; }
.rule-card small { color:#918a82; font-size:9px; font-weight:700; }
.rule-card strong { margin:5px 0; font-size:14px; }
.rule-card p { margin:0; color:#837d75; font-size:10px; }
.message { margin:-6px 0 16px; padding:12px 15px; border-radius:10px; background:#eaf6ef; color:#2c7657; font-size:11px; font-weight:600; }
.message.error { background:#fff0ed; color:#b74233; }
.loading-card { min-height:280px; display:grid; place-items:center; border:1px solid var(--line); border-radius:19px; background:var(--paper); color:#8c857d; font-size:12px; }
.loading-card.error { color:#b74233; }
.main-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(350px,.75fr); gap:18px; align-items:start; }
.form-card,.summary-card { border-radius:19px; padding:27px; }
.form-card { border:1px solid var(--line); background:var(--paper); }
.summary-card { position:sticky; top:16px; color:white; background:#211f1c; box-shadow:0 20px 50px rgba(31,28,25,.13); }
.summary-card.empty { min-height:285px; display:flex; justify-content:center; align-items:flex-start; flex-direction:column; }
.summary-card.empty .summary-number { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#fff; color:#211f1c; font-size:10px; font-weight:800; }
.summary-card.empty h2 { margin:20px 0 8px; font-size:22px; }
.summary-card.empty p { margin:0; max-width:270px; color:#99928a; font-size:11px; line-height:1.7; }
.section-heading { display:flex; align-items:center; gap:12px; margin-bottom:23px; }
.section-heading>span { width:35px; height:35px; display:grid; place-items:center; border-radius:50%; background:var(--ink); color:#fff; font-size:10px; font-weight:800; }
.section-heading h2,.section-heading p { margin:0; }
.section-heading h2 { font-size:16px; }
.section-heading p { margin-top:3px; color:#8c857d; font-size:10px; }
.section-heading.inverse>span { background:#fff; color:#211f1c; }
.baseline-note { margin-bottom:18px; padding:13px 15px; border-radius:10px; background:#f1eee8; color:#6f6962; font-size:11px; line-height:1.65; }
.room-inputs { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.room-block { padding:18px; border:1px solid; border-radius:14px; }
.room-block.coral { background:var(--coral-soft); border-color:#f2c8c1; color:var(--coral); }
.room-block.amber { background:var(--amber-soft); border-color:#ebd4a9; color:var(--amber); }
.room-block>span { display:block; margin-bottom:9px; color:#625c56; font-size:10px; font-weight:800; }
.room-block>div,.general-fields label>div { position:relative; }
.room-block input,.general-fields input { width:100%; height:45px; padding:0 42px 0 12px; border:1px solid #ddd7cf; border-radius:9px; background:white; color:var(--ink); font-size:13px; font-weight:700; }
.room-block em,.general-fields em { position:absolute; right:12px; top:50%; transform:translateY(-50%); color:#9a938b; font-size:9px; font-style:normal; }
.room-block>small { display:block; margin-top:9px; color:#827b74; font-size:9px; }
.primary-button { width:100%; min-height:50px; margin-top:16px; border:0; border-radius:10px; color:#fff; background:var(--coral); font-size:12px; font-weight:800; cursor:pointer; box-shadow:0 10px 25px rgba(243,95,75,.16); }
.primary-button:hover:not(:disabled) { background:#e75340; }
.primary-button:disabled { color:#969089; background:#e2ded7; box-shadow:none; cursor:not-allowed; }
.last-reading-card { margin-bottom:17px; padding:15px 17px; border:1px solid #dfdad2; border-radius:12px; background:#f7f4ef; }
.last-heading { display:flex; justify-content:space-between; padding-bottom:11px; border-bottom:1px solid #e4dfd7; color:#8c857d; font-size:9px; }
.last-values { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding-top:12px; }
.last-values div { display:flex; align-items:center; justify-content:space-between; }
.last-values small { color:#756f68; font-size:9px; }
.last-values strong { font-size:13px; }
.general-fields { display:grid; grid-template-columns:.8fr 1.2fr; gap:13px; margin-bottom:13px; }
.general-fields label>span { display:flex; justify-content:space-between; margin-bottom:7px; color:#625c56; font-size:10px; font-weight:800; }
.general-fields label>span small { color:#a39c94; font-size:8px; font-weight:500; }
.general-fields label:last-child input { padding-right:12px; }
.total-line { display:flex; align-items:center; justify-content:space-between; padding:3px 0 16px; border-bottom:1px solid #3a3732; }
.total-line span { color:#99928a; font-size:10px; }
.total-line strong { font-size:18px; }
.people-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:15px 0; }
.person-card { padding:14px; border:1px solid #3b3833; border-top-width:2px; border-radius:12px; background:#2c2925; }
.person-card.coral { border-top-color:var(--coral); }
.person-card.amber { border-top-color:var(--amber); }
.person-card span,.person-card strong,.person-card small { display:block; }
.person-card span { color:#b2aba3; font-size:9px; }
.person-card strong { margin:7px 0 10px; font-size:21px; }
.person-card small { color:#817b73; font-size:8px; line-height:1.5; }
.aircon-card { display:flex; align-items:center; gap:12px; padding:14px; border-radius:12px; color:#315d65; background:#e7f1f3; }
.aircon-card>span { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#d4e7ea; }
.aircon-card small,.aircon-card strong,.aircon-card p { display:block; }
.aircon-card small { font-size:8px; }
.aircon-card strong { margin:2px 0; font-size:16px; }
.aircon-card p { margin:0; color:#6d8e94; font-size:8px; }
.calculation-warning { margin-top:13px; padding:10px; border-radius:8px; color:#928c84; background:#34312d; font-size:9px; text-align:center; }
.calculation-warning.valid { color:#bfe4d1; background:#284537; }
.history-section { padding:75px 4px 65px; }
.history-heading { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:22px; }
.history-heading h2 { margin:7px 0 0; font-size:29px; letter-spacing:-.04em; }
.history-heading>span { color:#928b83; font-size:10px; }
.history-list { display:grid; gap:9px; }
.history-empty { min-height:150px; display:grid; place-items:center; border:1px dashed #d5cec4; border-radius:15px; color:#a19a92; font-size:11px; }
.history-item { display:grid; grid-template-columns:1.1fr 1fr 1fr .7fr; gap:24px; align-items:center; padding:17px 19px; border:1px solid var(--line); border-radius:13px; background:rgba(255,253,248,.75); }
.history-meta strong,.history-meta time,.history-person span,.history-person strong,.history-person small,.history-aircon span,.history-aircon strong,.history-aircon small { display:block; }
.history-meta strong { font-size:12px; }
.history-meta time { margin-top:4px; color:#99928a; font-size:8px; }
.history-person span,.history-aircon span { color:#837c74; font-size:8px; }
.history-person strong,.history-aircon strong { margin:3px 0; font-size:14px; }
.history-person small,.history-aircon small { color:#aaa39b; font-size:8px; }
.history-aircon { color:#4d858f; }
footer { height:72px; display:grid; place-items:center; border-top:1px solid var(--line); color:#aaa39b; font-size:9px; }
@media(max-width:980px){.site-shell{padding:0 28px}.hero{gap:35px}.rule-card{flex-basis:330px}.main-grid{grid-template-columns:1fr}.summary-card{position:static}}
@media(max-width:700px){.site-shell{padding:0 15px}.topbar{height:70px;grid-template-columns:1fr auto}.topbar>p{display:none}.clock{font-size:8px}.hero{display:block;min-height:0;padding:38px 2px 28px}.hero h1{font-size:42px}.hero>div>p{font-size:12px}.rule-card{margin-top:23px;transform:none}.form-card,.summary-card{padding:20px;border-radius:15px}.room-inputs,.general-fields,.people-grid{grid-template-columns:1fr}.history-section{padding:58px 0 48px}.history-item{grid-template-columns:1fr 1fr;gap:16px}.history-meta,.history-aircon{grid-column:1/-1}.last-values{grid-template-columns:1fr}.last-values div{justify-content:flex-start;gap:15px}}

/* Refined cream minimalist theme */
:root {
  --ink: #29251f;
  --muted: #81796e;
  --line: #e8dfd2;
  --paper: #fffaf2;
  --coral: #dc715c;
  --coral-soft: #fbece5;
  --amber: #b88948;
  --amber-soft: #f8f0df;
}
body { background: #f8f3ea; color: var(--ink); }
.site-shell { width: min(1240px, 100%); padding: 0 32px; }
.topbar {
  height: auto;
  min-height: 76px;
  margin-top: 18px;
  padding: 12px 16px;
  grid-template-columns: 1fr auto 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,250,242,.92);
  box-shadow: 0 8px 28px rgba(70,55,37,.045);
}
.brand { gap: 11px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e5806b;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
}
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { color: var(--ink); font-size: 16px; letter-spacing: -.035em; }
.brand-copy small { color: #9a9186; font-size: 8px; font-weight: 500; letter-spacing: .04em; }
.rate-pill {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 13px;
  border: 1px solid #eadfd0;
  border-radius: 999px;
  background: #f6efe4;
  color: #786f64;
}
.rate-pill small { font-size: 8px; }
.rate-pill strong { color: var(--ink); font-size: 14px; letter-spacing: -.02em; }
.rate-pill span { font-size: 8px; font-weight: 700; }
.clock { justify-self: end; align-items: center; gap: 8px; }
.clock i { width: 7px; height: 7px; border-radius: 50%; background: #71a982; box-shadow: 0 0 0 4px rgba(113,169,130,.12); }
.clock > span { display: flex; flex-direction: column; gap: 1px; }
.clock small { color: #a49b8f; font-size: 7px; }
.clock time { color: #6e675e; font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero {
  min-height: 270px;
  gap: 54px;
  padding: 38px 8px 32px;
}
.eyebrow { color: #bc7968; font-size: 10px; letter-spacing: .08em; }
.eyebrow:before { width: 17px; background: #bc7968; }
.hero h1 { margin: 12px 0 15px; font-size: clamp(40px, 4.6vw, 58px); line-height: 1.05; }
.hero h1 em { color: #d97560; }
.hero>div>p { max-width: 560px; color: #746c62; font-size: 13px; line-height: 1.75; }
.rule-card {
  flex-basis: 345px;
  padding: 18px;
  border-color: #e7ddcf;
  border-radius: 16px;
  background: #fffaf2;
  box-shadow: none;
  transform: none;
}
.snow { background: #edf2ee; color: #6e9480; }
.form-card, .summary-card { border-radius: 18px; }
.form-card { background: #fffaf2; border-color: #e7ddcf; }
.summary-card { background: #302c26; box-shadow: 0 14px 40px rgba(48,44,38,.1); }
.section-heading>span { background: #3a352e; }
.baseline-note, .last-reading-card { background: #f5eee4; border-color: #e9dece; }
.room-block.coral { background: #fbece5; border-color: #efd2c7; }
.room-block.amber { background: #f8f0df; border-color: #ead9b9; }
.room-block input, .general-fields input { background: #fffcf7; border-color: #e5dbcd; }
.primary-button { background: #d97560; box-shadow: none; }
.primary-button:hover:not(:disabled) { background: #c96551; }
.history-item { background: rgba(255,250,242,.82); border-color: #e7ddcf; }
.history-empty { border-color: #dcd1c3; }
footer { border-top-color: #e7ddcf; }

@media (max-width: 980px) {
  .site-shell { padding: 0 22px; }
  .topbar { grid-template-columns: 1fr auto; }
  .rate-pill { justify-self: end; }
  .clock {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
    padding: 9px 4px 0;
    border-top: 1px solid #ece3d6;
    justify-self: stretch;
  }
  .clock > span { flex-direction: row; align-items: center; gap: 7px; }
  .hero { gap: 28px; }
  .rule-card { flex-basis: 305px; }
}

@media (max-width: 700px) {
  body { background: #faf5ed; }
  .site-shell { padding: 0 12px; }
  .topbar {
    min-height: 0;
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 15px;
  }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .rate-pill { padding: 7px 10px; gap: 3px; }
  .rate-pill small { display: none; }
  .rate-pill strong { font-size: 13px; }
  .clock { margin-top: 8px; padding-top: 8px; }
  .clock small { font-size: 7px; }
  .clock time { font-size: 8px; }
  .hero { display: block; padding: 32px 5px 24px; }
  .hero h1 { margin-top: 10px; font-size: clamp(36px, 11vw, 45px); line-height: 1.08; }
  .hero>div>p { font-size: 12px; line-height: 1.7; }
  .rule-card { width: 100%; margin-top: 20px; padding: 15px; border-radius: 14px; }
  .rule-card strong { font-size: 13px; }
  .form-card, .summary-card { padding: 17px; border-radius: 15px; }
  .section-heading { margin-bottom: 18px; }
  .section-heading>span { width: 32px; height: 32px; }
  .section-heading h2 { font-size: 15px; }
  .baseline-note { padding: 12px; }
  .room-inputs, .general-fields, .people-grid { gap: 10px; }
  .room-block { padding: 15px; }
  .room-block input, .general-fields input { height: 48px; font-size: 16px; }
  .primary-button { min-height: 52px; font-size: 13px; }
  .last-reading-card { padding: 13px; }
  .last-values { gap: 8px; }
  .last-values div { justify-content: space-between; }
  .summary-card { margin-top: 2px; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .person-card { padding: 13px 11px; }
  .person-card strong { font-size: 19px; }
  .history-section { padding: 48px 2px 42px; }
  .history-heading h2 { font-size: 25px; }
  .history-item { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .history-meta, .history-aircon { grid-column: auto; }
  .history-person, .history-aircon { padding-top: 10px; border-top: 1px solid #eee5d8; }
  footer { height: 60px; text-align: center; }
}

@media (max-width: 380px) {
  .rate-pill span { display: none; }
  .hero h1 { font-size: 34px; }
  .people-grid { grid-template-columns: 1fr; }
}

/* Simple functional header and plain page title */
.topbar {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 11px 16px;
}
.brand > strong { color: var(--ink); font-size: 16px; }
.main-grid { margin-top: 22px; }
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
}
@media (max-width: 700px) {
  .topbar { min-height: 0; padding: 10px 12px; }
  .brand > strong { font-size: 15px; }
  .main-grid { margin-top: 14px; }
}
