/* ============================================================
   NEONFLUX — console deep layer (v5)
   Loaded after neonflux-theme.css. Refines the logged-in pages:
   shell rhythm, chart surfaces, cards, tables, forms, pager.
   ============================================================ */

/* ---------- 1. shell rhythm ---------- */
.ui.container.main-content{
  max-width:1160px !important;
  padding:0 20px !important;
  box-sizing:border-box !important;
  margin:0 auto !important;
}
.dashboard-container{padding:26px 0 4px !important}
.ui.center.aligned.container{
  max-width:1160px !important;
  padding-left:20px !important;padding-right:20px !important;
  box-sizing:border-box !important;
}
.ui.vertical.segment{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:26px 0 !important;
}
.ui.vertical.segment > .ui.container.main-content{padding:0 20px !important}
.ui.grid + .ui.grid{margin-top:0 !important}

/* ---------- 2. page title inside a card ---------- */
body:not(.nf-login-boost) .ui.card > .content > .header{
  font-family:var(--nf-display) !important;
  font-size:19px !important;line-height:26px !important;
  font-weight:600 !important;letter-spacing:.01em !important;
  color:var(--nf-t0) !important;
  padding-left:14px;position:relative;
  margin-bottom:2px !important;
}
body:not(.nf-login-boost) .ui.card > .content > .header::before{
  content:"";position:absolute;left:0;top:3px;bottom:3px;width:3px;border-radius:2px;
  background:linear-gradient(180deg,#4DE8F4,#8B7BFF);
  box-shadow:0 0 14px -2px rgba(77,232,244,.9);
}

/* ---------- 3. charts: kill the white plate, re-skin the canvas ---------- */
.chart-container{
  position:relative;
  background:
    linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,0) 62%) !important;
  border:1px solid rgba(255,255,255,.055) !important;
  border-radius:10px !important;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset !important;
  overflow:hidden;
}
.chart-container .recharts-wrapper,
.chart-container .recharts-surface,
.chart-container .recharts-responsive-container{
  background:transparent !important;
}
.chart-container .recharts-text,
.chart-container text{
  fill:#5E6878 !important;
  font-family:var(--nf-mono) !important;
  font-size:10px !important;
  letter-spacing:.04em;
}
.chart-container .recharts-cartesian-axis-line,
.chart-container .recharts-cartesian-axis-tick-line{stroke:rgba(255,255,255,.08) !important}
.chart-container .recharts-cartesian-grid line{stroke:rgba(255,255,255,.045) !important}
/* the engine ships a violet stroke baked into the <path> attribute; a plain
   CSS rule already outranks presentation attributes, so no !important war */
