/* THINKPOL skin for the CRM (hub.think-pol.com), 2026-12-05.
   Looks only. The CRM draws everything from its own design variables (--t-*, set on html.light / html.dark): they
   get the THINKPOL values here (paper, ink, thin lines, square corners, site fonts). A few stable hooks then get the
   site's type (mono labels, serif titles). No markup, route or data change; delete the two tags in index.html to undo.
   Source: box ~/twenty-apps/thinkpol-hub/skin, pushed by push-sites.sh hub. */
@font-face{font-family:Fraunces;src:url(/thinkpol/Fraunces-Variable.woff2) format("woff2");font-weight:300 500;font-style:normal;font-display:swap}
@font-face{font-family:"Inter Tight";src:url(/thinkpol/InterTight-Variable.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Martian Mono";src:url(/thinkpol/MartianMono-Variable.woff2) format("woff2");font-weight:300 600;font-style:normal;font-display:swap}

html.light,html.dark{
  --tp-display:Fraunces,Georgia,serif;
  --tp-mono:"Martian Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --t-font-family:"Inter Tight",Inter,system-ui,sans-serif;
  --t-code-font-family:"Martian Mono",ui-monospace,Menlo,Consolas,monospace;
  --t-border-radius-xs:0px;--t-border-radius-sm:0px;--t-border-radius-md:0px;--t-border-radius-lg:0px;--t-border-radius-xl:0px;
  --t-border-radius-xxl:0px;--t-border-radius-pill:0px;--t-border-radius-sm-round:0px;--t-border-radius-md-round:0px;
  --t-background-noisy:none;
  --t-blur-light:none;--t-blur-medium:none;--t-blur-strong:none;
}

/* light: paper and ink */
html.light{
  --n100:#fbfbfa;--n200:#f5f5f4;--n250:#f0f0ee;--n300:#ebebe8;--n350:#e3e3df;--n400:#d6d6d1;--n420:#c4c4be;--n440:#a9a9a3;
  --n450:#8c8c86;--n480:#7a7a74;--n500:#65655f;--n600:#45454a;--n700:#2a2a2e;--n800:#121215;--tp-on-ink:#f5f5f4;
  --tp-veil:rgba(18,18,21,.06);--tp-veil-2:rgba(18,18,21,.1);
  --t-box-shadow-color:rgba(18,18,21,.04);
  --t-box-shadow-light:0 0 0 0 transparent;
  --t-box-shadow-strong:0 0 0 1px var(--n400),0 14px 32px -18px rgba(18,18,21,.28);
  --t-box-shadow-super-heavy:0 0 0 1px var(--n400),0 24px 56px -24px rgba(18,18,21,.38);
  --t-background-danger:#fbeef0;--t-font-color-danger:#c4304a;--t-border-color-danger:#f0c4cb;
  --t-background-transparent-primary:rgba(251,251,250,.5);--t-background-transparent-secondary:rgba(251,251,250,.4);
}
/* dark: the site's dark greys */
html.dark{
  --n100:#111113;--n200:#0a0a0b;--n250:#151517;--n300:#1b1b1f;--n350:#232327;--n400:#2c2c31;--n420:#3a3a40;--n440:#55555c;
  --n450:#6a6a71;--n480:#7c7c83;--n500:#8c8c93;--n600:#b4b4b9;--n700:#d6d6d3;--n800:#ededea;--tp-on-ink:#0a0a0b;
  --tp-veil:rgba(237,237,234,.08);--tp-veil-2:rgba(237,237,234,.14);
  --t-box-shadow-color:rgba(0,0,0,.6);
  --t-box-shadow-light:0 0 0 0 transparent;
  --t-box-shadow-strong:0 0 0 1px var(--n400),0 14px 32px -18px rgba(0,0,0,.7);
  --t-box-shadow-super-heavy:0 0 0 1px var(--n400),0 24px 56px -24px rgba(0,0,0,.8);
  --t-background-danger:#2a1418;--t-font-color-danger:#ff7a8a;--t-border-color-danger:#5a2530;
  --t-background-transparent-primary:rgba(17,17,19,.5);--t-background-transparent-secondary:rgba(17,17,19,.4);
}
/* shared mapping onto the greys above */
html.light,html.dark{
  --t-background-primary:var(--n100);--t-background-secondary:var(--n200);--t-background-tertiary:var(--n300);--t-background-quaternary:var(--n350);
  --t-background-inverted-primary:var(--n800);--t-background-inverted-secondary:var(--n600);
  --t-background-primary-inverted:var(--n800);--t-background-primary-inverted-hover:var(--n700);
  --t-background-transparent-blue:var(--tp-veil);
  --t-font-color-primary:var(--n800);--t-font-color-secondary:var(--n600);--t-font-color-tertiary:var(--n500);
  --t-font-color-light:var(--n450);--t-font-color-extra-light:var(--n420);--t-font-color-inverted:var(--tp-on-ink);
  --t-border-color-strong:var(--n400);--t-border-color-medium:var(--n350);--t-border-color-light:var(--n300);
  --t-border-color-inverted:var(--n800);--t-border-color-secondary-inverted:var(--n600);--t-border-color-blue:var(--n800);
  --t-gray-scale-gray1:var(--n100);--t-gray-scale-gray2:var(--n200);--t-gray-scale-gray3:var(--n250);--t-gray-scale-gray4:var(--n300);
  --t-gray-scale-gray5:var(--n350);--t-gray-scale-gray6:var(--n400);--t-gray-scale-gray7:var(--n420);--t-gray-scale-gray8:var(--n440);
  --t-gray-scale-gray9:var(--n450);--t-gray-scale-gray10:var(--n480);--t-gray-scale-gray11:var(--n500);--t-gray-scale-gray12:var(--n800);
  --t-color-gray:var(--n450);
  --t-color-gray1:var(--n100);--t-color-gray2:var(--n200);--t-color-gray3:var(--n250);--t-color-gray4:var(--n300);--t-color-gray5:var(--n350);
  --t-color-gray6:var(--n400);--t-color-gray7:var(--n420);--t-color-gray8:var(--n440);--t-color-gray9:var(--n450);--t-color-gray10:var(--n480);
  --t-color-gray11:var(--n500);--t-color-gray12:var(--n800);
  --t-tag-background-gray:var(--n250);--t-tag-text-gray:var(--n600);
  /* the accent is ink, not blue */
  --t-color-blue:var(--n800);
  --t-accent-accent1:var(--n100);--t-accent-accent2:var(--n200);--t-accent-accent3:var(--n300);--t-accent-accent4:var(--n350);
  --t-accent-accent5:var(--n400);--t-accent-accent6:var(--n420);--t-accent-accent7:var(--n440);--t-accent-accent8:var(--n450);
  --t-accent-accent9:var(--n800);--t-accent-accent10:var(--n700);--t-accent-accent11:var(--n800);--t-accent-accent12:var(--n800);
  --t-accent-primary:var(--n400);--t-accent-secondary:var(--n400);--t-accent-tertiary:var(--n300);--t-accent-quaternary:var(--n200);
  --t-accent-accent3570:var(--n450);--t-accent-accent4060:var(--n450);
  --t-buttons-secondary-text-color:var(--n450);
  --t-snack-bar-info-color:var(--n800);--t-snack-bar-info-background-color:var(--tp-veil);
  --t-background-radial-gradient:var(--n300);--t-background-radial-gradient-hover:var(--n350);
}
html,body{background-color:var(--n200,#f5f5f4)!important}
::selection{background:var(--n800);color:var(--tp-on-ink)}

/* type: mono labels (menu sections, column headers), as on think-pol.com */
.section-title-label{font-family:var(--tp-mono)!important;font-stretch:87.5%;font-size:10px!important;font-weight:400!important;letter-spacing:.04em!important;text-transform:uppercase;color:var(--n500)!important}
.header-cell .record-table-cell-content,.header-cell .record-table-cell-content span{font-family:var(--tp-mono)!important;font-stretch:87.5%;font-size:10.5px!important;font-weight:400!important;letter-spacing:.04em!important;text-transform:uppercase;color:var(--n500)!important}

/* fills painted with the accent keep a readable text and grey hovers (the CRM hard-codes white text and blue hovers) */
button[data-variant="primary"][data-accent="blue"]:not([data-inverted]){--btn-color:var(--tp-on-ink)!important;--btn-hover-bg:var(--n700)!important;--btn-active-bg:var(--n600)!important;--icon-button-color:var(--tp-on-ink)!important;--icon-button-hover-bg:var(--n700)!important;--icon-button-active-bg:var(--n600)!important}

/* sign-in pages (the only ones with the vendor's legal links): THINKPOL mark, serif title, no vendor links */
body:has(a[href^="https://twenty.com/legal"]) a[href="/welcome"]>div{background-image:url(/thinkpol/icon-192.png)!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}
body:has(a[href^="https://twenty.com/legal"]) a[href="/welcome"]+div{display:none!important}
body:has(a[href^="https://twenty.com/legal"]) [class*="_fadeIn_"]:not(:has(*)){font-family:var(--tp-display)!important;font-weight:360!important;font-size:30px!important;letter-spacing:-.02em!important;font-variation-settings:"opsz" 72,"SOFT" 0,"WONK" 0}
div:has(>a[href^="https://twenty.com/legal"]){display:none!important}
html.light body:has(a[href^="https://twenty.com/legal"]) a[href="/welcome"]>div{mix-blend-mode:multiply}
html.dark body:has(a[href^="https://twenty.com/legal"]) a[href="/welcome"]>div{filter:invert(1);mix-blend-mode:screen}
