/* ============================================================
   STEEL360 · CRM — design tokens & components (V.2)
   Pegada de workspace · Attio/Folk/Linear mood
   ============================================================ */

:root {
  /* dark (default) */
  --bg: #0E1620;
  --ink: #F3F0E9;
  --ink-2: #BDC8D3;
  --ink-3: #7E8C9C;
  --card: #141F2C;
  --card-hi: #1B2A3A;
  --line: rgba(189, 200, 211, .08);
  --line-2: rgba(189, 200, 211, .05);
  --brand: #E37446;
  --brand-2: #ECA176;
  --brand-soft: rgba(227, 116, 70, .10);
  --ok: #7FD4A4;
  --warn: #F0C173;
  --bad: #F0938A;
  --info: #A7C2F4;
  --hero-card: #0A0F18;
  --hero-ink: #F3F0E9;
  --row-hover: rgba(255, 255, 255, .025);
  --shadow: 0 4px 14px rgba(0, 0, 0, .32);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .24);
}

[data-theme="light"] {
  --bg: #ECE9E1;
  --ink: #141F2C;
  --ink-2: #46596C;
  --ink-3: #7A8A9D;
  --card: #FFFFFF;
  --card-hi: #FFFFFF;
  --line: rgba(20, 31, 44, .08);
  --line-2: rgba(20, 31, 44, .05);
  --brand: #C95E33;
  --brand-2: #E37446;
  --brand-soft: #FBEEE7;
  --ok: #3F8F60;
  --warn: #B47F2D;
  --bad: #A8423A;
  --info: #3D6BC4;
  --hero-card: #141F2C;
  --hero-ink: #F3F0E9;
  --row-hover: rgba(20, 31, 44, .025);
  --shadow: 0 4px 14px rgba(20, 31, 44, .06);
  --shadow-sm: 0 2px 8px rgba(20, 31, 44, .05);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }

button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(201, 94, 51, .22); color: var(--ink); }

/* ─────────── SHELL ─────────── */
.s360-app { display: grid; grid-template-columns: 64px 1fr; height: 100vh; min-height: 0; }

