/* TTP Office 6.0 | One shared, themeable interface layer.
   Loaded LAST. Preserves legacy form field names, API routes and paper/PDF content. */
:root[data-ttp-theme="light"] {
  color-scheme:light;
  --t6-bg:#f2f5fb;--t6-card:#fff;--t6-card-soft:#f8f9fd;--t6-ink:#15213a;
  --t6-muted:#68758d;--t6-line:#e1e6f0;--t6-accent:#4e39b6;--t6-accent2:#7257e9;
  --t6-brand-wash:#f1edff;--t6-input:#f7f8fc;--t6-shadow:0 8px 24px rgba(27,39,80,.045);
  --t6-hero-a:#f5f4ff;--t6-hero-b:#d5d9ff;--t6-hero-ink:#111d35;
}
:root[data-ttp-theme="dark"] {
  color-scheme:dark;
  --t6-bg:#0a1021;--t6-card:#111c34;--t6-card-soft:#16233e;--t6-ink:#f1f3ff;
  --t6-muted:#adbad6;--t6-line:#2c3a58;--t6-accent:#ac8aff;--t6-accent2:#7e59f6;
  --t6-brand-wash:#29234e;--t6-input:#192743;--t6-shadow:0 10px 30px rgba(0,0,0,.18);
  --t6-hero-a:#141a38;--t6-hero-b:#211952;--t6-hero-ink:#fff;
}
html {scroll-behavior:auto}
body.o50.ttp-design-v6 {--bg:var(--t6-bg);--panel:var(--t6-card);--ink:var(--t6-ink);--muted:var(--t6-muted);--line:var(--t6-line);--ttp-canvas:var(--t6-bg);--ttp-paper:var(--t6-card);--ttp-heading:var(--t6-ink);--ttp-text:var(--t6-ink);--ttp-muted:var(--t6-muted);--ttp-line:var(--t6-line);--w2-canvas:var(--t6-bg);--w2-paper:var(--t6-card);--w2-ink:var(--t6-ink);--w2-muted:var(--t6-muted);--w2-stroke:var(--t6-line);background:var(--t6-bg)!important;color:var(--t6-ink);font:14px/1.5 Arial,Helvetica,sans-serif}
body.o50.ttp-design-v6 .o50-shell {background:var(--t6-bg);grid-template-columns:258px minmax(0,1fr)}
body.o50.ttp-design-v6 .o50-sidebar {background:#101a30;color:#d8def5;border-right:1px solid #26304a}
.ttp-design-v6 .ttp-sidebar-head {background:#101a30;border-color:#29334d}
.ttp-design-v6 .ttp-sidebar-head .o50-brand {min-height:84px!important;background:#101a30!important;border-bottom:1px solid #2a3553!important;padding:16px 22px!important}
.ttp-design-v6 .ttp-sidebar-head .ttp-brand-wordmark {width:194px!important;max-width:200px!important;filter:brightness(0) invert(1);opacity:.97}
.ttp-design-v6 .ttp-sidebar-brandcaption {padding:16px 18px 10px;color:#afb9d1}
.ttp-design-v6 .ttp-sidebar-bottom {background:#101a30;border-color:#29334d}
body.o50.ttp-design-v6 .o50-sidebar nav a {border-radius:10px;min-height:39px;line-height:1.3}
body.o50.ttp-design-v6 .o50-sidebar nav a:hover {background:#253257;color:#fff}
body.o50.ttp-design-v6 .o50-sidebar nav a.active,body.o50.ttp-design-v6 .o50-sidebar nav a[aria-current="page"]{background:linear-gradient(105deg,#4436a9,#6045ca);border-left:3px solid #bfafff;color:white;box-shadow:0 5px 13px rgba(54,38,139,.24)}
body.o50.ttp-design-v6 .o50-topbar {background:var(--t6-card);color:var(--t6-ink);border-color:var(--t6-line);height:72px;min-height:72px}
body.o50.ttp-design-v6 .o50-topbar .ttp-topbar-ident .ttp-header-workspace {color:var(--t6-ink)}
body.o50.ttp-design-v6 .o50-topbar .ttp-header-breadcrumb,body.o50.ttp-design-v6 .ttp-topbar-ident small {color:var(--t6-muted)}
body.o50.ttp-design-v6 .o50-search {background:var(--t6-input);border:1px solid var(--t6-line);color:var(--t6-ink);border-radius:10px}
body.o50.ttp-design-v6 .o50-search input {color:var(--t6-ink);background:transparent}
body.o50.ttp-design-v6 .o50-search input::placeholder {color:var(--t6-muted)}
body.o50.ttp-design-v6 .o50-search .ttp-line-icon {color:var(--t6-muted)}
.ttp-design-v6 .ttp-action-create {background:#5035be;box-shadow:0 5px 14px rgba(72,52,164,.18);border-radius:9px}
body.o50.ttp-design-v6 .o50-help-btn,body.o50.ttp-design-v6 .o50-iconbtn {background:var(--t6-card);border-color:var(--t6-line);color:var(--t6-ink)}
body.o50.ttp-design-v6 .o50-user {border-color:var(--t6-line)}
body.o50.ttp-design-v6 .o50-user span {color:var(--t6-ink)}
body.o50.ttp-design-v6 .o50-user small {color:var(--t6-muted)}
.ttp-design-v6 .ttp-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:37px;min-width:86px;flex:0 0 auto;padding:5px 8px;border:1px solid var(--t6-line);border-radius:22px;background:var(--t6-input);color:var(--t6-muted);font-size:16px;cursor:pointer;transition:background .2s,border-color .2s}
.ttp-design-v6 .ttp-theme-toggle:focus-visible{outline:3px solid #9e88ff;outline-offset:2px}
.ttp-design-v6 .ttp-theme-track{display:inline-flex;width:32px;height:19px;background:#dfd8ff;border-radius:99px;align-items:center;padding:2px}
.ttp-design-v6 .ttp-theme-knob{display:block;width:15px;height:15px;border-radius:50%;background:#6545d3;box-shadow:0 1px 4px rgba(34,15,96,.2);transition:transform .18s}
:root[data-ttp-theme="dark"] .ttp-theme-knob{transform:translateX(13px);background:#cebaff}
:root[data-ttp-theme="dark"] .ttp-theme-track{background:#4d388b}
body.o50.ttp-design-v6 .ttp-location-bar{background:var(--t6-card-soft);color:var(--t6-muted);border-color:var(--t6-line)}
.ttp-design-v6 .ttp-location-bar a,.ttp-design-v6 .ttp-location-trail strong{color:var(--t6-ink)!important}
.ttp-design-v6 .ttp-location-shortcuts a:hover{background:var(--t6-brand-wash)}
body.o50.ttp-design-v6 .o50-content {background:var(--t6-bg);padding:24px clamp(16px,2vw,35px) 125px}
/* Global forms, listings and workspaces: no changes to functional controls */
body.o50.ttp-design-v6 :is(.panel,.x28-panel,.dms-explorer-sidebar,.dms-explorer-main,.o50-card,.o52-card,.ttp-record-section,.page-card,.dashboard-card,.pdfstudio-card,.pdfstudio-intro,.x28-kpis article,.dms-explorer-item) {background:var(--t6-card);border-color:var(--t6-line);color:var(--t6-ink);box-shadow:var(--t6-shadow);border-radius:13px}
body.o50.ttp-design-v6 :is(.page-head,.o52-pagehead) h1 {color:var(--t6-ink);font-family:Arial,Helvetica,sans-serif;font-weight:750;letter-spacing:-.025em;font-size:clamp(25px,2.2vw,34px)}
body.o50.ttp-design-v6 :is(.page-head,.o52-pagehead) p {color:var(--t6-muted)}
body.o50.ttp-design-v6 :is(input:not([type=checkbox]):not([type=radio]),select,textarea){color:var(--t6-ink);background:var(--t6-input);border-color:var(--t6-line);border-radius:9px}
body.o50.ttp-design-v6 :is(input:not([type=checkbox]):not([type=radio]),select,textarea)::placeholder{color:var(--t6-muted)}
body.o50.ttp-design-v6 :is(input,select,textarea):focus-visible {outline:2px solid var(--t6-accent2);outline-offset:1px}
body.o50.ttp-design-v6 :is(.btn,.x28-btn,button):not(.ttp-theme-toggle):not(.ttp-mobile-menu-trigger){transition:background-color .16s,border-color .16s,transform .16s}
body.o50.ttp-design-v6 :is(.btn.primary,.x28-btn.primary){background:#5035be;color:#fff;border-color:#5035be}
body.o50.ttp-design-v6 :is(.btn.secondary,.x28-btn.secondary){background:var(--t6-card-soft);color:var(--t6-ink);border-color:var(--t6-line)}
body.o50.ttp-design-v6 :is(.table-wrap,.data-table,.o52-table){border-radius:12px;border-color:var(--t6-line);background:var(--t6-card)}
body.o50.ttp-design-v6 :is(.table-wrap,.data-table,.o52-table) :is(th,thead){background:var(--t6-card-soft);color:var(--t6-muted)}
body.o50.ttp-design-v6 :is(.table-wrap,.data-table,.o52-table) :is(td,tr){border-color:var(--t6-line);color:var(--t6-ink)}
body.o50.ttp-design-v6 .dms-explorer-sidebar{background:var(--t6-card-soft)}
body.o50.ttp-design-v6 .dms-explorer-item:hover{background:var(--t6-brand-wash)}
body.o50.ttp-design-v6 .pdfstudio-tool{background:var(--t6-card-soft);color:var(--t6-ink);border-color:var(--t6-line)}
body.o50.ttp-design-v6 .pdfstudio-tool small{color:var(--t6-muted)}
body.o50.ttp-design-v6 .pdfstudio-tool[aria-pressed="true"]{background:var(--t6-brand-wash);border-color:var(--t6-accent)}
body.o50.ttp-design-v6 .pdfstudio-drop{background:var(--t6-input);border-color:var(--t6-accent);color:var(--t6-ink);box-shadow:none}
body.o50.ttp-design-v6 .pdfstudio-help{background:var(--t6-card-soft);color:var(--t6-muted);border:1px solid var(--t6-line)}
body.o50.ttp-design-v6 .pdfstudio-help strong{color:var(--t6-ink)}
body.o50.ttp-design-v6 .pdfstudio-files li{background:var(--t6-card-soft);border-color:var(--t6-line);color:var(--t6-ink)}
body.o50.ttp-design-v6 .pdfstudio-intro p,body.o50.ttp-design-v6 .pdfstudio-card p {color:var(--t6-muted)}
/* Preserve paper-white working canvases, page preview and printable documents in dark mode. */
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 :is(.a4,.pdf-page,.document-page,.word-page,.paper-page,.sheet,.page-canvas,.page-preview,.pdf-canvas,.editor-paper,.o52-paper){background:#fff!important;color:#15213a!important;color-scheme:light}
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 :is(.a4,.pdf-page,.document-page,.word-page,.paper-page,.sheet,.page-canvas,.page-preview,.pdf-canvas,.editor-paper,.o52-paper) :is(input,textarea){color:#15213a!important;background:transparent!important}
/* Main dashboard, namespaced to prevent editor/PDF regressions */
.t6-dashboard{display:grid;gap:14px;min-width:0;font-family:Arial,Helvetica,sans-serif}
.t6-dashboard *, .t6-dashboard *::before,.t6-dashboard *::after{box-sizing:border-box}
.t6-dashboard a{text-decoration:none;color:inherit}
.t6-hero{position:relative;isolation:isolate;overflow:hidden;min-height:220px;display:flex;align-items:center;background:linear-gradient(113deg,var(--t6-hero-a) 0%,var(--t6-hero-a) 42%,var(--t6-hero-b) 100%);border:1px solid var(--t6-line);border-radius:17px;padding:30px 38px;box-shadow:var(--t6-shadow)}
.t6-hero-copy{position:relative;z-index:2;max-width:65%;min-width:450px}
.t6-eyebrow{font-size:10px;font-weight:800;letter-spacing:.17em;color:var(--t6-accent)}
.t6-hero h1{color:var(--t6-hero-ink);font:800 clamp(29px,2.7vw,43px)/1.12 Arial,Helvetica,sans-serif;letter-spacing:-.035em;margin:13px 0 12px}
.t6-hero h1 span{color:var(--t6-accent)}
.t6-hero p{font-size:13px;line-height:1.65;max-width:500px;color:var(--t6-muted);margin:0}
.t6-hero-points{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.t6-hero-points span{border:1px solid var(--t6-line);border-radius:9px;padding:8px 10px;color:var(--t6-ink);background:color-mix(in srgb,var(--t6-card) 82%,transparent);font-size:11px;font-weight:600}
.t6-hero-art{position:absolute;z-index:1;right:-25px;top:0;height:100%;width:55%;pointer-events:none}
.t6-hero-art img{width:100%;height:100%;object-fit:cover;object-position:center;max-width:none}
.t6-hero-dark{display:none} :root[data-ttp-theme="dark"] .t6-hero-light{display:none} :root[data-ttp-theme="dark"] .t6-hero-dark{display:block}
.t6-metrics,.t6-grid-top,.t6-grid-bottom{display:grid;gap:13px;min-width:0}
.t6-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.t6-grid-top{grid-template-columns:1.15fr .85fr 1fr}
.t6-grid-bottom{grid-template-columns:repeat(3,minmax(0,1fr))}
.t6-metric,.t6-card{border:1px solid var(--t6-line);background:var(--t6-card);color:var(--t6-ink);border-radius:14px;box-shadow:var(--t6-shadow);min-width:0}
.t6-metric{display:flex;align-items:center;gap:12px;padding:18px 16px;min-height:102px;transition:border-color .2s,transform .2s}
.t6-metric:hover,.t6-quick-actions a:hover,.t6-module-grid a:hover{border-color:var(--t6-accent);transform:translateY(-1px)}
.t6-metric-ico{width:43px;height:43px;border-radius:12px;background:var(--t6-brand-wash);color:var(--t6-accent);font-size:23px;font-weight:600;display:grid;place-items:center;flex:0 0 auto}
.t6-metric div{min-width:0;display:grid;gap:2px}
.t6-metric small{font-size:11px;font-weight:750;color:var(--t6-ink)}
.t6-metric strong{font-size:27px;line-height:1.15;font-weight:800;letter-spacing:-.05em}
.t6-metric div>span{font-size:10px;color:var(--t6-muted)}
.t6-metric> b{margin-left:auto;font-size:17px;color:var(--t6-accent);font-weight:400}
.t6-card{padding:17px 17px 15px;min-height:230px}
.t6-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:29px;margin-bottom:14px}
.t6-card-head h2{font-size:14px;line-height:1.3;color:var(--t6-ink);font-weight:780;margin:0}
.t6-card-head>a{font-size:11px;color:var(--t6-accent);font-weight:700;white-space:nowrap}
.t6-card-head>small{font-size:10px;color:var(--t6-muted)}
.t6-quick-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.t6-quick-actions a{display:flex;flex-direction:column;align-items:center;gap:10px;justify-content:center;text-align:center;min-height:117px;padding:9px 5px;border:1px solid var(--t6-line);border-radius:11px;background:var(--t6-card-soft);font-weight:650;font-size:10px;line-height:1.45;transition:transform .16s,border-color .16s}
.t6-quick-actions a span{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:var(--t6-brand-wash);font-size:20px;color:var(--t6-accent)}
.t6-list{display:grid;gap:0}
.t6-list-row{display:flex;gap:10px;align-items:center;min-height:45px;padding:6px 2px;border-bottom:1px solid var(--t6-line);min-width:0}
.t6-list-row:last-child{border-bottom:0}
.t6-list-row:hover .t6-list-body strong{color:var(--t6-accent)}
.t6-list-body{display:grid;gap:2px;min-width:0;flex:1}
.t6-list-body strong{font-size:11px;line-height:1.35;overflow-wrap:anywhere;font-weight:700;color:var(--t6-ink)}
.t6-list-body small{font-size:10px;color:var(--t6-muted)}
.t6-fileicon,.t6-taskcheck,.t6-date{display:grid;place-items:center;flex:0 0 auto;background:var(--t6-brand-wash);color:var(--t6-accent);border-radius:8px}
.t6-fileicon{height:31px;width:31px;font-size:16px}
.t6-taskcheck{width:18px;height:18px;border:1.5px solid var(--t6-accent);background:transparent;border-radius:6px}
.t6-date{padding:6px;min-width:51px;font-size:10px;line-height:1.2}
.t6-date b{font-size:11px}
.t6-chevron{color:var(--t6-accent);font-size:19px}
.t6-due{font-size:10px;color:var(--t6-muted);text-align:right;white-space:nowrap;max-width:105px;overflow:hidden;text-overflow:ellipsis}
.t6-empty{display:grid;gap:13px;padding:18px 5px;color:var(--t6-muted);font-size:12px;line-height:1.5}
.t6-empty a{color:var(--t6-accent);font-weight:700}
.t6-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.t6-module-grid a{display:flex;align-items:center;gap:9px;min-width:0;background:var(--t6-card-soft);border:1px solid var(--t6-line);border-radius:9px;padding:11px 10px;font-size:11px;font-weight:650;transition:transform .16s,border-color .16s}
.t6-module-grid a span{color:var(--t6-accent);font-size:17px}
.t6-module-grid a b{margin-left:auto;color:var(--t6-accent)}
body.o50.ttp-design-v6 .o523-time-dock{background:var(--t6-card);color:var(--t6-ink);border-color:var(--t6-line)}
@media(max-width:1450px){.t6-grid-top{grid-template-columns:1fr 1fr}.t6-quick{grid-column:1/-1}.t6-grid-bottom{grid-template-columns:1fr 1fr}.t6-module{grid-column:1/-1}.t6-hero-copy{max-width:68%}}
@media(max-width:1050px){.t6-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.t6-hero-copy{max-width:76%;min-width:0}.t6-hero-art{opacity:.55;width:70%}.ttp-design-v6 .ttp-theme-toggle{min-width:70px}}
@media(max-width:760px){body.o50.ttp-design-v6 .o50-content{padding:16px 12px 100px}.t6-hero{padding:24px 19px;min-height:220px}.t6-hero-copy{max-width:100%}.t6-hero h1{font-size:29px}.t6-hero-art{opacity:.24;right:-110px;width:95%}.t6-hero-points{gap:6px}.t6-hero-points span{font-size:9px}.t6-grid-top,.t6-grid-bottom{grid-template-columns:1fr}.t6-quick,.t6-module{grid-column:auto}.t6-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.t6-card{min-height:0}.ttp-design-v6 .ttp-theme-toggle{height:34px;min-width:67px}}
@media(max-width:440px){.t6-metrics{grid-template-columns:1fr 1fr;gap:8px}.t6-metric{padding:11px 10px;min-height:100px;gap:7px}.t6-metric-ico{width:32px;height:32px;font-size:16px}.t6-metric strong{font-size:22px}.t6-metric div>span{display:none}.t6-metric>b{display:none}.t6-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.t6-hero h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){.ttp-design-v6 *, .t6-dashboard *{transition:none!important;animation:none!important}}
@media print{.ttp-theme-toggle,.t6-hero-art{display:none!important}}
/* Specialized application surfaces, shared light/dark materials */
body.o50.ttp-design-v6 :is(.o52-client-card,.o52-dialog,.o52-filterbar,.o52-word-top,.o52-ribbon,.o52-word-shell,.o523-calendar-hint,.calendar-shell,.calendar-grid,.calendar-weekdays,.o523-calendar-dialog,.postportal-featuregrid>div,.postportal-upload,.o52-invoice-card,.o52-client-metrics,.dms52-kpis,.dms52-kpi,.dms-tree-root,.dms-tree-row,.dms-explorer-main,.o52-word-properties,.word-properties,.o52-sidebar-panel,.o52-dialog form,.o52-dialog header,.o52-dialog footer,.mail-shell,.mail-folder-list,.mail-message-list,.mail-reader) {background-color:var(--t6-card);color:var(--t6-ink);border-color:var(--t6-line)}
body.o50.ttp-design-v6 :is(.o52-client-card,.postportal-featuregrid>div,.dms52-kpis,.calendar-shell,.o52-filterbar,.o52-dialog){border:1px solid var(--t6-line);border-radius:13px;box-shadow:var(--t6-shadow)}
body.o50.ttp-design-v6 :is(.o52-client-card h2,.o52-word-title,.o52-pagehead h1,.o52-client-no,.o52-dialog h2,.postportal-featuregrid b){color:var(--t6-ink)}
body.o50.ttp-design-v6 :is(.o52-client-card p,.o52-client-card small,.o52-client-card footer,.o52-pagehead p,.o523-calendar-hint small,.postportal-featuregrid small){color:var(--t6-muted)}
body.o50.ttp-design-v6 :is(.o52-client-card:hover,.dms-explorer-item:hover){border-color:var(--t6-accent)}
body.o50.ttp-design-v6 :is(.o52-ribbon,.o52-word-top,.o52-word-shell) {border-color:var(--t6-line)}
body.o50.ttp-design-v6 :is(.o52-ribbon-group,.o52-word-actions,.calendar-weekdays){color:var(--t6-ink)}
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 :is(.o52-client-metrics,.o52-filterbar,.o523-calendar-hint,.calendar-weekdays,.o52-ribbon,.dms-tree-root,.dms52-kpi,.postportal-featuregrid>div){background:var(--t6-card-soft)}
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 :is(.o52-client-card,.o52-dialog,.dms-explorer-main,.dms-explorer-sidebar,.o52-word-top,.o52-ribbon,.o52-word-shell,.postportal-upload,.calendar-shell,.o523-calendar-hint,.pdfstudio-card){box-shadow:none}
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 :is(.o52-client-card,.o52-word-top,.o52-ribbon,.calendar-shell,.dms-explorer-main,.postportal-featuregrid>div) :is(a,button){color:var(--t6-ink)}
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 :is(.btn.primary,.ttp-action-create){color:#fff!important}
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 :is(.o52-client-card,.o52-word-shell,.dms-explorer-main,.calendar-shell,.pdfstudio-card) :is(h1,h2,h3,label,legend,strong){color:var(--t6-ink)}
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 :is(.o52-client-card,.o52-word-shell,.dms-explorer-main,.calendar-shell,.pdfstudio-card) :is(p,small,caption){color:var(--t6-muted)}
/* The document page itself is always print-white even with dark chrome. */
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 .o52-word-page,:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 [contenteditable="true"].word-content,:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 .o52-a4-page{color:#132039!important;background-color:#fff!important;color-scheme:light}
:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 .o52-word-page :is(input,textarea),:root[data-ttp-theme="dark"] body.o50.ttp-design-v6 .o52-a4-page :is(input,textarea){color:#132039!important;background:transparent!important}
@media(max-width:950px){.ttp-design-v6 .o50-top-actions{gap:7px}.ttp-design-v6 .ttp-theme-toggle{order:-1}}
/* Authentication is a separate page not inheriting base.html. */
body.o50-login.ttp-login-page.ttp-login-v6{background:var(--t6-bg);color:var(--t6-ink)}
body.ttp-login-v6 .ttp-auth-head,body.ttp-login-v6 .ttp-auth-form{background:var(--t6-card);color:var(--t6-ink);border-color:var(--t6-line)}
body.ttp-login-v6 .ttp-auth-head :is(b,span),body.ttp-login-v6 .ttp-auth-form :is(h1,h2,label,.ttp-auth-intro){color:var(--t6-ink)}
body.ttp-login-v6 .ttp-auth-help :is(span,small),body.ttp-login-v6 .ttp-auth-product span{color:var(--t6-muted)}
body.ttp-login-v6 .ttp-auth-form :is(input){background:var(--t6-input);color:var(--t6-ink);border-color:var(--t6-line)}
body.ttp-login-v6 .ttp-auth-visual{background:linear-gradient(128deg,#111b32,#262157 90%);color:#fff}
body.ttp-login-v6 .ttp-auth-visual-copy :is(h1,p){color:#fff}
body.ttp-login-v6 .ttp-login-theme{position:absolute;right:23px;top:92px;z-index:4}
/* Brand and switch: explicit precedence over earlier legacy important declarations. */
body.o50.ttp-design-v6 .ttp-sidebar-head .o50-brand.ttp-brand-real{position:static!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-width:0!important;min-height:83px!important;margin:0!important;padding:16px 24px!important;box-sizing:border-box!important;background:#101a30!important;border-bottom:1px solid #29334d!important}
body.o50.ttp-design-v6 .ttp-sidebar-head .ttp-brand-wordmark{display:block!important;width:192px!important;max-width:100%!important;height:auto!important;max-height:48px!important;object-fit:contain!important;object-position:left center!important;filter:brightness(0) invert(1)!important;opacity:1!important}
body.o50.ttp-design-v6 .o50-topbar .ttp-theme-toggle,body.ttp-login-v6 .ttp-theme-toggle{background:var(--t6-input)!important;color:var(--t6-muted)!important;border:1px solid var(--t6-line)!important;border-radius:22px!important}
