/* FSA Cloud — painel web */
:root {
  --accent: #1a968d;      /* verde-água FSA (escurecido para contraste em botões) */
  --accent-2: #4fd1c5;
  --brand-navy: #193b54;
  --brand-teal: #20a99f;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --text: #f4f5fb;
  --muted: #a3a8c3;
  --faint: #6b7092;
  --glass: rgba(18, 20, 34, 0.62);
  --glass-strong: rgba(16, 18, 30, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: #08131c;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); }
a.btn { text-decoration: none; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------------------------------------------------------- papel de parede */
#wallpaper { position: fixed; inset: 0; z-index: 0; transition: background 0.6s; }
.wp-fsa      { background: radial-gradient(65% 85% at 12% 8%, #1f5a80 0%, transparent 60%), radial-gradient(55% 65% at 88% 18%, #11706a 0%, transparent 60%), radial-gradient(70% 70% at 55% 105%, #193b54 0%, transparent 65%), #07121b; }
.wp-aurora   { background: radial-gradient(60% 80% at 15% 10%, #3b2a8f 0%, transparent 60%), radial-gradient(50% 60% at 85% 20%, #0f766e 0%, transparent 60%), radial-gradient(70% 70% at 60% 100%, #7c1d6f 0%, transparent 60%), #0b0d18; }
.wp-oceano   { background: radial-gradient(70% 80% at 20% 0%, #1e40af 0%, transparent 60%), radial-gradient(60% 70% at 90% 90%, #0e7490 0%, transparent 60%), #06101f; }
.wp-por-do-sol { background: radial-gradient(70% 80% at 80% 0%, #c2410c 0%, transparent 55%), radial-gradient(70% 80% at 10% 90%, #9d174d 0%, transparent 60%), #1a0b14; }
.wp-floresta { background: radial-gradient(70% 80% at 10% 10%, #166534 0%, transparent 60%), radial-gradient(60% 70% at 90% 80%, #3f6212 0%, transparent 60%), #08130c; }
.wp-grafite  { background: radial-gradient(80% 80% at 50% 0%, #374151 0%, transparent 70%), #0c0d10; }
#wallpaper::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); pointer-events: none; }

#root { position: relative; z-index: 1; height: 100%; }

/* ---------------------------------------------------------- utilitários */
.glass { background: var(--glass); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); border: 1px solid var(--line); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hidden { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { display: grid; place-items: center; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 17px; }
h3 { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.06); }

/* ---------------------------------------------------------- botões e campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.07); cursor: pointer; white-space: nowrap; font-weight: 550;
  transition: background .15s, transform .1s, border-color .15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--accent); border-color: transparent; color: white; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn.danger { color: #fecaca; border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .12); }
.btn.danger:hover { background: rgba(248, 113, 113, .22); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.sm { height: 29px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 34px; padding: 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.field small { color: var(--faint); font-size: 12px; }
.input, select.input, textarea.input {
  height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25); outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
select.input option { background: #1a1c2b; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* switch */
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.18); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(17px); }

/* ---------------------------------------------------------- etiquetas */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.08); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { color: var(--ok); background: rgba(52, 211, 153, .12); }
.badge.warn { color: var(--warn); background: rgba(251, 191, 36, .12); }
.badge.bad { color: var(--bad); background: rgba(248, 113, 113, .12); }
.badge.idle { color: var(--muted); }
.badge.live::before { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------------------------------------------------------- login */
.login-wrap { height: 100%; display: grid; place-items: center; padding: 20px; }
.login { width: min(380px, 100%); padding: 34px 30px 30px; border-radius: 26px; box-shadow: var(--shadow); text-align: center; }
.login .logo { width: 76px; height: 76px; margin: 0 auto 16px; }
.login .logo .logo-tile { width: 76px; height: 76px; border-radius: 20px; padding: 8px; }
.login h1 { font-size: 22px; margin-bottom: 4px; }
.login form { margin-top: 24px; text-align: left; }
.login .error { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ---------------------------------------------------------- área de trabalho */
.desktop { height: 100%; display: flex; flex-direction: column; overflow-y: auto; padding: 0 22px 120px; scrollbar-width: none; }
.desktop::-webkit-scrollbar { display: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand .logo-tile { width: 32px; height: 32px; border-radius: 9px; padding: 3px; }
.search-pill { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 14px; border-radius: 99px; cursor: pointer; color: var(--muted); min-width: 230px; }
.search-pill:hover { color: var(--text); }
.greeting { text-align: center; margin: 38px 0 26px; }
.greeting h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.greeting p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; max-width: 1060px; width: 100%; margin: 0 auto; }
.widget { border-radius: var(--radius); padding: 16px 18px; min-height: 128px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .2s, background .2s; }
.widget:hover { transform: translateY(-2px); background: rgba(24, 26, 44, .7); }
.widget .w-title { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.widget .w-big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.widget .w-big small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s ease; }
.meter.ok > i { background: var(--ok); } .meter.warn > i { background: var(--warn); } .meter.bad > i { background: var(--bad); }
.w-rows { display: flex; flex-direction: column; gap: 9px; }
.w-row { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; }
.w-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.section-title { max-width: 1060px; width: 100%; margin: 34px auto 12px; display: flex; align-items: baseline; justify-content: space-between; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 22px 12px; max-width: 1060px; width: 100%; margin: 0 auto; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 9px; cursor: pointer; padding: 8px 4px; border-radius: 16px; transition: background .15s; position: relative; user-select: none; }
.app-tile:hover { background: rgba(255,255,255,.06); }
.app-tile .label { font-size: 12.5px; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.app-tile .dot { position: absolute; top: 8px; right: calc(50% - 38px); width: 11px; height: 11px; border-radius: 50%; border: 2px solid #12142a; }
.app-icon { width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.18); position: relative; overflow: hidden; }
.app-icon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 45%); }
.app-icon svg { width: 34px; height: 34px; color: white; position: relative; z-index: 1; }
.app-icon.sm { width: 40px; height: 40px; border-radius: 11px; font-size: 20px; }
.app-icon.sm svg { width: 21px; height: 21px; }
.app-icon.lg { width: 76px; height: 76px; border-radius: 21px; font-size: 38px; }

/* dock */
.dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; border-radius: 24px; z-index: 20; box-shadow: var(--shadow); max-width: calc(100vw - 20px); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.dock-item { position: relative; cursor: pointer; transition: transform .18s cubic-bezier(.3,.7,.4,1.4); transform-origin: bottom center; flex: none; }
.dock-item .app-icon { width: 50px; height: 50px; border-radius: 14px; font-size: 24px; }
.dock-item .app-icon svg { width: 25px; height: 25px; }
.dock-item:hover { transform: scale(1.22) translateY(-4px); }
.dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover) { transform: scale(1.09) translateY(-2px); }
.dock-item .tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: var(--glass-strong); font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; border: 1px solid var(--line); }
.dock-item:hover .tip { opacity: 1; }
.dock-item.active::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: white; }
.dock-sep { width: 1px; height: 40px; background: var(--line-strong); margin: 0 4px 5px; flex: none; }
@media (max-width: 700px) { .dock-item .app-icon { width: 42px; height: 42px; } .dock-item:hover { transform: none; } }

/* ---------------------------------------------------------- janelas (apps) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(5, 6, 14, .45); backdrop-filter: blur(6px); animation: fade .2s; }
.sheet { position: fixed; z-index: 31; inset: 22px 22px 90px; max-width: 1240px; margin: 0 auto; border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; background: var(--glass-strong); backdrop-filter: blur(34px) saturate(150%); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: rise .28s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 700px) { .sheet { inset: 0 0 74px; border-radius: 0 0 22px 22px; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 13px; padding: 16px 18px 14px 20px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-head h2 { font-size: 18px; }
.sheet-head .tabs { margin-left: 18px; }
.sheet-body { flex: 1; overflow: auto; padding: 20px 22px 28px; }
.sheet-body.flush { padding: 0; }

/* abas */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.05); overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 30px; padding: 0 13px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.tabs button.on { background: rgba(255,255,255,.12); color: var(--text); }
@media (max-width: 800px) { .sheet-head { flex-wrap: wrap; } .sheet-head .head-extra { order: 5; width: 100%; } .sheet-head .tabs { margin: 6px 0 0; } .sheet-head .head-actions { order: 6; width: 100%; justify-content: flex-end; margin-top: 6px; } .sheet-head .head-actions:empty { display: none; } }

/* cartões e tabelas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.pad-sm { padding: 13px 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 650; padding: 0 12px 9px; }
.table td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: rgba(255,255,255,.035); }
.table .actions { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--faint); }
.copy:hover { color: var(--accent-2); }
.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.08); color: #fde68a; font-size: 13px; line-height: 1.5; }
.notice.info { border-color: rgba(109,124,255,.35); background: rgba(109,124,255,.09); color: #c7cdff; }
pre.log { margin: 0; padding: 14px; border-radius: 12px; background: rgba(0,0,0,.4); font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; max-height: 60vh; overflow: auto; }

/* ---------------------------------------------------------- modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 12, .55); backdrop-filter: blur(4px); animation: fade .15s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 22px; background: var(--glass-strong); backdrop-filter: blur(30px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: rise .2s cubic-bezier(.2,.8,.2,1); }
.modal.wide { width: min(860px, 100%); }
.modal-head { padding: 20px 22px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-body { padding: 12px 22px; overflow: auto; }
.modal-foot { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }

/* toasts */
#toasts { position: fixed; top: 16px; right: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 15px; border-radius: 13px; background: var(--glass-strong); backdrop-filter: blur(20px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); max-width: 360px; font-size: 13.5px; animation: slidein .25s; display: flex; gap: 9px; }
.toast.err { border-color: rgba(248,113,113,.45); }
.toast.ok { border-color: rgba(52,211,153,.4); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

/* menu de contexto */
.ctx { position: fixed; z-index: 70; min-width: 190px; padding: 6px; border-radius: 13px; background: var(--glass-strong); backdrop-filter: blur(24px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: fade .1s; }
.ctx button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; font-size: 13.5px; }
.ctx button:hover { background: rgba(255,255,255,.09); }
.ctx button.danger { color: #fca5a5; }
.ctx hr { margin: 5px 4px; }

/* busca (Ctrl+K) */
.spot-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(4,5,12,.5); backdrop-filter: blur(5px); animation: fade .12s; }
.spot { position: fixed; z-index: 81; top: 12vh; left: 50%; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); border-radius: 20px; background: var(--glass-strong); backdrop-filter: blur(30px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden; animation: rise .18s; }
.spot input { width: 100%; height: 58px; padding: 0 22px; border: 0; background: transparent; outline: none; font-size: 17px; border-bottom: 1px solid var(--line); }
.spot-list { max-height: 52vh; overflow: auto; padding: 6px; }
.spot-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.spot-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; cursor: pointer; }
.spot-item.on { background: rgba(255,255,255,.09); }
.spot-item .app-icon { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; }
.spot-item .app-icon svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------- câmeras */
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.cam-grid.cols-1 { grid-template-columns: 1fr; }
.cam-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cam-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .cam-grid.cols-2, .cam-grid.cols-3 { grid-template-columns: 1fr; } }
.cam { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16/9; border: 1px solid var(--line); cursor: pointer; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.cam .cam-top { position: absolute; left: 0; right: 0; top: 0; padding: 10px 12px 18px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(rgba(0,0,0,.75), transparent); font-weight: 600; font-size: 13px; text-shadow: 0 1px 4px #000; }
.cam .badge { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); text-shadow: none; }
.cam .cam-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
.cam .rec { position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 700; color: #fecaca; display: flex; align-items: center; gap: 5px; text-shadow: 0 1px 4px #000; }
.cam .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.6s infinite; }
.player { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.player video { width: 100%; height: 100%; object-fit: contain; display: block; }
.cam-detail { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
@media (max-width: 980px) { .cam-detail { grid-template-columns: 1fr; } }
.timeline { position: relative; height: 46px; border-radius: 10px; background: rgba(255,255,255,.05); overflow: hidden; cursor: pointer; }
.timeline .seg { position: absolute; top: 12px; bottom: 12px; background: color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 3px; }
.timeline .seg.on { background: var(--ok); }
.timeline .hours { position: absolute; inset: auto 0 2px 0; display: flex; justify-content: space-between; font-size: 9.5px; color: var(--faint); padding: 0 4px; pointer-events: none; }
.timeline .cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: white; pointer-events: none; }
.seg-list { max-height: 340px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.seg-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.seg-item:hover { background: rgba(255,255,255,.06); }
.seg-item.on { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------------------------------------------------------- arquivos */
.crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.crumbs button { border: 0; background: transparent; cursor: pointer; padding: 5px 8px; border-radius: 7px; color: var(--muted); font-weight: 600; }
.crumbs button:hover { background: rgba(255,255,255,.07); color: var(--text); }
.crumbs button:last-child { color: var(--text); }
.file-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.06); flex: none; }
.drop-zone { position: relative; min-height: 300px; border-radius: 16px; transition: background .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: -2px; }
.drop-zone.over { background: rgba(109,124,255,.08); outline-color: var(--accent); }
.progress-list { display: flex; flex-direction: column; gap: 8px; }

/* loja */
.store-hero { border-radius: 22px; padding: 26px; background: linear-gradient(120deg, rgba(32,169,159,.32), rgba(25,59,84,.55)); border: 1px solid var(--line); margin-bottom: 20px; }
.store-hero h1 { font-size: 26px; }
.store-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: background .15s, transform .15s; }
.store-card:hover { background: var(--card-hover); transform: translateY(-1px); }
.store-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* gráficos do monitor */
.spark { width: 100%; height: 70px; display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 8px; }
.wp-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 600px) { .wp-pick { grid-template-columns: repeat(3, 1fr); } }
.wp-pick button { aspect-ratio: 16/10; border-radius: 12px; border: 2px solid transparent; cursor: pointer; }
.wp-pick button.on { border-color: white; }
.qr { background: white; border-radius: 14px; padding: 10px; width: 260px; max-width: 100%; }
.qr svg { width: 100%; height: auto; display: block; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: white; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .search-pill { min-width: 0; padding: 0 11px; }
  .search-pill span, .search-pill kbd { display: none; }
  .desktop { padding: 0 14px 110px; }
  .greeting { margin: 26px 0 20px; }
}

/* logo da marca */
.logo-tile { display: inline-grid; place-items: center; background: #fff; box-shadow: 0 8px 24px -10px rgba(0,0,0,.6); flex: none; }
.logo-tile img { width: 100%; height: 100%; display: block; }
.brand b { font-weight: 750; letter-spacing: -.01em; }
.brand .sub { font-weight: 500; color: var(--brand-teal); }
