
:root {
  color-scheme: light;
  --fc-bg-app: #f1f4f8; --fc-bg-rail: #fafcff; --fc-bg-elev: #fff; --fc-bg-canvas: #e9eef5; --fc-bg-tab-active: #e9f0f8; --fc-bg-chip: #f1f4f8;
  --fc-row-alt: #f6f8fc; --fc-thead: #f5f7fb;
  --fc-fg-1: #161b21; --fc-fg-2: #1c2330; --fc-fg-3: #1f2735; --fc-fg-muted: #4c5871; --fc-fg-meta: #525d72; --fc-fg-faint: #626c80; --fc-fg-placeholder: #8a93a6;
  --fc-border-strong: #c6cdda; --fc-border: #d4d9e3; --fc-border-soft: #dbe0eb; --fc-border-card: #dce1ec; --fc-border-row: #eef1f6;
  --fc-accent: #1f5fa6; --fc-accent-hover: #174c85; --fc-accent-tint: #e9f0f8; --fc-accent-bd: #bcd0e6; --fc-copper: #a35b23;
  --fc-ok-bg: #e7f0ea; --fc-ok-bd: #b7cdbd; --fc-ok-fg: #2f6b45;
  --fc-info-bg: #e9f0f8; --fc-info-bd: #bcd0e6; --fc-info-fg: #1f5fa6;
  --fc-warn-bg: #f6ede1; --fc-warn-bd: #e0cba8; --fc-warn-fg: #8a531f;
  --fc-danger-bg: #fff0ed; --fc-danger-bd: #e2aaa0; --fc-danger-fg: #8e3225;
  --fc-neutral-bg: #eef1f6; --fc-neutral-bd: #d4d9e3; --fc-neutral-fg: #4c5871;
  --fc-plum-bg: #ece2f0; --fc-plum-bd: #d8c9e2; --fc-plum-fg: #6e4f86;
  --fc-dot-ok: #3f7d5a; --fc-dot-info: #3a78c0; --fc-dot-warn: #b06a23; --fc-dot-danger: #8e3225; --fc-dot-muted: #aab3c2;
  --fc-surface: var(--fc-bg-elev); --fc-surface-soft: var(--fc-bg-rail); --fc-muted: var(--fc-fg-meta); --fc-text: var(--fc-fg-1); --fc-accent-soft: var(--fc-accent-tint);
  --fc-shadow: 0 8px 20px rgba(30, 38, 60, .06); --fc-shadow-node: 0 8px 20px rgba(30, 38, 60, .11);
  --fc-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fc-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --fc-rail-w: 208px;
  --fc-topbar-h: 50px; --fc-r-sm: 6px; --fc-r-md: 7px; --fc-r-lg: 8px; --fc-r-pill: 999px;
  font-family: var(--fc-sans); color: var(--fc-fg-1); background: var(--fc-bg-app);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--fc-bg-app); color: var(--fc-fg-1); -webkit-font-smoothing: antialiased; }
a { color: var(--fc-accent); text-decoration: none; }
a:hover { color: var(--fc-accent-hover); }
button, input, select, textarea { font: inherit; }
input, select, textarea { color: var(--fc-fg-1); }
::placeholder { color: var(--fc-fg-placeholder); }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--fc-accent); outline-offset: 2px; }

