:root {
  --bg: #f5f6f2;
  --white: #fff;
  --ink: #1c332f;
  --muted: #74817a;
  --green: #285e4e;
  --mint: #eaf1e6;
  --line: #e4e8e1;
  --gold: #ba9550;
  --red: #af5145;
  --orange: #d99b75;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #86b5a2;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 35px;
  font-weight: 550;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 40px;
  line-height: 1;
  font-weight: 650;
}
.brand > span {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 500;
  margin-top: 9px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: #fcfcf9;
  border-right: 1px solid var(--line);
  padding: 34px 23px;
  display: flex;
  flex-direction: column;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin: 54px 13px 16px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  color: #6f7c74;
  background: none;
  width: 100%;
  padding: 14px 12px;
  border-radius: 9px;
  text-align: left;
  margin-bottom: 5px;
  font-size: 18px;
}
.nav span {
  font-size: 12px;
  font-weight: 550;
}
.nav.active {
  background: #e9f0e7;
  color: var(--green);
}
.nav:hover {
  background: #eef2eb;
}
.sidebar-note {
  margin-top: auto;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 10px;
  font-size: 11px;
}
.sidebar-note b {
  display: block;
  margin: 10px 0 5px;
}
.sidebar-note p {
  color: var(--muted);
  font-size: 11px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #7ea66b;
  border-radius: 50%;
}
.user {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
}
.user > span {
  background: var(--mint);
  border-radius: 50%;
  padding: 10px;
}
.user b {
  font-size: 11px;
}
.user small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user button {
  border: 0;
  background: none;
  font-size: 22px;
  color: var(--muted);
  margin-left: auto;
}
main {
  margin-left: 235px;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: 11px;
}
.topbar > div {
  display: flex;
  gap: 20px;
  align-items: center;
}
.sync {
  color: var(--green);
  font-size: 10px;
}
.content {
  padding: 35px 36px 20px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
  background: var(--green);
  color: white;
  white-space: nowrap;
}
.secondary {
  background: #fff;
  color: var(--ink);
}
.button:hover {
  filter: brightness(0.97);
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
input,
select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  max-width: 190px;
}
input[type="month"] {
  width: 160px;
}
select {
  max-width: 165px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 10px;
  font-size: 11px;
}
.health {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #e9f0e5;
  border: 1px solid #d9e4d2;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 23px;
}
.health.warning {
  background: #faf0e2;
  border-color: #eadac1;
}
.health.danger {
  background: #f8e9e5;
  border-color: #eccfc7;
}
.health-icon {
  font-size: 25px;
}
.health b {
  font-size: 13px;
}
.health p {
  font-size: 11px;
  color: #6d7d6c;
  margin-top: 5px;
}
.pill {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 1.1px;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 6px 9px;
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.metric > span {
  font-size: 10px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 550;
  margin: 13px 0 10px;
  overflow-wrap: anywhere;
}
.metric small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}
.metric.featured {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.metric.featured span,
.metric.featured small {
  color: #bdcdbf;
}
.negative {
  color: var(--red);
}
.positive {
  color: var(--green);
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.grid-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 24px 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 25px;
  min-width: 0;
  margin-bottom: 24px;
}
.grid-main .panel,
.grid-half .panel {
  margin: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.panel-heading .eyebrow {
  margin-bottom: 9px;
}
.legend {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
  margin-left: 7px;
}
.green {
  background: var(--green);
}
.gold {
  background: var(--gold);
}
.orange {
  background: var(--orange);
}
.chart {
  width: 100%;
  min-height: 230px;
  overflow-x: auto;
  margin-top: 22px;
}
.chart svg {
  width: auto;
  min-width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart svg text {
  font-family: inherit;
  fill: var(--muted);
  font-size: 11px;
}
.chart-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 15px 0 4px;
}
.insight {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.insight:last-child {
  border-bottom: 0;
}
.insight b {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.insight p {
  font-size: 11px;
  color: var(--muted);
}
.insight span {
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.list-row:last-child {
  border: 0;
}
.list-row b {
  font-size: 12px;
  font-weight: 600;
}
.category-row {
  margin-top: 20px;
}
.category-row .list-row {
  border: 0;
  padding: 0 0 8px;
}
.category-row svg {
  display: block;
  width: 100%;
  height: 5px;
}
.table-wrap {
  overflow: auto;
  margin-top: 20px;
  max-height: 650px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 11px;
  text-align: right;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  background: #f4f6f1;
  position: sticky;
  top: 0;
  z-index: 1;
}
td,
th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  text-align: left;
}
tr.risk {
  background: #fdf3ef;
}
tfoot {
  font-weight: 700;
}
.notice {
  font-size: 12px;
  padding: 14px;
  background: #f0f3ed;
  border-radius: 7px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.error {
  font-size: 12px;
  padding: 16px;
  background: #fbeae6;
  color: #954536;
  border-radius: 7px;
  margin-bottom: 20px;
}
.simulation-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
}
.simulation-form {
  display: grid;
  gap: 22px;
  margin-top: 25px;
}
.simulation-form input {
  max-width: 100%;
  width: 100%;
  font-size: 14px;
  padding: 12px;
}
.simulation-form input[type="month"] {
  width: 100%;
}
.sim-big {
  font-size: 38px;
  letter-spacing: -1px;
  margin: 25px 0 12px;
}
.prose {
  max-width: 900px;
}
.prose p,
.prose li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 16px;
}
.prose h3 {
  margin-top: 30px;
  font-weight: 600;
  font-size: 16px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  color: var(--muted);
  font-size: 9px;
}
footer b {
  color: var(--gold);
  padding: 0 4px;
}
.empty {
  padding: 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-story {
  background: #163831;
  color: #f6f8ec;
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
}
.login-story h1 {
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -1.5px;
}
.login-story h1 em {
  font-weight: 400;
  color: #b7cda2;
}
.login-story p {
  font-size: 14px;
  max-width: 380px;
  line-height: 1.9;
  margin-top: 25px;
  color: #b2c4b8;
}
.login-story .eyebrow {
  color: #b3c6a6;
}
.login-story small {
  font-size: 10px;
  color: #a8bdaf;
}
.login-lines svg {
  width: 100%;
  margin: 20px 0;
}
.login-lines path {
  stroke: #98b784;
  stroke-width: 2;
  fill: none;
}
.login-lines path + path {
  stroke: #3f6256;
}
.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #f6f7f1;
}
.login-card {
  max-width: 350px;
  width: 100%;
}
.lock-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #dce4d7;
  border-radius: 13px;
  color: var(--green);
  font-size: 25px;
  margin-bottom: 40px;
}
.login-card h2 {
  font-size: 37px;
  letter-spacing: -1.3px;
  line-height: 1.15;
}
.login-card > p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 24px;
}
.login-card .notice {
  font-size: 11px;
}
.login-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 35px;
  font-size: 10px;
  color: var(--muted);
}
#google-button {
  min-height: 44px;
}
@media (min-width: 1500px) {
  .content {
    padding: 40px 48px;
  }
  .metric strong {
    font-size: 30px;
  }
  .chart {
    min-height: 260px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding: 28px 15px;
  }
  main {
    margin-left: 190px;
  }
  .content {
    padding: 26px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .decisions #insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .insight {
    border-bottom: 0;
  }
  .simulation-grid {
    grid-template-columns: 300px 1fr;
  }
  h1 {
    font-size: 29px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 18px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 29px;
  }
  .brand > span {
    font-size: 20px;
  }
  .sidebar .brand-sub {
    font-size: 7px;
  }
  .nav-label,
  .sidebar-note,
  .user {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 5px;
  }
  .nav {
    width: auto;
    flex-shrink: 0;
    padding: 11px 10px;
    gap: 7px;
  }
  .nav span {
    font-size: 10px;
  }
  main {
    margin: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
  }
  .topbar > span .muted {
    display: none;
  }
  .topbar > div {
    gap: 12px;
  }
  .content {
    padding: 25px 16px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 29px;
    line-height: 1.2;
  }
  .page-heading > .button {
    display: none;
  }
  .page-heading p {
    font-size: 11px;
  }
  .filters {
    padding: 14px;
    gap: 12px;
  }
  .filters label {
    flex: 1 1 125px;
  }
  .filters input,
  .filters select {
    width: 100%;
    max-width: 100%;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 17px;
  }
  .metric strong {
    font-size: 23px;
  }
  .panel {
    padding: 19px;
  }
  .panel-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .panel h2 {
    font-size: 18px;
  }
  .grid-half,
  .simulation-grid {
    grid-template-columns: 1fr;
  }
  .health {
    padding: 16px;
    gap: 10px;
  }
  .health .pill {
    display: none;
  }
  .decisions #insights {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .insight {
    border-bottom: 1px solid var(--line);
  }
  .health p {
    font-size: 10px;
  }
  .chart {
    min-height: 200px;
  }
  .legend {
    font-size: 8px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 420px;
    padding: 30px;
  }
  .login-story h1 {
    font-size: 35px;
  }
  .login-story .brand {
    margin-bottom: 45px;
  }
  .login-story small,
  .login-lines {
    display: none;
  }
  .login-story p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .login-side {
    padding: 40px 25px;
  }
  .login-card h2 {
    font-size: 32px;
  }
  .lock-icon {
    display: none;
  }
  .login-foot {
    margin-top: 20px;
  }
  footer {
    gap: 15px;
    font-size: 8px;
  }
  td,
  th {
    padding: 13px 11px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .filters,
  .page-heading > .button,
  button,
  .login {
    display: none !important;
  }
  main {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .tab.hidden {
    display: none !important;
  }
  .chart svg {
    width: 100%;
    min-width: 0;
  }
  .panel,
  .metric,
  .health {
    break-inside: avoid;
  }
  .table-wrap {
    max-height: none;
    overflow: visible;
  }
  .grid-main,
  .grid-half {
    display: block;
  }
  .panel {
    margin-bottom: 18px !important;
  }
  .content h1 {
    font-size: 25px;
  }
  .chart {
    min-height: 0;
  }
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .metric strong {
    font-size: 18px;
  }
}
.mode-switch {
  display: flex;
  gap: 5px;
  background: #e9eee6;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 22px;
  width: max-content;
  max-width: 100%;
}
.mode-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 20px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.mode-switch button.active {
  background: #fff;
  box-shadow: 0 2px 6px #173d3710;
  color: var(--green);
}
.advice-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  padding: 23px 0;
}
.advice-intro h2 {
  font-size: 26px;
}
.advice-intro p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.advice-intro .pill {
  color: var(--green);
}
.priorities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.priority {
  background: #edf2e9;
  border: 1px solid #dce5d6;
  border-radius: 10px;
  padding: 23px;
}
.priority.urgent {
  background: #faf0e6;
  border-color: #e9d8c5;
}
.priority > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.priority h3 {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.25px;
  margin: 14px 0 10px;
}
.priority p {
  font-size: 11px;
  color: #6c796e;
  line-height: 1.8;
}
.advice-options {
  margin-top: 23px;
}
.advice-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  padding: 21px 16px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.advice-option.chosen {
  background: #f0f5eb;
  border-color: #a4b995;
}
.advice-option input {
  accent-color: var(--green);
  margin-top: 8px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.advice-option > span {
  flex: 1;
  min-width: 0;
}
.advice-kind {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.advice-option b {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  display: block;
}
.advice-option small {
  display: block;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 8px;
  font-weight: 400;
  color: var(--muted);
}
.advice-option > strong {
  font-size: 19px;
  color: var(--green);
  font-weight: 550;
  white-space: nowrap;
  text-align: right;
}
.advice-option > strong small {
  font-size: 8px;
  margin-top: 4px;
}
.historical-review {
  margin-top: 30px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.historical-review h3,
.investment-guide h3 {
  font-size: 16px;
  font-weight: 550;
}
.profile-form {
  margin: 25px 0;
  border: 0;
  background: #f5f7f1;
}
.profile-form label {
  flex: 1;
}
.profile-form select {
  max-width: 100%;
  width: 100%;
}
.investment-guide {
  background: #f4f7f0;
  border-left: 3px solid #9fb591;
  padding: 23px;
  border-radius: 0 8px 8px 0;
}
.investment-guide p {
  font-size: 12px;
  color: #647569;
  margin-top: 12px;
  line-height: 1.9;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.source-links a {
  font-size: 11px;
  border-bottom: 1px solid #c0cdb6;
  padding-bottom: 5px;
  color: var(--green);
}
.neutral {
  background: #8b9990;
}
@media (max-width: 950px) {
  .priorities {
    grid-template-columns: 1fr;
  }
  .priority {
    padding: 19px;
  }
  .advice-intro .pill {
    display: none;
  }
}
@media (max-width: 760px) {
  .mode-switch {
    width: 100%;
  }
  .mode-switch button {
    flex: 1;
    font-size: 11px;
    padding: 12px 10px;
  }
  .advice-intro h2 {
    font-size: 23px;
  }
  .advice-option {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .advice-option > span {
    flex: 1 1 170px;
  }
  .advice-option > strong {
    margin-left: 29px;
    text-align: left;
    font-size: 18px;
  }
  .profile-form label {
    flex: 1 1 100%;
  }
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-direction: row;
  margin: 14px 0;
}
.inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}
.drill-value {
  color: var(--green);
  background: none;
  border: 0;
  padding: 9px 3px;
  font: inherit;
  white-space: nowrap;
  border-radius: 4px;
  cursor: pointer;
}
.drill-value:hover,
.drill-value[aria-expanded="true"] {
  background: #edf3e9;
}
.drill-value:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.drill-detail > td {
  padding: 18px;
  background: #f3f6f1;
}
.detail-content {
  border-left: 3px solid var(--green);
  padding: 8px 14px;
  overflow-x: auto;
}
.detail-content table {
  min-width: 700px;
}
.detail-content small {
  display: block;
  color: var(--muted);
}
.detail-total {
  font-weight: 700;
}
.print-detail-append {
  display: none;
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  .drill-value {
    display: inline !important;
    padding: 0;
    color: inherit;
  }
  .drill-value span,
  .drill-detail,
  .inline-check {
    display: none !important;
  }
  .panel {
    break-inside: auto;
  }
  tr {
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  .table-wrap table {
    width: 100%;
    min-width: 0;
  }
  body[data-pdf="detailed"] .print-detail-append {
    display: block;
    break-before: page;
  }
  .print-detail-append table {
    width: 100%;
    font-size: 10px;
  }
  .print-detail-append td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.print-context {
  display: none;
}
@media print {
  .print-context {
    display: block;
    font-size: 10px;
  }
}
.print-detail-append small {
  display: block;
}
.page-heading {
  flex-wrap: wrap;
}
.chat-panel {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding: 14px;
  background: #edf2eb;
  border-radius: 12px;
  margin: 16px 0;
}
.chat-bubble {
  align-self: flex-start;
  max-width: 88%;
  white-space: pre-wrap;
  background: white;
  border-radius: 12px 12px 12px 2px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 1px 3px #00000008;
}
.chat-bubble.mine {
  align-self: flex-end;
  background: #d9ebdf;
  border-radius: 12px 12px 2px 12px;
}
.chat-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chat-choice {
  border: 1px solid #cbd8ce;
  background: white;
  color: var(--green);
  border-radius: 9px;
  padding: 13px 16px;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}
.chat-choice:hover {
  background: #edf3e9;
}
.chat-form {
  display: flex;
  gap: 10px;
  width: 100%;
}
.chat-form input,
.chat-form select {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  padding: 13px;
}
.recent-entry {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px;
  }
  .sidebar .sidebar-note,
  .sidebar .nav-label,
  .sidebar .user-card {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 0;
  }
  .sidebar .nav {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .sidebar .logo {
    margin: 0 0 4px;
  }
  .topbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 13px;
  }
  .metric strong {
    font-size: 21px;
  }
  .mode-switch {
    width: 100%;
  }
  .mode-switch button {
    flex: 1;
    padding: 11px;
  }
  .page-heading > .button {
    display: inline-flex;
    min-height: 44px;
    font-size: 11px;
  }
  .page-heading {
    gap: 10px;
  }
  .panel {
    padding: 15px;
  }
  .chat-form {
    flex-wrap: wrap;
  }
  .chat-form .button {
    width: 100%;
  }
  .chat-bubble {
    max-width: 96%;
  }
  .chat-controls {
    flex-direction: column;
  }
  .chat-choice {
    text-align: left;
  }
  .recent-entry {
    flex-wrap: wrap;
  }
  .chart {
    max-width: 100%;
  }
}
@media print {
  .install-panel {
    display: none;
  }
}
@media (max-width: 600px) {
  .chat-form input,
  .chat-form select {
    width: 100%;
    flex-basis: 100%;
  }
}
.chat-form input,
.chat-form select {
  max-width: none;
}
