/* =========================================================
   Portal do Cliente — Strucon Engenharia
   Tema baseado na apresentação Strucon (Figma):
   - Paleta: warm gray #606060 / paper #F6F3F3 / yellow #E8BF2E / red #FF0000
   - Tipografia: Open Sans + Open Sans Condensed (ExtraBold)
   - Shapes: cards arredondados "pill" com border-radius generoso
   - Textura: fundo papel sutil (assets/strucon-paper-texture.png)
   ========================================================= */

body.strucon-theme {
  /* Redefine tokens */
  --bg: #F6F3F3;
  --bg-subtle: #EEEDED;
  --bg-muted: #EBEBEB;
  --border: #D9D9D9;
  --border-strong: #C5C5C5;
  --fg: #404040;
  --fg-2: #585656;
  --fg-3: #606060;
  --fg-4: #9A9A9A;
  --fg-5: #C5C5C5;
  --accent: #E8BF2E;          /* amarelo Strucon */
  --accent-strong: #D6A810;
  --accent-soft: #FBF4D9;
  --red: #FF0000;
  --red-soft: #FFE8E8;
  --green: #4A8F4A;
  --amber: #C19318;
  --blue: #4A6B8F;

  --radius: 999px;            /* pill */
  --radius-lg: 28px;
  --radius-card: 20px;

  --font-sans: "Open Sans", -apple-system, system-ui, sans-serif;
  --font-display: "Open Sans", sans-serif;
  --font-mono: "Open Sans", monospace;  /* Strucon não usa mono */

  font-family: var(--font-sans);
  color: var(--fg-3);
  background-color: #F6F3F3;
  background-image: url("assets/strucon-paper-texture.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
}

/* Typography reset for Strucon */
body.strucon-theme .mono,
body.strucon-theme .num {
  font-family: var(--font-sans);
  font-feature-settings: "tnum";
  letter-spacing: 0;
}
body.strucon-theme {
  font-weight: 600; /* Open Sans SemiBold é base na apresentação */
}

/* ================= App shell ================= */
body.strucon-theme .app {
  background: transparent;
}

/* ================= Sidebar ================= */
body.strucon-theme .sidebar {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
}

body.strucon-theme .brand {
  border-bottom: 1px solid var(--border);
  padding: 4px 8px 18px;
  margin-bottom: 12px;
}

/* Replace the "N" brand mark with Strucon logo (real SVG wordmark).
   The SVG already contains "STRUCON" + "ENGENHARIA · CREA-SC 209.510-4",
   so we hide the adjacent brand-name/brand-sub text blocks. */
body.strucon-theme .brand .brand-mark {
  width: auto !important;
  height: 44px;
  background: transparent !important;
  color: transparent !important;
  font-size: 0;
  border-radius: 0;
  position: relative;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
}
body.strucon-theme .brand-mark .strucon-wordmark-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Hide the text next to the logo (logo already has the wordmark) */
body.strucon-theme .brand > div:not(.brand-mark) {
  display: none;
}

body.strucon-theme .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
}
body.strucon-theme .brand-sub {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-4);
  text-transform: uppercase;
  white-space: nowrap;
}

body.strucon-theme .nav-section {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--fg-4);
  padding: 16px 10px 8px;
}

body.strucon-theme .nav-item {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg-3);
  border-radius: 999px;
  padding: 8px 12px;
  letter-spacing: 0;
}
body.strucon-theme .nav-item .kbd {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9.5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 6px;
  color: var(--fg-4);
}
body.strucon-theme .nav-indicator {
  background: rgba(232,191,46,0.18);
  border: 1px solid rgba(232,191,46,0.4);
  border-radius: 999px;
}
body.strucon-theme .nav-item.active {
  color: var(--fg);
  font-weight: 700;
}
body.strucon-theme .nav-item:hover:not(.active) {
  background: rgba(96,96,96,0.05) !important;
  color: var(--fg) !important;
}

body.strucon-theme .user-avatar,
body.strucon-theme .m-header-brand .brand-mark {
  background: var(--fg-3);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 800;
}

body.strucon-theme .user-name {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--fg);
}
body.strucon-theme .user-role {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--fg-4);
  text-transform: uppercase;
}

