:root {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --separator: rgba(84, 84, 88, 0.6);
  --label: #ffffff;
  --secondary: rgba(235, 235, 245, 0.6);
  --tertiary: rgba(235, 235, 245, 0.3);
  --blue: #0a84ff;
  --gold: #f7c948;
  --green: #30d158;
  --red: #ff453a;
  --violet: #bf5af2;
  --mola: cubic-bezier(0.42, 1.67, 0.21, 0.9);
  --mola-press: 200ms;
  --mola-solta: 400ms;
  --sheet-ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.3 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
body.is-booting > :not(.sprite) { visibility: hidden; }
.sprite { position: absolute; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: 0.48; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 10px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.bolha { --bolha-x: 1.16; position: relative; isolation: isolate; transition: scale var(--mola-solta) var(--mola); }
.bolha-larga { --bolha-x: 1.04; }
.bolha:not(:disabled):active { scale: var(--bolha-x) 1; transition-duration: var(--mola-press); }
.bolha::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; z-index: -1; pointer-events: none; transition: opacity 150ms; }
@media (hover: hover) { .bolha:not(:disabled):hover::before { opacity: 0.08; } }
.bolha > .bolha-miolo { display: inline-flex; align-items: center; justify-content: center; gap: inherit; flex-direction: inherit; transform-origin: 50% 70%; transition: scale var(--mola-solta) var(--mola); }
.bolha:not(:disabled):active > .bolha-miolo { scale: 0.95; transition-duration: var(--mola-press); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 14px; background: var(--surface-2); font-weight: 600; }
.btn-full { width: 100%; }
.btn-primary { background: var(--blue); }
.btn-gold { background: linear-gradient(180deg, #ffe48a, var(--gold) 55%, #d99a1c); color: #2a1c00; }
.btn-danger { color: var(--red); }
.btn-sm { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 15px; }
.btn[aria-busy="true"] > .bolha-miolo { visibility: hidden; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--blue); }
.icon-btn > .bolha-miolo { display: grid; place-items: center; }

.group-title { margin: 28px 16px 7px; font-size: 13px; font-weight: 400; color: var(--secondary); letter-spacing: 0; }
.group { display: block; border-radius: 12px; background: var(--surface); overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: var(--inset, 16px); right: 0; border-top: 0.5px solid var(--separator); }
.row-label { flex: 1; min-width: 0; }
.row-value { color: var(--secondary); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row-value.up { color: var(--green); }
.row-value.down { color: var(--red); }
.row-value.gold { color: var(--gold); }
.chevron { width: 14px; height: 14px; color: var(--tertiary); stroke-width: 2.4; }
.group-link .row-value { color: var(--secondary); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.dot.ok { background: var(--green); }
.meter { flex: 1.4; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }
.meter .w { background: var(--green); }
.meter .l { background: var(--red); }
.meter .b { background: var(--blue); border-radius: 3px; }

.row-input { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; }
.row-input + .row-input::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator); }
.row-input span { width: 92px; flex: none; }
.row-input input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; color: var(--label); font: inherit; outline: none; font-variant-numeric: tabular-nums; }
.row-input input::placeholder { color: var(--tertiary); }
input:-webkit-autofill, input:autofill { -webkit-text-fill-color: var(--label); caret-color: var(--label); -webkit-background-clip: text; background-clip: text; animation: autofill-on 1ms; }
@keyframes autofill-on { from { caret-color: var(--label); } }
.row-input:focus-within span { color: var(--blue); }
.form-error { min-height: 20px; margin: 8px 16px 12px; font-size: 13px; color: var(--red); }
.note { margin: 10px 16px; font-size: 13px; color: var(--secondary); }
.center { text-align: center; padding: 30px 0; }

.login { max-width: 400px; margin: 0 auto; padding: max(14vh, 60px) 20px 40px; display: flex; flex-direction: column; }
.login-crown { width: 64px; height: 52px; align-self: center; filter: drop-shadow(0 8px 24px rgba(247, 201, 72, 0.35)); }
.login h1 { margin: 18px 0 30px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 22px 12px; background: #0d0d0e; border-right: 0.5px solid var(--separator); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 22px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.side-brand svg { width: 32px; height: 26px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; color: var(--secondary); }
.nav-item svg { color: var(--blue); }
.nav-item.active { background: var(--blue); color: #fff; }
.nav-item.active svg { color: #fff; }
.side-logout { margin-top: auto; justify-content: flex-start; width: 100%; }
.side-logout > .bolha-miolo { gap: 12px; }
.side-logout svg { color: var(--secondary); }

.content { padding: 24px 40px 80px; width: 100%; max-width: 1320px; margin: 0 auto; }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 0 32px; align-items: start; }
.span-all { grid-column: 1 / -1; }
.block { min-width: 0; }
#view-resumo .block .group-title { margin-top: 24px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 0 0 14px; }
.bar h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.025em; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--secondary); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.live.off::before { background: var(--red); }

.candles-card { padding: 18px 18px 14px; border-radius: 16px; background: var(--surface); }
.candles-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-value { display: block; font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-label { display: block; margin-top: 6px; font-size: 15px; color: var(--secondary); }
.hero-side { font-size: 13px; color: var(--secondary); text-align: right; font-variant-numeric: tabular-nums; }
.candles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 150px; margin-top: 18px; align-items: end; }
.candle { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.candle-body { position: relative; width: min(22px, 70%); display: flex; flex-direction: column; border-radius: 5px; overflow: hidden; background: var(--surface-2); min-height: 4px; transform-origin: bottom; animation: rise 0.7s var(--sheet-ease) backwards; transition: height 0.5s var(--sheet-ease); }
.candle-body .l { transition: height 0.5s var(--sheet-ease); }
.candle-body .l { background: var(--red); }
.candle-body .w { background: var(--green); flex: 1; }
.candle span { font-size: 11px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.candle.today span { color: var(--label); font-weight: 600; }
@keyframes rise { from { scale: 1 0; } }

.search { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px; background: var(--surface); color: var(--secondary); }
.search svg { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--label); font: inherit; outline: none; }
.search input::placeholder { color: var(--secondary); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }

.segmented { display: flex; gap: 2px; margin: 12px 0 16px; padding: 2px; border-radius: 9px; background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.seg { flex: 1 0 auto; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--label); }
.seg[aria-checked="true"] { background: #636366; font-weight: 600; }
.seg em { font-style: normal; margin-left: 4px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.seg[aria-checked="true"] em { color: rgba(255, 255, 255, 0.75); }

.user-list { --inset: 68px; }
.user { width: 100%; text-align: left; cursor: pointer; min-height: 64px; }
@media (hover: hover) { .user:hover { background: rgba(255, 255, 255, 0.03); } }
.user:active { background: rgba(255, 255, 255, 0.06); }
.avatar { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--secondary); font-weight: 600; text-transform: uppercase; flex: none; }
.avatar svg { position: absolute; top: -5px; right: -6px; width: 18px; height: 15px; rotate: 18deg; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.avatar.is-gold { background: rgba(247, 201, 72, 0.16); color: var(--gold); }
.ucol { display: none; font-size: 15px; color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-cols { display: none; }
@media (min-width: 1100px) {
  #users .user, .user-cols { display: grid; grid-template-columns: 40px minmax(0, 2fr) minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)) 100px 14px; gap: 14px; }
  .user-cols { padding: 0 16px 8px; font-size: 13px; color: var(--secondary); }
  .user-cols span:first-child { grid-column: 1 / 3; }
  .user-cols span:nth-child(7) { grid-column: 8 / 10; text-align: right; padding-right: 28px; }
  .user .camp { justify-self: start; }
  .ucol { display: block; }
  .user .tag { text-align: right; }
  .user .auto-dot { display: none; }
}
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.who strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { font-size: 13px; color: var(--secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag { font-size: 13px; color: var(--secondary); white-space: nowrap; }
.tag.vip { color: var(--gold); }
.tag.granted { color: var(--violet); }
.tag.pending { color: var(--blue); }
.tag.foreign { color: var(--red); }
.auto-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

.detail-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 18px; text-align: center; }
.detail-head .avatar { width: 72px; height: 72px; font-size: 28px; }
.detail-head .avatar svg { top: -8px; right: -10px; width: 32px; height: 26px; }
.detail-head h3 { margin: 6px 0 0; font-size: 20px; font-weight: 600; word-break: break-all; }
.copy-id { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 15px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.copy-id svg { width: 15px; height: 15px; }
.detail-actions { margin-top: 18px; }

.tabbar { display: none; }

.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 22px 16px max(22px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #111113; translate: 0 calc(100% + 80px); transition: translate 0.38s var(--sheet-ease); }
.sheet.open { translate: 0 0; }
.sheet-body { max-width: 560px; margin: 0 auto; max-height: 78vh; overflow-y: auto; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet h3 { margin: 0 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.close { position: absolute; top: -58px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); }
.close > .bolha-miolo { display: grid; place-items: center; }

.dialog { position: fixed; left: 50%; top: 50%; z-index: 30; width: min(320px, calc(100vw - 40px)); padding: 20px 16px 16px; border-radius: 16px; background: #2c2c2e; text-align: center; translate: -50% -50%; scale: 1.1; opacity: 0; pointer-events: none; transition: opacity 0.2s, scale 0.25s var(--sheet-ease); }
.dialog.open { opacity: 1; scale: 1; pointer-events: auto; }
.dialog h3 { margin: 0; font-size: 17px; font-weight: 600; word-break: break-word; }
.dialog p { margin: 6px 0 18px; font-size: 13px; color: var(--secondary); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog .btn { height: 44px; background: #3a3a3c; }

.toast { position: fixed; left: 50%; top: max(16px, env(safe-area-inset-top)); z-index: 40; padding: 10px 18px; border-radius: 999px; background: #2c2c2e; font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); translate: -50% -80px; transition: translate 0.4s var(--mola); pointer-events: none; }
.toast.show { translate: -50% 0; }

@media (max-width: 820px) {
  .shell { display: block; }
  .side { display: none; }
  .content { padding: max(14px, env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 0 max(6px, env(safe-area-inset-bottom)); background: rgba(22, 22, 24, 0.82); backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8); border-top: 0.5px solid var(--separator); }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 10px; font-weight: 500; color: #8e8e93; }
  .tab.active { color: var(--blue); }
  .hero-value { font-size: 44px; }
  .candles { height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .bolha, .bolha > .bolha-miolo, .sheet, .dialog, .backdrop, .toast, .candle-body { transition: none; animation: none; }
  .bolha:active, .bolha:active > .bolha-miolo { scale: none; }
}

.row-area { align-items: flex-start; }
.row-area span { padding-top: 15px; }
.row-input textarea { flex: 1; min-width: 0; min-height: 84px; padding: 14px 0; border: 0; background: none; color: var(--label); font: inherit; line-height: 1.35; outline: none; resize: none; }
.row-input textarea::placeholder { color: var(--tertiary); }
.row-input span.wide { width: auto; flex: 1; }
.num-right { text-align: right; }
#pushForm .note { text-align: right; margin-bottom: 14px; }

.push-preview { display: flex; gap: 12px; padding: 14px; border-radius: 22px; background: rgba(60, 60, 64, 0.72); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); }
.push-preview img { border-radius: 9px; flex: none; }
.push-preview > div { flex: 1; min-width: 0; font-size: 15px; }
.push-preview-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--secondary); margin-bottom: 2px; }
.push-preview-head strong { color: var(--secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; font-size: 12px; }
.push-preview > div > strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.push-preview p { margin: 2px 0 0; overflow-wrap: anywhere; }

.tier-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 16px; }
.tier-row + .tier-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator); }
.tier-row label { display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 15px; white-space: nowrap; }
.tier-row input { width: 72px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--label); font: inherit; text-align: right; outline: none; font-variant-numeric: tabular-nums; }
.tier-row input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.tier-row input:disabled { opacity: 0.4; }
.tier-row .grow { flex: 1; }
.tier-row .short { display: none; }
.infinite { height: 36px; padding: 0 12px; border-radius: 9px; background: var(--surface-2); color: var(--secondary); font-size: 15px; font-weight: 600; }
.infinite[aria-pressed="true"] { background: var(--gold); color: #2a1c00; }
.tier-remove { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--red); }
.tier-remove > .bolha-miolo { display: grid; place-items: center; }
.tier-remove svg { width: 18px; height: 18px; }
.add-tier { margin-top: 10px; height: 44px; color: var(--blue); background: var(--surface); }
.add-tier > .bolha-miolo { gap: 6px; }
.add-tier svg { width: 18px; height: 18px; }
.dialog .btn-primary { background: var(--blue); }

@media (max-width: 820px) {
  .tabbar { grid-template-columns: repeat(7, 1fr); }
  .tier-row .long { display: none; }
  .tier-row .short { display: inline; }
}

.back-link { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-size: 17px; }
.back-link svg { width: 22px; height: 22px; }
.segmented.inline { margin: 0; flex: 1; }
.switch-row .switch { appearance: none; position: relative; width: 51px; height: 31px; margin: 0; border-radius: 999px; background: #39393d; cursor: pointer; transition: background 0.2s; flex: none; }
.switch-row .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: translate 0.25s var(--sheet-ease); }
.switch-row .switch:checked { background: var(--green); }
.switch-row .switch:checked::after { translate: 20px 0; }
.editor { border-radius: 12px; background: var(--surface); overflow: hidden; }
.toolbar { display: flex; gap: 2px; padding: 6px; border-bottom: 0.5px solid var(--separator); overflow-x: auto; scrollbar-width: none; }
.tool { display: grid; place-items: center; min-width: 38px; height: 34px; padding: 0 8px; border-radius: 8px; font-size: 15px; color: var(--label); }
.tool > .bolha-miolo { display: grid; place-items: center; }
.tool svg { width: 19px; height: 19px; }
.tool[aria-busy="true"] { opacity: 0.5; }
#guideMarkdown { display: block; width: 100%; min-height: 52vh; padding: 14px 16px; border: 0; background: none; color: var(--label); font: 15px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; resize: vertical; outline: none; }
#guideMarkdown::placeholder { color: var(--tertiary); }
.guide-preview { min-height: 52vh; padding: 18px 20px; border-radius: 12px; background: var(--surface); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.guide-preview > :first-child { margin-top: 0; }
.guide-preview :is(h1, h2, h3) { margin: 1.3em 0 0.4em; line-height: 1.2; }
.guide-preview p { margin: 0 0 0.9em; }
.guide-preview a { color: var(--blue); }
.guide-preview img { display: block; max-width: 100%; height: auto; margin: 1em 0; border-radius: 14px; }
.guide-preview blockquote { margin: 0 0 0.9em; padding: 2px 0 2px 14px; border-left: 3px solid var(--blue); color: var(--secondary); }
.guide-preview code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: 0.9em; }
#guideCount { text-align: right; margin-bottom: 14px; }
.cover-thumb { width: 56px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }

.group-head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 28px; }
.group-head .group-title { margin-top: 0; }
.group-head .icon-btn { margin: 0 4px 6px 0; }
.key-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.key-chip { height: 30px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); color: var(--blue); font-size: 13px; font-weight: 600; }
.key-chip small { margin-left: 6px; color: var(--secondary); font-weight: 400; }
.days { display: flex; gap: 4px; flex: 1; justify-content: flex-end; }
.day { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--secondary); font-size: 13px; font-weight: 600; }
.day[aria-pressed="true"] { background: var(--blue); color: #fff; }
.sheet-secondary { margin-top: 10px; background: var(--surface); }
.sheet .group-title { margin: 18px 4px 7px; }
.sheet .segmented { margin: 0 0 14px; }
.sheet .key-chips { margin-top: 10px; }
input[type="time"] { color-scheme: dark; }
.row-sub { display: block; font-size: 13px; color: var(--secondary); margin-top: 2px; }
.row-main { flex: 1; min-width: 0; }
.row-main strong { font-weight: 400; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-time { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; width: 70px; flex: none; }
.row.is-off .row-time, .row.is-off .row-main { opacity: 0.45; }
button.row { width: 100%; text-align: left; cursor: pointer; }
@media (hover: hover) { button.row:hover { background: rgba(255, 255, 255, 0.03); } }
.guide-section { margin: 14px 0; padding: 16px 16px 6px; border-radius: 18px; background: var(--surface-2); }
.guide-section > h2:first-child { margin-top: 0; }

.maint-group .switch:checked { background: var(--red); }
.maint-group + .note { margin-bottom: 8px; }

.link-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--blue); flex: none; }
.link-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.link-preview { display: flex; width: 100%; margin: 12px 0 4px; padding: 12px 16px; border-radius: 12px; background: var(--surface); color: var(--blue); font-size: 15px; }
.link-preview > .bolha-miolo { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; }
.link-preview #linkUrl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-preview svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.link-preview:disabled { color: var(--tertiary); }

.detail-stats { margin-top: 22px; }
.pnl-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 18px 0 10px; }
.pnl-total { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pnl-total.up { color: var(--green); }
.pnl-total.down { color: var(--red); }
.pnl-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; height: 72px; margin: 6px 0 16px; padding: 0 4px; background: linear-gradient(var(--separator), var(--separator)) 0 50% / 100% 0.5px no-repeat; }
.pnl-bar { position: relative; }
.pnl-bar i { position: absolute; left: 15%; right: 15%; border-radius: 3px; transition: height 0.5s var(--sheet-ease); }
.pnl-bar.up i { bottom: 50%; background: var(--green); }
.pnl-bar.down i { top: 50%; background: var(--red); }

.camp { --hue: 210; display: inline-block; max-width: 120px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: hsl(var(--hue) 90% 74%); background: hsl(var(--hue) 70% 50% / 0.16); box-shadow: inset 0 0 0 0.5px hsl(var(--hue) 80% 65% / 0.35); flex: none; }
.camp-none { color: var(--tertiary); background: none; box-shadow: none; padding: 3px 0; }
@media (max-width: 1099px) {
  .user .camp { max-width: 96px; }
  .user .camp-none { display: none; }
}
.link-cols { display: none; }
@media (min-width: 1100px) {
  .link-row, .link-cols { display: grid; grid-template-columns: 36px minmax(0, 1.6fr) minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr)) 14px; gap: 14px; align-items: center; }
  .link-cols { padding: 0 16px 8px; font-size: 13px; color: var(--secondary); }
  .link-cols span:first-child { grid-column: 1 / 3; }
  .link-cols span:nth-child(n+3) { text-align: right; }
  .link-row .who small { display: none; }
  .link-row .num { text-align: right; }
  .avisos-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}
.avisos-grid .group-head:first-child { margin-top: 0; }
@media (min-width: 900px) {
  #userSheet .sheet-body { max-width: 980px; }
  .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .detail-grid .detail-stats { margin-top: 0; }
  .detail-grid .pnl-hero { margin-top: 10px; }
}