.chart-container .recharts-curve.recharts-line-curve{
  stroke:var(--nf-cyan,#00F0FF) !important;
  stroke-width:1.8px !important;
}
.chart-container .recharts-area-area{fill:rgba(0,240,255,.14) !important;opacity:1 !important}
.chart-container .recharts-area-curve{stroke:var(--nf-cyan,#00F0FF) !important}
.chart-container .recharts-dot,
.chart-container .recharts-line-dot{fill:#04121A !important;stroke:var(--nf-cyan,#00F0FF) !important}
/* three-up cards are ~270px wide: 10px ticks collide, 9px leaves a real gap */
.chart-card .chart-container .recharts-text,
.chart-card .chart-container text{font-size:9px !important;letter-spacing:0 !important}
/* a flat line at zero is an empty series, not a data shape */
.chart-container.nf-flat::after{
  content:attr(data-nf-empty);
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--nf-mono);font-size:11px;letter-spacing:.06em;
  color:rgba(232,244,255,.42);
  background:radial-gradient(ellipse at center,rgba(8,12,20,.72),rgba(8,12,20,0) 62%);
  pointer-events:none;
}
.recharts-default-tooltip,
.recharts-tooltip-wrapper .recharts-default-tooltip{
  background:rgba(9,12,19,.96) !important;
  border:1px solid rgba(77,232,244,.28) !important;
  border-radius:8px !important;
  box-shadow:0 18px 40px -18px #000,0 0 30px -16px rgba(77,232,244,.7) !important;
  font-family:var(--nf-mono) !important;
  font-size:11px !important;
  color:var(--nf-t0) !important;
  backdrop-filter:blur(8px);
}
.recharts-tooltip-item,
.recharts-tooltip-label{color:var(--nf-t0) !important}
.recharts-legend-item-text{color:var(--nf-t1) !important;font-size:11px !important}

/* chart card header — resets the page-title treatment above */
body:not(.nf-login-boost) .chart-card .content > .header{
  font-family:var(--nf-mono) !important;
  font-size:10.5px !important;line-height:16px !important;
  letter-spacing:.18em !important;text-transform:uppercase;
  font-weight:500 !important;
  color:var(--nf-t1) !important;
  padding-left:12px !important;
  margin-bottom:14px !important;
  position:relative;
}
body:not(.nf-login-boost) .chart-card .content > .header::before{
  content:"" !important;
  position:absolute !important;left:0 !important;top:5px !important;bottom:auto !important;
  width:5px !important;height:5px !important;border-radius:1px !important;
  background:var(--nf-cyan) !important;
  box-shadow:0 0 10px rgba(77,232,244,.9) !important;
}

/* ---------- 4. cards: finer surface ---------- */
.ui.card, .ui.cards > .card, .ui.fluid.card, .chart-card{
  border-radius:12px !important;
  background:linear-gradient(168deg,rgba(23,30,46,.62) 0%,rgba(10,13,20,.88) 62%,rgba(8,10,16,.92) 100%) !important;
  border:1px solid rgba(255,255,255,.075) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.055) inset,
    0 30px 70px -46px rgba(0,0,0,.95) !important;
  transition:border-color .35s var(--ease,cubic-bezier(.22,1,.36,1)),transform .35s var(--ease,cubic-bezier(.22,1,.36,1));
}
body:not(.nf-login-boost) .chart-card:hover{
  border-color:rgba(77,232,244,.22) !important;
  transform:translateY(-2px);
}
.ui.card > .content, .ui.cards > .card > .content{padding:20px 22px !important}
.chart-card > .content{padding:18px 20px 16px !important}

/* ---------- 5. tables ---------- */
.ui.table{
  border-radius:10px !important;
  overflow:hidden;
  background:rgba(8,11,19,.5) !important;
}
.ui.table thead th{
  background:rgba(77,232,244,.045) !important;
  color:#7E8B9C !important;
  font-family:var(--nf-mono) !important;
  font-size:10px !important;
  letter-spacing:.16em !important;
  font-weight:500 !important;
  padding-top:12px !important;padding-bottom:12px !important;
  border-bottom:1px solid rgba(77,232,244,.14) !important;
}
.ui.table tbody td{
  font-size:13px !important;
  padding-top:13px !important;padding-bottom:13px !important;
  color:#A9B6C7 !important;
}
.ui.table > tbody > tr:hover > td{background:rgba(77,232,244,.05) !important}
.ui.table > tbody > tr:first-child > td{border-top:0 !important}
.ui.table td .ui.label{transform:translateY(-1px)}

/* empty table body */
.ui.table > tbody:empty::after{content:""}

/* ---------- 6. search + inputs ---------- */
.ui.icon.input > i.icon,
.ui.input > i.icon{color:#4E5867 !important;opacity:1}
.ui.icon.input > input:focus ~ i.icon{color:var(--nf-cyan) !important}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
.ui.input > input:focus{
  border-color:rgba(77,232,244,.5) !important;
  box-shadow:0 0 0 3px rgba(77,232,244,.10),0 0 24px -10px rgba(77,232,244,.8) !important;
  outline:none !important;
}
.ui.form .field > label{
  font-family:var(--nf-mono) !important;
  font-size:10px !important;letter-spacing:.16em !important;
  text-transform:uppercase;
  color:#6E7B8C !important;
  margin-bottom:8px !important;
}

/* ---------- 7. buttons: match the landing CTA ---------- */
.ui.button{
  border-radius:8px !important;
  height:auto;
  font-size:13px !important;
  letter-spacing:.02em !important;
}
.ui.button:not(.icon):not(.circular){min-height:34px}
.ui.primary.button, .ui.blue.button, .ui.teal.button,
.ui.button.primary, .ui.button.blue{
  background:linear-gradient(100deg,#7CF3FB 0%,#4DE8F4 46%,#8B7BFF 132%) !important;
  border:0 !important;
  color:#05070C !important;
  font-weight:700 !important;
  border-radius:8px !important;
  box-shadow:0 1px 0 rgba(255,255,255,.45) inset,0 12px 30px -16px rgba(77,232,244,.9) !important;
}
.ui.primary.button:hover, .ui.blue.button:hover, .ui.teal.button:hover{
  filter:saturate(1.08) brightness(1.06);
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 18px 40px -16px rgba(77,232,244,1) !important;
}
.ui.button.basic, .ui.basic.button{
  border-radius:8px !important;
  background:rgba(255,255,255,.02) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#9AA6B6 !important;
}
.ui.button.basic:hover{
  color:#EFF3F9 !important;border-color:rgba(255,255,255,.22) !important;
  background:rgba(255,255,255,.05) !important;
}
.ui.red.button, .ui.negative.button{
  background:rgba(255,46,151,.10) !important;
  border:1px solid rgba(255,46,151,.45) !important;
  color:#FF8FC5 !important;border-radius:8px !important;
}
.ui.red.button:hover, .ui.negative.button:hover{
  background:rgba(255,46,151,.2) !important;
  box-shadow:0 0 22px -8px rgba(255,46,151,.9) !important;
}
.ui.green.button, .ui.positive.button{
  background:rgba(107,241,120,.10) !important;
  border:1px solid rgba(107,241,120,.4) !important;
  color:#8DF59A !important;border-radius:8px !important;
}

/* ---------- 8. dropdowns / pager / tabs ---------- */
.ui.selection.dropdown{
  border-radius:8px !important;
  min-height:34px !important;
  line-height:32px !important;
  padding-top:0 !important;padding-bottom:0 !important;
}
.ui.selection.dropdown .menu > .item{
  font-size:13px !important;
  padding:9px 14px !important;
}
.ui.pagination.menu{
  border:1px solid rgba(255,255,255,.09) !important;
  border-radius:8px !important;
  overflow:hidden;
  background:rgba(8,11,19,.6) !important;
  box-shadow:none !important;
}
.ui.pagination.menu .item{
  min-width:34px !important;
  color:#7E8B9C !important;
  font-family:var(--nf-mono) !important;
  font-size:12px !important;
  border:0 !important;
}
.ui.pagination.menu .active.item{
  background:rgba(77,232,244,.12) !important;
  color:var(--nf-cyan) !important;
}
.ui.pagination.menu .item:hover{background:rgba(255,255,255,.05) !important;color:#fff !important}
.ui.tabular.menu{border-bottom:1px solid rgba(255,255,255,.08) !important}
.ui.tabular.menu .item{
  color:#7E8B9C !important;font-size:13px !important;
  border:0 !important;border-bottom:2px solid transparent !important;
  padding:10px 16px !important;
}
.ui.tabular.menu .active.item{
  color:#EFF3F9 !important;
  border-bottom-color:var(--nf-cyan) !important;
  background:transparent !important;
}

/* ---------- 9. messages / modals ---------- */
.ui.message{
  border-radius:10px !important;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset !important;
}
.ui.modal{border-radius:14px !important}
.ui.modal > .header{
  font-size:16px !important;letter-spacing:.01em !important;
  padding:20px 24px !important;
}
.ui.modal > .content{padding:22px 24px !important}
.ui.modal > .actions{
  padding:16px 24px !important;
  background:rgba(255,255,255,.015) !important;
}

/* ---------- 10. stat numbers ---------- */
.ui.statistic > .value{
  font-family:var(--nf-display) !important;
  letter-spacing:-.02em !important;
  font-variant-numeric:tabular-nums;
}
.ui.statistic > .label{
  font-family:var(--nf-mono) !important;
  font-size:10px !important;letter-spacing:.18em !important;text-transform:uppercase;
}

/* ---------- 11. footer ---------- */
.ui.center.aligned.container > .ui.inverted.menu,
.ui.inverted.menu{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* ---------- 12. small screens ---------- */
@media (max-width:768px){
  .ui.container.main-content{max-width:100% !important;padding:0 12px !important}
  .ui.card > .content{padding:16px !important}
  .dashboard-container{padding:16px 0 0 !important}
}

/* ---------- 13. console ambience (landing keeps its own) ---------- */
body:not(.nf-home)::after{
  background:
    radial-gradient(ellipse 72% 42% at 50% -10%,rgba(77,232,244,.10),transparent 66%),
    radial-gradient(ellipse 56% 48% at 96% 18%,rgba(139,123,255,.075),transparent 72%),
    radial-gradient(ellipse 60% 40% at 4% 62%,rgba(77,232,244,.045),transparent 70%);
}
body:not(.nf-home):not(.nf-login-boost)::before{
  background-size:64px 64px;
  opacity:.5;
  -webkit-mask-image:radial-gradient(ellipse 92% 64% at 50% 0%,#000 18%,transparent 74%);
  mask-image:radial-gradient(ellipse 92% 64% at 50% 0%,#000 18%,transparent 74%);
}

/* rounded cards: a hairline reads better than corner brackets */
body:not(.nf-home):not(.nf-login-boost) .ui.card::before,
body:not(.nf-home):not(.nf-login-boost) .ui.card::after{
  width:auto;height:1px;border:0;border-radius:0;
  left:22px;right:22px;top:0;bottom:auto;
  background:linear-gradient(90deg,transparent,rgba(77,232,244,.42) 26%,rgba(139,123,255,.34) 62%,transparent);
  opacity:.6;
}
body:not(.nf-home):not(.nf-login-boost) .ui.card::after{
  top:auto;bottom:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.10),transparent);
  opacity:.5;
}

/* plotting-paper texture so an empty chart never reads as a void */
body:not(.nf-login-boost) .chart-container{
  background-image:
    radial-gradient(circle at 1px 1px,rgba(255,255,255,.04) 1px,transparent 0),
    linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,0) 62%) !important;
  background-size:34px 34px,100% 100% !important;
}

/* ---------- injected surfaces: auth consent, top-up, settings, empty states
   Kept here rather than inline in the runtime so the theme stays one file. ---- */
.nf-consent{
  margin:14px 2px 0;font-size:11px;line-height:1.7;color:var(--nf-t2);
  text-align:center;
}
.nf-consent a{color:var(--nf-cyan);text-decoration:none;border-bottom:1px solid rgba(0,240,255,.32)}
.nf-consent a:hover{color:#9DFBFF}

.nf-topup-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;margin-top:4px}
.nf-topup-card{
  position:relative;padding:22px 22px 20px;border-radius:14px;
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(160deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
}
.nf-topup-card h3{
  margin:0 0 6px;font-family:var(--nf-display);font-size:15px;font-weight:600;
  letter-spacing:.02em;color:var(--nf-t0);
}
.nf-topup-card p{margin:0 0 16px;font-size:12px;line-height:1.7;color:var(--nf-t2)}
.nf-topup-steps{display:grid;gap:10px;margin:0 0 18px;padding:0;list-style:none;counter-reset:nfstep}
.nf-topup-steps li{
  counter-increment:nfstep;display:flex;gap:10px;align-items:flex-start;
  font-size:12.5px;line-height:1.6;color:var(--nf-t1);
}
.nf-topup-steps li::before{
  content:counter(nfstep);flex:0 0 20px;height:20px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--nf-mono);font-size:10px;color:var(--nf-cyan);
  border:1px solid rgba(0,240,255,.35);background:rgba(0,240,255,.07);
}
.nf-topup-links{display:flex;flex-direction:column;gap:10px;margin-top:2px}
.nf-topup-links a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 14px;border-radius:9px;text-decoration:none;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);
  font-size:12.5px;color:var(--nf-t1);transition:border-color .18s,color .18s;
}
.nf-topup-links a:hover{border-color:rgba(0,240,255,.34);color:var(--nf-t0)}
.nf-topup-links a b{font-weight:500;color:var(--nf-cyan);font-size:11px}

/* redemption card (full-width row under the two columns) */
.nf-topup-wide{grid-column:1/-1}
.nf-topup-redeem{display:flex;gap:10px;max-width:520px}
.nf-topup-redeem input{
  flex:1;min-width:0;background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);border-radius:6px;
  padding:9px 12px;color:var(--nf-t0);font-size:13px;font-family:var(--nf-mono);
}
.nf-topup-redeem input::placeholder{color:var(--nf-t2)}
.nf-topup-redeem input:focus{outline:none;border-color:rgba(0,240,255,.45)}
.nf-topup-redeem button{
  flex:0 0 auto;padding:9px 22px;border:0;border-radius:6px;cursor:pointer;
  background:linear-gradient(135deg,#5CF6FF,#00D9EA 55%,#00B9D6);color:#04121A;
  font-size:12.5px;font-weight:600;letter-spacing:.04em;
}
.nf-topup-redeem button:disabled{opacity:.55;cursor:default}
.nf-redem-msg{margin:10px 0 0;font-size:12px;min-height:1.2em;color:var(--nf-t2)}
.nf-redem-msg.ok{color:#4ade80}
.nf-redem-msg.err{color:#f87171}

.nf-access{margin:6px 0 0}
.nf-access-row{
  display:flex;align-items:center;gap:12px;padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,.07);
}
.nf-access-row:last-child{border-bottom:0}
.nf-access-k{flex:0 0 96px;font-size:11px;letter-spacing:.06em;color:var(--nf-t2);text-transform:uppercase}
.nf-access-v{
  font-family:var(--nf-mono);font-size:12.5px;color:var(--nf-t0);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.nf-access-copy{
  margin-left:auto;flex:0 0 auto;padding:4px 10px;border-radius:6px;cursor:pointer;
  border:1px solid rgba(0,240,255,.26);background:rgba(0,240,255,.06);
  font-size:10.5px;color:var(--nf-cyan);letter-spacing:.04em;
}
.nf-access-copy:hover{background:rgba(0,240,255,.12)}

.nf-empty-hint{
  display:flex;align-items:center;gap:14px;margin:2px 0 0;padding:18px 20px;
  border:1px dashed rgba(255,255,255,.1);border-radius:12px;
  background:rgba(255,255,255,.014);
}
.nf-empty-hint i{
  flex:0 0 auto;width:28px;height:28px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,240,255,.08);border:1px solid rgba(0,240,255,.22);
  color:var(--nf-cyan);font-size:13px;
}
.nf-empty-hint b{display:block;font-size:13px;font-weight:500;color:var(--nf-t0);margin-bottom:3px}
.nf-empty-hint span{font-size:11.5px;line-height:1.6;color:var(--nf-t2)}
.nf-empty-hint a{color:var(--nf-cyan);text-decoration:none;border-bottom:1px solid rgba(0,240,255,.3)}

@media (max-width:860px){
  .nf-topup-grid{grid-template-columns:1fr}
  .nf-access-k{flex-basis:74px}
}

.nf-topup-go{
  display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 18px;
  border-radius:9px;text-decoration:none;font-size:13px;font-weight:700;
  letter-spacing:.03em;color:#04121A !important;
  background:linear-gradient(135deg,#5CF6FF,#00D9EA 55%,#00B9D6);
  box-shadow:0 10px 24px -14px rgba(0,240,255,.9);
}
.nf-topup-go:hover{filter:brightness(1.07)}

/* narrow chart cards: every other tick, otherwise 9px labels still touch */
.chart-container.nf-tick-alt .recharts-xAxis .recharts-cartesian-axis-tick:nth-of-type(2n){display:none}

/* ---------- usage log: the engine renders every value as a loud label ------
   Model name in saturated yellow, channel id in blue, "消费" in yellow again.
   On a customer's own usage page that reads as warning states, so the whole
   table is flattened to one quiet chip style. */
/* .ui.basic.orange.label is four classes deep, so the selector has to repeat
   .ui.label to outrank it — one class short and the label stays white */
[data-nf-route="/log"] table .ui.label.ui.label{
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(255,255,255,.085) !important;
  color:var(--nf-t1) !important;
  box-shadow:none !important;
  font-weight:400 !important;
  border-radius:6px !important;
  padding:2px 6px !important;
}
/* give the two token columns room so their headers stay on one line */
[data-nf-route="/log"] table th:nth-child(1),
[data-nf-route="/log"] table td:nth-child(1){width:168px}
[data-nf-route="/log"] table th:nth-child(7),
[data-nf-route="/log"] table th:nth-child(8),
[data-nf-route="/log"] table td:nth-child(7),
[data-nf-route="/log"] table td:nth-child(8){min-width:84px}
[data-nf-route="/log"] table th{
  font-size:10px !important;line-height:1.45 !important;letter-spacing:0 !important;
}
/* channel id is an operator column; customers get the width for the model name
   (the log table is 时间 / 渠道 / 类型 / 模型 / …, so 渠道 is the second cell) */
body:not(.nf-admin)[data-nf-route="/log"] table th:nth-child(2),
body:not(.nf-admin)[data-nf-route="/log"] table td:nth-child(2){display:none}

/* ---------- mobile: the settings tab strip is wider than a phone ----------
   Five tabs (个人/运营/系统/其他) laid out nowrap pushed the document to 405px
   on a 390px viewport, which widened the fixed ambience layers too. Let the
   strip scroll inside its own box instead of stretching the page. */
@media (max-width:768px){
  .settings-tab.menu,
  .dashboard-container .ui.pointing.secondary.menu{
    display:flex !important;flex-wrap:nowrap !important;
    overflow-x:auto !important;overflow-y:hidden !important;
    max-width:100% !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .settings-tab.menu::-webkit-scrollbar,
  .dashboard-container .ui.pointing.secondary.menu::-webkit-scrollbar{display:none}
  .settings-tab.menu > .item,
  .dashboard-container .ui.pointing.secondary.menu > .item{white-space:nowrap !important;flex:0 0 auto !important}
}

/* ---------- phone menu: float it instead of shoving the page ----------
   The shipped block is an in-flow 552px segment; opening it pushes the page
   down by its own height and leaves the reader at the top of a menu, not at a
   drawer. Fix it under the 52px bar, scroll inside, and drop the duplicate
   language dropdown (our own switch already sits in the bar). */
@media (max-width:768px){
  .nf-mobile-menu.ui.segment{
    position:fixed !important;top:52px !important;left:0 !important;right:0 !important;
    z-index:95 !important;margin:0 !important;
    max-height:calc(100vh - 52px);overflow-y:auto;-webkit-overflow-scrolling:touch;
    background:rgba(7,10,16,.975) !important;
    -webkit-backdrop-filter:blur(20px) saturate(140%);backdrop-filter:blur(20px) saturate(140%);
    border:0 !important;border-bottom:1px solid rgba(255,255,255,.09) !important;
    border-radius:0 0 16px 16px !important;
    box-shadow:0 34px 80px -26px #000;
    padding:6px 0 10px !important;
  }
  .nf-mobile-menu.ui.segment > .ui.secondary.vertical.menu{
    width:100% !important;margin:0 !important;border:0 !important;
    background:transparent !important;box-shadow:none !important;
  }
  .nf-mobile-menu .item{
    height:auto !important;min-height:46px;padding:12px 22px !important;
    font-size:13.5px !important;letter-spacing:.05em !important;
    color:#C2CFE0 !important;border-bottom:1px solid rgba(255,255,255,.045) !important;
  }
  .nf-mobile-menu .item:last-child{border-bottom:0 !important}
  .nf-mobile-menu .item:hover,
  .nf-mobile-menu .item.active{color:#fff !important;background:rgba(255,255,255,.03) !important}
  .nf-mobile-menu .ui.dropdown.nf-lang-native{display:none !important}
}

/* ---------- mobile usage log ----------
   Semantic unstack()s every table below 768px into blocks (three classes deep,
   so it outranks a plain ancestor chain). Pin the table back to real table
   layout with an equal-or-higher selector, trim operator columns, and let the
   rest scroll inside the card. 15px keeps the 19-character title on one line. */
@media (max-width:768px){
  body[data-nf-route="/log"] .dashboard-container table.ui.table{display:table !important;min-width:560px}
  body[data-nf-route="/log"] .dashboard-container table.ui.table > thead{display:table-header-group !important}
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody{display:table-row-group !important}
  body[data-nf-route="/log"] .dashboard-container table.ui.table > thead > tr,
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr{display:table-row !important}
  body[data-nf-route="/log"] .dashboard-container table.ui.table > thead > tr > th,
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr > td{display:table-cell !important;white-space:nowrap}
  body[data-nf-route="/log"] .dashboard-container .chart-card > .content{overflow-x:auto !important;-webkit-overflow-scrolling:touch}
  body[data-nf-route="/log"] .dashboard-container table.ui.table > thead > tr > th:nth-child(2),
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr > td:nth-child(2),
  body[data-nf-route="/log"] .dashboard-container table.ui.table > thead > tr > th:nth-child(3),
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr > td:nth-child(3),
  body[data-nf-route="/log"] .dashboard-container table.ui.table > thead > tr > th:nth-child(5),
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr > td:nth-child(5),
  body[data-nf-route="/log"] .dashboard-container table.ui.table > thead > tr > th:nth-child(6),
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr > td:nth-child(6){display:none !important}
  body[data-nf-route="/log"] .dashboard-container table.ui.table > thead > tr > th:nth-child(1),
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr > td:nth-child(1){width:118px !important}
  body:not(.nf-login-boost)[data-nf-route="/log"] .ui.card > .content > .header{font-size:15px !important;line-height:1.4 !important}
}

/* the model chip is the widest cell; let it wrap so the token columns are one
   short swipe away instead of two */
@media (max-width:768px){
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr > td:nth-child(4){white-space:normal !important;max-width:148px}
  body[data-nf-route="/log"] .dashboard-container table.ui.table > tbody > tr > td:nth-child(4) .ui.label{white-space:normal !important}
}

/* an empty chart kept its full 334px plot box, which reads as a broken panel;
   collapse the plot area and let the centred "暂无调用" line carry the card */
.chart-container.nf-flat{height:150px !important}

/* ---------- 14. breathing room (v40): CJK ink hugs tight boxes ----------
   Measured 2026-11-22: first table column sat flush on the panel border
   (th/td padding-left was 0), and 11px chips had 4.4px vertical padding
   with an 11px line box, so CJK glyphs visually touched the border. */
.ui.table thead th,
.ui.table tbody td{padding-left:12px !important;padding-right:12px !important}
.ui.label{padding-top:7px !important;padding-bottom:7px !important;line-height:1.4 !important}

/* ---------- 15. one nav everywhere (v41) ----------
   The console bar carried icons while the price page and the pay panel ship
   text-only rows, and nothing marked the current page — three bars that
   never matched. Text-only + one pill highlight, matching their .on style. */
.ui.borderless.menu .ui.container a.item > i.icon:not(.sidebar):not(.close){display:none !important}
.ui.borderless.menu .ui.container a.item.nf-now{
  color:#4DE8F4 !important;background:rgba(77,232,244,.09) !important;border-radius:8px}
/* ---------- 16. paint-time nav order (v42) ----------
   arrangeNav moves DOM nodes a tick after React paints the shipped order,
   so a hard load flashes the wrong sequence. Attribute-selectored flex
   `order` puts every item in its slot at first paint; arrangeNav stays
   as the role filter, not the orderer. */
.ui.borderless.menu .ui.container > .right.menu{order:99}
.ui.borderless.menu .ui.container > a.item[href="/dashboard"]{order:2}
.ui.borderless.menu .ui.container > a.item[href="/token"]{order:3}
.ui.borderless.menu .ui.container > a.item[href="/log"]{order:4}
.ui.borderless.menu .ui.container > a.item[href="/topup"]{order:5}
.ui.borderless.menu .ui.container > a.item[href="/redemption"]{order:6}
.ui.borderless.menu .ui.container > a.item[href="/channel"]{order:7}
.ui.borderless.menu .ui.container > a.item[href="/user"]{order:8}
.ui.borderless.menu .ui.container > a.item[href="/setting"]{order:9}
.ui.borderless.menu .ui.container > a.item[href="/pricing"]{order:10}
.ui.borderless.menu .ui.container > a.item[href="/pay/admin"]{order:11}

/* ---------- 17. mobile breathing room + tap targets (v46) ----------
   A full-site sweep at 390px found the log table's stacked header cells at
   2.5px vertical padding, 22px language/footer links and 16px auth links.
   Everything interactive gets a >=32px hit area on narrow screens. */
@media (max-width:768px){
  /* Semantic stacks tables with .ui.table:not(.unstackable) tr>th{padding:.25em
     .75em!important}; outrank it, otherwise the header stays at 2.5px */
  body[data-nf-route="/log"] .ui.table:not(.unstackable) tr > th,
  body[data-nf-route="/log"] .ui.table:not(.unstackable) tr > td{padding:6px 8px !important}
  /* inline text links only: Semantic <a class="ui button"> must keep its own
     padding or the label hugs the border again */
  .ui.container.main-content a[href]:not([class*="button"]):not([class*="btn"]):not(.nf-cta-ghost):not(.nf-access-copy){
    min-height:32px !important;display:inline-flex !important;align-items:center !important;
    padding:4px 2px !important;
  }
  .nf-access-copy,.nf-cta-ghost{
    min-height:32px !important;display:inline-flex !important;align-items:center !important;
    padding:4px 8px !important;
  }
  .nf-lang button{min-height:32px !important;height:32px !important;line-height:32px !important;min-width:34px !important;padding:0 8px !important}
  .nf-footer-link{min-height:32px !important;display:inline-flex !important;align-items:center !important;padding:0 4px !important}
  body.nf-login-boost a[href]{min-height:32px !important;display:inline-flex !important;align-items:center !important;padding:4px 2px !important}
}

/* the log filter shipped 13px while every other console input is 14px */
body[data-nf-route="/log"] input[type=text]{font-size:14px !important}