/* Sidebar project bar */
body.strucon-theme .sidebar .bar {
  background: var(--bg-muted);
}
body.strucon-theme .sidebar .bar > span {
  background: var(--fg-3);
}

/* ================= Topbar ================= */
body.strucon-theme .topbar {
  background: rgba(246,243,243,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}
body.strucon-theme .breadcrumbs {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg-3);
}
body.strucon-theme .breadcrumbs .current {
  font-weight: 800;
  color: var(--fg);
}
body.strucon-theme .topbar-actions .mono {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3) !important;
}
body.strucon-theme .icon-btn {
  color: var(--fg-3);
  border-radius: 999px;
}
body.strucon-theme .icon-btn:hover {
  background: rgba(96,96,96,0.08);
}

/* ================= Page ================= */
body.strucon-theme .page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-transform: uppercase;
}
body.strucon-theme .page-sub {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
}

body.strucon-theme .page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

body.strucon-theme .section-label {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* ================= Buttons ================= */
body.strucon-theme .btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--fg-3);
  height: 34px;
  padding: 0 16px;
}
body.strucon-theme .btn:hover {
  background: var(--bg-subtle);
  color: var(--fg);
}
body.strucon-theme .btn.primary {
  background: var(--fg-3);
  color: #fff;
  border-color: var(--fg-3);
}
body.strucon-theme .btn.primary:hover {
  background: var(--fg);
  box-shadow: 0 4px 12px rgba(96,96,96,0.25);
}
body.strucon-theme .btn.ghost {
  border-color: transparent;
  background: transparent;
}

/* ================= Cards ================= */
body.strucon-theme .card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 0 rgba(0,0,0,0.02);
}
body.strucon-theme .card-head {
  border-bottom: 1px solid var(--border);
  padding: 16px 22px;
}
body.strucon-theme .card-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
body.strucon-theme .card-sub {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0;
  text-transform: none;
}
body.strucon-theme .card-body { padding: 20px 22px; }

/* ================= KPIs ================= */
body.strucon-theme .kpi {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
body.strucon-theme .kpi-label {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-4);
  text-transform: uppercase;
}
body.strucon-theme .kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 8px;
}
body.strucon-theme .kpi-value span {
  font-weight: 700 !important;
  color: var(--fg-4) !important;
}
body.strucon-theme .kpi-delta {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0;
}
body.strucon-theme .kpi-delta.up { color: var(--green); }
body.strucon-theme .kpi-delta.down { color: var(--red); }
body.strucon-theme .kpi-foot {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-4);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ================= Pills ================= */
body.strucon-theme .pill {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  height: 24px;
  padding: 0 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--fg-3);
}
body.strucon-theme .pill.green {
  color: #3A7A3A;
  background: #EAF5E8;
  border-color: #D1E6CC;
}
body.strucon-theme .pill.amber {
  color: #8A6A0C;
  background: var(--accent-soft);
  border-color: #F1DF95;
}
body.strucon-theme .pill.red {
  color: #B50000;
  background: var(--red-soft);
  border-color: #F6C8C8;
}
body.strucon-theme .pill.blue {
  color: #3F5F80;
  background: #E8EEF5;
  border-color: #CFDBE8;
}
body.strucon-theme .pill.dark {
  background: var(--fg-3);
  color: #fff;
  border-color: var(--fg-3);
}

/* ================= Bars ================= */
body.strucon-theme .bar {
  background: var(--bg-muted);
  height: 8px;
  border-radius: 999px;
}
body.strucon-theme .bar > span {
  background: var(--fg-3);
}
body.strucon-theme .bar.thin { height: 4px; }

/* ================= Placeholders (photos) ================= */
body.strucon-theme .placeholder {
  background:
    repeating-linear-gradient(
      -45deg,
      #EFEDED 0 10px,
      #E4E2E2 10px 20px
    );
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--fg-4);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.strucon-theme .placeholder-label {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--fg-3);
  font-weight: 700;
}

