:root{
  color-scheme:light;
  --blue:#1874da;--blue-dark:#0f60bc;--blue-pale:#eef5ff;
  --ink:#15191e;--muted:#75808e;--faint:#99a3ae;
  --line:#e6e9ed;--background:#fafbfc;--white:#fff;
  --control-radius:14px;--card-radius:12px;
  --shadow:0 12px 34px rgba(21,36,58,.045);
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--background);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;color:var(--ink);font:400 13px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.008em}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.icon{display:block;flex:0 0 auto}
h1,h2,h3,p{margin:0}
h1{font-size:26px;line-height:1.24;letter-spacing:-.045em;font-weight:650}
h2{font-size:16px;line-height:1.4;letter-spacing:-.02em;font-weight:620}
.muted{color:var(--muted)}
.small{font-size:12px}
.eyebrow{display:block;font-size:10px;font-weight:680;letter-spacing:.12em;color:#8994a1;margin-bottom:8px}
.brand{display:inline-flex;align-items:center;gap:10px;min-width:0;white-space:nowrap;color:#263852;text-decoration:none}
.brand-icon{display:block;width:27px;height:35px;flex:none;object-fit:contain}
.brand-text{display:flex;min-width:0;flex-direction:column;justify-content:center;gap:1px}
.brand-name{font-size:18px;letter-spacing:-.047em;font-weight:570;line-height:1.13}
.brand-subtitle{font-size:10px;font-weight:480;letter-spacing:.11em;color:#8296b0;line-height:1.2}
.btn{appearance:none;border:1px solid transparent;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:42px;padding:10px 20px;white-space:nowrap;font-weight:610;font-size:12.5px;transition:background .13s ease,border-color .13s ease}
.btn:focus-visible,input:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid rgba(24,116,218,.2);outline-offset:2px}
.btn-primary{background:var(--blue);color:white}
.btn-primary:hover{background:var(--blue-dark);color:white;text-decoration:none}
.btn-full{width:100%}
.btn .icon{height:17px}
input,select,textarea{background:white;color:var(--ink);width:100%;border:1px solid #dae0e7;border-radius:var(--control-radius);min-height:43px;padding:10px 13px;font-size:13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
input:focus,select:focus,textarea:focus{border-color:#92bee9;box-shadow:0 0 0 3px rgba(24,116,218,.085)}
input::placeholder{color:#aeb6be}
.field{display:grid;gap:7px}
.field label{font-size:12px;font-weight:560;color:#525e6b}
.field small{font-size:11px;color:var(--muted)}
.form-stack{display:grid;gap:17px}
.form-stack>.btn{margin-top:4px}
.form-grid{display:grid;grid-template-columns:1fr 1.5fr;gap:13px}
.auth-shell{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:46px 18px;background:#fafbfc}
.auth-card{background:white;width:min(100%,440px);padding:35px;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.auth-card>.brand{display:inline-flex;margin-bottom:30px}
.auth-intro{display:grid;gap:8px;margin-bottom:25px}
.auth-intro p{font-size:12.5px;line-height:1.7}
.auth-links{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:19px}
.auth-links a,.text-button{font-size:12px;color:var(--blue);font-weight:560}
.text-button{border:0;background:none;padding:0}
.form-heading{font-size:14px;font-weight:650;border-top:1px solid var(--line);padding-top:18px;margin-top:9px}
.optional-section{border:1px solid var(--line);border-radius:var(--card-radius);padding:13px 15px;margin:3px 0}
.optional-section summary{font-size:12px;font-weight:600;cursor:pointer}
.optional-section p{margin:12px 0}
.optional-section .field{margin:12px 0}
.information{border:1px solid #e2eaf5;background:#f7faff;padding:12px 13px;border-radius:var(--card-radius);display:flex;align-items:flex-start;gap:10px;font-size:11.5px;line-height:1.6;color:#536273;margin-bottom:21px}
.information .icon{color:var(--blue)}
.information code{white-space:nowrap;font-size:11px}
.app-layout{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr)}
.sidebar{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}
.sidebar-top{height:80px;display:flex;align-items:center;padding:0 25px}
.sidebar-nav{padding:15px 12px;display:grid;align-content:start;gap:5px;flex:1}
.nav-link{min-height:42px;display:flex;gap:12px;align-items:center;padding:10px 13px;border-radius:10px;color:#677485;font-size:12px;font-weight:570}
.nav-link:hover{background:#f8fafc;color:#283447;text-decoration:none}
.nav-link.active{color:var(--blue);background:#edf5ff}
.sidebar-bottom{border-top:1px solid var(--line);padding:15px 13px;display:flex;align-items:center;gap:10px}
.user-avatar{width:33px;height:33px;display:grid;place-items:center;border:1px solid #e8edf3;background:#f2f5f9;border-radius:50%;font-size:12px;color:#67788b;flex-shrink:0}
.user-text{min-width:0;display:grid;gap:1px;flex:1}
.user-text strong{font-size:11px;font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-text small{font-size:10px;color:var(--muted)}
.logout-form{margin:0}
.icon-button{background:transparent;border:0;color:#8a97a7;border-radius:9px;display:grid;place-items:center;width:32px;height:32px}
.icon-button:hover{background:#f1f6fd;color:var(--blue)}
.workspace{min-width:0;display:flex;flex-direction:column}
.topbar{height:60px;border-bottom:1px solid var(--line);background:white;display:flex;justify-content:space-between;align-items:center;padding:0 36px}
.breadcrumb{font-size:11px;color:#8792a0}
.slash{color:#c2c8d0;margin:0 8px}
.version{font-size:10px;letter-spacing:.12em;color:#a5aeb9}
.main-content{width:min(100%,1240px);padding:42px 36px 90px}
.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
.page-head .muted{font-size:12.5px;margin-top:6px}
.panel{background:white;border:1px solid var(--line);border-radius:var(--card-radius)}
.ready-panel{padding:25px;display:flex;align-items:flex-start;gap:17px;margin-bottom:16px}
.ready-symbol{display:grid;place-items:center;width:42px;height:42px;background:#edfaf5;color:#14946c;border-radius:12px;flex:0 0 auto}
.ready-content h2{margin:1px 0 6px}
.ready-content p{max-width:650px;font-size:12.5px;color:var(--muted);line-height:1.75}
.simple-panel{padding:0 24px;margin-top:16px}
.section-head{padding:20px 0 15px;border-bottom:1px solid var(--line)}
.section-head p{font-size:11.5px;margin-top:3px}
.status-row{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:58px}
.status-row+.status-row{border-top:1px solid #f0f2f4}
.status-label{font-size:12px;color:#576472}
.state-tag{font-size:11px;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap}
.state-green{color:#117a55;background:#eaf8f1}
.state-amber{color:#9f6b16;background:#fff4e5}
.toast{position:fixed;z-index:9999;top:22px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;width:max-content;max-width:calc(100vw - 32px);padding:11px 12px;border-radius:14px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid;font-size:12px;font-weight:560;line-height:1.5;box-shadow:0 8px 24px rgba(32,42,54,.06);animation:toast-in .22s ease-out}
.toast-success{background:rgba(238,251,243,.76);border-color:rgba(45,144,101,.22);color:#166d4f}
.toast-error{background:rgba(255,241,241,.76);border-color:rgba(211,64,76,.2);color:#a83c47}
.toast-icon{border:1px solid currentColor;border-radius:50%;width:17px;height:17px;display:grid;place-items:center;font-size:10px;flex-shrink:0}
.toast-close{background:transparent;color:inherit;border:0;margin-left:5px;padding:0 3px;font-size:18px;font-weight:400;opacity:.68}
.toast-close:hover{opacity:1}
.toast.fade-out{opacity:0;transform:translate(-50%,-7px);transition:opacity .2s ease,transform .2s ease}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:780px){.app-layout{display:block}.sidebar{height:auto;min-height:0;position:static;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line);padding:0 16px;gap:6px}.sidebar-top{height:64px;padding:0}.sidebar-top .brand-name{font-size:18px}.sidebar-nav{padding:0;flex:0 0 auto}.nav-link{min-height:36px;padding:8px 12px}.sidebar-bottom{border:0;padding:0;gap:6px}.user-text{display:none}.user-avatar{width:29px;height:29px}.topbar{height:48px;padding:0 20px}.main-content{padding:28px 20px 56px}.page-head{margin-bottom:20px}.auth-card{padding:26px}.ready-panel{padding:20px}}
@media(max-width:420px){h1{font-size:24px}.main-content{padding:24px 15px 50px}.ready-panel{gap:13px}.auth-shell{padding:22px 12px}.auth-card{padding:22px}.form-grid{grid-template-columns:1fr}.nav-link{gap:6px}.nav-link .icon{width:17px}.sidebar{padding:0 12px}.sidebar-top .brand-name{font-size:17px}.sidebar-nav{margin-left:auto}.user-avatar{display:none}.topbar{padding:0 16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Beta 0.1 — marca vectorial, sin imágenes raster. */
@media(max-width:420px){.sidebar-top .brand-icon{width:22px;height:30px}.sidebar-top .brand{gap:7px}.sidebar-top .brand-subtitle{font-size:9px}}

/* Beta 0.2 — CRM compartido (Lista y Kanban) */
:root{--crm-gap:16px}
button:disabled{cursor:not-allowed;opacity:.5}
.crm-home-link{display:inline-flex;gap:8px;align-items:center;font-weight:590}
.crm-page-head{gap:18px}
.crm-page-head .btn{flex:0 0 auto}
.btn-outline{color:#435369;background:white;border-color:#dfe5ed}
.btn-outline:hover{background:#f6f9fc;text-decoration:none;color:#263852}
.btn-small{min-height:36px;padding:8px 12px;font-size:12px;gap:8px}
.btn-danger{background:#c94350;color:white}
.btn-danger:hover{background:#aa3040}
.danger-outline{color:#bd4752}
.crm-panel{overflow:hidden}
.crm-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--line)}
.crm-view-switch{display:flex;padding:3px;border:1px solid #e4e9ef;border-radius:12px;background:#f7f9fc;gap:2px}
.crm-view-switch>a{color:#758394;font-size:12px;font-weight:590;display:inline-flex;gap:8px;align-items:center;border-radius:9px;padding:8px 13px;min-height:35px}
.crm-view-switch>a:hover{text-decoration:none;color:#2b415e}
.crm-view-switch>a.selected{background:white;color:var(--blue);box-shadow:0 1px 4px #1d314414}
.crm-search{display:flex;align-items:center;min-width:210px;flex:1;max-width:700px;position:relative}
.crm-search>span{position:absolute;left:13px;color:#94a3b6;pointer-events:none}
.crm-search input{height:42px;padding-left:41px;padding-right:80px;min-width:0}
.crm-search button{background:none;border:none;color:#526a86;font-size:12px;font-weight:610;position:absolute;right:12px;height:34px}
.crm-toolbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crm-count{padding:11px 18px;border-bottom:1px solid var(--line);background:#fbfcfd;color:#8691a0;font-size:11px}
.crm-table-wrap{overflow:auto;max-width:100%;scrollbar-color:#dae3ee transparent}
.crm-table{border-collapse:separate;border-spacing:0;width:100%;min-width:760px;table-layout:auto}
.crm-table th{background:#fbfcfe;color:#7d8b9d;text-align:left;white-space:nowrap;font-size:11px;font-weight:620;border-bottom:1px solid var(--line);height:43px;padding:10px 16px;min-width:132px}
.crm-table td{height:54px;border-bottom:1px solid #edf1f5;padding:7px 12px;max-width:310px;vertical-align:middle}
.crm-table tr:last-child td{border-bottom:0}
.crm-table tbody tr:hover{background:#fbfdff}
.crm-actions-col{position:sticky;right:0;background:white;min-width:130px!important;width:135px;z-index:2;text-align:right!important;box-shadow:-5px 0 10px -10px #7b8fa5}
.crm-table thead .crm-actions-col{background:#fbfcfe;z-index:3}
.crm-table tbody tr:hover .crm-actions-col{background:#fbfdff}
.crm-actions{display:flex;align-items:center;gap:4px;justify-content:flex-end}
.crm-icon-action{display:inline-grid;place-items:center;flex:0 0 auto;min-width:30px;height:30px;color:#738295;border:0;background:transparent;border-radius:7px;padding:3px;cursor:pointer;text-decoration:none}
.crm-icon-action:hover{background:#eef5ff;color:var(--blue);text-decoration:none}
.crm-icon-action.danger:hover{background:#fff0f0;color:#c33c4f}
.crm-cell-edit{display:block;width:100%;min-width:105px;border:1px solid transparent;border-radius:8px;background:transparent;padding:7px 9px;text-align:left;color:#344359;font-size:12px;line-height:1.3;cursor:text}
.crm-cell-edit:hover{border-color:#e1e8f0;background:#f6faff}
.crm-cell-edit .cell-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:255px}
.crm-cell-edit .cell-empty{color:#a8b2bf}
.crm-cell-edit .cell-stage{display:inline-flex;max-width:100%;width:max-content;padding:5px 9px;border-radius:8px;background:#eff5fd;color:#37679d;font-size:11px}
.crm-cell-edit .crm-cell-input{border-radius:7px;height:33px;min-height:33px;padding:5px 9px;font-size:12px;max-width:100%}
.crm-cell-edit:has(.crm-cell-input){padding:0;border:0;background:white}
.crm-tip{padding:10px 17px 13px;font-size:11px;color:#8692a2;border-top:1px solid #eff2f5}
.crm-empty{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:30px}
.crm-empty .icon{color:#a8b4c3}
.crm-empty h2{font-size:15px}
.crm-empty p{font-size:12px}
.crm-board{display:flex;align-items:stretch;gap:14px;overflow-x:auto;scrollbar-color:#d9e1ea transparent;padding:17px;max-width:100%;min-height:350px}
.crm-lane{flex:0 0 234px;background:#f6f8fb;border-radius:12px;border:1px solid #edf1f5;display:flex;flex-direction:column;min-height:285px;max-height:72vh}
.crm-lane>header{display:flex;align-items:center;gap:8px;padding:12px}
.crm-lane>header h2{flex:1;min-width:0;font-weight:620;font-size:12px;line-height:1.3}
.crm-lane>header>span:last-child{color:#8a96a3;font-size:11px}
.crm-dot{width:8px;height:8px;border-radius:50%;background:#9ba7b7;flex:0 0 auto}
.crm-dot-blue{background:#3994df}.crm-dot-amber{background:#e4ac54}.crm-dot-violet{background:#9879d7}.crm-dot-green{background:#39a785}.crm-dot-red{background:#d66569}
.crm-lane-body{overflow-y:auto;min-height:210px;flex:1;padding:0 9px 10px;display:flex;flex-direction:column;gap:9px}
.crm-lane-body.is-over{outline:2px dashed #70adea;outline-offset:-3px;border-radius:8px;background:#eaf4ff}
.crm-kanban-card{background:white;border:1px solid #e5eaf0;border-radius:10px;padding:12px;box-shadow:0 2px 5px rgba(30,52,82,.025);cursor:grab}
.crm-kanban-card.is-dragging{opacity:.4}
.crm-card-title{display:flex;align-items:flex-start;gap:6px;justify-content:space-between}
.crm-card-title>a{font-size:12px;color:#283a51;font-weight:650;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.crm-kanban-card p{color:#8995a3;font-size:11px;margin:3px 0 8px}
.crm-kanban-card small{display:block;color:#71839b;font-size:10px;margin-bottom:9px}
.crm-card-stage{height:33px;min-height:33px;border-radius:8px;padding:5px 26px 5px 9px;font-size:11px;color:#51667f;background:#f9fbfe}
.crm-back{margin-bottom:24px}.crm-back a{display:inline-flex;gap:8px;align-items:center;color:#75869a;font-size:12px}
.crm-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crm-form-panel{max-width:850px;padding:26px}
.crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.crm-field-wide,.crm-form-footer{grid-column:1/-1}
.crm-form-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:21px}
.crm-form-panel textarea{resize:vertical;line-height:1.6}
.crm-error{border:1px solid #f0c6cb;background:#fff5f6;color:#ad2f41;padding:12px 14px;margin-bottom:22px;border-radius:10px;font-size:12px}
.crm-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--crm-gap)}
.crm-detail-panel,.crm-audit-panel{padding:23px;min-width:0}
.crm-detail-panel>h2,.crm-detail-title{margin-bottom:20px}
.crm-detail-title{display:flex;align-items:center;gap:10px}
.crm-count-badge{font-size:11px;color:#7e8da0}
.crm-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.crm-data-item{min-width:0;display:grid;gap:4px}
.crm-data-item>span{color:#8793a3;font-size:11px}
.crm-data-item>strong{font-size:12px;font-weight:570;line-height:1.5;overflow-wrap:anywhere}
.crm-activity{border-top:1px solid var(--line);padding:14px 0;display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.crm-activity-content{min-width:0}.crm-activity-content strong{font-size:12px;margin-right:8px}.crm-activity-content p{font-size:12px;color:#5e6a79;margin-top:5px;overflow-wrap:anywhere}.crm-activity-content small{font-size:10px;color:#8b98a7;display:block;margin-top:5px}
.crm-activity-form{border-top:1px solid var(--line);display:grid;gap:12px;padding-top:19px;margin-top:4px}
.crm-activity-form h3{font-size:13px}
.crm-inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.crm-audit-panel{margin-top:16px}.crm-audit-panel h2{margin-bottom:12px}.crm-audit-row{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-top:1px solid var(--line);font-size:11px;color:#637184}.crm-audit-row small{color:#9ca6b2;white-space:nowrap}
.crm-update-panel{padding:25px;display:grid;gap:14px;max-width:790px}.crm-update-panel p{max-width:680px;font-size:12px}
.crm-modal{border:1px solid #e0e7f0;border-radius:16px;background:white;box-shadow:0 20px 70px #1d33472f;width:min(92vw,800px);max-height:88vh;overflow:auto;padding:24px;color:var(--ink)}
.crm-modal::backdrop{background:rgba(26,43,65,.28);backdrop-filter:blur(2px)}
.crm-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.crm-modal-head h2{font-size:18px}
.crm-close{border:0;background:#f5f7fa;color:#748397;font-size:24px;font-weight:400;border-radius:9px;width:33px;height:33px}
.crm-modal-desc{font-size:12px;margin:8px 0 21px;line-height:1.7}
.crm-settings-list{display:grid;gap:8px;max-height:35vh;overflow-y:auto}
.crm-settings-row{display:flex;align-items:center;gap:5px;padding:9px;border:1px solid #ebeff4;border-radius:10px;min-width:0}
.crm-settings-row>input:first-of-type{flex:1 1 190px;min-width:105px;min-height:36px;height:36px;font-size:12px}
.crm-settings-row>select{width:103px;min-width:92px;min-height:36px;height:36px;font-size:11px;padding:5px 22px 5px 9px}
.crm-column-type{font-size:10px;color:#90a0b0;min-width:54px;max-width:68px;overflow:hidden;text-overflow:ellipsis}
.crm-inline-check{font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:5px;color:#65748a}
.crm-inline-check input{width:15px;height:15px;min-height:15px;accent-color:var(--blue)}
.crm-modal-divider{height:1px;background:var(--line);margin:23px 0}
.crm-modal h3{font-size:13px;margin-bottom:12px}
.crm-new-column{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;align-items:end;gap:12px}
.crm-new-column .crm-options-field{grid-column:1/-1}
.crm-new-stage{display:flex;align-items:flex-end;gap:12px}.crm-new-stage .field{flex:1}
.crm-confirm{max-width:450px}.crm-confirm>p{margin:22px 0;color:#56667b;font-size:13px;line-height:1.8}
.crm-confirm-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}
@media(max-width:1000px){.crm-toolbar{align-items:stretch}.crm-search{order:3;max-width:none;flex:1 0 100%}.crm-detail-grid{grid-template-columns:1fr}}
@media(max-width:780px){.crm-page-head{align-items:flex-start}.crm-board{padding:12px}.crm-lane{flex-basis:245px;max-height:65vh}.crm-settings-row{flex-wrap:wrap}.crm-settings-row>input:first-of-type{flex:1 0 55%}}
@media(max-width:520px){.crm-page-head{align-items:stretch;flex-direction:column}.crm-page-head .btn{align-self:flex-start}.crm-head-actions{gap:8px}.crm-toolbar{padding:12px;gap:10px}.crm-toolbar-right{width:100%}.crm-search{order:0;flex-basis:100%}.crm-form-grid{grid-template-columns:1fr}.crm-form-panel{padding:18px}.crm-form-footer{flex-direction:row;flex-wrap:wrap}.crm-data-grid{grid-template-columns:1fr}.crm-detail-panel,.crm-audit-panel{padding:17px}.crm-modal{padding:16px;width:calc(100vw - 22px)}.crm-new-column{grid-template-columns:1fr}.crm-new-stage{flex-direction:column;align-items:stretch}.crm-activity .crm-actions{gap:0}.crm-audit-row{flex-direction:column;gap:3px}.crm-settings-row{gap:2px}.crm-settings-row .crm-icon-action{min-width:29px}.crm-count{padding-left:12px}}

.crm-edit-options{padding:0 14px 9px;border:1px solid #eef1f5;border-radius:10px;margin-top:-5px}
.crm-edit-options summary{cursor:pointer;font-size:11px;color:#697a92;padding:10px 0}
.crm-edit-options form{display:grid;gap:10px;padding-bottom:9px}
.crm-edit-options form .btn{justify-self:start}

/* Beta 0.2.2 — densidad global compacta, conservando formas redondeadas. */
:root{--crm-gap:12px;--control-radius:10px;--card-radius:11px}
body{font-size:12px;line-height:1.46}
h1{font-size:22px}h2{font-size:14px}
.eyebrow{font-size:9px;margin-bottom:5px}
.btn{min-height:34px;padding:7px 13px;gap:7px;font-size:11.5px}
input,select,textarea{min-height:34px;padding:7px 10px;font-size:12px}
.field{gap:5px}.field label{font-size:11px}.form-stack{gap:12px}
.sidebar-nav{gap:3px;padding:12px 11px}.nav-link{min-height:36px;padding:8px 11px;font-size:11.5px;border-radius:9px}
.sidebar-bottom{padding:10px 12px}.sidebar-top{height:72px}
.topbar{height:52px}.main-content{width:min(100%,1640px);padding:26px 30px 65px}.page-head{margin-bottom:17px}.page-head .muted{font-size:11.5px;margin-top:3px}
.ready-panel{padding:17px;gap:12px;margin-bottom:12px}.ready-symbol{width:34px;height:34px}.ready-content p{font-size:11.5px;line-height:1.55}
.simple-panel{padding:0 17px;margin-top:12px}.section-head{padding:14px 0 12px}.status-row{min-height:44px}
.crm-toolbar{padding:10px 12px;gap:8px}.crm-count{padding:7px 12px;font-size:10px}
.crm-table th{height:34px;padding:6px 10px;min-width:128px;font-size:10.5px}
.crm-table td{height:38px;padding:3px 8px;max-width:300px}
.crm-actions-col{min-width:114px!important;width:114px}
.crm-icon-action{min-width:26px;height:27px;border-radius:8px}
.crm-cell-edit{min-width:105px;padding:5px 7px;font-size:11.5px;border-radius:7px}
.crm-cell-edit .cell-stage{padding:3px 8px;font-size:10.5px}
.crm-cell-edit .crm-cell-input{height:30px;min-height:30px;padding:4px 8px;font-size:11.5px}
.crm-tip{padding:8px 12px;font-size:10.5px}
.crm-board{padding:12px;gap:11px}.crm-lane{flex-basis:215px}.crm-kanban-card{padding:9px}.crm-lane>header{padding:9px}
.crm-lane-body{padding:0 7px 8px;gap:7px}.crm-card-stage{height:30px;min-height:30px}
.crm-form-panel{padding:19px}.crm-form-grid{gap:13px}.crm-form-footer{padding-top:12px}
.crm-detail-panel,.crm-audit-panel{padding:17px}.crm-detail-panel>h2{margin-bottom:12px}.crm-data-grid{gap:12px}
.crm-activity{padding:10px 0}.crm-activity-form{gap:9px;padding-top:13px}.crm-audit-panel{margin-top:12px}
.crm-modal{border-radius:14px;padding:18px;max-height:90vh}.crm-modal-head h2{font-size:15px}.crm-modal-desc{margin:7px 0 15px;font-size:11.5px}
.crm-settings-list{gap:6px}.crm-settings-row{padding:6px;border-radius:9px}.crm-settings-row>input:first-of-type,.crm-settings-row>select{height:31px;min-height:31px}
.crm-modal-divider{margin:15px 0}.crm-update-panel{padding:18px;gap:10px}
/* Propiedades de tabla tipo Notion: botón en encabezado y columna de suma. */
.crm-th-property{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-height:24px;border:0;background:transparent;color:inherit;text-align:left;font-weight:inherit;font-size:inherit;padding:0;border-radius:6px}
.crm-th-property:hover{color:var(--blue);background:#eff5fc}.crm-th-property span{opacity:.35}.crm-th-property:hover span{opacity:1}
.crm-add-property-col{width:42px!important;min-width:42px!important;max-width:42px!important;padding:4px!important}
.crm-add-property{width:28px;height:28px;display:grid;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;color:#8393a7}
.crm-add-property:hover{background:#eaf4ff;color:var(--blue);border-color:#d8e8f8}
.crm-property-dialog{width:min(95vw,460px)}.crm-property-form{display:grid;gap:14px;padding-top:16px}
.crm-property-form .field small{font-size:10.5px;color:var(--muted)}
.crm-property-section{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}
.crm-property-section strong{font-size:12px}.crm-property-section p{font-size:10.5px;margin-top:2px}
.crm-option-editor{display:grid;gap:7px;max-height:31vh;overflow-y:auto;padding:2px 1px}
.crm-option-row{display:flex;align-items:center;gap:7px;min-width:0}
.crm-option-row .crm-option-name{flex:1 1 auto;min-width:75px;max-width:100%;height:33px;min-height:33px}
.crm-option-row .crm-option-color{flex:0 0 90px;width:90px;height:33px;min-height:33px;padding-right:22px}
.crm-option-dot{height:9px;width:9px;border-radius:50%;background:#9ca9ba;flex:none}
.crm-option-dot.tone-blue{background:#4194e5}.crm-option-dot.tone-green{background:#43b68f}.crm-option-dot.tone-amber{background:#e4ac4d}.crm-option-dot.tone-red{background:#df7477}.crm-option-dot.tone-violet{background:#9984d8}
.crm-option-remove{flex:none;width:28px;height:29px;border:0;border-radius:8px;background:transparent;color:#9ba7b7;font-size:21px;line-height:1}
.crm-option-remove:hover{background:#fff1f1;color:#ce4754}
.crm-property-note{font-size:10.5px;color:var(--muted);line-height:1.5}
.crm-property-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:13px}
/* Etiquetas de estado configurables */
.crm-cell-edit .cell-stage.tone-slate{background:#f0f2f6;color:#66758a}
.crm-cell-edit .cell-stage.tone-green{background:#e9f8f1;color:#217957}
.crm-cell-edit .cell-stage.tone-amber{background:#fff5e6;color:#9b6921}
.crm-cell-edit .cell-stage.tone-red{background:#fff0f1;color:#b54855}
.crm-cell-edit .cell-stage.tone-violet{background:#f2effb;color:#7457ae}
.crm-cell-edit .cell-stage.tone-blue{background:#edf5ff;color:#37679d}
@media(max-width:780px){.main-content{padding:20px 16px 50px}.crm-modal{padding:15px}.crm-toolbar{padding:9px}.crm-form-panel{padding:15px}}
@media(max-width:520px){h1{font-size:21px}.crm-table th{height:34px}.crm-table td{height:40px}.crm-property-actions{flex-wrap:wrap}.crm-option-row .crm-option-color{flex-basis:74px;width:74px}.crm-property-dialog{width:calc(100vw - 20px)}}
@media(max-width:780px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px} .crm-table input,.crm-table select{font-size:16px}}
