/* Only the Tesla dashboard is styled here; the shared f97 shell owns its layout. */
.tesla-dashboard{--tc-ink:#193440;--tc-quiet:#516873;--tc-line:#bfd5e5;--tc-accent:#086678;--tc-green:#176344;--tc-amber:#885400;--tc-red:#a73332;color:var(--tc-ink);padding:46px 0 8px;font-variant-numeric:tabular-nums}
.tesla-dashboard .tc-heading{margin-bottom:32px}
.tesla-dashboard h1{max-width:none;font-size:clamp(2.2rem,4.8vw,3.6rem);margin:13px 0 15px;line-height:1.08}
.tesla-dashboard .tc-lead{color:var(--tc-quiet);font-size:1.05rem;max-width:60ch}
.tesla-dashboard .tc-label{font-size:.77rem;color:var(--tc-quiet);margin-bottom:4px}
.tesla-dashboard .tc-status{display:flex;align-items:center;gap:21px;padding:26px 28px;border:1px solid var(--tc-line);border-radius:12px;background:#f5faff}
.tesla-dashboard .tc-state-icon{display:grid;place-items:center;flex:0 0 56px;height:56px;border-radius:50%;background:#deedf5;color:var(--tc-accent);font-size:1.8rem}
.tesla-dashboard .tc-status[data-state=charging] .tc-state-icon{color:var(--tc-green);background:#dceee3}
.tesla-dashboard .tc-status[data-state=unknown] .tc-state-icon{color:var(--tc-quiet);background:#e4ebf0}
.tesla-dashboard .tc-state-copy{flex:1;min-width:0}
.tesla-dashboard .tc-state-copy h2{font-size:1.8rem;margin:0 0 7px;line-height:1.15}
.tesla-dashboard .tc-state-copy>p:last-child{font-size:.9rem;color:var(--tc-quiet);line-height:1.5}
.tesla-dashboard .tc-freshness{text-align:right;flex:0 0 auto}
.tesla-dashboard .tc-freshness p{font-size:.76rem;color:var(--tc-quiet);margin-top:5px}
.tesla-dashboard .tc-badge{display:inline-flex;align-items:center;gap:8px;font-size:.76rem;font-weight:650;padding:5px 11px;border:1px solid var(--tc-line);border-radius:20px;background:#eaf2f7;color:var(--tc-quiet)}
.tesla-dashboard .tc-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.tesla-dashboard .tc-badge[data-tone=good]{color:var(--tc-green);background:#e4f2e9;border-color:#bcdac7}
.tesla-dashboard .tc-badge[data-tone=warn]{color:var(--tc-amber);background:#fff3db;border-color:#e8d0a1}
.tesla-dashboard .tc-badge[data-tone=bad]{color:var(--tc-red);background:#fff0ec;border-color:#e4b9b0}
.tesla-dashboard .tc-notice{padding:14px 18px;border-left:3px solid #bd8435;background:#fff5e3;color:#674914;font-size:.9rem;margin:14px 0;line-height:1.6;border-radius:0 6px 6px 0}
.tesla-dashboard .tc-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:22px 0 30px;gap:0;background:#fff;border:1px solid var(--tc-line);border-radius:12px}
.tesla-dashboard .tc-metrics>div{padding:22px 24px;min-width:0}
.tesla-dashboard .tc-metrics>div+div{border-left:1px solid var(--tc-line)}
.tesla-dashboard dt{color:var(--tc-quiet);font-size:.8rem}
.tesla-dashboard .tc-metrics dt{min-height:36px;line-height:1.4}
.tesla-dashboard .tc-metrics dt span{font-size:.72rem;display:block}
.tesla-dashboard dd{margin:0}
.tesla-dashboard .tc-metrics dd{font-size:clamp(1.65rem,2.8vw,2.2rem);font-weight:650;letter-spacing:-.04em;margin-top:9px;line-height:1.2;white-space:nowrap}
.tesla-dashboard .tc-metrics small{font-size:.85rem;color:var(--tc-quiet);font-weight:500;letter-spacing:0}
.tesla-dashboard .tc-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tesla-dashboard .tc-panel{background:#f5faff;border:1px solid var(--tc-line);border-radius:12px;padding:25px 27px;min-width:0}
.tesla-dashboard .tc-panel h2{font-size:1.16rem;margin-bottom:20px;display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.tesla-dashboard .tc-panel h2 span{font-size:.74rem;font-weight:400;letter-spacing:0;color:var(--tc-quiet)}
.tesla-dashboard .tc-facts{margin:0}
.tesla-dashboard .tc-facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:10px 0;border-top:1px solid #d9e6ef}
.tesla-dashboard .tc-facts>div:first-child{border-top:0;padding-top:0}
.tesla-dashboard .tc-facts dt{font-size:.86rem}
.tesla-dashboard .tc-facts dd{text-align:right;font-size:.9rem;font-weight:600}
.tesla-dashboard .tc-footnote{font-size:.76rem;color:var(--tc-quiet);margin-top:12px;line-height:1.6;max-width:48ch}
.tesla-dashboard .tc-bars{margin:0;display:grid;gap:14px}
.tesla-dashboard .tc-bars>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:13px;align-items:center}
.tesla-dashboard .tc-bars dt{font-size:.82rem}
.tesla-dashboard .tc-bars dd{display:grid;grid-template-columns:minmax(15px,1fr) 70px;gap:13px;align-items:center;font-size:.84rem;font-weight:600;text-align:right}
.tesla-dashboard .tc-track{height:8px;background:#deebf4;border-radius:6px;overflow:hidden}
.tesla-dashboard .tc-fill{display:block;height:100%;background:#258399;border-radius:6px}
.tesla-dashboard #temperatureValues .tc-fill{background:#8a6b3f}
.tesla-dashboard .tc-track[data-missing=true]{background:repeating-linear-gradient(135deg,#dce7ee,#dce7ee 4px,#eef4f8 4px,#eef4f8 8px)}
.tesla-dashboard .tc-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:44px 0 20px}
.tesla-dashboard .tc-section-heading h2{font-size:1.65rem;margin-top:9px;line-height:1.2}
.tesla-dashboard .tc-section-heading>p{font-size:.85rem;color:var(--tc-quiet);text-align:right}
.tesla-dashboard .tc-table-wrap{overflow-x:auto;border:1px solid var(--tc-line);border-radius:10px;background:#fff}
.tesla-dashboard .tc-table{border-collapse:collapse;width:100%;font-size:.85rem;min-width:660px}
.tesla-dashboard .tc-table th,.tesla-dashboard .tc-table td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid #dce7ef;white-space:nowrap}
.tesla-dashboard .tc-table th{background:#dcecf7;font-size:.74rem;font-weight:650;color:#315361}
.tesla-dashboard .tc-table .tc-number{text-align:right}
.tesla-dashboard .tc-table tr:last-child td{border:0}
.tesla-dashboard .tc-table tbody tr:nth-child(even){background:#f7fbfe}
.tesla-dashboard .tc-table tbody tr:hover{background:#edf5fa}
.tesla-dashboard .tc-table small{display:block;color:var(--tc-quiet);font-size:.7rem}
.tesla-dashboard .tc-history-footer{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-top:16px}
.tesla-dashboard .tc-history-footer>p{font-size:.74rem;color:var(--tc-quiet);max-width:64ch;line-height:1.6}
.tesla-dashboard .tc-pagination{display:flex;align-items:center;gap:12px;flex-shrink:0}
.tesla-dashboard .tc-pagination span{font-size:.78rem;min-width:76px;text-align:center;color:var(--tc-quiet)}
.tesla-dashboard .tc-pagination button{min-width:44px;min-height:44px;border:1px solid var(--tc-line);border-radius:6px;background:#f5faff;color:var(--tc-ink);font-size:1.1rem}
.tesla-dashboard .tc-pagination button:hover:enabled{background:#dcecf7}
.tesla-dashboard .tc-pagination button:disabled{opacity:.42;cursor:default}
.tesla-dashboard .tc-scroll-hint{display:none;font-size:.75rem;color:var(--tc-quiet);margin-bottom:9px}
.tesla-dashboard .tc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:900px){.tesla-dashboard .tc-metrics>div{padding:20px 16px}.tesla-dashboard .tc-status{flex-wrap:wrap}.tesla-dashboard .tc-freshness{flex-basis:100%;text-align:left;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding-top:15px;border-top:1px solid var(--tc-line)}.tesla-dashboard .tc-freshness p{margin:0}.tesla-dashboard .tc-bars>div{grid-template-columns:78px minmax(0,1fr);gap:8px}.tesla-dashboard .tc-panel{padding:23px 20px}.tesla-dashboard .tc-history-footer{align-items:flex-start;flex-direction:column;gap:14px}}
@media(max-width:680px){.tesla-dashboard{padding-top:30px}.tesla-dashboard .tc-heading{margin-bottom:24px}.tesla-dashboard h1{font-size:2.3rem;max-width:15ch}.tesla-dashboard .tc-lead{font-size:.95rem}.tesla-dashboard .tc-status{padding:20px;gap:14px}.tesla-dashboard .tc-state-icon{flex-basis:44px;height:44px;font-size:1.4rem}.tesla-dashboard .tc-state-copy h2{font-size:1.55rem}.tesla-dashboard .tc-state-copy>p:last-child{font-size:.82rem}.tesla-dashboard .tc-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0 22px}.tesla-dashboard .tc-metrics>div{padding:18px}.tesla-dashboard .tc-metrics>div:nth-child(3){border-left:0}.tesla-dashboard .tc-metrics>div:nth-child(n+3){border-top:1px solid var(--tc-line)}.tesla-dashboard .tc-metrics dd{font-size:1.9rem}.tesla-dashboard .tc-columns{grid-template-columns:minmax(0,1fr);gap:16px}.tesla-dashboard .tc-section-heading{display:block;margin-top:34px}.tesla-dashboard .tc-section-heading h2{font-size:1.5rem;max-width:20ch}.tesla-dashboard .tc-section-heading>p{text-align:left;margin-top:12px}.tesla-dashboard .tc-scroll-hint{display:block}.tesla-dashboard .tc-pagination{align-self:center}.tesla-dashboard .tc-facts dt{font-size:.81rem}.tesla-dashboard .tc-facts dd{font-size:.85rem}.tesla-dashboard .tc-bars>div{grid-template-columns:85px minmax(0,1fr)}}