/* ================= Tables ================= */
body.strucon-theme table.t th {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  text-transform: uppercase;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
body.strucon-theme table.t td {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--fg-3);
  border-bottom: 1px solid var(--border);
}
body.strucon-theme table.t tr:hover td { background: rgba(232,191,46,0.06); }

/* ================= Diary ================= */
body.strucon-theme .diary-date-block { border-right: 1px solid var(--border); }
body.strucon-theme .diary-date-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--fg);
  letter-spacing: -0.02em;
}
body.strucon-theme .diary-date-mo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.12em;
}

/* ================= Gantt ================= */
body.strucon-theme .gantt {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}
body.strucon-theme .gantt-head {
  background: var(--bg-subtle);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
body.strucon-theme .gantt-label-name {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--fg);
}
body.strucon-theme .gantt-label-meta {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--fg-4);
  letter-spacing: 0;
}
body.strucon-theme .gantt-bar {
  background: var(--fg-3);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
body.strucon-theme .gantt-bar.done {
  background: var(--accent);
  color: var(--fg);
}
body.strucon-theme .gantt-bar.future {
  background: transparent;
  color: var(--fg-3);
  border: 1px dashed var(--border-strong);
}
body.strucon-theme .gantt-today {
  background: var(--red);
}
body.strucon-theme .gantt-today::before {
  color: var(--red);
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.14em;
}

/* ================= Files ================= */
body.strucon-theme .file-row {
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-weight: 600;
}
body.strucon-theme .file-name { color: var(--fg); font-weight: 700; }
body.strucon-theme .file-meta {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-4);
}

/* ================= Camera ================= */
body.strucon-theme .cam {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #1A1A1A;
}
body.strucon-theme .cam-overlay { font-family: var(--font-sans); font-weight: 700; }
body.strucon-theme .cam-name { font-family: var(--font-sans); font-weight: 700; }

/* ================= Status dot ================= */
body.strucon-theme .status-dot.live {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232,191,46,0.6);
}
@keyframes pulseStrucon {
  0%   { box-shadow: 0 0 0 0 rgba(232,191,46,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(232,191,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,191,46,0); }
}
body.strucon-theme .status-dot.live {
  animation: pulseStrucon 1.8s infinite;
}

/* ================= LOGIN ================= */
body.strucon-theme .login-shell {
  background-color: #F6F3F3;
  background-image: url("assets/strucon-paper-texture.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
}
body.strucon-theme .login-left {
  max-width: 560px;
  padding: 48px;
}
body.strucon-theme .login-brand {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
body.strucon-theme .login-brand .brand-mark {
  width: auto;
  height: 96px;
  background: transparent !important;
  font-size: 0;
  position: relative;
  display: flex !important;
  align-items: center;
}
body.strucon-theme .login-brand .brand-mark .strucon-wordmark-img {
  height: 96px;
  width: auto;
}
body.strucon-theme .login-brand > div:not(.brand-mark) {
  display: none;
}
body.strucon-theme .login-brand .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
}
body.strucon-theme .login-brand .brand-sub {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-4);
  text-transform: uppercase;
}

body.strucon-theme .login-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-transform: uppercase;
  margin: 0 0 14px;
}
body.strucon-theme .login-sub {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
  max-width: 440px;
  margin-bottom: 36px;
}

body.strucon-theme .field label {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
body.strucon-theme .field input {
  font-family: var(--font-sans);
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  height: 44px;
  padding: 0 18px;
  background: rgba(255,255,255,0.8);
  color: var(--fg);
}
body.strucon-theme .field input:focus {
  border-color: var(--fg-3);
  box-shadow: 0 0 0 3px rgba(232,191,46,0.25);
}
body.strucon-theme .btn.primary.btn-block {
  height: 48px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  border-radius: 999px;
}
body.strucon-theme .field-row,
body.strucon-theme .field-row label {
  font-family: var(--font-sans);
  font-weight: 600;
}
body.strucon-theme .field-row a {
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

body.strucon-theme .login-footer {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-4);
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 56px;
}

/* Right login panel — "registro de obra" style */
body.strucon-theme .login-right {
  background-color: #EEEBEB;
  background-image: url("assets/strucon-paper-texture.png");
  background-size: 800px auto;
  background-repeat: repeat;
  background-position: center top;
  border-left: 1px solid var(--border);
  padding: 60px;
}
body.strucon-theme .login-right-inner {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  max-width: 420px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--fg-3);
}
body.strucon-theme .login-right-inner h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--fg);
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fg-3);
}
body.strucon-theme .meta-row {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11.5px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}
body.strucon-theme .meta-row span:first-child {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  text-transform: uppercase;
}
body.strucon-theme .meta-row span:last-child {
  font-weight: 700;
  color: var(--fg);
}

