:root { --navy: #10233F; --navy-2: #1A3357; --teal: #0E7C7B; --teal-dark: #0B5E5D; --teal-soft: #E6F4F3; --line: #E3E8EF;
  --muted: #6B7A90; --bg: #F5F7FA; --red: #C0392B; --amber: #B7791F; --green: #2F855A; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1F2A3C; background: var(--bg); font-size: 14px; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 9px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.warn { background: #fff; border-color: #E8C27A; color: var(--amber); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.input { width: 100%; border: 1px solid #CBD5E1; border-radius: 9px; padding: 9px 11px; background: #fff; }
.input:focus { outline: 2px solid rgba(14,124,123,.25); border-color: var(--teal); }
label.f { display: block; font-size: 12.5px; font-weight: 650; color: #3B4A60; margin: 10px 0 5px; }
.muted { color: var(--muted); }
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: #fff; letter-spacing: -.01em; }
.mark i { width: 28px; height: 28px; border-radius: 8px; background: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 15px; }
.mark .os { color: #E01E26; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #8FE0DE; background: rgba(15,144,142,.25); border: 1px solid rgba(143,224,222,.3); padding: 2px 6px; border-radius: 5px; }

/* login + choose */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy), #0B1A30); padding: 24px; }
.card { background: #fff; border-radius: 18px; padding: 28px 30px; width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.card h1 { margin: 14px 0 4px; font-size: 22px; color: var(--navy); }
.card .mark { color: var(--navy); }
.err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 760px; }
.choice { background: #fff; border-radius: 18px; padding: 26px; cursor: pointer; border: 2px solid transparent; text-align: left; }
.choice:hover { border-color: var(--teal); }
.choice h2 { margin: 12px 0 6px; color: var(--navy); font-size: 20px; }
.choice .big { font-size: 34px; }
.choose-head { color: #fff; width: 760px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 232px; background: var(--navy); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.side .nav { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.side .it { padding: 9px 11px; border-radius: 8px; color: rgba(255,255,255,.75); cursor: pointer; font-weight: 550; }
.side .it.on { background: rgba(14,124,123,.55); color: #fff; }
.side .sec { margin-top: 16px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.38); padding: 0 11px; }
.side .who { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; font-size: 13px; }
.side .who button { background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; padding: 4px 0; }
.main { flex: 1; min-width: 0; }
.bar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.bar h1 { font-size: 19px; color: var(--navy); margin: 0; }
.body { padding: 22px 28px 40px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #F8FAFC; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.chip.active { background: #E6F4EA; color: var(--green); }
.chip.pending_setup { background: #EEF2FF; color: #3949AB; }
.chip.suspended { background: #FFF6E0; color: var(--amber); }
.chip.deleted { background: #FDECEA; color: var(--red); }
.chip.purged { background: #EEF0F3; color: #6B7280; }
.chip.default { background: var(--teal-soft); color: var(--teal-dark); }
.chip.job { background: #F1F5F9; color: #475569; font-weight: 600; }
.mini { width: 110px; height: 8px; border-radius: 999px; background: #EEF2F6; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.mini i { display: block; height: 100%; background: var(--teal); }
.mini.warn80 i { background: #E5A100; } .mini.warn95 i, .mini.full i { background: var(--red); }
.host { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #334155; }

/* dialogs */
.bg { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.dlg { background: #fff; border-radius: 16px; width: 620px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 22px 24px 0; }
.dlg.wide { width: 860px; }
.dlg h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.dlg .foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 18px -24px 0; padding: 12px 24px 18px; display: flex; justify-content: flex-end; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.fs { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 14px; margin-top: 14px; }
.fs legend { font-size: 12px; font-weight: 700; color: var(--teal-dark); padding: 0 6px; letter-spacing: .02em; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.banner { border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.banner.red { background: #FDECEA; color: #8E2318; border: 1px solid #F1C9C2; }
.banner.amber { background: #FFF6E0; color: #7A5200; border: 1px solid #F2DDA4; }
.banner.teal { background: var(--teal-soft); color: var(--teal-dark); border: 1px solid #BFE3E1; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv div:nth-child(odd) { color: var(--muted); }
.phrase { background: #FDF2F0; padding: 1px 7px; border-radius: 6px; font-family: ui-monospace, Menlo, monospace; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 99; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sec-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }

/* desktop-only reminder (phones, tablets, narrow windows) */
.remind { position: fixed; inset: 0; z-index: 100; background: linear-gradient(160deg, var(--navy), #0B1A30); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; }
.remind .ic { width: 84px; height: 84px; border-radius: 22px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin: 22px 0 18px; }
.remind h1 { font-size: 24px; margin: 0 0 10px; }
.remind p { max-width: 340px; line-height: 1.55; color: rgba(255,255,255,.82); margin: 0 0 10px; font-size: 15px; }
.remind a { color: #5EEAD4; font-weight: 600; }
.remind .lang { position: absolute; top: 18px; right: 18px; display: inline-flex; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 2px 3px; }
.remind .lang button { background: none; border: 0; color: rgba(255,255,255,.7); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.remind .lang button.on { background: #fff; color: var(--navy); }
