.account nav .signout { background: none; border: 0; color: var(--navy-ink); font: 500 17px var(--sans); cursor: pointer; padding: 0; }
.account nav .signout:hover { color: #fff; }
.account .page-head { padding-bottom: 40px; }
.account .soft { color: var(--soft); }
.account section { padding: 44px 0; }
.account #panel section + section { border-top: 1px solid var(--line); }

.account .grid > * { min-width: 0; }
.stack { display: grid; gap: 14px; align-content: start; }
.stack h3 { margin: 0; }
.narrow { max-width: 520px; }
.after { margin-top: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.button.quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.button.quiet:hover { border-color: var(--soft); }
a.button.quiet { padding: 12px 20px; }
.account .field input { max-width: none; }
.account select { font: 16px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.account textarea[readonly] { font: 15px/1.5 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 100%; resize: none; word-break: break-all; }

.bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.bar h2 { margin: 0; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.toggle button { background: var(--panel); border: 0; padding: 8px 14px; font: 600 15px var(--sans); color: var(--soft); cursor: pointer; }
.toggle button + button { border-left: 1px solid var(--line); }
.toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.title-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.state { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.state.active { background: rgba(46, 160, 98, .16); color: #1f7a49; }
.state.grace { background: rgba(244, 162, 89, .25); color: #93531a; }
.state.lapsed { background: rgba(180, 35, 44, .12); color: #b4232c; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 16px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; }
.stat span { display: block; font-weight: 600; margin-top: 4px; }
.stat small { display: block; color: var(--soft); font-size: 14px; }

.chart { margin-bottom: 18px; }
.chart-head { display: flex; gap: 10px 20px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.chart-head h3 { margin: 0; }
.key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.plot { position: relative; padding-top: 22px; }
.plot .peak { position: absolute; top: 0; left: 0; font-size: 13px; color: var(--soft); }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 170px; border-bottom: 1px solid var(--line); border-top: 1px dashed var(--line); }
.cols.dense { gap: 1px; }
.col { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; min-width: 0; border-radius: 3px 3px 0 0; overflow: hidden; }
.col:hover { background: rgba(127, 127, 127, .08); }
.seg { display: block; }
.seg.covered { background: var(--navy); }
.seg.short { background: var(--accent); }
.seg.moves { background: #4f7fd8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seg.covered { background: #8fa7d9; }
  :root:not([data-theme="light"]) .state.active { color: #6fd39c; }
  :root:not([data-theme="light"]) .state.grace { color: #f4b47a; }
  :root:not([data-theme="light"]) .state.lapsed { color: #f08a90; }
}
.axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); margin-top: 6px; }

.table { overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.table th { font-size: 13px; color: var(--soft); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table .kind { display: block; color: var(--soft); font-size: 13px; }

.movers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.movers li { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.movers .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movers .track { height: 10px; background: var(--slot); border-radius: 99px; overflow: hidden; }
.movers .fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
@media (min-width: 760px) { .grid.two.wide-first { grid-template-columns: 3fr 2fr; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toggle button[aria-pressed="true"] { background: var(--accent); color: #14213d; } }
