:root {
  --bg: #f4f8f5;
  --card: #fff;
  --ink: #18392c;
  --muted: #71867b;
  --line: #dce9e0;
  --green: #075d3d;
  --green-2: #0b8b5b;
  --mint: #e3f3e9;
  --blue: #5376da;
  --orange: #e98b44;
  --yellow: #f2dc00;
  --yellow-2: #e6cf00;
  --card-green: #00a900;
  --danger: #bd4437;
  --shadow: 0 16px 44px rgba(20, 70, 46, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: #ececec; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- Vistas: arranque, login, app ---- */

.boot-screen, .login-page, .app-shell { display: none; }
body.is-booting .boot-screen { display: grid; }
body.is-login .login-page { display: grid; }
body.is-app .app-shell { display: block; }

.boot-screen { min-height: 100vh; place-items: center; align-content: center; gap: 14px; color: var(--muted); }
.boot-screen img { width: 160px; height: auto; }
.boot-screen p { margin: 0; font-size: 13px; }

.login-page {
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 12% 18%, rgba(242, 220, 0, .22), transparent 28%), linear-gradient(160deg, #064a32 0%, #075d3d 46%, #0b8b5b 100%);
}
.login-panel { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 36px 32px 28px; box-shadow: 0 24px 70px rgba(0, 0, 0, .22); text-align: center; }
.login-logo { width: 180px; height: 60px; object-fit: contain; margin: 0 auto 18px; display: block; }
.login-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.login-panel h1 { margin: 8px 0 10px; font: 700 32px/1 "Space Grotesk", Arial, sans-serif; color: var(--ink); }
.login-copy { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.login-form { display: grid; gap: 14px; text-align: left; }
.login-form label { font-size: 12px; font-weight: 700; color: #5d7268; }
.login-form input { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; color: var(--ink); }
.login-form input:focus { outline: 0; border-color: var(--green-2); box-shadow: 0 0 0 3px var(--mint); }
.login-error { margin: 0; color: #b42318; background: #fff2ef; border-radius: 8px; padding: 9px 11px; font-size: 12px; }
.login-submit { width: 100%; margin-top: 6px; padding: 13px 16px; font-size: 14px; }
.login-help { margin: 18px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---- Cabecera ---- */

.app-shell { min-height: 100vh; background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%); }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.app-brand { display: flex; align-items: center; gap: 16px; }
.corporate-logo { width: 148px; height: 50px; object-fit: contain; }
.eyebrow { margin: 0 0 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.35px; color: var(--muted); text-transform: uppercase; }
.app-brand h1 { margin: 0; padding: 0 0 6px; font: 700 26px/1 "Space Grotesk", Arial, sans-serif; letter-spacing: -.6px; position: relative; }
.app-brand h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 4px; background: var(--yellow); }
.app-user { display: flex; align-items: center; gap: 12px; }

.sync-pill { display: flex; align-items: center; gap: 8px; background: var(--mint); color: var(--green); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sync-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(11, 139, 91, .16); }
.sync-pill.is-busy { background: #fff7d6; color: #6b5a00; }
.sync-pill.is-busy i { background: #d1b400; box-shadow: 0 0 0 4px rgba(209, 180, 0, .2); animation: pulse 1.2s ease-in-out infinite; }
.sync-pill.is-error { background: #fff2ef; color: #b42318; }
.sync-pill.is-error i { background: #e05a4f; box-shadow: 0 0 0 4px rgba(224, 90, 79, .18); }
@keyframes pulse { 50% { opacity: .35; } }

.user-chip { display: flex; align-items: center; gap: 10px; background: #f6faf7; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 14px; }
.user-text { display: grid; line-height: 1.2; min-width: 0; }
.user-text span { font-size: 12px; color: #3c5146; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-text small { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }

/* ---- Botones y controles ---- */

.button { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 9px; cursor: pointer; font-size: 12px; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.button:hover:not(:disabled) { border-color: var(--green-2); color: var(--green-2); }
.button.primary { background: var(--green-2); border-color: var(--green-2); color: #fff; font-weight: 700; }
.button.primary:hover:not(:disabled) { background: var(--green); border-color: var(--green); color: #fff; }
.button.danger { color: var(--danger); border-color: #f1d0cb; }
.button.danger:hover:not(:disabled) { background: #fff2ef; color: var(--danger); border-color: var(--danger); }
.button.central { background: var(--yellow); border-color: var(--yellow-2); color: var(--ink); font-weight: 700; }
.button.central:hover:not(:disabled) { background: var(--yellow-2); border-color: #d4be00; color: var(--ink); }
.button:disabled { opacity: .45; cursor: not-allowed; }
body.is-readonly .admin-only, body:not(.is-admin) .admin-only { display: none !important; }

.link-button { border: 0; background: none; color: var(--danger); font-size: 12px; font-weight: 700; cursor: pointer; padding: 6px 4px; }

.select-label { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.select-label select { margin-left: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 28px 9px 10px; border-radius: 8px; font-size: 12px; text-transform: none; letter-spacing: 0; max-width: 320px; }

/* ---- Contenido principal ---- */

.app-main { padding: 22px 28px 48px; max-width: 1600px; margin: 0 auto; }
.load-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff2ef; color: #b42318; border: 1px solid #f1d0cb; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.load-error p { margin: 0; font-size: 13px; }

.workspace-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.workspace-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 17px 18px; display: flex; align-items: flex-start; gap: 13px; box-shadow: var(--shadow); min-width: 0; }
.summary-card > div { min-width: 0; }
.summary-card.accent { background: var(--green); color: #fff; border-color: var(--green); justify-content: space-between; }
.summary-card small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 1px; margin: 1px 0 5px; text-transform: uppercase; }
.summary-card strong { font: 700 27px "Space Grotesk", Arial, sans-serif; display: block; }
.summary-card.accent strong { font-size: 20px; padding: 4px 0 3px; }
.summary-card span:not(.summary-icon) { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-card.accent small, .summary-card.accent span:not(.summary-icon) { color: #acd5c0; }
.summary-icon { min-width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; }
.summary-icon.green { color: var(--green-2); background: var(--mint); }
.summary-icon.blue { color: var(--blue); background: #edf0ff; }
.summary-icon.orange { color: var(--orange); background: #fff0e4; }
.summary-icon.white { color: #fff; background: rgba(255, 255, 255, .14); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; width: min(420px, 100%); height: 41px; color: var(--muted); }
.search-box:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px var(--mint); }
.search-box input { border: 0; outline: 0; width: 100%; background: transparent; color: var(--ink); font-size: 12px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* ---- Lienzo ---- */

.canvas-card { background: rgba(255, 255, 255, .55); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.canvas-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.canvas-heading h2 { font: 600 20px "Space Grotesk", Arial, sans-serif; margin: 0; }
.canvas-toolbar { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.canvas-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.canvas-tools { display: flex; align-items: center; gap: 14px; }
.zoom-note { color: var(--muted); font-size: 11px; }
.zoom-controls { display: flex; align-items: center; background: #fff; border: 1px solid #cbd7cf; border-radius: 8px; overflow: hidden; flex: none; }
.zoom-button, .zoom-value { border: 0; background: #fff; color: #3c5146; height: 29px; min-width: 31px; cursor: pointer; font-size: 14px; }
.zoom-value { border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 11px; min-width: 52px; }
.zoom-button:hover, .zoom-value:hover { background: #e9f4ed; color: #087849; }

.chart-canvas { position: relative; min-height: 560px; max-height: calc(100vh - 140px); overflow: auto; padding: 0; overscroll-behavior: contain; }

/* Fondo corporativo (design/plantilla-fondo-organigrama.png) armado por esquinas para que no se
   deforme con ningún tamaño de lienzo. Queda fijo como marco mientras el organigrama se desplaza. */
.chart-canvas {
  background-color: #f4f4f4;
  background-image:
    url("../assets/fondo/logo.png"),
    url("../assets/fondo/esquina-superior-izquierda.png"),
    url("../assets/fondo/corazon.png"),
    url("../assets/fondo/esquina-inferior-derecha.png");
  background-repeat: no-repeat;
  background-position: right 16px top 17px, left top, left bottom, right bottom;
  background-size: 256px auto, 186px auto, 264px auto, 272px auto;
}
.board-sizer { position: relative; }
.org-board { position: absolute; top: 0; left: 0; transform-origin: top left; }
.connector-layer { position: absolute; inset: 0; z-index: 0; overflow: visible; pointer-events: none; }
.connector-layer path { fill: none; stroke: #5f7268; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.connector-layer path.align-guide { stroke: var(--green-2); stroke-width: 1.4; stroke-dasharray: 5 5; opacity: .55; }
.empty-state { text-align: center; color: #3a4e43; padding: 42px 20px; margin: 0; }

/* ---- Tarjetas ---- */

.position-card {
  position: absolute;
  z-index: 2;
  width: 190px;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px 8px 35px;
  border-radius: 22px;
  background: var(--card-green);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .22);
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow .15s, background .15s, opacity .15s;
}
body.is-admin .position-card { cursor: grab; touch-action: none; }
.position-card:hover { background: #009800; }
.position-card:focus-visible { outline: 3px solid #f5df00; outline-offset: 3px; }
.position-card.no-avatar { padding-left: 12px; padding-right: 12px; }
.position-card.is-context { opacity: .5; }
.position-card.is-dragging { opacity: .92; cursor: grabbing; z-index: 5; box-shadow: 0 10px 22px rgba(0, 0, 0, .28); }
.position-top { display: block; }
.position-name { font-size: 10px; line-height: 1.2; font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }
.position-role { font-size: 8px; line-height: 1.15; margin-top: 2px; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.position-area { display: block; width: max-content; max-width: 100%; margin: 10px auto 0; padding: 4px 18px; border-radius: 10px; background: #ffed00; color: #26412f; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 37px; height: 37px; border-radius: 50%; border: 4px solid #f8e900; background: #f5f5f5; color: #555; box-shadow: 0 1px 4px #777; display: grid; place-items: center; font-size: 11px; font-weight: 700; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.position-card.is-central { display: flex; align-items: center; justify-content: center; padding: 10px 16px; min-height: 36px; background: var(--yellow); color: var(--ink); }
.position-card.is-central:hover { background: var(--yellow-2); }
.position-card.is-central .position-name { font-size: 12px; letter-spacing: .3px; }

/* ---- Modales ---- */

.modal-backdrop { position: fixed; inset: 0; background: rgba(17, 51, 36, .44); z-index: 10; display: grid; place-items: center; padding: 20px; }
.edit-modal { background: var(--card); width: min(600px, 100%); max-height: 92vh; overflow: auto; border-radius: 17px; box-shadow: 0 24px 70px rgba(0, 0, 0, .2); padding: 25px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 21px; }
.modal-header h2 { font: 600 23px "Space Grotesk", Arial, sans-serif; margin: 5px 0 0; }
.close-button { border: 0; background: transparent; font-size: 28px; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 4px; }

.photo-field { display: flex; gap: 13px; align-items: center; margin-bottom: 20px; }
.photo-field small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; max-width: 360px; }
.photo-preview { width: 67px; height: 67px; flex: none; border-radius: 16px; background: var(--mint); display: grid; place-items: center; overflow: hidden; color: var(--green-2); font-size: 22px; font-weight: 700; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-button { display: inline-block; cursor: pointer; background: var(--mint); color: var(--green-2); font-size: 12px; font-weight: 700; padding: 9px 12px; border-radius: 8px; }
.upload-button:focus-within { outline: 3px solid var(--yellow); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { font-size: 11px; color: var(--muted); font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfb; color: var(--ink); outline: 0; font-size: 12px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px var(--mint); }
.form-grid input:disabled, .form-grid select:disabled { opacity: .6; }
.full { grid-column: 1 / -1; }
.field-hint { display: block; margin-top: 6px; font-size: 11px; font-weight: 500; color: var(--muted); }
.new-area-input { border-color: var(--green-2) !important; box-shadow: 0 0 0 3px var(--mint); }
.edit-modal.is-central-form .cargo-only { display: none !important; }
.edit-modal.is-central-form .form-grid { grid-template-columns: 1fr; }
.form-error { margin: 16px 0 0; color: #b42318; background: #fff2ef; border-radius: 8px; padding: 9px 11px; font-size: 12px; }
.modal-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }

.details-modal { width: min(520px, 100%); }
.details-head { display: flex; align-items: center; gap: 14px; }
.details-subtitle { margin: 4px 0 0; color: var(--green-2); font-weight: 700; font-size: 13px; }
.details-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 13px; }
.details-list dt { color: var(--muted); font-weight: 700; }
.details-list dd { margin: 0; }
.details-description { margin: 18px 0 0; padding: 12px 14px; background: #f6faf7; border-radius: 10px; font-size: 13px; line-height: 1.5; white-space: pre-line; }

.chart-dialog { width: min(460px, 100%); }
.chart-dialog label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.chart-dialog label input { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; outline: 0; color: var(--ink); }
.chart-dialog label input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(11, 139, 91, .1); }

.history-modal { width: min(640px, 100%); }
.history-modal h3 { font: 600 15px "Space Grotesk", Arial, sans-serif; margin: 20px 0 10px; }
.history-help { margin: -8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.history-list li div { display: grid; gap: 3px; min-width: 0; }
.history-list strong { font-size: 13px; }
.history-list small { font-size: 11px; color: var(--muted); }
.history-list .history-empty { color: var(--muted); font-size: 12px; border-style: dashed; }

/* ---- Diálogo de confirmación y avisos ---- */

.dialog-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(22, 42, 34, .55); backdrop-filter: blur(4px); }
.dialog-card { width: min(440px, 100%); background: #fff; border-radius: 18px; padding: 32px 28px 24px; text-align: center; box-shadow: 0 24px 80px rgba(16, 40, 28, .28); animation: dialog-in .18s ease-out; }
.dialog-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid #f8bb86; color: #f8bb86; display: grid; place-items: center; font: 700 44px/1 "Space Grotesk", Arial, sans-serif; }
.dialog-icon.is-danger { border-color: #f1a49c; color: #e05a4f; }
.dialog-icon.is-info { border-color: #9fd3b8; color: var(--green-2); font-style: italic; }
.dialog-card h2 { margin: 0 0 10px; font: 700 22px/1.2 "Space Grotesk", Arial, sans-serif; }
.dialog-message { margin: 0 0 22px; color: #5b6f66; font-size: 14px; line-height: 1.5; }
.dialog-message p { margin: 0 0 8px; }
.dialog-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dialog-btn { min-width: 118px; border: 0; border-radius: 8px; padding: 11px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.dialog-btn.is-secondary { background: #e9eeeb; color: #31463c; }
.dialog-btn.is-secondary:hover { background: #dce4e0; }
.dialog-btn.is-danger { background: #e05a4f; color: #fff; }
.dialog-btn.is-danger:hover { background: #c94a40; }
.dialog-btn.is-primary { background: var(--green-2); color: #fff; }
.dialog-btn.is-primary:hover { background: var(--green); }
@keyframes dialog-in { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.toast { position: fixed; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); background: #173d2d; color: #fff; padding: 12px 16px; border-radius: 9px; font-size: 12px; line-height: 1.4; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #8f2219; }

/* ---- Pantallas medianas y pequeñas ---- */

@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .app-header, .app-main { padding-left: 14px; padding-right: 14px; }
  .app-header { flex-direction: column; align-items: stretch; }
  .app-user { flex-wrap: wrap; }
  .corporate-logo { width: 120px; height: 40px; }
  .user-chip { flex: 1; justify-content: space-between; }
  .login-panel { padding: 28px 20px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .select-label select { max-width: calc(100vw - 130px); }
  .canvas-toolbar, .canvas-actions, .canvas-tools { width: 100%; align-items: stretch; }
  .canvas-actions { justify-content: flex-start; }
  .canvas-actions .button { flex: 1 1 auto; min-height: 40px; }
  .canvas-tools { justify-content: space-between; }
  .zoom-note { font-size: 10px; }
  .zoom-button, .zoom-value { height: 36px; min-width: 38px; }
  .chart-canvas {
    min-height: 460px;
    max-height: 70vh;
    background-position: right 10px top 10px, left top, left bottom, right bottom;
    background-size: 150px auto, 110px auto, 150px auto, 160px auto;
  }
  .edit-modal { padding: 18px; border-radius: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
  .full { grid-column: auto; }
  .modal-actions { grid-template-columns: 1fr 1fr; }
  .modal-actions span { display: none; }
  .modal-actions .danger { grid-column: 1 / -1; }
  .dialog-card { padding: 26px 18px 20px; }
  .dialog-btn { flex: 1 1 140px; }
}

/* ---- Impresión ---- */

/* Una sola hoja carta horizontal, sin márgenes (así el navegador no agrega fecha, título ni URL),
   con el fondo de borde a borde. board.js (prepareSheet) centra y escala el organigrama. */
@media print {
  @page { size: 11in 8.5in; margin: 0; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { width: 11in; height: calc(8.5in - 2px); margin: 0; overflow: hidden !important; background: #f4f4f4 !important; }
  .login-page, .boot-screen, .app-header, .workspace-bar, .summary-grid, .toolbar, .canvas-toolbar, .empty-state, .toast,
  .modal-backdrop, .dialog-backdrop, .load-error { display: none !important; }
  .app-shell, .app-main { display: block !important; width: 11in; height: calc(8.5in - 2px); min-height: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; background: transparent !important; }
  .canvas-card { position: relative; width: 11in; height: calc(8.5in - 2px); margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: transparent; }
  .chart-canvas { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; overflow: hidden; }
  .canvas-heading { position: absolute; z-index: 3; top: 28px; left: 44px; display: block; padding: 0; border: 0; }
  .canvas-heading .eyebrow { margin-bottom: 4px; }
  .canvas-heading h2 { font-size: 24px; text-transform: uppercase; letter-spacing: -.3px; padding-bottom: 6px; position: relative; }
  .canvas-heading h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 4px; background: var(--yellow); }
  .board-sizer { position: absolute; inset: 0; }
  .position-card { box-shadow: none; }
  .position-card.is-context { opacity: 1; }
}