/* ================= Misc overrides ================= */
body.strucon-theme .notif-dot {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232,191,46,0.7);
}
@keyframes notifPulseStrucon {
  0%   { box-shadow: 0 0 0 0 rgba(232,191,46,0.55); }
  60%  { box-shadow: 0 0 0 6px rgba(232,191,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,191,46,0); }
}
body.strucon-theme .notif-dot { animation: notifPulseStrucon 2.4s ease-in-out infinite; }

/* Gantt colors: accent yellow instead of red for today */
/* (actually keep red, Strucon uses red too) */

/* Inline hex overrides (page.jsx files hardcode these) */
body.strucon-theme [style*="color: rgb(10, 10, 10)"],
body.strucon-theme [style*="color: #0A0A0A"],
body.strucon-theme [style*="color:#0A0A0A"] { color: var(--fg) !important; }

body.strucon-theme [style*="color: rgb(153, 153, 153)"],
body.strucon-theme [style*="color: #999"],
body.strucon-theme [style*="color:#999"] { color: var(--fg-4) !important; }

body.strucon-theme [style*="color: rgb(189, 189, 189)"],
body.strucon-theme [style*="color: #bdbdbd"] { color: var(--fg-5) !important; }

body.strucon-theme [style*="background: rgb(10, 10, 10)"],
body.strucon-theme [style*="background: #0A0A0A"] { background: var(--fg-3) !important; }

body.strucon-theme [style*="color: rgb(22, 163, 74)"],
body.strucon-theme [style*="color: #16a34a"] { color: var(--green) !important; }
body.strucon-theme [style*="background: rgb(22, 163, 74)"],
body.strucon-theme [style*="background: #16a34a"] { background: var(--green) !important; }

/* Charts — map legend swatches */
body.strucon-theme .legend-sw[style*="#0A0A0A"],
body.strucon-theme .legend-sw[style*="rgb(10, 10, 10)"] {
  background: var(--fg-3) !important;
}

/* SVG chart strokes (hardcoded in charts.jsx) */
body.strucon-theme svg path[stroke="#0A0A0A"],
body.strucon-theme svg path[stroke="#000"] {
  stroke: var(--fg-3) !important;
}
body.strucon-theme svg circle[fill="#0A0A0A"] {
  fill: var(--fg-3) !important;
}
body.strucon-theme svg rect[fill="#0A0A0A"] {
  fill: var(--fg-3) !important;
}
body.strucon-theme svg [fill="#666"],
body.strucon-theme svg [stroke="#666"] {
  fill: var(--fg-3);
  stroke: var(--fg-3);
}

/* Hide the close button on the "Mais" sheet — handle + swipe-down is enough */
body.strucon-theme .m-sheet-close {
  display: none !important;
}

/* KPI scroller alignment — base CSS uses negative margins that break
   scroll-snap (first card drifts off the 14px grid). Keep the bleed look
   but tell snap to land at the padding edge. */
body.strucon-theme .m-kpi-scroll {
  scroll-padding-left: 14px;
  scroll-padding-right: 14px;
}
body.strucon-theme .m-kpi {
  /* Stronger snap on the card's left edge */
  scroll-snap-stop: always;
}