/* RAIL */
.s360-rail { background: transparent; display: flex; flex-direction: column; align-items: center; padding: 18px 0 14px; gap: 6px; border-right: 1px solid var(--line); }
.s360-rail .mk { width: 36px; height: 36px; border-radius: 10px; background: var(--hero-card); color: var(--brand-2); display: grid; place-items: center; margin-bottom: 12px; }
.s360-rail .mk svg { width: 18px; height: 18px; }
.s360-rail .item { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); position: relative; transition: all .15s; }
.s360-rail .item:hover { color: var(--ink); background: var(--row-hover); }
.s360-rail .item.on { color: var(--brand); background: var(--brand-soft); }
.s360-rail .item svg { width: 18px; height: 18px; }
.s360-rail .item .ct { position: absolute; top: 4px; right: 4px; min-width: 14px; height: 14px; border-radius: 7px; background: var(--brand-2); color: #fff; font-family: "Intel One Mono", monospace; font-size: 9px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; letter-spacing: .04em; }
.s360-rail .spc { flex: 1; }
.s360-rail .av { width: 34px; height: 34px; border-radius: 50%; background: var(--hero-card); color: var(--brand-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em; border: 1.5px solid var(--brand-2); margin-top: 8px; }

/* MAIN */
.s360-main { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* TOPBAR */
.s360-topbar { flex: none; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 36px; border-bottom: 1px solid var(--line); }
.s360-topbar .tb-crumb { font-family: "Intel One Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.s360-topbar .tb-crumb b { color: var(--ink); font-weight: 600; }
.s360-topbar .tb-search { flex: 1; max-width: 520px; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--row-hover); color: var(--ink-3); font-size: 13.5px; cursor: text; transition: all .15s; }
.s360-topbar .tb-search:hover { border-color: rgba(189, 200, 211, .18); background: var(--card); }
[data-theme="light"] .s360-topbar .tb-search:hover { border-color: rgba(20, 31, 44, .18); background: rgba(20, 31, 44, .04); }
.s360-topbar .tb-search svg { width: 15px; height: 15px; flex: none; }
.s360-topbar .tb-search .kbd { margin-left: auto; font-family: "Intel One Mono", monospace; font-size: 10px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-3); letter-spacing: .04em; background: var(--bg); }
.s360-topbar .tb-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* BUTTONS */
.s360-btn { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all .15s; letter-spacing: -.005em; }
.s360-btn svg { width: 15px; height: 15px; }
.s360-btn-ghost { color: var(--ink-2); border: 1px solid var(--line); background: transparent; }
.s360-btn-ghost:hover { border-color: rgba(189, 200, 211, .22); color: var(--ink); background: var(--row-hover); }
[data-theme="light"] .s360-btn-ghost { background: var(--card); }
[data-theme="light"] .s360-btn-ghost:hover { border-color: rgba(20, 31, 44, .20); }
.s360-btn-pri { background: var(--brand); color: #fff; }
.s360-btn-pri:hover { background: var(--brand-2); }
[data-theme="light"] .s360-btn-pri { background: var(--ink); color: #fff; }
[data-theme="light"] .s360-btn-pri:hover { background: #0F1A26; }
.s360-btn-icon { width: 38px; padding: 0; justify-content: center; }

/* CANVAS */
.s360-canvas { flex: 1; overflow-y: auto; padding: 36px 48px 80px; display: flex; flex-direction: column; gap: 32px; }
.s360-canvas::-webkit-scrollbar { width: 10px; }
.s360-canvas::-webkit-scrollbar-thumb { background: rgba(189, 200, 211, .12); border-radius: 5px; border: 2px solid var(--bg); }
[data-theme="light"] .s360-canvas::-webkit-scrollbar-thumb { background: rgba(20, 31, 44, .12); }

.s360-row { max-width: 1320px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }

/* HERO */
.s360-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.s360-hero-greet { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.s360-hero-eyebrow { font-family: "Intel One Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 9px; }
.s360-hero-eyebrow .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: s360-pulse 2.2s cubic-bezier(.22,.61,.36,1) infinite; }
@keyframes s360-pulse { 0% { box-shadow: 0 0 0 0 rgba(63,143,96,.45); } 70% { box-shadow: 0 0 0 8px rgba(63,143,96,0); } 100% { box-shadow: 0 0 0 0 rgba(63,143,96,0); } }
.s360-hero h1 { font-size: 44px; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; color: var(--ink); }
.s360-hero h1 em { font-style: normal; color: var(--brand); }
.s360-hero-sub { font-size: 16px; color: var(--ink-2); line-height: 1.55; max-width: 48ch; }
.s360-hero-sub b { color: var(--ink); font-weight: 600; }

.s360-hero-now { background: var(--hero-card); color: var(--hero-ink); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.s360-hero-now::before { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(227,116,70,.32), transparent 70%); pointer-events: none; }
.s360-hero-now .lbl { font-family: "Intel One Mono", monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); display: inline-flex; align-items: center; gap: 8px; z-index: 1; }
.s360-hero-now .lbl .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); animation: s360-pulse-or 2s cubic-bezier(.22,.61,.36,1) infinite; }
@keyframes s360-pulse-or { 0% { box-shadow: 0 0 0 0 rgba(227,116,70,.45); } 70% { box-shadow: 0 0 0 8px rgba(227,116,70,0); } 100% { box-shadow: 0 0 0 0 rgba(227,116,70,0); } }
.s360-hero-now h3 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--hero-ink); z-index: 1; }
.s360-hero-now .who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(243,240,233,.72); z-index: 1; }
.s360-hero-now .who .avs { display: flex; }
.s360-hero-now .who .avs .a { width: 26px; height: 26px; border-radius: 50%; background: #2C3E54; color: #F3F0E9; display: grid; place-items: center; font-size: 10px; font-weight: 700; border: 2px solid var(--hero-card); margin-left: -6px; }
.s360-hero-now .who .avs .a:first-child { margin-left: 0; }
.s360-hero-now .who .avs .a.you { background: var(--brand-2); color: var(--ink); }
[data-theme="light"] .s360-hero-now .who .avs .a.you { color: #141F2C; }
.s360-hero-now .acts { display: flex; gap: 10px; margin-top: 4px; z-index: 1; }
.s360-hero-now .acts .b { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.s360-hero-now .acts .b.go { background: var(--brand-2); color: #141F2C; }
.s360-hero-now .acts .b.go:hover { background: #F0985E; }
.s360-hero-now .acts .b.alt { background: rgba(243,240,233,.10); color: var(--hero-ink); }
.s360-hero-now .acts .b.alt:hover { background: rgba(243,240,233,.16); }
.s360-hero-now .acts .b svg { width: 15px; height: 15px; }

/* SECTION */
.s360-section { display: flex; flex-direction: column; gap: 14px; }
.s360-sec-h { display: flex; align-items: baseline; gap: 14px; }
.s360-sec-h h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.s360-sec-h .sub { font-size: 13.5px; color: var(--ink-3); }
.s360-sec-h .spc { flex: 1; }
.s360-sec-h .lk { font-family: "Intel One Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .06em; cursor: pointer; text-transform: uppercase; text-decoration: none; }
.s360-sec-h .lk:hover { color: var(--brand); }
.s360-sec-h .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-family: "Intel One Mono", monospace; font-size: 11px; color: var(--ink-2); letter-spacing: .02em; }
.s360-sec-h .pill b { color: var(--ink); font-weight: 600; }

.s360-tab-row { display: inline-flex; background: var(--row-hover); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.s360-tab-row button, .s360-tab-row a { padding: 5px 11px; font-family: "Intel One Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .02em; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.s360-tab-row button:hover, .s360-tab-row a:hover { color: var(--ink); }
.s360-tab-row button.on, .s360-tab-row a.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

/* TODAY LIST */
.s360-today { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.s360-today-row { display: grid; grid-template-columns: 56px auto 40px 1fr auto auto; column-gap: 18px; align-items: center; padding: 16px 22px; cursor: pointer; transition: background .15s; border-top: 1px solid var(--line-2); position: relative; }
.s360-today-row:first-child { border-top: none; }
.s360-today-row:hover { background: var(--row-hover); }
.s360-today-row.is-now { background: linear-gradient(90deg, rgba(227,116,70,.10), transparent 60%); }
[data-theme="light"] .s360-today-row.is-now { background: linear-gradient(90deg, rgba(227,116,70,.06), transparent 60%); }
.s360-today-row.is-now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-2); }
.s360-today-row.is-late { background: linear-gradient(90deg, rgba(240,147,138,.08), transparent 60%); }
[data-theme="light"] .s360-today-row.is-late { background: linear-gradient(90deg, rgba(168,66,58,.06), transparent 60%); }
.s360-today-row.is-late::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bad); }
.s360-today-row.done { opacity: .55; }
.s360-today-row .hr { font-family: "Intel One Mono", monospace; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; font-weight: 600; }
.s360-today-row.is-now .hr { color: var(--brand); }
.s360-today-row.is-late .hr { color: var(--bad); }
.s360-today-row.done .hr { color: var(--ink-3); }
.s360-today-row .hr .sub { display: block; font-size: 10px; color: var(--ink-3); font-weight: 400; margin-top: 1px; letter-spacing: .04em; text-transform: uppercase; }
.s360-today-row .ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; transition: all .15s; position: relative; cursor: pointer; }
[data-theme="light"] .s360-today-row .ck { border-color: rgba(20,31,44,.22); }
.s360-today-row:hover .ck { border-color: var(--brand); }
.s360-today-row.done .ck { background: var(--ok); border-color: var(--ok); }
.s360-today-row.done .ck::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.s360-today-row .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: var(--row-hover); }
.s360-today-row .ic svg { width: 16px; height: 16px; }
.s360-today-row .ic.call { background: rgba(63,143,96,.10); color: var(--ok); }
.s360-today-row .ic.meet { background: rgba(61,107,196,.10); color: var(--info); }
.s360-today-row .ic.mail { background: rgba(201,94,51,.10); color: var(--brand); }
.s360-today-row .ic.doc { background: rgba(180,127,45,.10); color: var(--warn); }
.s360-today-row .ic.visit { background: rgba(20,31,44,.08); color: var(--ink-2); }
.s360-today-row .bd { min-width: 0; line-height: 1.35; }
.s360-today-row .bd .nm { font-size: 15px; color: var(--ink); font-weight: 600; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s360-today-row.done .bd .nm { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.s360-today-row .bd .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s360-today-row .bd .sub b { color: var(--ink-2); font-weight: 600; }
.s360-today-row .ctx { font-family: "Intel One Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.s360-today-row .more { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); opacity: 0; transition: all .15s; cursor: pointer; }
.s360-today-row:hover .more { opacity: 1; background: var(--row-hover); color: var(--ink-2); }
.s360-today-row .more svg { width: 14px; height: 14px; }

/* FUNNEL */
.s360-funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.s360-fcol { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .15s; }
.s360-fcol:hover { border-color: rgba(189,200,211,.18); }
[data-theme="light"] .s360-fcol:hover { border-color: rgba(20,31,44,.18); }
.s360-fcol-hd { display: flex; flex-direction: column; gap: 4px; }
.s360-fcol-hd .top { display: flex; align-items: center; gap: 7px; }
.s360-fcol-hd .top .d { width: 8px; height: 8px; border-radius: 50%; }
.s360-fcol-hd .top .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; flex: 1; }
.s360-fcol-hd .top .ct { font-family: "Intel One Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.s360-fcol-hd .val { font-family: "Intel One Mono", monospace; font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.s360-fcol-hd .val .cur { font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-right: 3px; }
.s360-fcol-deals { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 60px; }
.s360-deal { padding: 10px 11px; border-radius: 10px; background: var(--row-hover); border: 1px solid transparent; cursor: pointer; transition: all .15s; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.s360-deal:hover { border-color: var(--line); background: var(--card-hi); box-shadow: var(--shadow-sm); }
.s360-deal.hot { background: var(--brand-soft); border-color: rgba(227,116,70,.22); }
.s360-deal.hot:hover { border-color: rgba(227,116,70,.40); }
.s360-deal .nm { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; line-height: 1.3; }
.s360-deal .cl { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; overflow: hidden; }
.s360-deal .cl .av { width: 18px; height: 18px; border-radius: 50%; background: var(--hero-card); color: #F3F0E9; font-family: "Intel One Mono", monospace; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; flex: none; letter-spacing: .02em; }
.s360-deal .cl .nm-c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.s360-deal .bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.s360-deal .bot .val { font-family: "Intel One Mono", monospace; font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.s360-deal .bot .val .cur { font-size: 9.5px; color: var(--ink-3); font-weight: 400; margin-right: 2px; }
.s360-deal .bot .due { font-family: "Intel One Mono", monospace; font-size: 10.5px; color: var(--ink-3); letter-spacing: .02em; }
.s360-fcol-more { font-family: "Intel One Mono", monospace; font-size: 10.5px; color: var(--ink-3); text-align: center; padding: 6px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-radius: 6px; text-decoration: none; display: block; }
.s360-fcol-more:hover { color: var(--brand); background: var(--brand-soft); }

/* SPLIT */
.s360-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }

/* FEED */
.s360-feed { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.s360-feed-row { display: grid; grid-template-columns: 42px 1fr auto; column-gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line-2); transition: background .15s; cursor: pointer; }
.s360-feed-row:first-child { border-top: none; }
.s360-feed-row:hover { background: var(--row-hover); }
.s360-feed-row .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; align-self: start; margin-top: 1px; }
.s360-feed-row .ic svg { width: 14px; height: 14px; }
.s360-feed-row .ic.mail { background: rgba(201,94,51,.10); color: var(--brand); }
.s360-feed-row .ic.call { background: rgba(63,143,96,.10); color: var(--ok); }
.s360-feed-row .ic.move { background: rgba(61,107,196,.10); color: var(--info); }
.s360-feed-row .ic.win { background: rgba(63,143,96,.14); color: var(--ok); }
.s360-feed-row .ic.note { background: var(--row-hover); color: var(--ink-2); }
.s360-feed-row .ic.read { background: rgba(180,127,45,.10); color: var(--warn); }
.s360-feed-row .bd { min-width: 0; line-height: 1.4; }
.s360-feed-row .bd .ln { font-size: 14px; color: var(--ink); letter-spacing: -.005em; }
.s360-feed-row .bd .ln b { font-weight: 600; color: var(--ink); }
.s360-feed-row .bd .ln a { color: var(--brand); font-weight: 600; }
.s360-feed-row .bd .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.s360-feed-row .bd .sub b { color: var(--ink-2); font-weight: 600; }
.s360-feed-row .age { font-family: "Intel One Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .02em; align-self: start; margin-top: 5px; white-space: nowrap; }

/* HOT CARDS */
.s360-hot-stack { display: flex; flex-direction: column; gap: 12px; }
.s360-hcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all .15s; text-decoration: none; color: inherit; }
.s360-hcard:hover { border-color: rgba(227,116,70,.32); box-shadow: var(--shadow); }
.s360-hcard .av { width: 44px; height: 44px; border-radius: 50%; background: var(--hero-card); color: #F3F0E9; display: grid; place-items: center; font-size: 14px; font-weight: 700; letter-spacing: .02em; flex: none; }
.s360-hcard .bd { min-width: 0; flex: 1; line-height: 1.35; }
.s360-hcard .bd .nm { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.s360-hcard .bd .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.s360-hcard .bd .sub b { color: var(--ink-2); font-weight: 600; }
.s360-hcard .score { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; }
.s360-hcard .score .n { font-family: "Intel One Mono", monospace; font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; line-height: 1; }
.s360-hcard .score .l { font-family: "Intel One Mono", monospace; font-size: 9.5px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }

/* CARDS (generic for sub-pages) */
.s360-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.s360-card-hd { padding: 16px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.s360-card-hd h3 { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.005em; }

/* TABLE */
.s360-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.s360-table thead th { text-align: left; font-family: "Intel One Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 1; }
.s360-table tbody td { padding: 14px 22px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.s360-table tbody tr { transition: background .15s; }
.s360-table tbody tr:hover { background: var(--row-hover); }
.s360-table tbody td.muted { color: var(--ink-3); }
.s360-table tbody td.mono { font-family: "Intel One Mono", monospace; font-size: 12px; }

/* CHIPS / BADGES */
.s360-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-family: "Intel One Mono", monospace; font-size: 10.5px; letter-spacing: .04em; border: 1px solid var(--line); color: var(--ink-2); background: var(--row-hover); white-space: nowrap; }
.s360-chip.ok { color: var(--ok); border-color: rgba(127,212,164,.32); background: rgba(63,143,96,.10); }
.s360-chip.warn { color: var(--warn); border-color: rgba(240,193,115,.32); background: rgba(180,127,45,.10); }
.s360-chip.bad { color: var(--bad); border-color: rgba(240,147,138,.32); background: rgba(168,66,58,.10); }
.s360-chip.info { color: var(--info); border-color: rgba(167,194,244,.32); background: rgba(61,107,196,.10); }
.s360-chip.brand { color: var(--brand); border-color: rgba(227,116,70,.32); background: var(--brand-soft); }
.s360-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* INPUT (form pages) */
/* Remove spinners de input[type="number"] em todo o sistema */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.s360-input { width: 100%; height: 38px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 13.5px; font-family: inherit; transition: all .15s; }
.s360-input:hover { border-color: rgba(189,200,211,.22); }
[data-theme="light"] .s360-input:hover { border-color: rgba(20,31,44,.20); }
.s360-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(227,116,70,.16); }
.s360-input::placeholder { color: var(--ink-3); }
textarea.s360-input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.s360-input { cursor: pointer; }
.s360-label { font-size: 12px; font-weight: 500; color: var(--ink-2); display: block; margin-bottom: 6px; }

/* PAGE HEADER (sub-pages) */
.s360-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.s360-page-head .h-l { display: flex; flex-direction: column; gap: 4px; }
.s360-page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.s360-page-head .sub { font-size: 13.5px; color: var(--ink-3); }
.s360-page-head .h-r { display: flex; gap: 10px; align-items: center; }

/* KPI strip (sub-pages) */
.s360-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.s360-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.s360-kpi .lbl { font-family: "Intel One Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.s360-kpi .val { font-family: "Intel One Mono", monospace; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.05; }
.s360-kpi .val.brand { color: var(--brand); }
.s360-kpi .val.ok { color: var(--ok); }
.s360-kpi .val.warn { color: var(--warn); }
.s360-kpi .val.bad { color: var(--bad); }
.s360-kpi .val.info { color: var(--info); }
.s360-kpi .delta { font-family: "Intel One Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }

/* ─────────── MOBILE RESPONSIVE ─────────── */
@media (max-width: 900px) {
  .s360-app { grid-template-columns: 56px 1fr; }
  .s360-rail { padding: 12px 0 10px; }
  .s360-rail .mk { width: 32px; height: 32px; margin-bottom: 8px; }
  .s360-rail .item { width: 36px; height: 36px; }

  .s360-topbar { padding: 0 12px !important; gap: 8px !important; }
  .s360-topbar .tb-crumb { display: none !important; }
  .s360-topbar .tb-search { max-width: 220px !important; }
  .s360-topbar .tb-search span:not(.kbd) { display: none; }
  .s360-topbar .tb-search .kbd { display: none; }
  .s360-topbar .tb-r .s360-btn-pri span,
  .s360-topbar .tb-r .s360-btn-pri { padding: 0 10px !important; font-size: 12px !important; }

  .s360-canvas { padding: 16px 12px !important; }
  .s360-row { max-width: 100% !important; }

  .s360-page-head { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .s360-page-head .h-r { width: 100%; flex-wrap: wrap; }

  .s360-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .s360-kpi .val { font-size: 18px !important; }

  .s360-card { padding: 14px !important; }

  .s360-table th, .s360-table td { padding: 8px 10px !important; font-size: 12.5px !important; }
  .s360-table thead { display: none; }
  .s360-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .s360-table td { border: none !important; padding: 4px 8px !important; }

  /* Pipeline kanban: scroll horizontal */
  .pipeline-funnel { grid-template-columns: repeat(5, minmax(240px, 1fr)) !important; overflow-x: auto; }

  /* Forms: stack */
  .s360-form-grid { grid-template-columns: 1fr !important; }

  /* Modais full-screen no mobile */
  .s360-modal-shell { width: 100vw !important; max-width: 100vw !important; height: 100vh !important; max-height: 100vh !important; border-radius: 0 !important; }
}

@media (max-width: 600px) {
  .s360-kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .s360-tab-row { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .s360-tab-row::-webkit-scrollbar { display: none; }
}
