:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --fg: #15222c;
  --muted: #5a6a76;
  --line: #d8e0e5;
  --accent: #1e5a99;
  --accent-soft: #e4edf6;
  --danger: #b83a2e;
  --danger-soft: #fbeae8;
  --ok: #2e7d4f;
  --ok-soft: #e5f3ea;
  --warn-soft: #fff6e0;
  --moving: #2e7d4f;
  --idle: #7a5cc0;
  --engine-off: #b7790c;
  --stopped: #b7790c;
  --offline: #7f8a92;
  --nofix: #b83a2e;
  --k-place: #c2410c;
  --k-load: #1e5a99;
  --k-unload: #2e7d4f;
  --k-gate: #7a5cc0;
  --k-yard: #b7790c;
  --k-berth: #0f7c8c;
  --k-parking: #7f8a92;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--bg); color: var(--fg); font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* ---------- 顶部导航 ---------- */
.topnav { position: relative; z-index: 1100; display: flex; align-items: center; gap: 16px; padding: 0 14px; min-height: 46px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 16px; white-space: nowrap; text-decoration: none; color: var(--fg); }
.nav-links { display: flex; gap: 2px; align-self: stretch; }
.nav-links a { display: flex; align-items: center; padding: 0 10px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.nav-links .badge { margin-left: 4px; }
.nav-user { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; }

.notice { padding: 6px 14px; background: var(--warn-soft); color: #6b4a00; border-bottom: 1px solid #f0d9a0; }
.notice.error { background: var(--danger-soft); color: var(--danger); border-color: #f1c4be; }

/* ---------- 通用控件 ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--fg); white-space: nowrap; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip.alarm { border-color: var(--danger); color: var(--danger); }
.chip.alarm.none { border-color: var(--line); color: var(--muted); }
.fresh { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fresh.stale { color: var(--nofix); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { flex: 1; padding: 4px 10px; border: 0; background: none; cursor: pointer; color: var(--muted); white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
input[type="text"], input[type="search"], input[type="password"], input[type="number"], input[type="date"],
input[type="datetime-local"], select, textarea { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); min-width: 0; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--fg); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); border-color: #e8b4ad; }
.btn.sm { padding: 2px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.field { display: grid; gap: 4px; }
.field > span { color: var(--muted); font-size: 13px; }
.field-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.checks label, .check { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.form-error { color: var(--danger); min-height: 1.2em; }
/* 可输入搜索的下拉（账号页选 AWS 用户）：点开就列出全部，输入几个字就筛 */
.combo { position: relative; display: flex; }
.combo input { flex: 1; padding-right: 30px; }
.combo-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 28px; border: 0; border-radius: 0 6px 6px 0; background: none; color: var(--muted); cursor: pointer; }
.combo .suggest { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 20; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); }
.suggest { display: grid; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.suggest button { padding: 5px 10px; border: 0; background: none; text-align: left; cursor: pointer; }
.suggest button:hover, .suggest button:focus-visible { background: var(--accent-soft); }
.suggest p { margin: 0; padding: 5px 10px; }
.suggest .grp { position: sticky; top: 0; padding: 4px 10px; background: var(--bg); color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 12px 2px; }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 12px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 0 8px; border-radius: 10px; color: #fff; background: var(--c, var(--muted)); font-size: 12px; line-height: 20px; white-space: nowrap; }
.tag.soft { color: var(--c, var(--muted)); background: none; border: 1px solid currentColor; line-height: 18px; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.st-moving { --c: var(--moving); }
.st-idle { --c: var(--idle); }
.st-engine_off { --c: var(--engine-off); }
.st-stopped { --c: var(--stopped); }
.st-offline { --c: var(--offline); }
.st-nofix { --c: var(--nofix); }
.k-place { --c: var(--k-place); }
.k-load { --c: var(--k-load); }
.k-unload { --c: var(--k-unload); }
.k-gate { --c: var(--k-gate); }
.k-yard { --c: var(--k-yard); }
.k-berth { --c: var(--k-berth); }
.k-parking { --c: var(--k-parking); }
.dot[class*="st-"], .dot[class*="k-"] { background: var(--c); }

/* ---------- 普通页面（非全屏地图） ---------- */
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.page-inner { max-width: 1280px; margin: 0 auto; display: grid; gap: 14px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.box h2 { font-size: 15px; margin: 0 0 10px; }
.box-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.box-head h2 { margin: 0; }
.box-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
table.data td.wrap { white-space: normal; min-width: 12em; }
table.data th { color: var(--muted); font-weight: 500; font-size: 13px; background: var(--bg); white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: var(--accent-soft); }
table.data tr.sel td { background: var(--accent-soft); }
table.data tr.total td { font-weight: 600; background: var(--bg); }
table.data tr.off td { color: var(--muted); }
.batch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.batch input[type="text"] { flex: 1; min-width: 200px; }
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding-top: 10px; color: var(--muted); }

/* ---------- 实时地图 ---------- */
.layout { --panel-w: 320px; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--panel-w) 6px minmax(0, 1fr); }
.layout.stack { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 6px var(--panel-h, 40%); }
.layout.stack .panel { order: 3; border-right: 0; border-top: 1px solid var(--line); }
.layout.stack .splitter { order: 2; cursor: row-resize; }
.layout.stack .mapwrap { order: 1; }
.layout.maponly { grid-template-columns: 1fr; }
.layout.maponly .panel, .layout.maponly .splitter { display: none; }
.splitter { background: var(--line); cursor: col-resize; }
.splitter:hover { background: var(--accent); }
.panel { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-right: 1px solid var(--line); background: var(--surface); min-height: 0; min-width: 0; }
.panel .seg { display: flex; }
.list { flex: 1; overflow-y: auto; min-height: 0; }
.group { margin-bottom: 10px; }
.gname { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 4px 2px; color: var(--muted); font-size: 12px; }
.gname > span:first-child { color: var(--fg); font-weight: 600; }
.gname > span:last-child { margin-left: auto; }
.tabpane { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; width: 100%; padding: 5px 6px; border: 0; border-radius: 4px; background: none; text-align: left; cursor: pointer; }
.row:hover { background: var(--bg); }
.row.sel { background: var(--accent-soft); }
.row .main { display: grid; min-width: 0; }
.row .sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .age { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .age.stale { color: var(--nofix); }
.plate { font-weight: 600; }
.map:not(.show-labels) .plate-label, .map:not(.show-labels) .zone-label { display: none; }
/* 列表筛选：勾几个计划、车队、班组或状态，列表和地图只显示这些车；都不勾表示全部 */
.filter { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.filter > summary { padding: 5px 10px; cursor: pointer; }
.filter[open] > summary { border-bottom: 1px solid var(--line); }
.filter.active > summary { color: var(--accent); font-weight: 600; }
.filter-body { display: flex; flex-direction: column; gap: 6px; padding: 8px; max-height: 45vh; }
.filter-opts { overflow-y: auto; min-height: 0; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 2px 8px; padding: 4px 2px; cursor: pointer; }
.opt input { margin-top: 3px; }
.opt > small { white-space: nowrap; font-variant-numeric: tabular-nums; }
.filter-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.fchip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 2px 1px 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.fchip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.plan-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.plan-item input { margin-top: 3px; }
.plan-item .counts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12px; }
.plan-item .counts b { color: var(--fg); }
.plan-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 8px; background: var(--accent-soft); border-radius: 6px; color: var(--accent); }
.plan-sum b { font-variant-numeric: tabular-nums; }

.mapwrap { position: relative; min-height: 0; min-width: 0; }
.mapwrap > .map { position: absolute; inset: 0; }
.veh-icon { background: none; border: 0; }
.veh { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.veh.sel { outline: 3px solid var(--accent); }
.veh i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 10px solid #fff; }
.leaflet-tooltip.plate-label { padding: 0 4px; font-weight: 600; font-size: 12px; box-shadow: none; border-color: var(--line); }
.zone-label { background: none; border: 0; box-shadow: none; color: var(--c, var(--accent)); font-weight: 600; font-size: 12px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.zone-label::before { display: none; }

.card { position: absolute; right: 12px; bottom: 12px; z-index: 1000; width: min(360px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); }
.chead { display: flex; align-items: center; gap: 8px; }
.chead b { font-size: 16px; }
.close { margin-left: auto; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.card dl { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 4px 8px; margin: 8px 0; }
.card dt { color: var(--muted); }
.card dd { margin: 0; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 轨迹回放 ---------- */
.track-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "side main" "events main"; }
.track-side { grid-area: side; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-right: 1px solid var(--line); background: var(--surface); }
.track-events { grid-area: events; overflow-y: auto; min-height: 0; padding: 0 10px 10px; border-right: 1px solid var(--line); background: var(--surface); }
.track-main { grid-area: main; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.player { display: grid; gap: 6px; padding: 8px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.player-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.player-row input[type="range"] { flex: 1; min-width: 160px; }
.now-info { font-variant-numeric: tabular-nums; color: var(--muted); }
.now-info b { color: var(--fg); }
.timeline { position: relative; height: 66px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); cursor: pointer; overflow: hidden; }
.tl-lane { position: absolute; left: 0; right: 0; height: 16px; }
.tl-lane.l1 { top: 4px; }
.tl-lane.l2 { top: 24px; }
.tl-lane.l3 { top: 44px; }
.tl-seg { position: absolute; top: 0; height: 16px; border-radius: 3px; background: var(--c, var(--muted)); opacity: 0.85; overflow: hidden; color: #fff; font-size: 11px; line-height: 16px; padding: 0 3px; white-space: nowrap; }
.tl-seg.stop { --c: #9aa7b1; }
.tl-tick { position: absolute; top: 0; width: 3px; height: 16px; background: var(--danger); }
.tl-cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; }
.tl-names { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.events { display: grid; gap: 2px; }
.events button { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 6px; text-align: left; padding: 4px 6px; border: 0; background: none; border-radius: 4px; cursor: pointer; }
.events button:hover { background: var(--bg); }
.events small { color: var(--muted); }
.stop-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #5f6e79; color: #fff; font-size: 11px; font-weight: 700; border: 1px solid #fff; }
.leaflet-tooltip.play-label { padding: 1px 6px; border-color: var(--line); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.end-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.end-icon.start { background: var(--ok); }
.end-icon.end { background: var(--danger); }
.now-info .fast { margin-left: 8px; padding: 0 6px; border-radius: 8px; background: var(--warn-soft); color: var(--fg); font-size: 12px; }
.pop-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 6px 0 0; }
.pop-dl dt { color: var(--muted); }
.pop-dl dd { margin: 0; white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.summary-grid div { background: var(--bg); border-radius: 6px; padding: 6px 8px; }
.summary-grid b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.summary-grid small { color: var(--muted); }

/* ---------- 告警 ---------- */
.alarm-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.note-edit { display: flex; gap: 6px; margin-top: 6px; }
.note-edit input { flex: 1; }
.repeat { color: var(--danger); font-size: 12px; white-space: nowrap; }

/* ---------- 油位 ---------- */
.fuel-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.fuel-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; width: 100%; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.fuel-list button.sel { background: var(--accent-soft); }
.fuel-list small { grid-column: 1 / -1; color: var(--muted); }
.level-bar { width: 70px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; align-self: center; }
.level-bar i { display: block; height: 100%; background: var(--ok); }
.chart { width: 100%; min-height: 280px; }

/* ---------- 场区管理 ---------- */
.zones-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.zones-side { display: flex; flex-direction: column; gap: 10px; padding: 10px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); min-height: 0; }
.zone-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 4px; background: none; text-align: left; cursor: pointer; }
.zone-row:hover { background: var(--bg); }
.zone-row.sel { background: var(--accent-soft); }
.zone-row.archived { color: var(--muted); }
.zone-form { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }

/* ---------- 登录 ---------- */
.login-page { flex: 1; display: grid; place-items: center; padding: 16px; }
.login-box { width: min(360px, 100%); display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.login-box h1 { margin: 0; font-size: 20px; }
.login-sso, .login-password { display: grid; gap: 12px; }
.login-sso p { margin: 0; font-size: 13px; }
.login-sso .link-btn { justify-self: start; font-size: 13px; }
.login-sso .btn { padding: 8px 14px; }

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  .topnav { flex-wrap: wrap; gap: 8px; padding: 6px 12px; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; align-self: auto; }
  .topnav.open .nav-links { display: flex; }
  .nav-links a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a.on { border-bottom-color: var(--line); }
  .nav-user { display: none; order: 4; width: 100%; padding: 8px 4px; }
  .topnav.open .nav-user { display: flex; }
  .toolbar { padding: 6px 12px; }
  .fresh { margin-left: 0; }
  .layout, .layout.stack { grid-template-columns: 1fr; grid-template-rows: 52vh auto; }
  .layout .splitter { display: none; }
  .layout .panel { order: 2; border-right: 0; border-top: 1px solid var(--line); min-height: 50vh; }
  .layout .mapwrap { order: 1; }
  .layout.maponly { grid-template-rows: 1fr; }
  .layout-switch { display: none; }
  .card { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .track-layout, .zones-layout { display: flex; flex-direction: column; flex: none; }
  .track-side, .zones-side, .track-events { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .track-side { order: 1; }
  .track-main { order: 2; height: 82vh; }
  .track-events { order: 3; padding-top: 10px; }
  .zones-layout .mapwrap { height: 60vh; flex: none; }
  .card { max-height: 60%; }
  .fuel-layout { grid-template-columns: 1fr; }
  .fuel-list { max-height: 38vh; overflow-y: auto; }
  .page { padding: 10px; }
  .box { padding: 10px; }
  table.data.cards thead { display: none; }
  table.data.cards tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.data.cards td { display: flex; gap: 10px; border: 0; padding: 2px 4px; white-space: normal; }
  table.data.cards td::before { content: attr(data-label); flex: none; width: 6em; color: var(--muted); }
  table.data.cards td.num { text-align: left; }
}