/* ================= Mobile page transitions (Strucon) ================= */
@keyframes strucon-m-page-in {
  from { opacity: 0; transform: translateX(12%); }
  to   { opacity: 1; transform: translateX(0); }
}
body.strucon-theme .m-page {
  animation: strucon-m-page-in 320ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  touch-action: pan-y;
}
body.strucon-theme .m-sheet {
  will-change: transform;
}
body.strucon-theme .m-sheet-handle {
  cursor: grab;
  touch-action: none;
}
body.strucon-theme .m-tab {
  transition: color 180ms cubic-bezier(0.32,0.72,0,1),
              transform 220ms cubic-bezier(0.32,0.72,0,1);
}
body.strucon-theme .m-tab.active {
  color: var(--fg);
}
body.strucon-theme .m-tab.active svg {
  color: var(--fg);
  transform: scale(1.08);
}
body.strucon-theme .m-tab svg {
  transition: transform 220ms cubic-bezier(0.32,0.72,0,1),
              color 180ms ease;
}
/* Subtle tabbar active indicator — yellow dot below the icon */
body.strucon-theme .m-tab.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: strucon-tab-dot 260ms cubic-bezier(0.32,0.72,0,1);
}
body.strucon-theme .m-tab {
  position: relative;
}
@keyframes strucon-tab-dot {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
/* Mobile header: usa o mesmo wordmark do desktop (logo horizontal Strucon). */
body.strucon-theme .m-header-brand .brand-mark {
  width: auto !important;
  height: 34px !important;
  background: transparent !important;
  color: transparent !important;
  border-radius: 0 !important;
  padding: 0;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
  font-size: 0;
  box-shadow: none;
}
/* Mobile login: mesmo tratamento do .login-brand (desktop) — esconde
   o texto adjacente pra nao sobrepor com o wordmark. */
body.strucon-theme .m-login-brand {
  align-items: center;
}
body.strucon-theme .m-login-brand .brand-mark {
  width: auto !important;
  height: 52px !important;
  background: transparent !important;
  color: transparent !important;
  border-radius: 0 !important;
  padding: 0;
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
  font-size: 0;
  box-shadow: none;
}
body.strucon-theme .m-login-brand .brand-mark .strucon-wordmark-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
body.strucon-theme .m-login-brand > div:not(.brand-mark) {
  display: none;
}
body.strucon-theme .m-header-brand .brand-mark .strucon-wordmark-img {
  height: 34px;
  width: auto;
  min-height: 34px;
  object-fit: contain;
  display: block;
  filter: none;
}
/* Com o wordmark ao lado, reduzimos o tamanho do titulo da obra pra nao brigar */
body.strucon-theme .m-header-brand .m-header-titles {
  margin-left: 10px;
}
body.strucon-theme .m-header-brand .m-header-project {
  font-size: 12px;
  line-height: 1.2;
}
body.strucon-theme .m-header-brand .m-header-status {
  font-size: 10px;
  line-height: 1.3;
}
/* Mobile header: refined hierarchy + Dynamic Island breathing room.
   The iPhone frame overlays a ~50px status bar; we push the header below it. */
body.strucon-theme .m-header {
  padding-top: 54px;
  padding-bottom: 8px;
  height: auto;
  gap: 12px;
  align-items: center;
}
body.strucon-theme .m-header-brand {
  gap: 10px;
}
body.strucon-theme .m-header-project {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg-1);
  text-transform: none;
  line-height: 1.15;
}
body.strucon-theme .m-header-status {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-top: 2px;
  gap: 6px;
}
body.strucon-theme .m-header-status .status-dot {
  width: 5px;
  height: 5px;
}
body.strucon-theme .m-header-action {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--fg-2);
}
body.strucon-theme .m-header-action:active {
  background: rgba(0,0,0,0.05);
}

/* Remove the bottom corner pill altogether */
body.strucon-theme::after {
  display: none !important;
}

/* Section headers: Strucon uses uppercase + tracking */
body.strucon-theme h1, body.strucon-theme h2, body.strucon-theme h3, body.strucon-theme h4 {
  font-family: var(--font-display);
}

/* Scrollbar */
body.strucon-theme .scrollbar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
}

/* Tweaks panel */
body.strucon-theme .tweaks {
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-strong);
}
body.strucon-theme .tweaks h5 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.12em;
}
body.strucon-theme .tweaks-row .seg {
  border-radius: 999px;
  overflow: hidden;
}
body.strucon-theme .tweaks-row .seg button {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.strucon-theme .tweaks-row .seg button.on {
  background: var(--fg-3);
  color: #fff;
}