.fc-app, .shell { display: flex; width: 100%; min-height: 100vh; background: var(--fc-bg-app); }
.fc-app { height: 100svh; overflow: hidden; }
.fc-main { flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.fc-main > .main { height: 100%; overflow: auto; }
.fc-rail, .rail { width: var(--fc-rail-w); flex: 0 0 var(--fc-rail-w); min-height: 100vh; background: var(--fc-bg-rail); border-right: 1px solid var(--fc-border); display: flex; flex-direction: column; color: var(--fc-fg-3); }
.fc-rail-head { min-height: 50px; padding: 11px 14px; border-bottom: 1px solid var(--fc-border-soft); display: flex; align-items: center; gap: 10px; }
.fc-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--fc-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; font-size: 13px; font-weight: 800; }
.fc-kicker, .eyebrow { margin: 0 0 2px; color: #606a80; font-size: 9px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.fc-wordmark { color: var(--fc-fg-1); font-size: 14px; line-height: 1; font-weight: 800; }
.fc-nav, .nav { flex: 1; overflow: auto; padding: 10px 8px; }
.fc-nav-group { margin: 2px 0 12px; }
.fc-nav-label { padding: 4px 8px 6px; color: var(--fc-fg-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.fc-nav-section-label { margin: 3px 6px 2px; padding: 5px 2px 3px; border-top: 1px solid var(--fc-border-soft); color: #748096; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .35px; }
.fc-nav-label + .fc-nav-section-label { border-top: 0; padding-top: 2px; }
.fc-navitem, .tenant-link, .nav-link { display: block; padding: 7px 8px; margin-bottom: 1px; border-radius: 6px; color: var(--fc-fg-3); font-size: 12px; font-weight: 500; }
.fc-navitem:hover, .tenant-link:hover, .nav-link:hover { background: #eef2f8; color: var(--fc-fg-3); }
.fc-navitem.is-active, .tenant-link.active, .nav-link.active { background: var(--fc-accent-tint); color: var(--fc-accent); box-shadow: inset 2px 0 0 var(--fc-accent); }
.tenant-switcher { display: grid; gap: 2px; padding: 12px 8px 0; }
.brand { min-height: 50px; padding: 17px 14px; border-bottom: 1px solid var(--fc-border-soft); color: var(--fc-fg-1); font-size: 14px; font-weight: 800; }
.fc-rail-foot, .rail-footer { margin-top: auto; padding: 9px 12px; border-top: 1px solid var(--fc-border-soft); color: var(--fc-fg-meta); font-size: 11px; display: flex; gap: 8px; align-items: center; }
.fc-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.fc-dot-ok { background: var(--fc-dot-ok); box-shadow: 0 0 0 3px rgba(63, 125, 90, .16); }
.fc-dot-info { background: var(--fc-dot-info); box-shadow: 0 0 0 3px rgba(58,120,192,.14); }
.fc-dot-warn { background: var(--fc-dot-warn); box-shadow: 0 0 0 3px rgba(176,106,35,.16); animation: fc-blink 1.8s ease-in-out infinite; }
.fc-dot-danger { background: var(--fc-dot-danger); box-shadow: 0 0 0 3px rgba(142,50,37,.18); animation: fc-blink .7s ease-in-out infinite; }
.fc-dot-muted { background: var(--fc-dot-muted); opacity: .5; }
@keyframes fc-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }

/* Agenda operacional */
.fc-calendar-card { overflow: hidden; }
.fc-calendar-toolbar { min-height: 66px; padding: 10px 14px; border-bottom: 1px solid var(--fc-border); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.fc-calendar-toolbar h3 { margin: 0; font-size: 16px; text-align: center; text-transform: capitalize; }
.fc-calendar-nav, .fc-calendar-filters, .fc-segmented, .fc-inline-fields { display: flex; align-items: center; gap: 6px; }
.fc-calendar-filters { justify-content: flex-end; }
.fc-calendar-filters label { display: flex; align-items: center; gap: 6px; color: var(--fc-fg-meta); font-size: 11px; }
.fc-calendar-filters select { min-width: 120px; }
.fc-segmented { padding: 2px; border: 1px solid var(--fc-border); border-radius: 7px; background: var(--fc-bg); }
.fc-segmented button { border: 0; border-radius: 5px; padding: 6px 10px; background: transparent; color: var(--fc-fg-meta); cursor: pointer; }
.fc-segmented button.is-active { background: var(--fc-bg-elev); color: var(--fc-accent); box-shadow: var(--fc-shadow); font-weight: 700; }
.fc-calendar-canvas { min-height: 540px; background: var(--fc-bg-elev); }
.fc-calendar-week { min-width: 900px; display: grid; grid-template-columns: repeat(7, minmax(128px, 1fr)); }
.fc-calendar-day { min-height: 540px; padding: 0 7px 14px; border-right: 1px solid var(--fc-border-soft); background: repeating-linear-gradient(to bottom, transparent 0, transparent 53px, var(--fc-border-soft) 54px); }
.fc-calendar-day:last-child { border-right: 0; }
.fc-calendar-day > header { height: 55px; margin: 0 -7px 8px; border-bottom: 1px solid var(--fc-border); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--fc-fg-meta); text-transform: capitalize; }
.fc-calendar-day > header strong { font-size: 18px; color: var(--fc-fg-2); }
.fc-calendar-day.is-today > header, .fc-calendar-month-day.is-today > strong { color: var(--fc-accent); background: var(--fc-accent-tint); }
.fc-calendar-day-empty { display: block; padding: 14px 4px; color: var(--fc-fg-muted); font-size: 10px; text-align: center; }
.fc-calendar-event { width: 100%; margin: 0 0 6px; padding: 7px 8px; border: 0; border-left: 3px solid var(--fc-accent); border-radius: 5px; background: var(--fc-accent-tint); color: var(--fc-fg-2); display: grid; gap: 2px; text-align: left; cursor: pointer; overflow: hidden; }
.fc-calendar-event strong { font: 800 10px/1.2 var(--fc-mono); color: var(--fc-accent); }
.fc-calendar-event span { font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-calendar-event small { color: var(--fc-fg-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-calendar-event-finalizada { border-left-color: var(--fc-dot-ok); background: #eef8f1; }
.fc-calendar-event-iniciada, .fc-calendar-event-aceita { border-left-color: #2f7f61; background: #eaf7f1; }
.fc-calendar-event-rejeitada { border-left-color: var(--fc-dot-danger); background: #fbeeed; }
.fc-calendar-month { min-width: 850px; display: grid; grid-template-columns: repeat(7, 1fr); }
.fc-calendar-month-heading { padding: 8px; border-bottom: 1px solid var(--fc-border); color: var(--fc-fg-meta); font-size: 10px; text-align: center; text-transform: uppercase; }
.fc-calendar-month-day { min-height: 112px; padding: 7px; border-right: 1px solid var(--fc-border-soft); border-bottom: 1px solid var(--fc-border-soft); overflow: hidden; }
.fc-calendar-month-day > strong { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; }
.fc-calendar-month-day .fc-calendar-event { padding: 4px 5px; }
.fc-calendar-month-day .fc-calendar-event small { display: none; }
.fc-calendar-month-day.is-outside { background: #f8f9fb; opacity: .55; }
.fc-agenda-dialog { width: min(620px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--fc-border); border-radius: 10px; box-shadow: 0 24px 80px rgba(19,29,48,.28); }
.fc-agenda-dialog::backdrop { background: rgba(21,31,48,.55); }
.fc-agenda-dialog > header { padding: 16px 18px; border-bottom: 1px solid var(--fc-border); display: flex; align-items: flex-start; justify-content: space-between; }
.fc-agenda-dialog h3 { margin: 7px 0 0; font-size: 17px; }
.fc-dialog-close { border: 0; background: transparent; color: var(--fc-fg-meta); font-size: 26px; cursor: pointer; }
.fc-agenda-dialog form, .fc-agenda-detail { margin: 0; padding: 16px 18px; }
.fc-agenda-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fc-agenda-detail div { min-width: 0; }
.fc-agenda-detail dt { color: var(--fc-fg-meta); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.fc-agenda-detail dd { margin: 3px 0 0; color: var(--fc-fg-2); font-size: 12px; }
.fc-status-badge { padding: 3px 7px; border-radius: 999px; background: var(--fc-accent-tint); color: var(--fc-accent); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.fc-planner-details > summary { padding: 14px 16px; display: flex; justify-content: space-between; cursor: pointer; list-style: none; }
.fc-planner-details > summary span { display: grid; gap: 3px; }
.fc-planner-details > summary small { color: var(--fc-fg-meta); font-weight: 400; }
.fc-route-planner-grid { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.fc-route-planner { padding: 14px; border: 1px solid var(--fc-border); border-radius: 8px; background: var(--fc-bg); }
.fc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fc-inline-fields input { min-width: 0; }
.fc-check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 7px; }
.fc-check > span { min-width: 0; display: grid; gap: 2px; }
.fc-check > span > small { color: var(--fc-fg-meta); font-weight: 400; line-height: 1.35; }

/* Cronograma em grade WBS / Gantt */
.fc-project-card { background: var(--fc-bg-elev); border: 1px solid var(--fc-border-card); border-radius: 9px; box-shadow: var(--fc-shadow); overflow: hidden; }
.fc-project-summary { padding: 14px 16px; border-bottom: 1px solid var(--fc-border); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fc-project-summary h3 { margin: 2px 0; font-size: 16px; }
.fc-project-summary p { margin: 0; color: var(--fc-fg-meta); font-size: 10px; }
.fc-project-kpis { display: flex; gap: 18px; }
.fc-project-kpis span { color: var(--fc-fg-meta); font-size: 9px; text-transform: uppercase; }
.fc-project-kpis strong { display: block; color: var(--fc-fg-1); font: 800 18px/1.2 var(--fc-mono); }
.fc-gantt-scroll { overflow: auto; }
.fc-gantt { min-width: 1180px; }
.fc-gantt-header, .fc-gantt-row { display: grid; grid-template-columns: 54px minmax(230px, 1.5fr) 82px 118px 118px minmax(500px, 3fr); }
.fc-gantt-header > div { min-height: 42px; padding: 8px; border-right: 1px solid var(--fc-border); border-bottom: 1px solid var(--fc-border); background: #f1f4f8; color: var(--fc-fg-meta); display: flex; align-items: center; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.fc-gantt-row > div, .fc-gantt-row > time { min-height: 48px; padding: 7px 8px; border-right: 1px solid var(--fc-border-soft); border-bottom: 1px solid var(--fc-border-soft); display: flex; align-items: center; color: var(--fc-fg-3); font-size: 10px; }
.fc-gantt-row:hover > div, .fc-gantt-row:hover > time { background-color: #f8fbff; }
.fc-gantt-wbs, .fc-gantt-duration { justify-content: center; font-family: var(--fc-mono); }
.fc-gantt-task { display: grid !important; align-content: center; gap: 3px; }
.fc-gantt-task a { color: var(--fc-fg-1); font-weight: 700; }
.fc-gantt-task small { color: var(--fc-fg-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-gantt-days { padding: 0 !important; display: flex !important; overflow: hidden; }
.fc-gantt-days span { min-width: 35px; flex: 1; height: 100%; border-right: 1px solid var(--fc-border-soft); display: flex; align-items: center; justify-content: center; font-size: 8px; white-space: nowrap; }
.fc-gantt-days span.is-weekend { background: #e8ebf0; }
.fc-gantt-track { position: relative; padding: 8px 0 !important; overflow: hidden; background: repeating-linear-gradient(to right, transparent 0, transparent 34px, var(--fc-border-soft) 35px); }
.fc-gantt-bar { position: absolute; top: 10px; height: 27px; min-width: 8px; padding: 0 7px; border-radius: 4px; background: var(--fc-accent); color: #fff; display: flex; align-items: center; overflow: hidden; box-shadow: 0 2px 5px rgba(28,65,113,.2); }
.fc-gantt-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 700; }
.fc-gantt-bar-pendente, .fc-gantt-bar-rejeitada { background: #a66128; }
.fc-gantt-bar-aceita, .fc-gantt-bar-iniciada, .fc-gantt-bar-pausada { background: #2f7f61; }
.fc-gantt-bar-finalizada { background: #607b69; }
.fc-gantt-legend { padding: 9px 14px; display: flex; gap: 18px; color: var(--fc-fg-meta); font-size: 9px; }
.fc-gantt-legend span { display: flex; align-items: center; gap: 5px; }
.fc-gantt-legend i { width: 15px; height: 6px; border-radius: 2px; background: var(--fc-accent); }
.fc-gantt-legend i.is-progress { background: #2f7f61; }
.fc-gantt-legend i.is-done { background: #607b69; }
.fc-gantt-legend i.is-alert { background: #a66128; }
.fc-gantt-left-0{left:0%}.fc-gantt-width-0{width:0%}.fc-gantt-left-1{left:1%}.fc-gantt-width-1{width:1%}.fc-gantt-left-2{left:2%}.fc-gantt-width-2{width:2%}.fc-gantt-left-3{left:3%}.fc-gantt-width-3{width:3%}.fc-gantt-left-4{left:4%}.fc-gantt-width-4{width:4%}.fc-gantt-left-5{left:5%}.fc-gantt-width-5{width:5%}.fc-gantt-left-6{left:6%}.fc-gantt-width-6{width:6%}.fc-gantt-left-7{left:7%}.fc-gantt-width-7{width:7%}.fc-gantt-left-8{left:8%}.fc-gantt-width-8{width:8%}.fc-gantt-left-9{left:9%}.fc-gantt-width-9{width:9%}.fc-gantt-left-10{left:10%}.fc-gantt-width-10{width:10%}.fc-gantt-left-11{left:11%}.fc-gantt-width-11{width:11%}.fc-gantt-left-12{left:12%}.fc-gantt-width-12{width:12%}.fc-gantt-left-13{left:13%}.fc-gantt-width-13{width:13%}.fc-gantt-left-14{left:14%}.fc-gantt-width-14{width:14%}.fc-gantt-left-15{left:15%}.fc-gantt-width-15{width:15%}.fc-gantt-left-16{left:16%}.fc-gantt-width-16{width:16%}.fc-gantt-left-17{left:17%}.fc-gantt-width-17{width:17%}.fc-gantt-left-18{left:18%}.fc-gantt-width-18{width:18%}.fc-gantt-left-19{left:19%}.fc-gantt-width-19{width:19%}.fc-gantt-left-20{left:20%}.fc-gantt-width-20{width:20%}.fc-gantt-left-21{left:21%}.fc-gantt-width-21{width:21%}.fc-gantt-left-22{left:22%}.fc-gantt-width-22{width:22%}.fc-gantt-left-23{left:23%}.fc-gantt-width-23{width:23%}.fc-gantt-left-24{left:24%}.fc-gantt-width-24{width:24%}.fc-gantt-left-25{left:25%}.fc-gantt-width-25{width:25%}.fc-gantt-left-26{left:26%}.fc-gantt-width-26{width:26%}.fc-gantt-left-27{left:27%}.fc-gantt-width-27{width:27%}.fc-gantt-left-28{left:28%}.fc-gantt-width-28{width:28%}.fc-gantt-left-29{left:29%}.fc-gantt-width-29{width:29%}.fc-gantt-left-30{left:30%}.fc-gantt-width-30{width:30%}.fc-gantt-left-31{left:31%}.fc-gantt-width-31{width:31%}.fc-gantt-left-32{left:32%}.fc-gantt-width-32{width:32%}.fc-gantt-left-33{left:33%}.fc-gantt-width-33{width:33%}.fc-gantt-left-34{left:34%}.fc-gantt-width-34{width:34%}.fc-gantt-left-35{left:35%}.fc-gantt-width-35{width:35%}.fc-gantt-left-36{left:36%}.fc-gantt-width-36{width:36%}.fc-gantt-left-37{left:37%}.fc-gantt-width-37{width:37%}.fc-gantt-left-38{left:38%}.fc-gantt-width-38{width:38%}.fc-gantt-left-39{left:39%}.fc-gantt-width-39{width:39%}.fc-gantt-left-40{left:40%}.fc-gantt-width-40{width:40%}.fc-gantt-left-41{left:41%}.fc-gantt-width-41{width:41%}.fc-gantt-left-42{left:42%}.fc-gantt-width-42{width:42%}.fc-gantt-left-43{left:43%}.fc-gantt-width-43{width:43%}.fc-gantt-left-44{left:44%}.fc-gantt-width-44{width:44%}.fc-gantt-left-45{left:45%}.fc-gantt-width-45{width:45%}.fc-gantt-left-46{left:46%}.fc-gantt-width-46{width:46%}.fc-gantt-left-47{left:47%}.fc-gantt-width-47{width:47%}.fc-gantt-left-48{left:48%}.fc-gantt-width-48{width:48%}.fc-gantt-left-49{left:49%}.fc-gantt-width-49{width:49%}.fc-gantt-left-50{left:50%}.fc-gantt-width-50{width:50%}.fc-gantt-left-51{left:51%}.fc-gantt-width-51{width:51%}.fc-gantt-left-52{left:52%}.fc-gantt-width-52{width:52%}.fc-gantt-left-53{left:53%}.fc-gantt-width-53{width:53%}.fc-gantt-left-54{left:54%}.fc-gantt-width-54{width:54%}.fc-gantt-left-55{left:55%}.fc-gantt-width-55{width:55%}.fc-gantt-left-56{left:56%}.fc-gantt-width-56{width:56%}.fc-gantt-left-57{left:57%}.fc-gantt-width-57{width:57%}.fc-gantt-left-58{left:58%}.fc-gantt-width-58{width:58%}.fc-gantt-left-59{left:59%}.fc-gantt-width-59{width:59%}.fc-gantt-left-60{left:60%}.fc-gantt-width-60{width:60%}.fc-gantt-left-61{left:61%}.fc-gantt-width-61{width:61%}.fc-gantt-left-62{left:62%}.fc-gantt-width-62{width:62%}.fc-gantt-left-63{left:63%}.fc-gantt-width-63{width:63%}.fc-gantt-left-64{left:64%}.fc-gantt-width-64{width:64%}.fc-gantt-left-65{left:65%}.fc-gantt-width-65{width:65%}.fc-gantt-left-66{left:66%}.fc-gantt-width-66{width:66%}.fc-gantt-left-67{left:67%}.fc-gantt-width-67{width:67%}.fc-gantt-left-68{left:68%}.fc-gantt-width-68{width:68%}.fc-gantt-left-69{left:69%}.fc-gantt-width-69{width:69%}.fc-gantt-left-70{left:70%}.fc-gantt-width-70{width:70%}.fc-gantt-left-71{left:71%}.fc-gantt-width-71{width:71%}.fc-gantt-left-72{left:72%}.fc-gantt-width-72{width:72%}.fc-gantt-left-73{left:73%}.fc-gantt-width-73{width:73%}.fc-gantt-left-74{left:74%}.fc-gantt-width-74{width:74%}.fc-gantt-left-75{left:75%}.fc-gantt-width-75{width:75%}.fc-gantt-left-76{left:76%}.fc-gantt-width-76{width:76%}.fc-gantt-left-77{left:77%}.fc-gantt-width-77{width:77%}.fc-gantt-left-78{left:78%}.fc-gantt-width-78{width:78%}.fc-gantt-left-79{left:79%}.fc-gantt-width-79{width:79%}.fc-gantt-left-80{left:80%}.fc-gantt-width-80{width:80%}.fc-gantt-left-81{left:81%}.fc-gantt-width-81{width:81%}.fc-gantt-left-82{left:82%}.fc-gantt-width-82{width:82%}.fc-gantt-left-83{left:83%}.fc-gantt-width-83{width:83%}.fc-gantt-left-84{left:84%}.fc-gantt-width-84{width:84%}.fc-gantt-left-85{left:85%}.fc-gantt-width-85{width:85%}.fc-gantt-left-86{left:86%}.fc-gantt-width-86{width:86%}.fc-gantt-left-87{left:87%}.fc-gantt-width-87{width:87%}.fc-gantt-left-88{left:88%}.fc-gantt-width-88{width:88%}.fc-gantt-left-89{left:89%}.fc-gantt-width-89{width:89%}.fc-gantt-left-90{left:90%}.fc-gantt-width-90{width:90%}.fc-gantt-left-91{left:91%}.fc-gantt-width-91{width:91%}.fc-gantt-left-92{left:92%}.fc-gantt-width-92{width:92%}.fc-gantt-left-93{left:93%}.fc-gantt-width-93{width:93%}.fc-gantt-left-94{left:94%}.fc-gantt-width-94{width:94%}.fc-gantt-left-95{left:95%}.fc-gantt-width-95{width:95%}.fc-gantt-left-96{left:96%}.fc-gantt-width-96{width:96%}.fc-gantt-left-97{left:97%}.fc-gantt-width-97{width:97%}.fc-gantt-left-98{left:98%}.fc-gantt-width-98{width:98%}.fc-gantt-left-99{left:99%}.fc-gantt-width-99{width:99%}.fc-gantt-left-100{left:100%}.fc-gantt-width-100{width:100%}

@media (max-width: 800px) {
  .fc-calendar-toolbar { grid-template-columns: 1fr; }
  .fc-calendar-toolbar h3 { text-align: left; }
  .fc-calendar-filters { justify-content: flex-start; flex-wrap: wrap; }
  .fc-calendar-canvas { overflow: auto; }
  .fc-project-summary { align-items: flex-start; flex-direction: column; }
  .fc-project-kpis { width: 100%; overflow: auto; }
  .fc-form-grid, .fc-agenda-detail { grid-template-columns: 1fr; }
}

.main { flex: 1; min-width: 0; padding: 16px 18px 40px; }
.shell > .main { height: 100vh; overflow: auto; }
.topbar { min-height: 50px; margin: -16px -18px 16px; padding: 7px 16px; background: var(--fc-bg-rail); border-bottom: 1px solid var(--fc-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.topbar h1 { margin: 2px 0 0; font-size: 15px; line-height: 1.15; font-weight: 700; }
h1 { font-size: 20px; } h2 { font-size: 14px; } h1, h2 { color: var(--fc-fg-1); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.cards, .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--fc-bg-elev); border: 1px solid var(--fc-border-card); border-radius: 8px; padding: 14px 16px; box-shadow: var(--fc-shadow); min-width: 0; }
.card.wide { grid-column: span 2; }
.card h2 { margin: 0 0 10px; font-size: 11px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.metric { margin-top: 7px; font: 800 22px/1 var(--fc-mono); }
.muted { color: var(--fc-fg-meta); font-size: 11px; line-height: 1.45; }
.permission-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.permission { padding: 3px 9px; border: 1px solid var(--fc-accent-bd); border-radius: 999px; background: var(--fc-accent-tint); color: var(--fc-accent); font-size: 10px; font-weight: 700; }

.form { display: grid; gap: 10px; }
.form.compact { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.field, label { color: var(--fc-fg-3); font-size: 11px; font-weight: 600; }
.field { display: grid; gap: 5px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), form select, form textarea { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--fc-border); border-radius: 6px; background: var(--fc-bg-elev); outline: none; font-size: 12px; font-weight: 400; }
form input[type="checkbox"], form input[type="radio"] { width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 0; flex: 0 0 16px; accent-color: var(--fc-accent); }
form textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--fc-accent); box-shadow: 0 0 0 3px rgba(31, 95, 166, .12); }
fieldset { border: 1px solid var(--fc-border-card); border-radius: 8px; padding: 12px; }
legend { color: var(--fc-fg-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.button { min-height: 32px; padding: 7px 13px; border: 1px solid var(--fc-accent); border-radius: 6px; background: var(--fc-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 12px; line-height: 1; font-weight: 700; }
.button:hover { background: var(--fc-accent-hover); border-color: var(--fc-accent-hover); color: #fff; }
.button.secondary { border-color: var(--fc-border-strong); background: var(--fc-bg-elev); color: var(--fc-fg-3); font-weight: 600; }
.button.secondary:hover { background: #eef2f8; border-color: var(--fc-accent); color: var(--fc-accent); }
.button.danger { border-color: var(--fc-danger-bd); background: var(--fc-danger-bg); color: var(--fc-danger-fg); }
td form { display: inline-flex; gap: 6px; vertical-align: middle; }

.table, table { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--fc-bg-elev); font-size: 11px; line-height: 1.35; }
.table thead tr, table thead tr { background: var(--fc-thead); border-bottom: 1px solid var(--fc-border-card); }
.table th, .table td, table th, table td { padding: 8px 10px; border-bottom: 1px solid var(--fc-border-row); text-align: left; vertical-align: middle; }
.table th, table th { color: var(--fc-fg-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.table tbody tr:hover, table tbody tr:hover { background: var(--fc-row-alt); }
.table td .button, table td .button { min-height: 26px; padding: 5px 9px; font-size: 10px; }
.card:has(> table), .card:has(> .table) { overflow-x: auto; }

.notice { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--fc-warn-bd); border-radius: 7px; background: var(--fc-warn-bg); color: var(--fc-warn-fg); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.pending-list { display: grid; gap: 8px; margin: 14px 0; }
.pending-item { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--fc-border-card); border-radius: 7px; }
code, pre { font-family: var(--fc-mono); }
[id] { scroll-margin-top: 24px; }
.login { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: var(--fc-bg-app); }
.login-auth { place-items: center; }
.login-card { width: min(460px, 100%); padding: 28px; border: 1px solid var(--fc-border-card); border-radius: 8px; background: #fff; box-shadow: var(--fc-shadow); }
.login-card h1 { margin: 5px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.login-card .button { width: 100%; min-height: 38px; }
.login-card > p:last-child { margin-bottom: 0; font-size: 11px; }
.fc-scroll { scrollbar-width: thin; scrollbar-color: #cfd6e2 transparent; }

.dashboard-main { height: 100vh; overflow: auto; }
.dashboard-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dashboard-user { color: var(--fc-fg-meta); font-size: 11px; font-weight: 600; margin-right: 4px; }
.fc-icon { width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 15px; }
.fc-icon svg { width: 15px; height: 15px; stroke-width: 1.75; }
.fc-navitem { display: flex; align-items: center; gap: 9px; }
.fc-navitem .fc-icon { color: var(--fc-fg-muted); }
.fc-navitem.is-active .fc-icon { color: var(--fc-accent); }
.dashboard-content { display: grid; gap: 14px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-kpi { min-height: 116px; display: grid; grid-template-columns: 38px 1fr auto; grid-template-rows: auto 1fr; gap: 10px 12px; align-items: start; }
.dashboard-kpi .fc-icon-box { grid-row: 1 / span 2; }
.fc-icon-box { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.fc-icon-box svg { width: 16px; height: 16px; stroke-width: 1.75; }
.fc-icon-blue { color: #1f5fa6; background: #e9f0f8; }
.fc-icon-green { color: #2f6b45; background: #e7f0ea; }
.fc-icon-slate { color: #526078; background: #eef1f6; }
.fc-icon-copper { color: #8a531f; background: #f6ede1; }
.dashboard-kpi-value { align-self: end; font: 800 26px/1 var(--fc-mono); color: var(--fc-fg-1); }
.dashboard-kpi-label { color: var(--fc-fg-3); font-size: 12px; font-weight: 600; }
.dashboard-kpi-note { color: var(--fc-ok-fg); font-size: 10px; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: 14px; }
.dashboard-grid-lower { grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); }
.dashboard-panel { padding: 0; overflow: hidden; }
.dashboard-panel-head { min-height: 42px; padding: 12px 15px; border-bottom: 1px solid var(--fc-border-row); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-panel-head h2 { margin: 0; }
.dashboard-panel-body { padding: 14px 16px; }
.status-summary { display: grid; gap: 12px; }
.status-line { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(160px, 2fr) auto; align-items: center; gap: 12px; }
.status-name { color: var(--fc-fg-3); font-size: 12px; font-weight: 600; }
.status-number { color: var(--fc-fg-1); font: 600 11px/1 var(--fc-mono); white-space: nowrap; }
.status-line progress { width: 100%; height: 7px; border: 0; border-radius: 999px; overflow: hidden; background: var(--fc-border-row); accent-color: var(--fc-accent); }
.status-line progress::-webkit-progress-bar { background: var(--fc-border-row); border-radius: 999px; }
.status-line progress::-webkit-progress-value { background: var(--status-color, var(--fc-accent)); border-radius: 999px; }
.status-line progress::-moz-progress-bar { background: var(--status-color, var(--fc-accent)); border-radius: 999px; }
.operation-list { display: grid; }
.operation-row { min-height: 52px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--fc-border-row); }
.operation-row:last-child { border-bottom: 0; }
.operation-label { color: var(--fc-fg-meta); font-size: 12px; }
.operation-value { color: var(--fc-fg-1); font: 600 13px/1 var(--fc-mono); }
.activity-feed { display: grid; }
.activity-feed-item { display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--fc-border-row); align-items: start; }
.activity-feed-item:last-child { border-bottom: 0; }
.status-dot { width: 9px; height: 9px; border-radius: 999px; margin-top: 5px; background: #9aa8be; }
.status-dot.is-active { background: #2f6b45; }
.status-dot.is-pending { background: #a35b23; }
.status-dot.is-done { background: #1f5fa6; }
.activity-title { color: var(--fc-fg-1); font-size: 12px; font-weight: 700; }
.activity-meta { margin-top: 3px; color: var(--fc-fg-placeholder); font-size: 10px; }
.activity-time { color: var(--fc-fg-placeholder); font-size: 10px; white-space: nowrap; }
.schedule-list { display: grid; }
.schedule-item { min-height: 58px; display: grid; grid-template-columns: 56px 1fr 9px; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--fc-border-row); }
.schedule-item:last-child { border-bottom: 0; }
.schedule-time { color: var(--fc-accent); font: 700 14px/1 var(--fc-mono); }
.schedule-date { display: block; margin-top: 3px; color: var(--fc-fg-placeholder); font: 500 9px/1 var(--fc-sans); }
.empty-state { padding: 28px 16px; text-align: center; color: var(--fc-fg-meta); font-size: 11px; }
.admin-details { border: 1px solid var(--fc-border-card); border-radius: 8px; background: var(--fc-bg-elev); box-shadow: var(--fc-shadow); }
.admin-details > summary { cursor: pointer; list-style: none; padding: 12px 15px; color: var(--fc-fg-3); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; display: flex; justify-content: space-between; gap: 12px; }
.admin-details > summary::-webkit-details-marker { display: none; }
.admin-details[open] > summary { border-bottom: 1px solid var(--fc-border-row); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.admin-grid > .card { box-shadow: none; }
.admin-grid > .wide { grid-column: 1 / -1; }
.module-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* Fullcross module contract from the current design handoff. */
.fc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.fc-topbar { min-height: var(--fc-topbar-h); flex: 0 0 auto; background: var(--fc-bg-rail); border-bottom: 1px solid var(--fc-border); display: flex; align-items: center; flex-wrap: wrap; padding: 7px 16px; gap: 8px 16px; }
.fc-topbar h2 { margin: 0; color: var(--fc-fg-1); font: 700 15px/1 var(--fc-sans); }
.fc-topbar-right { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.fc-content { flex: 1; overflow: auto; padding: 16px 18px 40px; }
.fc-tabs { display: flex; align-items: center; gap: 6px; }
.fc-tab { border: 1px solid transparent; background: transparent; color: var(--fc-fg-faint); padding: 5px 11px; border-radius: var(--fc-r-sm); font: 700 11px/1 var(--fc-sans); cursor: pointer; }
.fc-tab:hover { color: var(--fc-fg-1); }
.fc-tab.is-active { border-color: var(--fc-accent); background: var(--fc-bg-tab-active); color: var(--fc-accent); }
.fc-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 10px; background: var(--fc-bg-elev); border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-lg); box-shadow: var(--fc-shadow); margin-bottom: 14px; }
.fc-search { display: flex; align-items: center; gap: 7px; padding: 0 10px; height: 32px; background: var(--fc-bg-rail); border: 1px solid var(--fc-border); border-radius: var(--fc-r-sm); flex: 1 1 260px; max-width: 340px; }
.fc-search input { border: 0; outline: 0; background: transparent; width: 100%; padding: 0; font: 400 12px/1 var(--fc-sans); color: var(--fc-fg-1); box-shadow: none; }
.fc-search svg { width: 15px; height: 15px; color: var(--fc-fg-placeholder); }
.fc-filter-label { color: var(--fc-fg-muted); font: 700 10px/1 var(--fc-sans); text-transform: uppercase; letter-spacing: .3px; }
.fc-input, .fc-select { height: 36px; padding: 0 10px; border: 1px solid var(--fc-border); border-radius: var(--fc-r-sm); background: var(--fc-bg-elev); font: 400 12px/1 var(--fc-sans); color: var(--fc-fg-1); outline: none; width: 100%; }
textarea.fc-input { min-height: 86px; height: auto; padding: 9px 10px; resize: vertical; }
.fc-select-sm, .fc-input-sm { height: 32px; padding: 0 8px; font: 500 12px/1 var(--fc-sans); width: auto; }
.fc-input:focus, .fc-select:focus { border-color: var(--fc-accent); box-shadow: 0 0 0 3px rgba(31,95,166,.12); }
.fc-field-label { display: block; color: var(--fc-fg-3); font: 600 11px/1 var(--fc-sans); margin-bottom: 5px; }
.fc-req { color: var(--fc-danger-fg); }
.fc-form-section { color: var(--fc-fg-muted); font: 800 10px/1.2 var(--fc-sans); text-transform: uppercase; letter-spacing: .3px; margin: 0 0 10px; }
.fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 13px; border-radius: var(--fc-r-sm); border: 1px solid var(--fc-border-strong); background: var(--fc-bg-elev); color: var(--fc-fg-3); font: 600 12px/1 var(--fc-sans); cursor: pointer; }
.fc-btn:hover { text-decoration: none; }
.fc-btn-primary { border-color: var(--fc-accent); background: var(--fc-accent); color: #fff; font-weight: 700; }
.fc-btn-primary:hover { background: var(--fc-accent-hover); border-color: var(--fc-accent-hover); color: #fff; }
.fc-iconbtn { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--fc-r-sm); border: 1px solid var(--fc-border-strong); background: var(--fc-bg-elev); color: var(--fc-fg-muted); cursor: pointer; }
.fc-iconbtn:hover { background: #eef2f8; border-color: var(--fc-accent); color: var(--fc-accent); }
.fc-iconbtn svg { width: 15px; height: 15px; stroke-width: 1.75; }
.fc-btn svg, .fc-actionbtn svg { width: 15px; height: 15px; stroke-width: 1.75; }
.fc-actionbtn { width: 26px; height: 26px; padding: 0; border: 1px solid var(--fc-border); border-radius: var(--fc-r-sm); background: var(--fc-bg-elev); color: var(--fc-fg-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fc-actionbtn:hover { background: #eef2f8; border-color: var(--fc-accent); color: var(--fc-accent); text-decoration: none; }
.fc-actionbtn.is-danger:hover { border-color: var(--fc-danger-bd); background: var(--fc-danger-bg); color: var(--fc-danger-fg); }
.fc-actions { display: inline-flex; gap: 4px; justify-content: flex-end; align-items: center; }
.fc-card { background: var(--fc-bg-elev); border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-lg); box-shadow: var(--fc-shadow); }
.fc-card-pad { padding: 14px 16px; }
.fc-card-head { padding: 11px 14px; border-bottom: 1px solid var(--fc-border-row); display: flex; align-items: baseline; gap: 8px; }
.fc-h3 { margin: 0; color: var(--fc-fg-1); font: 800 11px/1.2 var(--fc-sans); text-transform: uppercase; letter-spacing: .3px; }
.fc-table-wrap { background: var(--fc-bg-elev); border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-lg); overflow-x: auto; box-shadow: var(--fc-shadow); }
.fc-table-wrap:has(.fc-status-menu[open]) { overflow: visible; }
.fc-content > .fc-card + .fc-card { margin-top: 12px; }
.agenda-table { min-width: 980px; }
.agenda-reschedule { width: 240px; padding: 10px; margin-top: 6px; border: 1px solid var(--fc-border); border-radius: var(--fc-r-md); background: var(--fc-bg-elev); box-shadow: var(--fc-shadow); }
.agenda-reschedule label { display: grid; gap: 4px; }
.fc-table { width: 100%; border-collapse: collapse; font: 400 11px/1.35 var(--fc-sans); }
.fc-table thead tr { background: var(--fc-thead); border-bottom: 1px solid var(--fc-border-card); }
.fc-table th { text-align: left; padding: 8px 12px; color: var(--fc-fg-muted); font: 700 10px/1.2 var(--fc-sans); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.fc-table th.fc-center { text-align: center; }
.fc-table th.fc-right { text-align: right; }
.fc-table td { padding: 9px 12px; border-bottom: 1px solid var(--fc-border-row); vertical-align: middle; color: var(--fc-fg-1); }
.fc-table td.fc-muted { color: var(--fc-fg-meta); }
.fc-table td.fc-center { text-align: center; }
.fc-table td.fc-right { text-align: right; }
.fc-table.fc-dense td { padding: 6px 10px; }
.fc-row:hover { background: var(--fc-row-alt); }
.fc-route-parent { background: color-mix(in srgb, var(--fc-accent) 8%, var(--fc-bg-elev)); border-top: 2px solid color-mix(in srgb, var(--fc-accent) 45%, var(--fc-border-card)); }
.fc-route-parent td { padding-top: 10px; padding-bottom: 10px; }
.fc-route-child td:first-child { border-left: 3px solid color-mix(in srgb, var(--fc-accent) 28%, transparent); }
.fc-sortable { cursor: pointer; user-select: none; }
.fc-sortable:hover { color: var(--fc-accent); }
.fc-cell-title { font-weight: 700; color: var(--fc-fg-1); }
.fc-cell-sub { margin-top: 2px; color: var(--fc-fg-placeholder); font: 400 10px/1.2 var(--fc-sans); }
.fc-mono { font-family: var(--fc-mono); }
.fc-badge { display: inline-block; padding: 2px 8px; border-radius: var(--fc-r-pill); font: 800 9.5px/1.5 var(--fc-sans); text-transform: uppercase; letter-spacing: .3px; border: 1px solid transparent; }
.fc-badge-ok { background: var(--fc-ok-bg); border-color: var(--fc-ok-bd); color: var(--fc-ok-fg); }
.fc-badge-info { background: var(--fc-info-bg); border-color: var(--fc-info-bd); color: var(--fc-info-fg); }
.fc-badge-warn { background: var(--fc-warn-bg); border-color: var(--fc-warn-bd); color: var(--fc-warn-fg); }
.fc-badge-danger { background: var(--fc-danger-bg); border-color: var(--fc-danger-bd); color: var(--fc-danger-fg); }
.fc-badge-neutral { background: var(--fc-neutral-bg); border-color: var(--fc-neutral-bd); color: var(--fc-neutral-fg); }
.fc-badge-plum { background: var(--fc-plum-bg); border-color: var(--fc-plum-bd); color: var(--fc-plum-fg); }
.fc-st-pendente, .fc-st-planejada { background: var(--fc-neutral-bg); border-color: var(--fc-neutral-bd); color: var(--fc-neutral-fg); }
.fc-st-aceita, .fc-st-associada { background: var(--fc-info-bg); border-color: var(--fc-info-bd); color: var(--fc-info-fg); }
.fc-st-iniciada, .fc-st-pausada, .fc-st-reagendada { background: var(--fc-warn-bg); border-color: var(--fc-warn-bd); color: var(--fc-warn-fg); }
.fc-st-finalizada { background: var(--fc-ok-bg); border-color: var(--fc-ok-bd); color: var(--fc-ok-fg); }
.fc-st-rejeitada { background: var(--fc-danger-bg); border-color: var(--fc-danger-bd); color: var(--fc-danger-fg); }
.fc-st-enviada, .fc-st-reservada { background: var(--fc-warn-bg); border-color: var(--fc-warn-bd); color: var(--fc-warn-fg); }
.fc-st-aprovada, .fc-st-ativa, .fc-st-recebido, .fc-st-pago { background: var(--fc-ok-bg); border-color: var(--fc-ok-bd); color: var(--fc-ok-fg); }
.fc-st-cancelada, .fc-st-vencido { background: var(--fc-danger-bg); border-color: var(--fc-danger-bd); color: var(--fc-danger-fg); }
.fc-st-expirada, .fc-st-encerrada { background: #e8eaef; border-color: #cbd1dc; color: #3a4256; }
.fc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--fc-r-pill); background: var(--fc-bg-chip); border: 1px solid var(--fc-border); color: var(--fc-fg-muted); font: 700 10px/1 var(--fc-sans); }
.fc-chip-info { background: var(--fc-info-bg); border-color: var(--fc-info-bd); color: var(--fc-info-fg); }
.fc-chip-ok { background: var(--fc-ok-bg); border-color: var(--fc-ok-bd); color: var(--fc-ok-fg); }
.fc-chip-warn { background: var(--fc-warn-bg); border-color: var(--fc-warn-bd); color: var(--fc-warn-fg); }
.fc-chip-danger { background: var(--fc-danger-bg); border-color: var(--fc-danger-bd); color: var(--fc-danger-fg); }
.fc-count { display: inline-block; min-width: 22px; text-align: center; padding: 1px 8px; border-radius: var(--fc-r-pill); background: var(--fc-accent-tint); color: var(--fc-accent); border: 1px solid var(--fc-accent-bd); font: 700 10px/1.5 var(--fc-sans); }
.fc-avatar { width: 28px; height: 28px; border-radius: var(--fc-r-pill); display: inline-flex; align-items: center; justify-content: center; font: 800 10px/1 var(--fc-sans); flex: 0 0 28px; background: var(--fc-accent-tint); color: var(--fc-accent); }
.fc-avatar-lg { width: 44px; height: 44px; font-size: 15px; flex-basis: 44px; }
.fc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fc-kpi { background: var(--fc-bg-elev); border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-lg); box-shadow: var(--fc-shadow); padding: 14px; }
.fc-kpi-num { color: var(--fc-fg-1); font: 800 22px/1 var(--fc-mono); }
.fc-kpi-label { margin-top: 4px; color: var(--fc-fg-muted); font: 600 11px/1 var(--fc-sans); }
.fc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--fc-border-row); border: 1px solid var(--fc-border-row); border-radius: var(--fc-r-md); overflow: hidden; }
.fc-fact { background: var(--fc-bg-elev); padding: 9px 12px; }
.fc-fact-label { color: var(--fc-fg-muted); font: 800 9px/1.3 var(--fc-sans); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.fc-fact-value { color: var(--fc-fg-1); font: 500 12px/1.3 var(--fc-sans); }
.fc-empty { background: var(--fc-bg-elev); border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-lg); box-shadow: var(--fc-shadow); padding: 56px 24px; text-align: center; }
.fc-empty-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--fc-bg-app); border: 1px solid var(--fc-border-card); display: inline-flex; align-items: center; justify-content: center; color: var(--fc-fg-placeholder); margin-bottom: 14px; }
.fc-empty-icon svg { width: 20px; height: 20px; }
.fc-empty-title { color: var(--fc-fg-3); font: 600 13px/1.4 var(--fc-sans); }
.fc-empty-sub { color: var(--fc-fg-faint); font: 400 12px/1.4 var(--fc-sans); margin: 6px auto 0; max-width: 360px; }
.fc-section-head { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 8px; }
.fc-section-head:first-child { margin-top: 0; }
.fc-section-count { color: var(--fc-fg-faint); font: 600 11px/1 var(--fc-sans); }
.fc-create-panel { margin-bottom: 14px; }
.fc-create-panel > summary { list-style: none; cursor: pointer; padding: 11px 14px; color: var(--fc-fg-3); font: 700 12px/1 var(--fc-sans); }
.fc-create-panel > summary::-webkit-details-marker { display: none; }
.fc-create-panel[open] > summary { border-bottom: 1px solid var(--fc-border-row); color: var(--fc-accent); }
.fc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fc-modelos-grid { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 14px; align-items: start; }
.fc-field { min-width: 0; }
.fc-field.is-wide { grid-column: 1 / -1; }
.fc-site-table { margin-top: 12px; }
.fc-wizard { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto; }
.fc-stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fc-stepper span { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--fc-border); border-radius: 10px; background: var(--fc-surface); color: var(--fc-muted); font-size: 13px; font-weight: 700; }
.fc-stepper b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fc-surface-soft); color: var(--fc-text); }
.fc-stepper .is-active { border-color: var(--fc-accent); color: var(--fc-accent); }
.fc-stepper .is-active b { background: var(--fc-accent); color: #fff; }
.fc-assignment-grid { display: grid; gap: 10px; }
.fc-assignment-card { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2.2fr); gap: 16px; padding: 14px; border: 1px solid var(--fc-border); border-radius: 10px; background: var(--fc-surface-soft); }
.fc-assignment-card.is-selected { border-color: var(--fc-accent); box-shadow: 0 0 0 1px var(--fc-accent); }
.fc-site-choice { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.fc-site-choice input { margin-top: 4px; }
.fc-site-choice span { display: grid; gap: 4px; }
.fc-site-choice small, .fc-field small { color: var(--fc-muted); line-height: 1.4; }
.fc-model-sequence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fc-apply-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; padding: 12px; border-radius: 10px; background: var(--fc-surface-soft); }
.fc-review-note { margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid var(--fc-accent); background: var(--fc-accent-soft); color: var(--fc-text); }
.fc-wizard-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.fc-status-form { display: inline-flex; align-items: center; gap: 4px; }
.fc-status-form .fc-select { max-width: 118px; }
.fc-execution { margin-bottom: 14px; }
.fc-execution h2, .fc-execution h3 { color: var(--fc-fg-1); }
.fc-clear-filter { margin-left: auto; }
.fc-empty-compact { padding: 22px 16px; }
.fc-empty-action { margin-top: 16px; }
.fc-airoute { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--fc-fg-muted); font-size: 11px; }
.fc-airoute input[type="checkbox"] { width: 16px; min-height: 16px; padding: 0; flex: 0 0 16px; }
.fc-airoute-automation { align-items: flex-start; padding: 14px; border: 1px solid var(--fc-border); border-radius: 10px; background: var(--fc-bg-soft); }
.fc-airoute-automation input { margin-top: 3px; }
.fc-airoute-automation span { display: grid; gap: 4px; }
.fc-airoute-automation strong { color: var(--fc-fg); font-size: 12px; }
.fc-airoute-automation small { line-height: 1.45; }
.fc-status-menu { position: relative; }
.fc-status-menu > summary { list-style: none; }
.fc-status-menu > summary::-webkit-details-marker { display: none; }
.fc-status-menu[open] > summary { border-color: var(--fc-accent); color: var(--fc-accent); }
.fc-status-menu > form { position: absolute; z-index: 10; right: 0; top: 32px; width: 240px; padding: 12px; border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-lg); background: var(--fc-bg-elev); box-shadow: var(--fc-shadow-node); text-align: left; }
.fc-status-menu > form .fc-field-label + .fc-field-label { margin-top: 10px; }
.fc-status-menu > form .fc-btn { margin-top: 10px; width: 100%; }

/* Projetos · revisão da importação KMZ */
.project-kmz .route { border-left: 4px solid var(--fc-accent); }
.project-kmz .route-new-project, .project-kmz .segment-tech { padding: 12px; border: 1px solid var(--fc-accent-bd); border-radius: var(--fc-r-lg); }
.project-kmz .hidden { display: none; }
.project-kmz .duplicate { display: grid; grid-template-columns: 1fr 180px 1fr; gap: 8px; margin: 8px 0; }

/* CRUD canônico · lista e formulário modal */
.fc-modal { width: min(920px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: var(--fc-r-lg); background: transparent; color: var(--fc-fg-1); overflow: visible; }
.fc-modal::backdrop { background: rgba(20, 27, 38, .52); backdrop-filter: blur(2px); }
.fc-modal-card { max-height: calc(100svh - 32px); overflow: auto; border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-lg); background: var(--fc-bg-elev); box-shadow: 0 24px 70px rgba(20, 27, 38, .28); }
.fc-readonly { min-height: 38px; display: flex; align-items: center; padding: 8px 10px; border: 1px dashed var(--fc-border); border-radius: var(--fc-r-sm); background: var(--fc-bg-soft); color: var(--fc-fg-2); }
.fc-form-card-divider { border-top: 1px solid var(--fc-border); }
.fc-inline-policy { display: flex; align-items: end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--fc-border); }
.fc-inline-policy .fc-field { min-width: 150px; }
.fc-muted { margin: 4px 0 0; color: var(--fc-fg-meta); font-size: 12px; }
.fc-form-card-head { min-height: 58px; padding: 12px 16px; border-bottom: 1px solid var(--fc-border-row); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-form-card-head h2 { margin: 0; color: var(--fc-fg-1); font: 700 15px/1.2 var(--fc-sans); }
.fc-form-card-body { padding: 16px; }
.fc-form-card-body .fc-form-section:not(:first-child) { margin-top: 20px; }
.fc-form-card-actions { padding: 12px 16px; border-top: 1px solid var(--fc-border-row); background: var(--fc-bg-rail); display: flex; justify-content: flex-end; gap: 8px; }
.fc-model-builder { display: grid; gap: 10px; margin-top: 18px; }
.fc-model-components { display: grid; gap: 10px; margin-top: 18px; padding: 14px; border: 1px solid var(--fc-border); border-radius: 12px; background: var(--fc-surface-soft); }
.fc-model-component-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 260px; overflow: auto; }
.fc-model-component { align-items: flex-start; min-width: 0; padding: 10px; border: 1px solid var(--fc-border); border-radius: 10px; background: var(--fc-surface); }
.fc-builder-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 4px; }
.fc-builder-head .fc-form-section { margin: 0; }
.fc-builder-head small { color: var(--fc-fg-faint); font-size: 11px; }
.fc-builder-list { display: grid; gap: 10px; }
.fc-builder-card, .fc-builder-subfield { border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-lg); background: var(--fc-bg-app); padding: 12px; }
.fc-builder-subfield { margin-top: 8px; background: var(--fc-bg-elev); }
.fc-builder-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--fc-fg-2); font-size: 12px; }
.fc-builder-actions { display: flex; gap: 4px; }
.fc-builder-group { margin-top: 10px; padding: 10px; border-left: 3px solid var(--fc-accent); background: var(--fc-bg-elev); }
.fc-builder-group > .fc-btn { margin-top: 8px; }
.fc-builder-empty { margin: 0; padding: 20px; border: 1px dashed var(--fc-border); border-radius: var(--fc-r-lg); color: var(--fc-fg-faint); text-align: center; }
.fc-builder-raw { color: var(--fc-fg-faint); font-size: 11px; }
.fc-builder-raw > summary { cursor: pointer; }
.fc-builder-raw[open] > .fc-form-grid { margin-top: 8px; }
.fc-client-identification { grid-template-columns: 1fr 2fr; }
.fc-client-address { grid-template-columns: 1fr 3fr; }
.fc-client-notes { display: block; margin-top: 14px; }
.fc-client-name { display: flex; align-items: center; gap: 9px; }
.fc-lookup-status { min-height: 18px; margin-top: 7px; color: var(--fc-fg-faint); font-size: 11px; }
.fc-select-multiple { height: 112px; padding: 6px 8px; }
.fc-contract-support { display: grid; gap: 12px; padding: 16px; border-top: 1px solid var(--fc-border-row); background: var(--fc-bg-app); }
.fc-inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.fc-inline-form .fc-field { flex: 1 1 180px; }
.fc-file-input { height: auto; min-height: 36px; padding: 6px 8px; }
.fc-member-list { display: grid; gap: 6px; margin-top: 12px; }
.fc-member-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid var(--fc-border-row); border-radius: var(--fc-r-sm); color: var(--fc-fg-3); font-size: 11px; }
.fc-code-input { font-family: var(--fc-mono); font-size: 11px; line-height: 1.45; }
.fc-module-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fc-modal-legacy-form { padding: 16px; }
.fc-modal-legacy-form > .card { margin: 0; border: 0; box-shadow: none; padding: 0; }
.fc-modal-legacy-form > .card > h2 { display: none; }
.fc-modal-legacy-form .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-modal-legacy-form .form > button:last-child { align-self: end; }

/* Modelos · designer visual de layout */
.ld-page { padding: 0; }
.ld-topbar { gap: 8px; }
.ld-topbar-title { min-width: 190px; }
.ld-topbar-title .muted { margin: 3px 0 0; }
.ld-toolbar { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.ld-toolbar form { display: flex; align-items: center; gap: 6px; }
.ld-toolbar .fc-select { width: auto; min-width: 168px; }
.ld-designer { height: 100%; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--fc-bg-canvas); }
.ld-palette { min-height: 0; overflow: auto; padding: 12px; border-right: 1px solid var(--fc-border); background: var(--fc-bg-rail); }
.ld-palette-head { margin-bottom: 12px; }
.ld-palette-head h3 { margin: 0 0 4px; font: 800 11px/1.2 var(--fc-sans); text-transform: uppercase; }
.ld-search { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px; margin-bottom: 12px; border: 1px solid var(--fc-border); border-radius: var(--fc-r-sm); background: var(--fc-bg-elev); }
.ld-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; }
.ld-section { margin-bottom: 14px; }
.ld-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--fc-fg-muted); font: 800 10px/1.2 var(--fc-sans); text-transform: uppercase; }
.ld-piece-list { display: grid; gap: 6px; }
.ld-piece { width: 100%; min-height: 44px; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 7px 8px; border: 1px solid var(--fc-border-card); border-radius: var(--fc-r-md); background: var(--fc-bg-elev); color: var(--fc-fg-3); text-align: left; cursor: grab; }
.ld-piece:hover { border-color: var(--fc-accent); background: var(--fc-accent-tint); }
.ld-piece:disabled { cursor: not-allowed; opacity: .55; }
.ld-piece-icon { width: 28px; height: 28px; border-radius: var(--fc-r-sm); display: inline-flex; align-items: center; justify-content: center; background: var(--fc-neutral-bg); color: var(--fc-fg-muted); }
.ld-piece-icon svg { width: 14px; height: 14px; }
.ld-piece strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.ld-piece small { display: block; margin-top: 2px; color: var(--fc-fg-placeholder); font-size: 9px; }
.ld-canvas-shell { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ld-canvas-bar { min-height: 42px; padding: 5px 10px; border-bottom: 1px solid var(--fc-border); background: rgba(255,255,255,.88); display: flex; align-items: center; gap: 6px; }
.ld-canvas-bar .fc-chip { margin-right: auto; }
.ld-toggle[aria-pressed="true"] { border-color: var(--fc-accent); background: var(--fc-accent-tint); color: var(--fc-accent); }
.ld-stage-viewport { flex: 1; min-height: 0; overflow: auto; padding: 24px; }
.ld-stage-scale { width: 1200px; height: 760px; transform-origin: top left; }
.ld-stage { position: relative; width: 1200px; height: 760px; overflow: hidden; border: 1px solid var(--fc-border-strong); border-radius: var(--fc-r-lg); background-color: var(--fc-bg-elev); background-image: linear-gradient(var(--fc-border-row) 1px, transparent 1px), linear-gradient(90deg, var(--fc-border-row) 1px, transparent 1px); background-size: 28px 28px; box-shadow: var(--fc-shadow); }
.ld-stage.is-grid-off { background-image: none; }
.ld-stage-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fc-fg-placeholder); font-size: 12px; pointer-events: none; }
.ld-stage:not(.is-empty) .ld-stage-empty { display: none; }
.ld-block { position: absolute; width: 224px; min-height: 98px; padding: 10px; border: 1px solid var(--fc-border-strong); border-radius: var(--fc-r-lg); background: var(--fc-bg-elev); box-shadow: var(--fc-shadow-node); cursor: move; user-select: none; }
.ld-block.is-selected { border-color: var(--fc-accent); box-shadow: 0 0 0 2px rgba(31,95,166,.14), var(--fc-shadow-node); z-index: 3; }
.ld-block[data-kind="anexo"] { border-color: var(--fc-warn-bd); background: #fdf8ee; }
.ld-block[data-kind="texto"] { border-style: dashed; }
.ld-block[data-kind="before-after"] { width: 308px; border-color: var(--fc-accent-bd); }
.ld-block-head { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: var(--fc-fg-muted); font-size: 10px; }
.ld-block-head svg { width: 13px; height: 13px; }
.ld-block-title { color: var(--fc-fg-1); font-size: 11px; font-weight: 800; }
.ld-block-preview { min-height: 34px; padding: 8px; border: 1px solid var(--fc-border); border-radius: var(--fc-r-sm); background: var(--fc-bg-rail); color: var(--fc-fg-placeholder); font-size: 10px; }
.ld-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ld-before-after span { min-height: 42px; display: grid; place-items: center; border: 1px dashed var(--fc-border-strong); border-radius: var(--fc-r-sm); color: var(--fc-fg-placeholder); font-size: 9px; }
.ld-selection-tools { display: flex; align-items: center; gap: 4px; }
.ld-selection-tools[hidden] { display: none; }
.ld-readonly { padding: 9px 12px; border-bottom: 1px solid var(--fc-info-bd); background: var(--fc-info-bg); color: var(--fc-info-fg); font-size: 11px; }
.ld-raw { margin: 10px; }
.ld-raw summary { cursor: pointer; color: var(--fc-fg-muted); font-size: 11px; font-weight: 700; }
.ld-raw pre { max-height: 220px; overflow: auto; padding: 10px; border: 1px solid var(--fc-border); border-radius: var(--fc-r-sm); background: var(--fc-bg-rail); font-size: 10px; }
.fc-tech-portal { min-height: 100vh; overflow: auto; background: #f3f5f9; }
.fc-tech-portal-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--fc-border-row); background: var(--fc-bg-elev); }
.fc-tech-portal-top h1 { margin: 2px 0 4px; color: var(--fc-fg-1); font-size: 22px; line-height: 1.2; }
.fc-tech-portal-top p { margin: 0; color: var(--fc-fg-muted); font-size: 12px; }
.fc-tech-portal-content { width: min(1180px, 100%); margin: 0 auto; padding: 18px; }
.fc-tech-portal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.fc-tech-portal-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 13px 15px; border: 1px solid var(--fc-border-card); border-radius: 14px; background: var(--fc-bg-elev); box-shadow: var(--fc-shadow); }
.fc-tech-portal-summary span { color: var(--fc-fg-muted); font-size: 11px; font-weight: 700; }
.fc-tech-portal-summary strong { color: var(--fc-fg-1); font: 800 23px/1 var(--fc-mono); }
.fc-tech-portal-filters { display: flex; gap: 7px; margin-bottom: 14px; padding: 2px 0 5px; overflow-x: auto; scrollbar-width: thin; }
.fc-tech-portal-filter { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 10px; border: 1px solid var(--fc-border-card); border-radius: 999px; background: var(--fc-bg-elev); color: var(--fc-fg-muted); font-size: 10px; text-transform: capitalize; }
.fc-tech-portal-filter strong { color: var(--fc-fg-1); }
.fc-tech-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fc-tech-portal-card { min-width: 0; overflow: hidden; border: 1px solid var(--fc-border-card); border-radius: 16px; background: var(--fc-bg-elev); box-shadow: 0 8px 24px rgba(30,38,60,.07); }
.fc-tech-portal-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 14px 0; }
.fc-tech-portal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-tech-portal-tag { display: inline-flex; align-items: center; min-height: 21px; padding: 0 8px; border-radius: 999px; background: var(--fc-neutral-bg); color: var(--fc-neutral-fg); font-size: 9px; font-weight: 750; }
.fc-tech-portal-tag.is-mine { background: var(--fc-info-bg); color: var(--fc-info-fg); }
.fc-tech-portal-tag.is-suggested { background: var(--fc-warn-bg); color: var(--fc-warn-fg); }
.fc-tech-portal-map { flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--fc-border-row); border-radius: 9px; background: var(--fc-bg-rail); color: var(--fc-fg-2); }
.fc-tech-portal-map:hover { border-color: var(--fc-accent-bd); color: var(--fc-accent); }
.fc-tech-portal-card-body { padding: 9px 14px 12px; }
.fc-tech-portal-card-body h3 { margin: 0 0 8px; color: var(--fc-fg-1); font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.fc-tech-portal-context { display: flex; align-items: flex-start; gap: 7px; margin: 4px 0; color: var(--fc-fg-muted); font-size: 11px; line-height: 1.45; }
.fc-tech-portal-context .fc-icon, .fc-tech-portal-meta .fc-icon { flex: 0 0 auto; margin-top: 1px; }
.fc-tech-portal-context strong { color: var(--fc-fg-2); }
.fc-tech-portal-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--fc-border-row); color: var(--fc-fg-faint); font-size: 9px; }
.fc-tech-portal-meta > span { display: flex; align-items: flex-start; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.fc-tech-portal-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 14px; }
.fc-tech-portal-actions form { margin: 0; }
.fc-tech-portal-action { min-height: 35px; border-radius: 9px; }
.fc-tech-portal-readonly { color: var(--fc-fg-muted); font-size: 10px; }
.fc-tech-portal-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 5px; padding: 42px 16px; border: 1px dashed var(--fc-border-strong); border-radius: 16px; background: var(--fc-bg-elev); color: var(--fc-fg-muted); text-align: center; }
.fc-tech-portal-empty strong { color: var(--fc-fg-2); }
.ld-x-0{left:0px}.ld-x-1{left:7px}.ld-x-2{left:14px}.ld-x-3{left:21px}.ld-x-4{left:28px}.ld-x-5{left:35px}.ld-x-6{left:42px}.ld-x-7{left:49px}.ld-x-8{left:56px}.ld-x-9{left:63px}.ld-x-10{left:70px}.ld-x-11{left:77px}.ld-x-12{left:84px}.ld-x-13{left:91px}.ld-x-14{left:98px}.ld-x-15{left:105px}.ld-x-16{left:112px}.ld-x-17{left:119px}.ld-x-18{left:126px}.ld-x-19{left:133px}.ld-x-20{left:140px}.ld-x-21{left:147px}.ld-x-22{left:154px}.ld-x-23{left:161px}.ld-x-24{left:168px}.ld-x-25{left:175px}.ld-x-26{left:182px}.ld-x-27{left:189px}.ld-x-28{left:196px}.ld-x-29{left:203px}.ld-x-30{left:210px}.ld-x-31{left:217px}.ld-x-32{left:224px}.ld-x-33{left:231px}.ld-x-34{left:238px}.ld-x-35{left:245px}.ld-x-36{left:252px}.ld-x-37{left:259px}.ld-x-38{left:266px}.ld-x-39{left:273px}.ld-x-40{left:280px}.ld-x-41{left:287px}.ld-x-42{left:294px}.ld-x-43{left:301px}.ld-x-44{left:308px}.ld-x-45{left:315px}.ld-x-46{left:322px}.ld-x-47{left:329px}.ld-x-48{left:336px}.ld-x-49{left:343px}.ld-x-50{left:350px}.ld-x-51{left:357px}.ld-x-52{left:364px}.ld-x-53{left:371px}.ld-x-54{left:378px}.ld-x-55{left:385px}.ld-x-56{left:392px}.ld-x-57{left:399px}.ld-x-58{left:406px}.ld-x-59{left:413px}.ld-x-60{left:420px}.ld-x-61{left:427px}.ld-x-62{left:434px}.ld-x-63{left:441px}.ld-x-64{left:448px}.ld-x-65{left:455px}.ld-x-66{left:462px}.ld-x-67{left:469px}.ld-x-68{left:476px}.ld-x-69{left:483px}.ld-x-70{left:490px}.ld-x-71{left:497px}.ld-x-72{left:504px}.ld-x-73{left:511px}.ld-x-74{left:518px}.ld-x-75{left:525px}.ld-x-76{left:532px}.ld-x-77{left:539px}.ld-x-78{left:546px}.ld-x-79{left:553px}.ld-x-80{left:560px}.ld-x-81{left:567px}.ld-x-82{left:574px}.ld-x-83{left:581px}.ld-x-84{left:588px}.ld-x-85{left:595px}.ld-x-86{left:602px}.ld-x-87{left:609px}.ld-x-88{left:616px}.ld-x-89{left:623px}.ld-x-90{left:630px}.ld-x-91{left:637px}.ld-x-92{left:644px}.ld-x-93{left:651px}.ld-x-94{left:658px}.ld-x-95{left:665px}.ld-x-96{left:672px}.ld-x-97{left:679px}.ld-x-98{left:686px}.ld-x-99{left:693px}.ld-x-100{left:700px}.ld-x-101{left:707px}.ld-x-102{left:714px}.ld-x-103{left:721px}.ld-x-104{left:728px}.ld-x-105{left:735px}.ld-x-106{left:742px}.ld-x-107{left:749px}.ld-x-108{left:756px}.ld-x-109{left:763px}.ld-x-110{left:770px}.ld-x-111{left:777px}.ld-x-112{left:784px}.ld-x-113{left:791px}.ld-x-114{left:798px}.ld-x-115{left:805px}.ld-x-116{left:812px}.ld-x-117{left:819px}.ld-x-118{left:826px}.ld-x-119{left:833px}.ld-x-120{left:840px}.ld-x-121{left:847px}.ld-x-122{left:854px}.ld-x-123{left:861px}.ld-x-124{left:868px}.ld-x-125{left:875px}.ld-x-126{left:882px}.ld-x-127{left:889px}.ld-x-128{left:896px}.ld-x-129{left:903px}.ld-x-130{left:910px}.ld-x-131{left:917px}.ld-x-132{left:924px}.ld-x-133{left:931px}.ld-x-134{left:938px}.ld-x-135{left:945px}.ld-x-136{left:952px}.ld-x-137{left:959px}.ld-x-138{left:966px}.ld-x-139{left:973px}
.ld-y-0{top:0px}.ld-y-1{top:7px}.ld-y-2{top:14px}.ld-y-3{top:21px}.ld-y-4{top:28px}.ld-y-5{top:35px}.ld-y-6{top:42px}.ld-y-7{top:49px}.ld-y-8{top:56px}.ld-y-9{top:63px}.ld-y-10{top:70px}.ld-y-11{top:77px}.ld-y-12{top:84px}.ld-y-13{top:91px}.ld-y-14{top:98px}.ld-y-15{top:105px}.ld-y-16{top:112px}.ld-y-17{top:119px}.ld-y-18{top:126px}.ld-y-19{top:133px}.ld-y-20{top:140px}.ld-y-21{top:147px}.ld-y-22{top:154px}.ld-y-23{top:161px}.ld-y-24{top:168px}.ld-y-25{top:175px}.ld-y-26{top:182px}.ld-y-27{top:189px}.ld-y-28{top:196px}.ld-y-29{top:203px}.ld-y-30{top:210px}.ld-y-31{top:217px}.ld-y-32{top:224px}.ld-y-33{top:231px}.ld-y-34{top:238px}.ld-y-35{top:245px}.ld-y-36{top:252px}.ld-y-37{top:259px}.ld-y-38{top:266px}.ld-y-39{top:273px}.ld-y-40{top:280px}.ld-y-41{top:287px}.ld-y-42{top:294px}.ld-y-43{top:301px}.ld-y-44{top:308px}.ld-y-45{top:315px}.ld-y-46{top:322px}.ld-y-47{top:329px}.ld-y-48{top:336px}.ld-y-49{top:343px}.ld-y-50{top:350px}.ld-y-51{top:357px}.ld-y-52{top:364px}.ld-y-53{top:371px}.ld-y-54{top:378px}.ld-y-55{top:385px}.ld-y-56{top:392px}.ld-y-57{top:399px}.ld-y-58{top:406px}.ld-y-59{top:413px}.ld-y-60{top:420px}.ld-y-61{top:427px}.ld-y-62{top:434px}.ld-y-63{top:441px}.ld-y-64{top:448px}.ld-y-65{top:455px}.ld-y-66{top:462px}.ld-y-67{top:469px}.ld-y-68{top:476px}.ld-y-69{top:483px}.ld-y-70{top:490px}.ld-y-71{top:497px}.ld-y-72{top:504px}.ld-y-73{top:511px}.ld-y-74{top:518px}.ld-y-75{top:525px}.ld-y-76{top:532px}.ld-y-77{top:539px}.ld-y-78{top:546px}.ld-y-79{top:553px}.ld-y-80{top:560px}.ld-y-81{top:567px}.ld-y-82{top:574px}.ld-y-83{top:581px}.ld-y-84{top:588px}.ld-y-85{top:595px}.ld-y-86{top:602px}.ld-y-87{top:609px}.ld-y-88{top:616px}.ld-y-89{top:623px}.ld-y-90{top:630px}.ld-y-91{top:637px}.ld-y-92{top:644px}.ld-y-93{top:651px}
.ld-scale-50{transform:scale(0.5)}.ld-scale-60{transform:scale(0.6)}.ld-scale-70{transform:scale(0.7)}.ld-scale-80{transform:scale(0.8)}.ld-scale-90{transform:scale(0.9)}.ld-scale-100{transform:scale(1)}.ld-scale-110{transform:scale(1.1)}.ld-scale-120{transform:scale(1.2)}.ld-scale-130{transform:scale(1.3)}.ld-scale-140{transform:scale(1.4)}.ld-scale-150{transform:scale(1.5)}.ld-scale-160{transform:scale(1.6)}.ld-scale-170{transform:scale(1.7)}.ld-scale-180{transform:scale(1.8)}.ld-scale-190{transform:scale(1.9)}.ld-scale-200{transform:scale(2)}

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

@media (max-width: 760px) {
  .fc-app:has(.fc-tech-portal) > .fc-rail, .fc-app:has(.fc-tech-page) > .fc-rail { display: none; }
  .fc-tech-portal-top { align-items: flex-start; padding: max(13px, env(safe-area-inset-top)) 13px 12px; }
  .fc-tech-portal-top h1 { font-size: 19px; }
  .fc-tech-portal-top p:not(.fc-kicker) { display: none; }
  .fc-tech-portal-top > .fc-btn { min-width: 38px; padding: 0 10px; font-size: 0; }
  .fc-tech-portal-top > .fc-btn .fc-icon { margin: 0; }
  .fc-tech-portal-content { padding: 11px 10px max(18px, env(safe-area-inset-bottom)); }
  .fc-tech-portal-summary { gap: 6px; margin-bottom: 10px; }
  .fc-tech-portal-summary > div { display: grid; align-content: center; justify-items: start; gap: 5px; min-height: 61px; padding: 9px; border-radius: 12px; }
  .fc-tech-portal-summary span { font-size: 9px; }
  .fc-tech-portal-summary strong { font-size: 19px; }
  .fc-tech-portal-filters { margin: 0 -10px 10px; padding: 0 10px 5px; }
  .fc-tech-portal-grid { grid-template-columns: 1fr; gap: 10px; }
  .fc-tech-portal-card { border-radius: 16px; }
  .fc-tech-portal-card-head { padding: 12px 12px 0; }
  .fc-tech-portal-card-body { padding: 8px 12px 11px; }
  .fc-tech-portal-card-body h3 { font-size: 15px; }
  .fc-tech-portal-meta { grid-template-columns: 1fr; }
  .fc-tech-portal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px 12px; }
  .fc-tech-portal-actions form { display: contents; }
  .fc-tech-portal-action { width: 100%; justify-content: center; }
  .fc-tech-portal-action.fc-btn-primary { grid-column: 1 / -1; }
  .fc-content { padding: 12px; }
  .fc-topbar-right { margin-left: 0; width: 100%; justify-content: flex-start; }
  .fc-form-grid { grid-template-columns: 1fr; }
  .fc-client-identification, .fc-client-address, .project-kmz .duplicate { grid-template-columns: 1fr; }
  .fc-form-card-head { align-items: flex-start; flex-direction: column; }
  .fc-builder-head { align-items: stretch; flex-direction: column; }
  .fc-model-component-list { grid-template-columns: 1fr; }
  .fc-modelos-grid { grid-template-columns: 1fr; }
  .fc-stepper, .fc-assignment-card, .fc-model-sequence, .fc-apply-bar { grid-template-columns: 1fr; }
  .fc-field.is-wide { grid-column: auto; }
}

@media (max-width: 980px) {
  .fc-app, .shell { flex-direction: column; height: auto; overflow: visible; }
  .fc-rail, .rail { width: 100%; min-height: 0; height: auto; max-height: none; flex-basis: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--fc-border); }
  .fc-rail-head, .fc-rail-foot, .rail-footer { flex: 0 0 auto; }
  .fc-nav, .nav { display: flex; gap: 8px; padding: 8px; overflow-x: auto; }
  .fc-nav-group { display: flex; align-items: center; gap: 6px; margin: 0; }
  .fc-nav-label { display: none; }
  .fc-navitem, .nav-link { white-space: nowrap; margin-bottom: 0; }
  .fc-main, .fc-main > .main, .shell > .main { height: auto; overflow: visible; }
  .cards, .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .dashboard-main { height: auto; }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-grid > .wide { grid-column: auto; }
  .ld-designer { grid-template-columns: 1fr; height: auto; }
  .ld-palette { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--fc-border); }
  .ld-stage-viewport { min-height: 620px; }
}
@media (max-width: 640px) {
  .main { padding: 12px; }
  .topbar { margin: -12px -12px 12px; }
  .cards, .grid { gap: 10px; }
  .card { padding: 12px; }
  .dashboard-user { display: none; }
  .dashboard-kpis, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-kpi { min-height: 102px; }
  .status-line { grid-template-columns: 1fr auto; }
  .status-line progress { grid-column: 1 / -1; }
}
