:root {
  --fuji-blue: #17498f;
  --fuji-blue-dark: #0c3268;
  --fuji-blue-soft: #eaf2fb;
  --fuji-silver: #7f8994;
  --fuji-gray: #526173;
  --fuji-red: var(--fuji-blue);
  --fuji-red-dark: var(--fuji-blue-dark);
  --navy: #0d2948;
  --navy-2: #173c67;
  --ink: #17283a;
  --muted: #647489;
  --line: #dbe3ec;
  --soft: #f4f7fa;
  --panel: #ffffff;
  --green: #16845b;
  --amber: #bd7110;
  --blue: var(--fuji-blue);
  --shadow: 0 14px 38px rgba(13, 41, 72, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--soft); }
body { margin: 0; min-width: 320px; background: var(--soft); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; color: #fff; background: var(--fuji-blue); border-radius: 8px; font-size: 12px; font-weight: 750; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 14px; outline: 3px solid rgba(255,255,255,.8); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 16px 17px; color: #fff; background: linear-gradient(175deg, #102f53 0%, #0a223d 58%, #071a30 100%); border-right: 1px solid rgba(255,255,255,.07); box-shadow: 8px 0 28px rgba(9,28,49,.08); z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 75px; padding: 8px 6px 18px; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; }
.brand-logo { width: 142px; height: 44px; display: flex; align-items: center; flex: 0 0 auto; padding: 5px 8px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.brand-logo img { width: 100%; height: 100%; display: block; object-fit: contain; filter: none; }
.brand-product { min-width: 0; display: flex; flex-direction: column; line-height: 1.08; }
.brand-product strong { color: #fff; font-size: 11px; letter-spacing: .01em; }
.brand-product small { margin-top: 5px; color: #9eb1c5; font-size: 8px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.main-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.nav-section-label { margin: 13px 12px 5px; color: #718aa3; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-section-label:first-child { margin-top: 4px; }
.main-nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; color: #bfccda; text-decoration: none; font-size: 13px; font-weight: 650; transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.main-nav a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.06); transform: translateX(2px); }
.main-nav a.active { color: #fff; background: linear-gradient(100deg, #1d5ba7, #17498f); border-color: rgba(147,190,238,.28); box-shadow: 0 8px 20px rgba(5,25,48,.24); }
.main-nav a.active .nav-icon { opacity: 1; }
.sidebar-footer { margin-top: auto; }
.mode-card { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 12px; }
.mode-card .status-dot { width: 9px; height: 9px; border-radius: 50%; background: #37d38a; box-shadow: 0 0 0 5px rgba(55,211,138,.1); }
.mode-card.demo .status-dot { background: #f2ae4a; box-shadow: 0 0 0 5px rgba(242,174,74,.1); }
.mode-card div { display: flex; flex-direction: column; }
.mode-card strong { font-size: 12px; }
.mode-card small { color: #9dacbd; margin-top: 4px; font-size: 10px; }
.logout-form { margin: 0; }
.logout { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; margin-top: 6px; padding: 7px 9px; color: #8fa4b9; background: transparent; border: 0; border-radius: 8px; font-size: 11px; text-align: left; text-decoration: none; cursor: pointer; }
.logout:hover { color: #fff; }
.main-area { min-width: 0; }
.topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 30px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 3px 16px rgba(13,41,72,.025); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.topbar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(#1f5ba4, #7f8994); }
.topbar h1 { margin: 2px 0 0; font-size: 25px; line-height: 1.1; letter-spacing: -.025em; }
.eyebrow, .overline { display: block; margin: 0; color: var(--fuji-blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.language-switcher { margin: 0; }
.language-switcher label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.language-switcher select { min-height: 34px; padding: 0 28px 0 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.user-chip > span { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid #d7e4f2; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #245d9d, #123d70); font-weight: 800; }
.user-chip div { display: flex; flex-direction: column; }
.user-chip strong { font-size: 12px; }
.user-chip small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.page-content { padding: 26px 30px 48px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 750; text-decoration: none; cursor: pointer; transition: .18s ease; }
.button.primary { color: #fff; background: linear-gradient(105deg, #1c58a0, var(--fuji-blue)); box-shadow: 0 7px 18px rgba(23,73,143,.18); }
.button.primary:hover { background: var(--fuji-red-dark); transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; transform: none; }
.button:disabled:hover { transform: none; }
.button.secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.button.secondary:hover { border-color: #b9c3cf; background: #f9fafb; }
.button.danger { color: #fff; background: #a62b35; }
.button.danger:hover { background: #821f28; }
.button.compact { min-height: 31px; padding: 0 9px; font-size: 9px; }
.button.wide { width: 100%; }
.icon-button { border: 0; background: transparent; font-size: 22px; }
.icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-only { display: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-header h3 { margin: 3px 0 0; font-size: 16px; letter-spacing: -.01em; }
.panel-header > a { color: var(--fuji-red); font-size: 12px; font-weight: 750; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.preline { white-space: pre-line; }
.flash-stack { margin: 18px 30px 0; }
.flash { padding: 12px 15px; border-radius: 10px; font-size: 13px; border: 1px solid; background: #fff; }
.flash.success { color: #0f6b49; border-color: #b9e6d4; background: #effbf6; }
.flash.warning { color: #79530a; border-color: #ecd49b; background: #fff9e8; }
.flash.error { color: #a21d28; border-color: #f0bec2; background: #fff3f4; }
.hero-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 226px; padding: 32px 36px; overflow: hidden; position: relative; color: #fff; border: 1px solid rgba(98,144,194,.2); border-radius: 18px; background: linear-gradient(118deg, #0d2b4c 5%, #174574 58%, #1f588e 100%); box-shadow: 0 20px 46px rgba(13,41,72,.17); }
.hero-card::after { content: ""; position: absolute; width: 310px; height: 310px; right: -90px; top: -135px; border: 48px solid rgba(255,255,255,.045); border-radius: 50%; }
.hero-card::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg,#000,transparent 75%); }
.hero-card .overline { color: #a9c9eb; }
.hero-card h2 { max-width: 760px; margin: 9px 0 12px; font-size: 30px; line-height: 1.17; letter-spacing: .015em; text-transform: uppercase; }
.hero-card p { max-width: 710px; margin: 0; color: #d1deeb; font-size: 14px; line-height: 1.6; }
.hero-copy { position: relative; z-index: 2; }
.hero-brand-mark { position: absolute; right: 21%; bottom: -35px; width: 330px; height: 98px; object-fit: contain; opacity: .075; filter: grayscale(1) brightness(5); pointer-events: none; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.hero-tags span { padding: 6px 9px; color: #e7f0f8; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: rgba(255,255,255,.055); font-size: 9px; font-weight: 700; }
.hero-tags i { width: 11px; height: 1px; position: relative; background: rgba(255,255,255,.32); }
.hero-tags i::after { content: ""; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; border-top: 1px solid rgba(255,255,255,.55); border-right: 1px solid rgba(255,255,255,.55); transform: rotate(45deg); }
.hero-status { min-width: 230px; display: flex; align-items: center; gap: 14px; z-index: 1; }
.hero-status > div:last-child { display: flex; flex-direction: column; }
.hero-status strong { font-size: 13px; }
.hero-status small { margin-top: 4px; color: #aebbc9; font-size: 11px; }
.status-ring { width: 82px; height: 82px; display: grid; place-content: center; flex: 0 0 auto; text-align: center; border: 6px solid rgba(255,255,255,.12); border-top-color: #45d49a; border-right-color: #45d49a; border-radius: 50%; }
.status-ring.warn { border-top-color: #f2ae4a; border-right-color: #f2ae4a; }
.status-ring span { font-size: 19px; font-weight: 850; }
.status-ring small { color: #aebbc9; font-size: 9px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.metric-card { min-height: 112px; display: flex; align-items: center; gap: 15px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(13,41,72,.05); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.metric-card:hover { border-color: #c3d3e4; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,41,72,.08); }
.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; font-size: 20px; font-weight: 800; }
.metric-icon svg, .quick-action-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.metric-icon.fuji { color: var(--fuji-blue); background: var(--fuji-blue-soft); }
.metric-icon.silver { color: #667688; background: #eef1f4; }
.metric-icon.red { color: #c91420; background: #fff0f1; }
.metric-icon.blue { color: var(--blue); background: #eef5ff; }
.metric-icon.green { color: var(--green); background: #ebf8f2; }
.metric-icon.amber { color: var(--amber); background: #fff6e9; }
.metric-card div:last-child { display: grid; grid-template-columns: auto auto; align-items: end; gap: 3px 8px; }
.metric-card span { grid-column: 1 / 3; color: var(--muted); font-size: 11px; font-weight: 650; }
.metric-card strong { font-size: 27px; letter-spacing: -.04em; }
.metric-card small { padding-bottom: 4px; color: #99a4b1; font-size: 9px; }
.dashboard-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.dashboard-actions > a { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 76px; padding: 13px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(13,41,72,.035); text-decoration: none; transition: .16s ease; }
.dashboard-actions > a:hover { color: var(--fuji-blue); border-color: #b9cee5; box-shadow: 0 10px 24px rgba(13,41,72,.07); transform: translateY(-1px); }
.quick-action-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--fuji-blue); border-radius: 10px; background: var(--fuji-blue-soft); }
.dashboard-actions > a > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.dashboard-actions strong { overflow: hidden; color: inherit; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-actions small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-actions b { color: #9eabb9; font-size: 20px; font-weight: 400; }
.content-grid { display: grid; gap: 18px; margin-top: 18px; align-items: start; }
.content-grid.two-thirds { grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr); }
.content-grid.half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 18px; color: #8591a1; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 9px; text-align: left; letter-spacing: .09em; text-transform: uppercase; }
td { padding: 13px 18px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: background .16s; }
tbody tr.clickable:hover { background: #fafbfc; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.empty-cell { height: 110px; color: var(--muted); text-align: center; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; white-space: nowrap; border-radius: 999px; color: #526074; background: #eef1f5; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.priority-alta { color: #b41623; background: #ffeaec; }
.priority-media { color: #9a5b0d; background: #fff0d9; }
.priority-normal { color: #2a658f; background: #e9f4fc; }
.status-novo, .status-bot, .status-accepted { color: #235fae; background: #eaf2ff; }
.status-em_atendimento, .status-human { color: #9b5704; background: #fff0d6; }
.status-resolvido, .status-fechado, .status-sent, .status-available, .status-live { color: #11704b; background: #e9f8f1; }
.status-failed, .status-not_eligible { color: #a61c28; background: #ffebed; }
.status-simulated, .status-simulated_conditional, .status-demo { color: #87530f; background: #fff2db; }
.health-list { padding: 6px 18px 12px; }
.health-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf0f3; }
.health-row:last-child { border-bottom: 0; }
.health-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 900; }
.health-icon.ok { color: #0d774e; background: #e3f7ed; }
.health-icon.warn { color: #9a5b0d; background: #fff0d9; }
.health-icon.bad { color: #a61c28; background: #ffe8ea; }
.health-row div { display: flex; flex-direction: column; }
.health-row strong { font-size: 11px; }
.health-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.health-value { color: #7f8a98; font-size: 10px; }
.conversation-list.compact { padding: 4px 18px 12px; }
.conversation-list.compact a { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf0f3; text-decoration: none; }
.conversation-list.compact a:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, #314866, #1d2c42); border-radius: 50%; font-size: 12px; font-weight: 850; }
.conversation-list a div { min-width: 0; }
.conversation-list strong, .conversation-list small { display: block; }
.conversation-list strong { font-size: 11px; }
.conversation-list small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.conversation-list p { overflow: hidden; margin: 4px 0 0; color: #6c798b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-list time { color: #8b96a4; font-size: 9px; }
.presentation-card { min-height: 300px; padding: 24px; position: relative; overflow: hidden; }
.presentation-card::after { content: "FUJI"; position: absolute; right: -7px; bottom: -20px; color: #f0f3f7; font-size: 90px; font-weight: 900; font-style: italic; letter-spacing: -.09em; z-index: 0; }
.presentation-card > * { position: relative; z-index: 1; }
.presentation-card h3 { margin: 8px 0 14px; font-size: 21px; }
.presentation-card ol { padding-left: 20px; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 2; }
.empty-state { min-height: 240px; display: grid; place-items: center; align-content: center; text-align: center; padding: 30px; color: var(--muted); }
.empty-state.small { min-height: 130px; }
.empty-state > span { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; color: var(--fuji-blue); background: var(--fuji-blue-soft); font-size: 24px; font-weight: 850; }
.empty-state h2, .empty-state h3 { margin: 5px 0; color: var(--ink); }
.empty-state p { max-width: 520px; margin: 6px auto 18px; }
.search-form, .filters { display: flex; align-items: center; gap: 8px; }
.search-form input, .filters input, .filters select, .knowledge-search input, .knowledge-search select, .stack-form select, .login-card input { min-height: 40px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.search-form input { width: 290px; }
.search-form button, .filters button { min-height: 40px; padding: 0 15px; color: #fff; background: var(--navy); border: 0; border-radius: 9px; font-size: 11px; font-weight: 700; cursor: pointer; }
.conversation-table > a { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px 20px; border-bottom: 1px solid #edf0f3; text-decoration: none; transition: background .16s; }
.conversation-table > a:last-child { border-bottom: 0; }
.conversation-table > a:hover { background: #fafbfc; }
.conversation-main { min-width: 0; }
.conversation-main strong, .conversation-main small { display: block; }
.conversation-main strong { font-size: 13px; }
.conversation-main small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.conversation-main p { overflow: hidden; margin: 6px 0 0; color: #667386; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.conversation-meta small, .conversation-meta b { color: var(--muted); font-size: 9px; font-weight: 500; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .55fr); gap: 18px; align-items: start; }
.chat-panel { overflow: hidden; }
.chat-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 11px; }
.identity div { display: flex; flex-direction: column; }
.identity strong { font-size: 13px; }
.identity small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.message-thread { height: calc(100vh - 300px); min-height: 430px; padding: 20px; overflow-y: auto; background-color: #eef1f3; background-image: radial-gradient(#d7dce0 1px, transparent 1px); background-size: 18px 18px; }
.message-row { display: flex; margin: 8px 0; }
.message-row.in { justify-content: flex-start; }
.message-row.out { justify-content: flex-end; }
.message-row.internal { justify-content: center; }
.message-bubble { max-width: 74%; padding: 10px 12px 7px; background: #fff; border-radius: 4px 13px 13px 13px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.message-row.out .message-bubble { background: #dff6ea; border-radius: 13px 4px 13px 13px; }
.message-row.internal .message-bubble { background: #fff4d8; }
.message-bubble p { margin: 0; white-space: pre-wrap; font-size: 12px; line-height: 1.5; }
.attachment-link { display: inline-flex; margin-top: 8px; color: #155eaa; font-size: 10px; font-weight: 750; }
.message-bubble small { display: block; margin-top: 5px; color: #81909d; font-size: 8px; text-align: right; }
.composer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; padding: 13px; border-top: 1px solid var(--line); }
.composer textarea { resize: vertical; min-height: 46px; max-height: 150px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; }
.detail-column { display: flex; flex-direction: column; gap: 16px; }
.info-card { padding: 19px; }
.info-card dl { margin: 11px 0 0; }
.info-card dl div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.info-card dl div:last-child { border-bottom: 0; }
.info-card dt { color: var(--muted); font-size: 10px; }
.info-card dd { margin: 0; max-width: 60%; font-size: 11px; font-weight: 700; text-align: right; word-break: break-word; }
.ticket-mini { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 10px 0; border-bottom: 1px solid #edf0f3; text-decoration: none; }
.ticket-mini strong { font-size: 11px; }
.ticket-mini small { grid-column: 1 / 2; color: var(--muted); font-size: 9px; }
.ticket-mini .badge { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.ticket-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 30px; color: #fff; border-radius: 16px; background: linear-gradient(120deg, #182438, #263b59); }
.ticket-hero h2 { margin: 10px 0 8px; font-size: 25px; }
.ticket-hero p { max-width: 720px; margin: 0; color: #c4ceda; font-size: 12px; line-height: 1.5; }
.ticket-status { min-width: 170px; display: flex; flex-direction: column; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.16); }
.ticket-status span { color: #b5c0cd; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.ticket-status strong { margin-top: 4px; font-size: 17px; }
.ticket-status small { margin-top: 5px; color: #9facbb; font-size: 9px; }
.ticket-grid > div { display: flex; flex-direction: column; gap: 16px; }
.section-block { overflow: hidden; }
.section-block > p { padding: 4px 20px 20px; color: #445266; font-size: 12px; line-height: 1.65; }
.items-list { padding: 4px 20px 16px; }
.items-list > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f3; font-size: 10px; }
.items-list > div:last-child { border-bottom: 0; }
.items-list strong { font-size: 11px; }
.items-list span { color: var(--muted); }
.parts-quote-workspace { border-color: #c9d9ea; }
.parts-quote-workspace::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--fuji-blue), #7f9fbe 72%, transparent); }
.parts-quote-header { min-height: 72px; background: linear-gradient(105deg, #f8fbff, #fff); }
.parts-quote-header .badge { white-space: nowrap; }
.quote-status-ready, .quote-status-generated, .quote-status-prepared { color: #155a94; background: #e8f2fc; }
.quote-status-sending, .quote-status-pending_configuration, .quote-status-uncertain { color: #79530a; background: #fff4d8; }
.quote-status-sent, .quote-status-accepted, .quote-status-delivered, .quote-status-read { color: #0f6b49; background: #e8f8f1; }
.quote-status-simulated, .quote-status-cancelled { color: #556678; background: #edf1f5; }
.quote-status-blocked, .quote-status-failed { color: #97303a; background: #fff0f1; }
.parts-quote-body { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.parts-quote-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; }
.parts-quote-document { min-width: 0; display: flex; align-items: center; gap: 13px; }
.parts-quote-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--fuji-blue); border: 1px solid #d5e3f1; border-radius: 12px; background: var(--fuji-blue-soft); }
.parts-quote-icon svg, .whatsapp-quote-icon svg, .button-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.parts-quote-document div { min-width: 0; display: flex; flex-direction: column; }
.parts-quote-document strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.parts-quote-document small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.parts-quote-count { min-width: 98px; padding: 10px 13px; text-align: right; border-left: 1px solid var(--line); }
.parts-quote-count strong { display: block; color: var(--fuji-blue-dark); font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.parts-quote-count strong span { color: #8b9aab; font-size: 13px; }
.parts-quote-count small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 700; }
.parts-quote-scope { margin: -4px 0 0; color: #52667c; font-size: 10px; font-weight: 650; line-height: 1.45; }
.parts-quote-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 15px; border-top: 1px solid #e7edf3; }
.quote-inline-form { margin: 0; }
.parts-quote-actions .button-icon, .parts-quote-whatsapp .button-icon { width: 16px; height: 16px; margin-right: 7px; }
.parts-quote-whatsapp { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 14px 15px; border: 1px solid #d7e8e1; border-radius: 12px; background: #f4fbf8; }
.parts-quote-whatsapp.quote-delivery-prepared { border-color: #b9dfcf; background: #eefaf5; }
.parts-quote-whatsapp.quote-delivery-sent, .parts-quote-whatsapp.quote-delivery-accepted,
.parts-quote-whatsapp.quote-delivery-delivered, .parts-quote-whatsapp.quote-delivery-read { border-color: #a8d9c5; background: #eaf8f2; }
.parts-quote-whatsapp.quote-delivery-uncertain, .parts-quote-whatsapp.quote-delivery-pending_configuration { border-color: #ead39b; background: #fff9e9; }
.parts-quote-whatsapp.quote-delivery-simulated, .parts-quote-whatsapp.quote-delivery-cancelled { border-color: #d8e0e8; background: #f7f9fb; }
.parts-quote-whatsapp.quote-delivery-failed { border-color: #efc3c7; background: #fff5f5; }
.parts-quote-whatsapp-copy { min-width: 0; display: flex; align-items: center; gap: 12px; }
.whatsapp-quote-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #087a58; border-radius: 50%; background: #dff4eb; }
.parts-quote-whatsapp-copy > div { min-width: 0; display: flex; flex-direction: column; }
.parts-quote-whatsapp-copy strong { font-size: 12px; }
.parts-quote-whatsapp-copy small { margin-top: 4px; color: #587267; font-size: 9px; line-height: 1.45; }
.parts-quote-whatsapp-copy .quote-delivery-error { color: #9c2732; font-weight: 700; }
.button.whatsapp { color: #fff; background: #087a58; box-shadow: 0 7px 18px rgba(8,122,88,.16); }
.button.whatsapp:hover { background: #056647; transform: translateY(-1px); }
.quote-confirm-form { display: grid; grid-template-columns: minmax(170px,1fr) auto; gap: 9px 12px; align-items: center; margin: 0; }
.quote-confirm-form label { grid-column: 1 / 3; display: flex; align-items: flex-start; gap: 7px; color: #405f54; font-size: 9px; line-height: 1.4; }
.quote-confirm-form input[type="checkbox"] { margin: 1px 0 0; accent-color: #087a58; }
.quote-confirm-form .button { grid-column: 2; }
.transcript { max-height: 520px; margin: 0; padding: 19px; overflow: auto; color: #dce4ed; background: #172235; font-family: Consolas, monospace; font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.stack-form { display: flex; flex-direction: column; gap: 11px; margin-top: 12px; }
.stack-form label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; }
.stack-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.stack-form select,
.stack-form textarea { width: 100%; min-height: 40px; padding: 9px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; resize: vertical; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { border-color: #7ca4cf; box-shadow: 0 0 0 3px rgba(23,73,143,.09); }
.stack-form label:has(> input[type="checkbox"]), .stack-form label:has(> input[type="radio"]) { align-items: flex-start; flex-direction: row; gap: 8px; line-height: 1.45; }
.stack-form input[type="checkbox"], .stack-form input[type="radio"] { margin-top: 1px; accent-color: var(--fuji-blue); }
.delivery-item { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.delivery-item strong { font-size: 11px; }
.delivery-item small, .delivery-item p { grid-column: 1 / 3; margin: 0; color: var(--muted); font-size: 9px; }
.knowledge-hero { display: flex; justify-content: space-between; gap: 30px; padding: 27px 30px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.knowledge-hero h2 { margin: 8px 0; font-size: 24px; }
.knowledge-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.knowledge-stats { display: grid; grid-template-columns: repeat(2, 84px); gap: 10px; }
.knowledge-stats div { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 70px; border-radius: 11px; background: #f5f7fa; }
.knowledge-stats strong { font-size: 19px; }
.knowledge-stats span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.selection-flow { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: #536174; font-size: 10px; font-weight: 750; }
.selection-flow span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.selection-flow b { display: grid; place-items: center; width: 18px; height: 18px; color: #fff; border-radius: 50%; background: var(--fuji-red); font-size: 9px; }
.selection-flow i { color: #a7b0bc; font-size: 14px; font-style: normal; }
.knowledge-search { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.knowledge-actions-grid { margin-top: 0; align-items: start; }
.content-grid.single { grid-template-columns: 1fr; }
.knowledge-upload-form { margin: 0; padding: 20px; }
.knowledge-upload-form > .form-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
.knowledge-upload-form .field-hint { display: block; margin-top: 2px; color: #8995a5; font-size: 7px; font-weight: 700; letter-spacing: .035em; }
.knowledge-upload-form input:not([type="file"]), .knowledge-upload-form select,
.knowledge-actions-grid .stack-form input:not([type="file"]), .knowledge-actions-grid .stack-form select { width: 100%; min-height: 40px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.knowledge-upload-form input:focus, .knowledge-upload-form select:focus,
.knowledge-actions-grid .stack-form input:focus, .knowledge-actions-grid .stack-form select:focus { border-color: #7ca4cf; box-shadow: 0 0 0 3px rgba(23,73,143,.09); }
.file-drop { min-height: 145px; display: grid !important; grid-template-columns: 42px minmax(0,1fr); align-content: center; gap: 4px 12px !important; padding: 18px; border: 1px dashed #9eb8d4; border-radius: 12px; outline: 0; background: #f7faff; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.file-drop:hover, .file-drop.drag-active { border-color: var(--fuji-blue); background: #f0f6fd; }
.file-drop:focus-visible { border-color: var(--fuji-blue); box-shadow: 0 0 0 3px rgba(23,73,143,.14); }
.file-drop-icon { width: 42px; height: 42px; grid-row: 1 / 4; display: grid; place-items: center; color: #fff; border-radius: 11px; background: var(--fuji-blue); font-size: 20px; }
.file-drop strong { color: var(--ink); font-size: 11px; }
.file-drop small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-selection { color: var(--fuji-blue); font-size: 9px; font-weight: 800; }
.file-selection.error { color: #a61c28; }
.bulk-upload-intro { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; align-items: center; padding: 14px 15px; border: 1px solid #c8d9ec; border-radius: 11px; background: linear-gradient(135deg,#f5f9fe,#eef5fc); }
.bulk-upload-intro-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 11px; background: linear-gradient(145deg,var(--fuji-blue),#315aa5); font-size: 22px; font-weight: 850; }
.bulk-upload-intro strong { color: #173d70; font-size: 10px; letter-spacing: .035em; }
.bulk-upload-intro p { margin: 5px 0 7px; color: #51667d; font-size: 8px; line-height: 1.55; }
.bulk-upload-intro code { display: inline-flex; max-width: 100%; padding: 5px 8px; overflow-wrap: anywhere; color: #213c61; border: 1px solid #d4e1ef; border-radius: 6px; background: rgba(255,255,255,.78); font: 750 8px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace; }
.loose-file-scope { display: grid; grid-template-columns: minmax(210px,.55fr) minmax(0,1.45fr); gap: 14px; align-items: end; padding: 13px 14px; border: 1px solid #dbe3ec; border-radius: 10px; background: #fbfcfd; }
.loose-file-scope > div:first-child > strong { color: #334a68; font-size: 9px; letter-spacing: .035em; }
.loose-file-scope > div:first-child > p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.loose-file-scope .form-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.bulk-source-actions { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px 14px; align-items: center; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.bulk-source-actions .button { gap: 8px; white-space: nowrap; }
.bulk-source-actions .button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bulk-source-actions > input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.bulk-source-actions p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.bulk-preflight { display: grid; gap: 12px; padding: 14px; border: 1px solid #cfdae6; border-radius: 11px; background: #f9fbfd; }
.bulk-preflight[hidden], .bulk-confirm-scopes[hidden] { display: none; }
.bulk-preflight-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bulk-preflight-heading h4 { margin: 3px 0 0; font-size: 12px; }
.bulk-preflight-heading .badge[data-state="ready"] { color: #0c7650; border-color: #b8dfcf; background: #effaf6; }
.bulk-preflight-heading .badge[data-state="warning"] { color: #855c06; border-color: #ead39b; background: #fff9e9; }
.bulk-preflight-heading .badge[data-state="error"] { color: #a61c28; border-color: #efc5c9; background: #fff3f4; }
.bulk-preflight-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.bulk-preflight-metrics > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid #e0e7ef; border-radius: 8px; background: #fff; }
.bulk-preflight-metrics strong { color: var(--navy); font-size: 18px; }
.bulk-preflight-metrics span { color: var(--muted); font-size: 7px; font-weight: 780; letter-spacing: .025em; }
.bulk-preflight-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.bulk-preflight-details > div { min-width: 0; padding: 11px; border: 1px solid #e2e8ef; border-radius: 8px; background: #fff; }
.bulk-preflight-details > div > strong { display: block; margin-bottom: 8px; color: #526176; font-size: 7px; letter-spacing: .055em; }
.bulk-scope-list, .bulk-issue-list { display: grid; gap: 5px; max-height: 160px; overflow-y: auto; }
.bulk-scope-list > span { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 6px 7px; color: #24466f; border-radius: 6px; background: #eff5fb; font-size: 8px; font-weight: 780; }
.bulk-scope-list > span small { color: #67788d; font-size: 7px; }
.bulk-issue-list > span { display: block; padding: 6px 7px; color: #725005; border-radius: 6px; background: #fff6dc; font-size: 7px; font-weight: 720; line-height: 1.45; overflow-wrap: anywhere; }
.bulk-issue-list > span.error { color: #96202b; background: #fff0f2; }
.bulk-issue-list > span.ok { color: #0b7650; background: #ebf8f3; }
.bulk-confirm-scopes { display: flex !important; align-items: flex-start; gap: 9px; padding: 10px 11px; color: #714f07; border: 1px solid #e4ca88; border-radius: 8px; background: #fff8e8; cursor: pointer; font-size: 8px; font-weight: 800; line-height: 1.45; }
.bulk-confirm-scopes[hidden] { display: none !important; }
.bulk-confirm-scopes input { width: 16px !important; min-height: 16px !important; flex: 0 0 auto; margin: 0; padding: 0 !important; }
.upload-auto-type { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; color: #284f7f; border: 1px solid #d7e5f3; border-radius: 9px; background: #f4f8fc; font-size: 9px; font-weight: 750; }
.upload-auto-type svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.upload-queue { display: grid; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfd; }
.upload-queue[hidden], .upload-open-manuals[hidden], .upload-queue-actions [hidden] { display: none; }
.upload-total-progress { display: grid; grid-template-columns: minmax(0,1fr) minmax(160px,.65fr); gap: 9px 16px; align-items: center; }
.upload-total-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upload-total-progress strong, .upload-total-progress span { font-size: 9px; }
.upload-total-progress span { color: var(--fuji-blue); font-weight: 850; }
.upload-total-progress progress { grid-column: 2; grid-row: 1; }
.upload-queue progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: #e3eaf2; accent-color: var(--fuji-blue); }
.upload-queue progress::-webkit-progress-bar { border-radius: 999px; background: #e3eaf2; }
.upload-queue progress::-webkit-progress-value { border-radius: 999px; background: var(--fuji-blue); transition: width .12s linear; }
.upload-queue progress::-moz-progress-bar { border-radius: 999px; background: var(--fuji-blue); }
.upload-file-list { display: grid; gap: 7px; }
.upload-file-row { min-width: 0; display: grid; grid-template-columns: 43px minmax(0,1fr) minmax(105px,.28fr); gap: 11px; align-items: center; padding: 10px; border: 1px solid #e0e6ed; border-radius: 9px; background: #fff; }
.upload-file-kind { min-width: 39px; height: 34px; display: grid; place-items: center; padding: 0 4px; color: #fff; border-radius: 7px; background: var(--navy); font-size: 7px; font-weight: 850; }
.upload-file-main { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 9px; }
.upload-file-main strong { min-width: 0; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-main small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.upload-file-main progress { grid-column: 1 / -1; }
.upload-file-status { color: var(--muted); font-size: 8px; font-weight: 750; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
.upload-file-row[data-state="uploading"] .upload-file-status,
.upload-file-row[data-state="processing"] .upload-file-status { color: var(--fuji-blue); }
.upload-file-row[data-state="success"] { border-color: #b9dfcf; background: #f7fcfa; }
.upload-file-row[data-state="success"] .upload-file-kind { background: var(--green); }
.upload-file-row[data-state="success"] .upload-file-status { color: var(--green); }
.upload-file-row[data-state="warning"] { border-color: #ead39b; background: #fffdf7; }
.upload-file-row[data-state="warning"] .upload-file-kind { background: #9a6a00; }
.upload-file-row[data-state="warning"] .upload-file-status { color: #815900; }
.upload-file-row[data-state="error"] { border-color: #efc5c9; background: #fffafb; }
.upload-file-row[data-state="error"] .upload-file-kind { background: #a61c28; }
.upload-file-row[data-state="error"] .upload-file-status { color: #a61c28; }
.upload-summary { min-height: 18px; padding: 1px 2px 0; color: var(--muted); font-size: 9px; font-weight: 750; }
.upload-summary.success { color: var(--green); }
.upload-summary.error { color: #a61c28; }
.upload-file-row[data-state="cancelled"] { border-color: #d7b2b7; background: #fff8f8; }
.upload-file-row[data-state="cancelled"] .upload-file-kind { background: #8e3540; }
.upload-file-row[data-state="cancelled"] .upload-file-status { color: #8e3540; }
.upload-queue-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.upload-open-manuals { width: fit-content; }
.knowledge-upload-form:has(input:disabled) .file-drop { opacity: .7; cursor: wait; }
.manual-type-panel { margin-top: 18px; }
.manual-type-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 18px 20px 20px; }
.manual-type-grid article { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.manual-type-grid article > span { min-width: 42px; height: 36px; display: grid; place-items: center; padding: 0 5px; color: #fff; border-radius: 8px; background: var(--navy); font-size: 8px; font-weight: 850; }
.manual-type-grid article > div { min-width: 0; display: flex; flex-direction: column; }
.manual-type-grid strong { font-size: 9px; }
.manual-type-grid small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.knowledge-actions-grid > .panel:nth-child(2) > p { margin: 0; padding: 16px 20px 0; font-size: 10px; line-height: 1.5; }
.knowledge-actions-grid > .panel:nth-child(2) > .stack-form { margin: 0; padding: 16px 20px 20px; }
.lookup-result-block { padding: 0 20px 20px; }
.exact-part-card { padding: 15px; border: 1px solid #bcd1e7; border-radius: 11px; background: #f6faff; }
.exact-part-card h4 { margin: 2px 0 12px; font-size: 14px; }
.exact-part-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0; }
.exact-part-card dl > div { display: flex; flex-direction: column; gap: 3px; padding: 9px; border-radius: 8px; background: #fff; }
.exact-part-card dt { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.exact-part-card dd { margin: 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 750; }
.inline-warning { margin: 10px 0 0; padding: 9px; color: #8a5508; border-radius: 8px; background: #fff2da; font-size: 8px; }
.knowledge-search label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 650; }
.selection-context { margin: -2px 0 0; padding: 9px 11px; color: #58677a; border-radius: 8px; background: #f5f7fa; font-size: 10px; }
.selection-context span { padding: 0 6px; color: var(--fuji-red); }
.knowledge-search .button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.segmented { display: flex; gap: 8px; }
.segmented label { display: flex; flex-direction: row; align-items: center; gap: 5px; padding: 8px 10px; color: var(--ink); background: #f4f6f8; border-radius: 8px; }
.search-results { max-height: 470px; overflow-y: auto; padding: 4px 18px 14px; }
.search-results article { padding: 14px 0; border-bottom: 1px solid #edf0f3; }
.search-results article:last-child { border-bottom: 0; }
.result-type { display: inline-flex; margin-bottom: 6px; padding: 3px 6px; color: var(--fuji-blue); background: var(--fuji-blue-soft); border-radius: 5px; font-size: 8px; font-weight: 800; }
.search-results h4 { margin: 0; font-size: 12px; }
.search-results p { margin: 7px 0; color: #526174; font-size: 10px; line-height: 1.55; }
.search-results small { color: #8994a1; font-size: 8px; }
.inventory-panel { margin-top: 18px; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 16px 20px 20px; }
.document-grid article { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.file-icon { width: 36px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--navy); border-radius: 4px 8px 4px 4px; font-size: 8px; font-weight: 850; }
.document-grid article > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.document-grid strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.document-grid small, .document-grid span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.document-grid a { width: fit-content; margin-top: 5px; color: var(--fuji-blue); font-size: 8px; font-weight: 800; }
.knowledge-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 20px 24px; }
.knowledge-header h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.025em; }
.knowledge-tabs { display: flex; gap: 6px; margin: 14px 0; padding: 5px; width: fit-content; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(13,41,72,.04); }
.knowledge-tabs a { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; color: #637287; border-radius: 8px; font-size: 11px; font-weight: 750; text-decoration: none; }
.knowledge-tabs a:hover { color: var(--fuji-blue); background: #f4f7fa; }
.knowledge-tabs a.active { color: #fff; background: linear-gradient(105deg,#1c58a0,var(--fuji-blue)); box-shadow: 0 5px 13px rgba(23,73,143,.18); }
.knowledge-tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.knowledge-scope { min-height: 72px; display: grid; grid-template-columns: minmax(190px,1fr) minmax(180px,.48fr) minmax(180px,.48fr); gap: 12px; align-items: center; padding: 12px 15px; margin-bottom: 14px; box-shadow: 0 7px 22px rgba(13,41,72,.045); }
.knowledge-scope label, .manual-search-bar label, .inventory-filter label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.knowledge-scope select, .manual-search-bar input, .manual-search-bar select, .inventory-filter select { width: 100%; min-height: 38px; padding: 0 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: 0; }
.knowledge-scope select:focus, .manual-search-bar input:focus, .manual-search-bar select:focus, .inventory-filter select:focus { border-color: #7ca4cf; box-shadow: 0 0 0 3px rgba(23,73,143,.09); }
.scope-title { min-width: 0; display: flex; flex-direction: column; padding: 0 8px; }
.scope-title span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.scope-title strong { overflow: hidden; margin-top: 5px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.scope-title i { padding: 0 7px; color: #9aa7b5; font-style: normal; font-weight: 400; }
.knowledge-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.knowledge-tool { overflow: hidden; }
.knowledge-tool .compact-form { margin: 0; padding: 16px 18px 18px; }
.input-action { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.input-action input, .drawing-fields input { width: 100%; min-height: 40px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.drawing-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.62fr) auto; gap: 8px; align-items: end; }
.knowledge-results-panel { margin-top: 14px; overflow: hidden; }
.knowledge-results-list { padding: 4px 18px 16px; }
.part-result { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(300px,1.4fr); gap: 20px; align-items: center; padding: 17px 2px; border-bottom: 1px solid #e9edf2; }
.part-result:last-child { border-bottom: 0; }
.part-result.exact { grid-template-columns: minmax(190px,.78fr) minmax(300px,1.25fr) auto; }
.part-result-heading { min-width: 0; }
.part-result-heading h4 { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.fuji-code { display: block; width: fit-content; margin-top: 6px; color: var(--fuji-blue); font-family: Consolas,"Segoe UI",sans-serif; font-size: 15px; letter-spacing: .02em; }
.fuji-code.missing-code, .items-list .missing-part-number { color: var(--amber); font-family: "Segoe UI",Arial,sans-serif; font-size: 10px; font-weight: 750; letter-spacing: 0; }
.part-result dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; }
.part-result dl > div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: #f6f8fa; }
.part-result dt { color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.part-result dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 700; }
.reference-warning { grid-column: 1 / -1; color: var(--amber); font-size: 9px; }
.small-button { min-height: 33px; padding: 0 11px; font-size: 9px; white-space: nowrap; }
.manual-search-panel { overflow: hidden; }
.manual-search-bar { display: grid; grid-template-columns: minmax(260px,1fr) minmax(180px,.35fr) auto; gap: 10px; align-items: end; padding: 16px 18px; }
.manual-search-results { padding: 0 18px 14px; border-top: 1px solid var(--line); }
.manual-search-results article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e9edf2; }
.manual-search-results article:last-child { border-bottom: 0; }
.manual-search-results h4 { margin: 0; font-size: 11px; }
.manual-search-results p { margin: 5px 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.manual-search-results small { color: #8b97a5; font-size: 8px; }
.inventory-heading { min-height: 70px; }
.inventory-filter { min-width: 150px; }
.document-list { padding: 4px 18px 14px; }
.document-row { display: grid; grid-template-columns: 46px minmax(180px,1fr) auto auto auto; gap: 13px; align-items: center; min-height: 70px; padding: 11px 2px; border-bottom: 1px solid #e9edf2; }
.document-row:last-child { border-bottom: 0; }
.document-main { min-width: 0; display: flex; flex-direction: column; }
.document-main strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.document-main small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.document-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.document-meta span + span { padding-left: 8px; border-left: 1px solid var(--line); }
.document-status { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 8px; font-weight: 750; white-space: nowrap; }
.document-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.document-row.missing .document-status { color: var(--amber); }
.upload-workspace { max-width: 940px; overflow: hidden; }
.upload-workspace .knowledge-upload-form { padding: 20px; }
.upload-workspace button[aria-busy="true"] { opacity: .72; cursor: wait; }
.simulator-layout { display: grid; grid-template-columns: minmax(420px,.8fr) minmax(360px,1fr); gap: 30px; align-items: start; }
.phone-stage { display: grid; place-items: center; padding: 6px; }
.phone-frame { width: 390px; height: 720px; overflow: hidden; position: relative; border: 10px solid #152034; border-radius: 42px; background: #ece5dd; box-shadow: 0 28px 65px rgba(23,34,53,.22); }
.phone-speaker { position: absolute; z-index: 3; top: 8px; left: 50%; width: 92px; height: 20px; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: #152034; }
.whatsapp-header { height: 74px; display: grid; grid-template-columns: 20px 42px 1fr auto; align-items: center; gap: 8px; padding: 14px 14px 8px; color: #fff; background: #075e54; }
.whatsapp-header .back { font-size: 26px; }
.wa-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; }
.wa-avatar img { width: 30px; }
.whatsapp-header div { display: flex; flex-direction: column; }
.whatsapp-header strong { font-size: 13px; }
.whatsapp-header small { color: #cce2df; font-size: 9px; }
.wa-actions { letter-spacing: 4px; }
.whatsapp-chat { height: 584px; padding: 20px 12px 12px; overflow-y: auto; background-color: #efeae2; background-image: radial-gradient(rgba(50,70,60,.08) 1px, transparent 1px); background-size: 16px 16px; }
.chat-day { width: fit-content; margin: 0 auto 14px; padding: 5px 9px; color: #647a7d; background: #e1f2f7; border-radius: 6px; font-size: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-row { display: flex; margin: 7px 0; }
.wa-row.customer { justify-content: flex-end; }
.wa-row.bot { justify-content: flex-start; }
.wa-bubble { max-width: 83%; padding: 8px 9px 5px; background: #fff; border-radius: 5px 11px 11px 11px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.wa-row.customer .wa-bubble { background: #d9fdd3; border-radius: 11px 5px 11px 11px; }
.wa-bubble p { margin: 0; color: #263335; font-size: 10px; line-height: 1.48; }
.wa-bubble small { display: block; margin-top: 3px; color: #7e8d8d; font-size: 7px; text-align: right; }
.wa-document { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 8px; color: #17324a; background: rgba(255,255,255,.72); border: 1px solid rgba(17,82,122,.18); border-radius: 8px; text-decoration: none; }
.wa-document:hover { border-color: #0879b0; background: #fff; }
.wa-document-icon { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 35px; flex: 0 0 31px; color: #fff; background: #d54444; border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .4px; }
.wa-document span:last-child { min-width: 0; }
.wa-document strong { display: block; max-width: 210px; overflow: hidden; color: #17324a; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.wa-document small { margin-top: 2px; color: #0879b0; font-size: 7.5px; text-align: left; }
.wa-options { display: flex; flex-direction: column; margin: 7px -9px -1px; border-top: 1px solid #e7ebeb; }
.wa-options button { min-height: 34px; color: #0879b0; background: #fff; border: 0; border-bottom: 1px solid #e7ebeb; font-size: 9px; cursor: pointer; }
.wa-options button:last-child { border-bottom: 0; border-radius: 0 0 10px 10px; }
.whatsapp-composer { height: 62px; display: grid; grid-template-columns: 24px 1fr 38px; gap: 7px; align-items: center; padding: 8px; background: #f0f2f5; }
.whatsapp-composer input { height: 40px; padding: 0 13px; background: #fff; border: 0; border-radius: 20px; outline: 0; font-size: 11px; }
.whatsapp-composer button { width: 38px; height: 38px; color: #fff; background: #00a884; border: 0; border-radius: 50%; cursor: pointer; }
.simulator-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.simulator-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.demo-control { display: flex; flex-direction: column; gap: 16px; }
.demo-control > .panel { padding: 22px; }
.demo-control h2 { margin: 7px 0; font-size: 23px; }
.demo-control p { font-size: 11px; line-height: 1.5; }
.scenario-list { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.scenario-list button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: .16s; }
.scenario-list button:hover { border-color: #a9c5e3; background: #f7faff; transform: translateX(2px); }
.scenario-list b { width: 28px; height: 28px; display: grid; place-items: center; color: var(--fuji-blue); background: var(--fuji-blue-soft); border-radius: 8px; font-size: 10px; }
.scenario-list span { display: flex; flex-direction: column; }
.scenario-list strong { font-size: 11px; }
.scenario-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.scenario-alternative { margin-top: 16px; padding: 14px; border: 1px dashed #d7dde5; border-radius: 10px; background: #f8fafb; }
.scenario-alternative p { margin: 6px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.scenario-alternative button { white-space: normal; }
.live-context .panel-header { margin: -22px -22px 8px; }
.live-context dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 0; }
.live-context dl div { padding: 9px; border-radius: 8px; background: #f6f8fa; }
.live-context dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.live-context dd { margin: 4px 0 0; font-size: 10px; font-weight: 750; word-break: break-word; }
.callout { padding: 17px 19px; color: #fff; background: linear-gradient(120deg, #0c3268, #1c58a0); border-radius: 13px; }
.callout strong { font-size: 12px; }
.callout p { margin: 5px 0 0; color: #dceaf8; font-size: 10px; }
.flow-hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 28px 30px; }
.flow-hero h2 { margin: 8px 0; font-size: 25px; letter-spacing: -.025em; }
.flow-hero > div:first-child > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.flow-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.flow-meta span { display: flex; align-items: center; gap: 7px; padding: 7px 9px; color: #667386; border: 1px solid #e5e9ee; border-radius: 8px; background: #f8fafb; font-size: 9px; }
.flow-meta b { color: var(--ink); }
.flow-meta code { color: #a41520; font-size: 9px; }
.flow-live-status { min-width: 226px; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #ccebdc; border-radius: 11px; background: #f0fbf6; }
.flow-live-status > span { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(22,132,91,.1); }
.flow-live-status div { display: flex; flex-direction: column; }
.flow-live-status strong { color: #0f6b49; font-size: 11px; }
.flow-live-status small { max-width: 175px; margin-top: 3px; color: #56806d; font-size: 9px; line-height: 1.4; }
.flow-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 15px 0; }
.flow-stat-grid div { display: flex; align-items: baseline; gap: 8px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(23,34,53,.04); }
.flow-stat-grid strong { font-size: 22px; }
.flow-stat-grid span { color: var(--muted); font-size: 10px; }
.flow-map-panel { overflow: hidden; }
.flow-map-panel .panel-header > p { margin: 0; }
.flow-node-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px; background: #f8f9fb; }
.flow-node-card { min-width: 0; overflow: hidden; border: 1px solid #e0e5eb; border-top: 3px solid #5d7089; border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(23,34,53,.04); }
.flow-node-card.type-menu { border-top-color: var(--blue); }
.flow-node-card.type-input { border-top-color: var(--amber); }
.flow-node-card.type-action, .flow-node-card.type-end { border-top-color: var(--green); }
.flow-node-card > header { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #edf0f3; }
.flow-step { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; border-radius: 8px; background: var(--navy); font-size: 9px; font-weight: 800; }
.flow-node-card header > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.flow-node-card header code { overflow: hidden; color: #25344a; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.flow-node-type { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.flow-node-card > p { min-height: 56px; margin: 0; padding: 13px; color: #4e5c6f; font-size: 10px; line-height: 1.55; white-space: pre-line; }
.flow-transitions { border-top: 1px solid #edf0f3; }
.flow-transitions > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; padding: 9px 13px; border-bottom: 1px solid #edf0f3; }
.flow-transitions > div:last-child { border-bottom: 0; }
.flow-transitions span { overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.flow-transitions small { grid-column: 1; color: #929daa; font-size: 8px; }
.flow-transitions a { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--blue); font-size: 9px; text-decoration: none; }
.flow-transitions a:hover { text-decoration: underline; }
.flow-transitions code { font-size: 8px; }
.flow-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 13px 13px; padding: 10px; color: #23674e; border-radius: 8px; background: #edf9f3; font-size: 9px; }
.flow-action code { font-size: 9px; font-weight: 750; }
.flow-builder-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.flow-guided-panel { overflow: hidden; position: relative; }
.flow-guided-panel.is-paused .flow-guided-intro, .flow-guided-panel.is-paused .flow-guided-heading, .flow-guided-panel.is-paused .flow-guided-nodes { opacity: .48; }
.flow-publish-notice { display: flex; align-items: flex-start; gap: 12px; margin: 18px 20px 0; padding: 13px 15px; color: #245b45; border: 1px solid #cce8da; border-radius: 10px; background: #f0faf5; }
.flow-publish-notice > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: var(--green); font-size: 11px; font-weight: 900; }
.flow-publish-notice strong { display: block; font-size: 11px; }
.flow-publish-notice p { margin: 3px 0 0; color: #547564; font-size: 9px; line-height: 1.55; }
.flow-guided-intro { display: grid; grid-template-columns: minmax(220px,.55fr) minmax(0,1.45fr); gap: 25px; padding: 23px 20px; border-bottom: 1px solid var(--line); transition: opacity .16s; }
.flow-guided-intro h4, .flow-guided-heading h4 { margin: 5px 0; font-size: 16px; }
.flow-guided-intro p, .flow-guided-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.flow-general-fields { display: grid; grid-template-columns: minmax(200px,.8fr) minmax(260px,1.2fr); gap: 12px; }
.guided-field-label, .flow-general-fields > label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #465468; font-size: 9px; font-weight: 750; }
.guided-label-text, .flow-general-fields > label { position: relative; }
.field-counter { margin-left: 6px; color: #939daa; font-size: 8px; font-weight: 600; }
.field-counter.near-limit { color: #a5650c; font-weight: 800; }
.guided-control, .flow-general-fields input, .flow-general-fields textarea { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); border: 1px solid #d9e0e8; border-radius: 8px; outline: 0; background: #fff; font-size: 10px; line-height: 1.45; }
.flow-general-fields textarea, .guided-prompt { resize: vertical; }
.guided-control:focus, .flow-general-fields input:focus, .flow-general-fields textarea:focus { border-color: #7699c5; box-shadow: 0 0 0 3px rgba(35,103,201,.1); }
.guided-control:invalid, .flow-general-fields input:invalid, .flow-general-fields textarea:invalid { border-color: #d98890; }
.flow-guided-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px 20px 13px; transition: opacity .16s; }
.flow-guided-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.flow-guided-legend span, .guided-type-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.flow-guided-legend .menu, .guided-type-badge.menu { color: #235fae; background: #eaf2ff; }
.flow-guided-legend .input, .guided-type-badge.input { color: #945608; background: #fff1db; }
.flow-guided-legend .action, .guided-type-badge.action { color: #11704b; background: #e9f8f1; }
.flow-guided-legend .end, .guided-type-badge.end { color: #596677; background: #eef1f5; }
.flow-guided-nodes { display: flex; flex-direction: column; gap: 9px; padding: 0 20px 22px; transition: opacity .16s; }
.flow-editor-loading { min-height: 120px; display: grid; place-items: center; align-content: center; color: var(--muted); font-size: 10px; }
.flow-editor-loading > span { width: 24px; height: 24px; border: 3px solid #dfe5ec; border-top-color: var(--fuji-red); border-radius: 50%; animation: flow-spin .8s linear infinite; }
@keyframes flow-spin { to { transform: rotate(360deg); } }
.guided-node-card { overflow: hidden; border: 1px solid #dfe5ec; border-left: 4px solid #75869c; border-radius: 11px; background: #fff; }
.guided-node-card.type-menu { border-left-color: var(--blue); }
.guided-node-card.type-input { border-left-color: var(--amber); }
.guided-node-card.type-action { border-left-color: var(--green); }
.guided-node-card.type-end { border-left-color: #6b7788; }
.guided-node-summary { min-height: 64px; display: grid; grid-template-columns: 34px minmax(180px,1fr) auto minmax(130px,.6fr) 18px; align-items: center; gap: 10px; padding: 10px 13px; cursor: pointer; list-style: none; }
.guided-node-summary::-webkit-details-marker { display: none; }
.guided-node-number { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; border-radius: 8px; background: var(--navy); font-size: 9px; font-weight: 850; }
.guided-node-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.guided-node-identity code { overflow: hidden; color: #26364c; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.guided-node-identity span { color: var(--muted); font-size: 8px; }
.guided-node-destination { overflow: hidden; color: #6c7889; font-size: 8px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.guided-node-chevron { color: #8a95a3; font-size: 15px; transform-origin: center; transition: transform .16s; }
.guided-node-card[open] .guided-node-chevron { transform: rotate(180deg); }
.guided-node-card[open] .guided-node-summary { background: #fafbfc; border-bottom: 1px solid #e7ebef; }
.guided-node-body { padding: 16px; }
.guided-locked-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-bottom: 14px; }
.guided-locked-item { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 8px 9px; border: 1px solid #e5e9ee; border-radius: 8px; background: #f6f8fa; }
.guided-locked-item span { color: #8792a0; font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.guided-locked-item code { overflow: hidden; color: #435167; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.guided-prompt { min-height: 78px; }
.guided-menu-editor { margin-top: 16px; padding-top: 15px; border-top: 1px solid #e8ecf0; }
.guided-menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.guided-menu-toolbar > div { display: flex; flex-direction: column; gap: 3px; }
.guided-menu-toolbar strong { font-size: 11px; }
.guided-menu-toolbar small { color: var(--muted); font-size: 8px; }
.guided-menu-toolbar .button { min-height: 34px; padding: 0 12px; font-size: 9px; }
.guided-menu-toolbar .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.guided-options-list { display: flex; flex-direction: column; gap: 8px; }
.guided-option-row { overflow: hidden; border: 1px solid #e0e5eb; border-radius: 9px; background: #fbfcfd; }
.guided-option-header { min-height: 41px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px; border-bottom: 1px solid #e7ebef; background: #fff; }
.guided-option-identity { min-width: 0; display: flex; align-items: center; gap: 8px; }
.guided-option-number { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 6px; background: #52657d; font-size: 8px; font-weight: 800; }
.guided-option-identity code { overflow: hidden; color: #647185; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.guided-option-actions { display: flex; gap: 4px; }
.guided-icon-button { width: 27px; height: 27px; display: grid; place-items: center; color: #536174; border: 1px solid #dce2e9; border-radius: 6px; background: #fff; font-size: 12px; cursor: pointer; }
.guided-icon-button:hover:not(:disabled) { color: var(--blue); border-color: #a9c2e2; background: #f2f7fd; }
.guided-icon-button.danger:hover:not(:disabled) { color: #a61c28; border-color: #e8b5ba; background: #fff2f3; }
.guided-icon-button:disabled { opacity: .3; cursor: not-allowed; }
.guided-option-fields { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(200px,1.2fr) minmax(210px,1fr); gap: 9px; padding: 10px; }
.guided-preserved-note { margin: -2px 10px 10px; padding: 7px 9px; color: #79530f; border-radius: 7px; background: #fff5e4; font-size: 8px; }
.flow-editor-panel { overflow: hidden; }
.flow-editor-panel > summary { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; cursor: pointer; list-style: none; }
.flow-editor-panel > summary::-webkit-details-marker { display: none; }
.flow-editor-panel > summary > span { display: flex; flex-direction: column; gap: 3px; }
.flow-editor-panel > summary strong { font-size: 15px; }
.flow-editor-panel > summary small { color: var(--muted); font-size: 10px; }
.flow-editor-panel > summary > b { color: var(--fuji-red); font-size: 10px; }
.flow-editor-panel[open] > summary { border-bottom: 1px solid var(--line); }
.flow-editor-panel[open] > summary > b { font-size: 0; }
.flow-editor-panel[open] > summary > b::after { content: "Recolher"; font-size: 10px; }
.flow-editor-advanced-body { padding: 20px; }
.flow-editor-toolbar, .flow-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flow-editor-toolbar p { max-width: 750px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.flow-editor-panel label { display: block; margin: 17px 0 7px; color: #455368; font-size: 10px; font-weight: 750; }
.flow-editor-panel textarea { width: 100%; min-height: 560px; resize: vertical; padding: 15px; color: #dce4ed; border: 1px solid #263851; border-radius: 10px; outline: 0; background: #172235; font: 10px/1.55 Consolas, "Courier New", monospace; tab-size: 2; }
.flow-editor-panel textarea:focus { border-color: #597ca6; box-shadow: 0 0 0 3px rgba(35,103,201,.12); }
.flow-editor-footer { margin-top: 12px; }
.flow-editor-footer > span { color: var(--muted); font-size: 9px; }
.flow-editor-footer > span.over-limit { color: #a61c28; font-weight: 800; }
.flow-json-state { padding: 4px 7px; border-radius: 6px; background: #f0f2f5; }
.flow-json-state.ok { color: #11704b; background: #e9f8f1; }
.flow-json-state.warn { color: #8b590e; background: #fff2db; }
.flow-json-state.error { color: #a61c28; background: #ffebed; }
.flow-validation-summary { padding: 14px 17px; color: #91202a; border: 1px solid #efbdc2; border-radius: 11px; background: #fff2f3; }
.flow-validation-summary strong { font-size: 11px; }
.flow-validation-summary ul { margin: 7px 0 0; padding-left: 18px; }
.flow-validation-summary li { margin: 4px 0; font-size: 9px; }
.flow-validation-summary button { padding: 0; color: inherit; border: 0; background: none; font-size: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.flow-publish-bar { position: sticky; z-index: 8; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border: 1px solid #cad2dc; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 14px 38px rgba(23,34,53,.17); backdrop-filter: blur(10px); }
.flow-publish-bar > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.flow-publish-bar strong { font-size: 11px; }
.flow-publish-bar span { color: var(--muted); font-size: 9px; }
.flow-publish-bar span.has-changes { color: #a45d05; font-weight: 750; }
.flow-publish-bar > div:last-child { display: flex; gap: 8px; }
.flow-publish-bar .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.qr-intro { min-height: 154px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 28px; overflow: hidden; position: relative; }
.qr-intro::after { content: ""; width: 190px; height: 190px; position: absolute; right: -70px; top: -110px; border: 28px solid var(--fuji-blue-soft); border-radius: 50%; }
.qr-intro > div:first-child { position: relative; z-index: 1; }
.qr-intro h2 { margin: 7px 0; font-size: 24px; letter-spacing: -.025em; }
.qr-intro p { max-width: 790px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.qr-security-seal { min-width: 218px; display: flex; align-items: center; gap: 11px; padding: 13px 15px; position: relative; z-index: 1; color: #215e45; border: 1px solid #c7e7d8; border-radius: 11px; background: #effaf5; }
.qr-security-seal > span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: var(--green); font-size: 11px; font-weight: 900; }
.qr-security-seal div { display: flex; flex-direction: column; }
.qr-security-seal strong { font-size: 10px; }
.qr-security-seal small { margin-top: 3px; color: #5e7d6e; font-size: 8px; }
.qr-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.65fr); gap: 18px; margin-top: 18px; align-items: start; }
.qr-builder, .qr-preview { overflow: hidden; }
.qr-form { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.qr-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.qr-form legend { margin-bottom: 10px; color: #455468; font-size: 10px; font-weight: 800; }
.qr-kind-selector { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.qr-kind-selector legend { grid-column: 1 / 4; }
.qr-kind-selector > label { min-width: 0; cursor: pointer; }
.qr-kind-selector input { position: absolute; opacity: 0; pointer-events: none; }
.qr-kind-selector label > span { height: 100%; min-height: 105px; display: grid; grid-template-columns: 27px minmax(0,1fr); grid-template-rows: auto 1fr; gap: 3px 9px; padding: 12px; color: #526175; border: 1px solid #dce3eb; border-radius: 10px; background: #fff; transition: .16s ease; }
.qr-kind-selector label > span > b { width: 27px; height: 27px; grid-row: 1 / 3; display: grid; place-items: center; color: var(--fuji-blue); border-radius: 8px; background: var(--fuji-blue-soft); font-size: 9px; }
.qr-kind-selector strong { align-self: end; color: var(--ink); font-size: 10px; }
.qr-kind-selector small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.qr-kind-selector label:hover > span { border-color: #b7cce3; background: #fafcff; }
.qr-kind-selector input:checked + span { color: #1c538f; border-color: #79a2cf; background: #f4f8fd; box-shadow: 0 0 0 3px rgba(23,73,143,.08); }
.qr-kind-selector input:focus-visible + span { outline: 3px solid rgba(35,98,169,.28); outline-offset: 2px; }
.qr-form-section { padding: 16px; border: 1px solid #e0e6ed; border-radius: 11px; background: #fbfcfd; }
.qr-form-section[hidden] { display: none; }
.qr-form-section > div:first-child { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.qr-form-section > div:first-child > div { display: flex; flex-direction: column; }
.qr-form-section > div:first-child strong { font-size: 11px; }
.qr-form-section > div:first-child small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.qr-step-number { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 8px; background: var(--fuji-blue); font-size: 9px; font-weight: 850; }
.qr-form-section > label, .qr-form-section .form-row > label { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; color: #4b596d; font-size: 9px; font-weight: 750; }
.qr-form-section .form-row > label { margin-top: 0; }
.qr-form-section input, .qr-form-section select { width: 100%; min-height: 41px; padding: 0 11px; color: var(--ink); border: 1px solid #d7dfe8; border-radius: 8px; outline: 0; background: #fff; font-size: 10px; }
.qr-form-section input:focus, .qr-form-section select:focus { border-color: #7ca4cf; box-shadow: 0 0 0 3px rgba(23,73,143,.09); }
.qr-form-section.compact { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.55fr); align-items: end; gap: 15px; }
.qr-form-section.compact > div:first-child { margin-bottom: 0; }
.qr-form-section.compact > label { margin: 0; }
.qr-preview { position: sticky; top: 104px; }
.qr-label { width: min(310px,calc(100% - 36px)); min-height: 430px; display: flex; align-items: center; flex-direction: column; margin: 24px auto 18px; padding: 23px 21px 19px; color: var(--ink); border: 1px solid #cad4df; border-radius: 13px; background: #fff; box-shadow: 0 12px 32px rgba(13,41,72,.1); text-align: center; }
.qr-label-logo { width: 142px; height: 42px; display: block; object-fit: contain; }
.qr-code-image { width: 225px; height: 225px; display: block; margin: 14px auto 12px; object-fit: contain; image-rendering: pixelated; }
.qr-label > strong { font-size: 15px; }
.qr-label > span { margin-top: 5px; color: var(--fuji-blue); font-size: 11px; font-weight: 800; }
.qr-label > small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.qr-label > p { margin: auto 0 0; padding-top: 13px; color: #6f7e8e; border-top: 1px solid #e1e6eb; font-size: 8px; }
.qr-preview-actions { display: flex; flex-direction: column; gap: 7px; padding: 0 18px 18px; }
.qr-empty-preview { min-height: 420px; display: grid; place-items: center; align-content: center; padding: 35px; color: var(--muted); text-align: center; }
.qr-empty-preview > span { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 15px; color: var(--fuji-blue); border: 1px dashed #a9bfd7; border-radius: 15px; background: var(--fuji-blue-soft); font-size: 32px; }
.qr-empty-preview strong { color: var(--ink); font-size: 12px; }
.qr-empty-preview p { max-width: 260px; margin: 7px 0 0; font-size: 9px; line-height: 1.5; }
.qr-public-page { min-height: 100vh; background: radial-gradient(circle at 85% 0, #e4eef9 0, transparent 34%), linear-gradient(150deg,#eef3f8,#fff 55%,#e9f1f9); }
.qr-public-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.qr-public-card { width: min(540px,100%); padding: 34px; color: var(--ink); border: 1px solid #cad8e6; border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 24px 70px rgba(13,41,72,.16); }
.qr-public-logo { width: 165px; height: 54px; display: block; margin-bottom: 25px; object-fit: contain; }
.qr-public-card h1 { margin: 8px 0 10px; font-size: 27px; letter-spacing: -.035em; }
.qr-public-card > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.qr-public-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 22px 0; }
.qr-public-context div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.qr-public-context dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.qr-public-context dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 800; }
.qr-public-action { margin-bottom: 8px; }
.qr-public-note { margin: 18px 0 0 !important; padding-top: 15px; border-top: 1px solid var(--line); font-size: 9px !important; }
.settings-intro { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 2px 0 18px; }
.settings-intro h2 { margin: 7px 0; font-size: 24px; }
.settings-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.settings-intro code { padding: 2px 5px; background: #e9edf2; border-radius: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.settings-card { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; padding: 20px; }
.settings-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; font-size: 20px; }
.settings-icon.ok { color: var(--green); background: #e8f8f0; }
.settings-icon.warn { color: var(--amber); background: #fff2dc; }
.settings-icon.bad { color: #b41623; background: #ffebed; }
.settings-card h3 { margin: 6px 0; font-size: 16px; }
.settings-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.setting-lines { margin: 13px 0; }
.setting-lines div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #edf0f3; font-size: 9px; }
.setting-lines span { color: var(--muted); }
.setting-lines strong.ok { color: var(--green); }
.setting-lines strong.warn { color: var(--amber); }
.setting-lines strong.bad { color: #b41623; }
.security-note { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 19px; border-left: 4px solid var(--green); }
.security-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-weight: 900; }
.security-note h3 { margin: 0 0 4px; font-size: 14px; }
.security-note p { margin: 0; color: var(--muted); font-size: 10px; }
.login-page { background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.login-visual { overflow: hidden; position: relative; display: grid; place-items: center; padding: 70px; color: #fff; background: linear-gradient(140deg, #131e30, #283e5d); }
.visual-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 42px 42px; transform: perspective(500px) rotateX(58deg) scale(1.6) translateY(110px); }
.login-visual::after { content: ""; position: absolute; width: 430px; height: 430px; right: -160px; top: -150px; border: 60px solid rgba(32,91,160,.72); border-radius: 50%; }
.visual-content { max-width: 620px; position: relative; z-index: 1; }
.visual-content img { width: 112px; filter: brightness(0) invert(1); }
.visual-content > p { margin: 58px 0 9px; color: #a9c9eb; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.visual-content h1 { margin: 0; max-width: 570px; font-size: 47px; line-height: 1.08; letter-spacing: -.045em; }
.visual-flow { display: flex; align-items: center; gap: 11px; margin-top: 36px; }
.visual-flow span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 700; }
.visual-flow i { color: #9dc4ee; font-style: normal; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(390px, 100%); }
.login-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 32px; color: #fff; background: var(--fuji-red); border-radius: 11px; font-size: 13px; font-weight: 900; }
.login-card h2 { margin: 7px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.login-card > p.muted { margin: 0 0 25px; font-size: 12px; line-height: 1.5; }
.login-card label { display: flex; flex-direction: column; gap: 6px; margin: 13px 0; color: #465367; font-size: 10px; font-weight: 700; }
.login-card input { width: 100%; min-height: 45px; }
.login-card .button { margin-top: 10px; min-height: 45px; }
.form-error { padding: 10px 12px; color: #a61c28; background: #fff0f1; border: 1px solid #f3c2c6; border-radius: 8px; font-size: 10px; }
.demo-hint { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 11px; color: #7c530f; background: #fff5e3; border-radius: 8px; font-size: 9px; }
.sr-only { width: 1px; height: 1px; overflow: hidden; position: absolute; margin: -1px; padding: 0; white-space: nowrap; border: 0; clip: rect(0,0,0,0); clip-path: inset(50%); }
.button.ghost { color: var(--fuji-blue); border-color: transparent; background: transparent; }
.button.ghost:hover { border-color: #cbd8e6; background: #f3f7fb; }
.customer-kpi-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.customer-kpi { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(13,41,72,.035); }
.customer-kpi span { color: var(--muted); font-size: 10px; font-weight: 700; }
.customer-kpi strong { color: var(--fuji-blue); font-size: 25px; letter-spacing: -.04em; }
.customer-directory { overflow: hidden; }
.customer-filters { display: grid; grid-template-columns: minmax(220px,1fr) repeat(3,minmax(145px,.35fr)) auto auto; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.customer-filters label { min-width: 0; }
.customer-filters input, .customer-filters select { width: 100%; min-height: 40px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; }
.customer-filters input:focus, .customer-filters select:focus { border-color: #7ca4cf; box-shadow: 0 0 0 3px rgba(23,73,143,.09); }
.customer-cell-identity { min-width: 210px; display: flex; align-items: center; gap: 10px; }
.customer-cell-identity > div { min-width: 0; }
.customer-cell-identity a { color: var(--ink); text-decoration: none; }
.customer-cell-identity a:hover { color: var(--fuji-blue); }
.customer-cell-identity small { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-language { display: inline-flex; min-height: 26px; align-items: center; padding: 0 9px; color: #284f7f; border-radius: 8px; background: #edf4fb; font-size: 10px; font-weight: 750; white-space: nowrap; }
.customer-open { width: 31px; height: 31px; display: grid; place-items: center; color: var(--fuji-blue); border: 1px solid #d8e2ed; border-radius: 9px; background: #fff; font-size: 17px; text-decoration: none; }
.customer-open:hover { color: #fff; border-color: var(--fuji-blue); background: var(--fuji-blue); }
.customer-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.customer-row-actions form { margin: 0; }
.customer-profile-hero { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 26px; }
.customer-profile-identity { min-width: 0; display: flex; align-items: center; gap: 15px; }
.customer-profile-identity .avatar { width: 54px; height: 54px; font-size: 18px; }
.customer-profile-identity > div { min-width: 0; }
.customer-profile-identity h2 { margin: 5px 0 4px; font-size: 22px; }
.customer-profile-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.customer-profile-actions { display: flex; align-items: center; gap: 10px; }
.customer-approval-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 17px 20px; }
.customer-approval-panel > div:first-child { display: grid; gap: 4px; }
.customer-approval-panel small { color: var(--muted); font-size: 9px; }
.customer-approval-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.customer-approval-actions form { margin: 0; }
.customer-approval-summary { min-width: 0; }
.customer-approval-panel.registration-active { align-items: flex-start; }
.customer-registration-progress { display: grid; gap: 9px; margin-top: 10px; min-width: min(620px, 58vw); }
.customer-registration-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 800; }
.customer-registration-progress-heading strong { color: var(--fuji-blue); font-size: 12px; }
.customer-registration-progress progress { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: #e3eaf2; accent-color: var(--fuji-blue); }
.customer-registration-progress progress::-webkit-progress-bar { border-radius: 999px; background: #e3eaf2; }
.customer-registration-progress progress::-webkit-progress-value { border-radius: 999px; background: var(--fuji-blue); }
.customer-registration-progress progress::-moz-progress-bar { border-radius: 999px; background: var(--fuji-blue); }
.customer-registration-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.customer-registration-checklist > span { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: 10px; font-weight: 760; }
.customer-registration-checklist > span b { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: 10px; }
.customer-registration-checklist > span.complete b { color: #fff; background: #139768; }
.customer-registration-checklist > span.missing b { color: #996200; background: #fff0c7; }
.customer-registration-checklist > span small { color: var(--muted); font-size: 8px; font-weight: 700; }
.persistent-warning { margin: 14px 22px 0; }
.customer-delete-form { display: flex; align-items: center; gap: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.customer-delete-form label { display: flex; align-items: center; gap: 6px; max-width: 260px; color: var(--muted); font-size: 9px; }
.customer-profile-form { margin: 0; padding: 19px 20px 20px; }
.customer-form-actions { display: flex; justify-content: flex-end; padding-top: 3px; }
.customer-readonly-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; padding: 19px 20px 20px; }
.customer-readonly-grid div { min-width: 0; padding: 12px; border-radius: 9px; background: #f7f9fb; }
.customer-readonly-grid dt { color: var(--muted); font-size: 9px; }
.customer-readonly-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 750; }
.customer-machine-table { min-width: 680px; }
.customer-machine-table td { vertical-align: middle; }
.customer-machine-edit-form { margin: 0; }
.customer-machine-table input, .customer-machine-table select { width: 100%; min-height: 36px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fff; font-size: 10px; }
.customer-machine-table input:focus, .customer-machine-table select:focus { border-color: #7ca4cf; box-shadow: 0 0 0 3px rgba(23,73,143,.09); }
.customer-machine-table th:last-child, .customer-machine-table td:last-child { width: 1%; white-space: nowrap; }
.customer-machine-save { min-height: 36px; padding: 0 13px; }
.customer-compact-empty { padding: 18px 0 4px; color: var(--muted); font-size: 10px; }
.customer-audit-list { margin-top: 10px; }
.customer-audit-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0f3; }
.customer-audit-list > div:last-child { border-bottom: 0; }
.customer-audit-list strong { font-size: 10px; }
.customer-audit-list small { color: var(--muted); font-size: 8px; }
.internal-access-card { margin-top: 14px; padding: 14px; border: 1px solid #d8e3ee; border-radius: 12px; background: #f7fafd; }
.internal-access-card.is-active { border-color: #b9e1cf; background: #f2fbf7; }
.internal-access-card.needs-review { border-color: #ead7a7; background: #fffaf0; }
.internal-access-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.internal-access-heading > div { display: flex; flex-direction: column; gap: 4px; }
.internal-access-heading strong { font-size: 12px; }
.internal-access-card > p { margin: 10px 0; color: var(--muted); font-size: 10px; }
.internal-access-card > small { display: block; margin-top: 10px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.internal-access-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: end; margin-top: 10px; }
.internal-access-form > label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; }
.internal-access-form input:not([type="checkbox"]) { width: 100%; min-height: 36px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.internal-resource-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.internal-resource-grid label { display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid #dce5ee; border-radius: 8px; background: rgba(255,255,255,.78); color: #40556c; font-size: 9px; }
.internal-resource-grid input { accent-color: var(--fuji-blue); }
.sidebar-overlay { display: none; padding: 0; border: 0; }

:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(35,98,169,.28); outline-offset: 2px; }
.main-nav a:focus-visible, .logout:focus-visible { color: #fff; outline-color: rgba(174,210,248,.72); }
.main-area:focus { outline: 0; }

@media (max-width: 1120px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-grid.two-thirds, .chat-layout { grid-template-columns: 1fr; }
  .detail-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .simulator-layout { grid-template-columns: 430px minmax(320px,1fr); gap: 18px; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .flow-node-grid { grid-template-columns: 1fr; }
  .guided-locked-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guided-option-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guided-option-fields > label:last-child { grid-column: 1 / 3; }
  .qr-layout { grid-template-columns: minmax(0,1fr) minmax(290px,.6fr); }
  .qr-kind-selector { grid-template-columns: 1fr; }
  .qr-kind-selector legend { grid-column: auto; }
  .qr-kind-selector label > span { min-height: 76px; }
  .manual-type-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .part-result, .part-result.exact { grid-template-columns: minmax(170px,.6fr) minmax(260px,1fr); }
  .part-result.exact .small-button { grid-column: 1 / -1; width: fit-content; }
  .customer-filters { grid-template-columns: minmax(220px,1fr) repeat(2,minmax(140px,.5fr)); }
  .customer-filters .button { width: 100%; }
  .knowledge-upload-form > .form-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .knowledge-upload-form > .form-row > label:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { width: 268px; position: fixed; left: -280px; transition: left .2s ease; }
  .sidebar-open .sidebar { left: 0; }
  .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 40; visibility: hidden; opacity: 0; background: rgba(10,17,27,.5); transition: .2s; }
  .sidebar-open .sidebar-overlay { visibility: visible; opacity: 1; }
  .mobile-only { display: inline-flex; }
  .topbar { padding: 15px 20px; }
  .page-content { padding: 20px; }
  .hero-card { align-items: flex-start; flex-direction: column; }
  .content-grid.half, .settings-grid { grid-template-columns: 1fr; }
  .flow-hero { align-items: flex-start; flex-direction: column; }
  .flow-live-status { width: 100%; }
  .flow-guided-intro { grid-template-columns: 1fr; }
  .flow-guided-heading { align-items: flex-start; flex-direction: column; }
  .flow-guided-legend { justify-content: flex-start; }
  .guided-node-summary { grid-template-columns: 34px minmax(150px,1fr) auto 18px; }
  .guided-node-destination { grid-column: 2 / 4; grid-row: 2; text-align: left; }
  .guided-node-chevron { grid-column: 4; grid-row: 1 / 3; }
  .simulator-layout { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .qr-intro { align-items: flex-start; flex-direction: column; }
  .qr-security-seal { width: 100%; }
  .qr-layout { grid-template-columns: 1fr; }
  .qr-preview { position: static; }
  .knowledge-tool-grid { grid-template-columns: 1fr; }
  .loose-file-scope { grid-template-columns: 1fr; align-items: stretch; }
  .knowledge-scope { grid-template-columns: minmax(170px,.7fr) repeat(2,minmax(150px,1fr)); }
}

@media (max-width: 640px) {
  .topbar-actions .user-chip { display: none; }
  .language-switcher label > span { display: none; }
  .topbar h1 { font-size: 20px; }
  .topbar .button { display: none; }
  .page-content { padding: 14px; }
  .flash-stack { margin: 12px 14px 0; }
  .hero-card { padding: 23px; }
  .hero-card h2 { font-size: 24px; }
  .hero-status { min-width: 0; }
  .metrics-grid { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-actions { grid-template-columns: 1fr; gap: 8px; }
  .metric-card { min-height: 95px; }
  .panel-header.responsive { align-items: stretch; flex-direction: column; }
  .search-form, .filters { align-items: stretch; flex-direction: column; }
  .search-form input, .filters input, .filters select { width: 100%; }
  .conversation-table > a { grid-template-columns: 38px minmax(0,1fr); }
  .conversation-meta { grid-column: 2; align-items: flex-start; flex-direction: row; }
  .detail-column { display: flex; }
  .ticket-hero, .knowledge-hero, .settings-intro { align-items: flex-start; flex-direction: column; }
  .knowledge-header { align-items: flex-start; flex-direction: column; }
  .ticket-status { width: 100%; padding: 13px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .parts-quote-header { align-items: flex-start; flex-direction: column; }
  .parts-quote-body { padding: 16px; }
  .parts-quote-summary { grid-template-columns: 1fr; }
  .parts-quote-count { padding: 10px 0 0; text-align: left; border-top: 1px solid var(--line); border-left: 0; }
  .parts-quote-actions, .parts-quote-actions form, .parts-quote-actions .button { width: 100%; }
  .parts-quote-whatsapp { align-items: stretch; flex-direction: column; }
  .parts-quote-whatsapp > form, .parts-quote-whatsapp .button { width: 100%; }
  .quote-confirm-form { grid-template-columns: 1fr; }
  .quote-confirm-form label, .quote-confirm-form .button { grid-column: 1; }
  .knowledge-stats { width: 100%; grid-template-columns: repeat(4,1fr); }
  .selection-flow { align-items: stretch; flex-direction: column; }
  .selection-flow span { justify-content: flex-start; border-radius: 9px; }
  .selection-flow i { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .knowledge-upload-form > .form-row { grid-template-columns: 1fr; }
  .knowledge-upload-form > .form-row > label:last-child { grid-column: auto; }
  .bulk-source-actions, .bulk-preflight-details { grid-template-columns: 1fr; }
  .loose-file-scope .form-row { grid-template-columns: 1fr; }
  .bulk-source-actions .button { width: 100%; }
  .bulk-preflight-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-grid { grid-template-columns: 1fr; }
  .knowledge-tabs { width: 100%; }
  .knowledge-tabs a { flex: 1; justify-content: center; padding: 0 8px; }
  .knowledge-scope, .manual-search-bar { grid-template-columns: 1fr; }
  .scope-title { padding: 3px 0; }
  .drawing-fields, .part-result, .part-result.exact { grid-template-columns: 1fr; }
  .part-result dl { grid-template-columns: 1fr; }
  .part-result.exact .small-button { grid-column: auto; }
  .document-row { grid-template-columns: 42px minmax(0,1fr) auto; gap: 9px; }
  .document-meta, .document-status { grid-column: 2; }
  .document-row > .small-button { grid-column: 3; grid-row: 1 / 4; }
  .upload-total-progress { grid-template-columns: 1fr; }
  .upload-total-progress progress { grid-column: 1; grid-row: auto; }
  .upload-file-row { grid-template-columns: 39px minmax(0,1fr); }
  .upload-file-status { grid-column: 2; text-align: left; }
  .manual-type-grid, .exact-part-card dl, .qr-public-context { grid-template-columns: 1fr; }
  .phone-frame { width: min(390px, calc(100vw - 32px)); height: 690px; }
  .whatsapp-chat { height: 554px; }
  .settings-card { grid-template-columns: 1fr; }
  .items-list > div { grid-template-columns: 1fr; }
  .internal-access-form, .internal-resource-grid { grid-template-columns: 1fr; }
  .internal-resource-grid { grid-column: 1; }
  .flow-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .flow-editor-toolbar, .flow-editor-footer { align-items: stretch; flex-direction: column; }
  .flow-editor-toolbar .button, .flow-editor-footer .button { width: 100%; }
  .flow-publish-notice { margin: 14px 14px 0; }
  .flow-guided-intro, .flow-guided-heading { padding-left: 14px; padding-right: 14px; }
  .flow-general-fields, .guided-option-fields { grid-template-columns: 1fr; }
  .guided-option-fields > label:last-child { grid-column: auto; }
  .flow-guided-nodes { padding-left: 14px; padding-right: 14px; }
  .guided-node-summary { grid-template-columns: 31px minmax(110px,1fr) auto 16px; gap: 7px; padding: 9px; }
  .guided-node-identity span { display: none; }
  .guided-node-body { padding: 12px; }
  .guided-locked-grid { grid-template-columns: 1fr; }
  .guided-menu-toolbar { align-items: stretch; flex-direction: column; }
  .guided-menu-toolbar .button { width: 100%; }
  .guided-option-header { align-items: flex-start; flex-direction: column; }
  .guided-option-actions { width: 100%; }
  .guided-icon-button { flex: 1; }
  .flow-editor-advanced-body { padding: 14px; }
  .flow-publish-bar { position: static; align-items: stretch; flex-direction: column; }
  .flow-publish-bar > div:last-child { flex-direction: column-reverse; }
  .flow-publish-bar .button { width: 100%; }
  .hero-brand-mark { display: none; }
  .hero-tags i { display: none; }
  .qr-intro { padding: 20px; }
  .qr-form { padding: 14px; }
  .qr-form-section.compact { grid-template-columns: 1fr; align-items: stretch; }
  .qr-form-section.compact > div:first-child { margin-bottom: 8px; }
  .qr-label { width: min(310px,calc(100% - 24px)); }
  .customer-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .customer-kpi { min-height: 72px; padding: 13px; }
  .customer-filters { grid-template-columns: 1fr; }
  .customer-profile-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .customer-profile-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .customer-approval-panel, .customer-approval-actions, .customer-delete-form { align-items: stretch; flex-direction: column; }
  .customer-registration-progress { min-width: 0; width: 100%; }
  .customer-registration-checklist { grid-template-columns: 1fr; }
  .persistent-warning { margin: 12px 14px 0; }
  .customer-delete-form { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .customer-readonly-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar, .topbar, .topbar-actions, .sidebar-overlay, .stack-form, .parts-quote-actions, .parts-quote-whatsapp form { display: none !important; }
  .app-shell { display: block; }
  .page-content { padding: 0; }
  .panel, .ticket-hero { box-shadow: none; break-inside: avoid; }
  .content-grid.two-thirds { display: block; }
  .detail-column { margin-top: 16px; display: grid; grid-template-columns: repeat(2,1fr); }
  .transcript { max-height: none; color: #111; background: #fff; border: 1px solid #ccc; }
  .qr-intro, .qr-builder, .qr-preview > .panel-header, .qr-preview-actions { display: none !important; }
  .qr-layout { display: block; margin: 0; }
  .qr-preview { display: block; border: 0; box-shadow: none; }
  .qr-label { margin: 0 auto; border: 1px solid #999; box-shadow: none; break-inside: avoid; }
}
