
:root{
  --pro-bg:#eef3fb;
  --pro-surface:#ffffff;
  --pro-surface-2:#f6f9fe;
  --pro-line:#d5deec;
  --pro-line-2:#c6d3e7;
  --pro-text:#162338;
  --pro-text-2:#23324f;
  --pro-muted:#62738d;
  --pro-primary:#4064ff;
  --pro-primary-2:#12aee8;
  --pro-shadow:0 18px 40px rgba(15, 30, 58, .08);
  --pro-shadow-soft:0 8px 20px rgba(15, 30, 58, .06);
}
html,body{background:var(--pro-bg)!important;color:var(--pro-text)!important;font-size:15px;line-height:1.45}
body{background-image:none!important}
.shell{width:calc(100vw - 16px)!important;max-width:none!important;padding:8px!important;gap:14px!important;grid-template-columns:270px minmax(0,1fr) 72px!important}
.main-area,.content{min-width:0!important;max-width:none!important}
.content{padding:10px 8px 32px!important}
.page-block{display:grid;gap:18px}
.topbar,.card,.table-shell,.toolbar-card,.drawer,.drawer-card,.drawer-section,.drawer-section-inline,.workday-pill,.rail-btn,.modal-card,.chat-side,.chat-main,.tg-chat-main,.modern-messages,.chat-compose-card,.kanban-column,.entity-record-details,.builder-entity-card,.hero-kpi{background:var(--pro-surface)!important;border:1px solid var(--pro-line)!important;box-shadow:var(--pro-shadow-soft)!important}
.sidebar{background:linear-gradient(180deg,#0f172b 0%,#14233d 56%,#173152 100%)!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 24px 55px rgba(8,16,33,.28)!important}
.sidebar .nav-link,.sidebar .brand p,.sidebar .nav-section-label,.sidebar .company-user-card p,.sidebar .company-user-card .muted{color:rgba(241,246,255,.88)!important}
.sidebar .nav-link{border-radius:14px!important;border:1px solid transparent!important}
.sidebar .nav-link:hover{background:rgba(255,255,255,.08)!important}
.sidebar .nav-link.is-active{background:linear-gradient(135deg,rgba(64,100,255,.52),rgba(18,174,232,.28))!important;color:#fff!important;border-color:rgba(173,201,255,.25)!important}
.company-user-card,.sidebar-footer .ghost-btn{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.08)!important}
.brand .logo{box-shadow:0 10px 22px rgba(64,100,255,.26)!important}
.topbar{padding:16px 18px!important;grid-template-columns:minmax(280px,.85fr) minmax(360px,1fr) auto!important;align-items:center!important;gap:16px!important}
.topbar-left h1,.section-head h2,.card-title h3,.drawer-view-title,.drawer-headline h2,.drawer-header strong{color:var(--pro-text)!important;font-weight:800;letter-spacing:-.02em}
.section-head p,.muted,.mini,.small-label,.eyebrow,.drawer-subtitle{color:var(--pro-muted)!important}
.search-shell{background:var(--pro-surface-2)!important;border:1px solid var(--pro-line)!important;min-height:52px!important}
.search-shell input{font-size:15px!important}
.input,.textarea,select,input[type="text"],input[type="email"],input[type="password"],input[type="number"],input[type="date"],input[type="datetime-local"]{background:#fff!important;border:1px solid var(--pro-line-2)!important;color:var(--pro-text)!important;border-radius:14px!important;min-height:48px!important}
.input::placeholder,.textarea::placeholder{color:#8595ad!important}
.textarea{min-height:120px!important}
.primary-btn{background:linear-gradient(135deg,var(--pro-primary),#5579ff 52%,var(--pro-primary-2))!important;color:#fff!important;box-shadow:0 14px 28px rgba(64,100,255,.18)!important}
.ghost-btn{background:#fff!important;color:var(--pro-text)!important;border:1px solid var(--pro-line)!important}
.badge,.chip,.context-chip{background:#eef4ff!important;color:#3553b3!important;border:1px solid #d6e3ff!important}
.badge.soft{background:#f6f9ff!important;color:#5f718f!important;border-color:#dde7f5!important}
.right-rail{position:sticky;top:18px;align-self:start}
.rail-btn{color:var(--pro-text)!important;min-height:88px!important}
.table-shell{padding:12px!important;border-radius:22px!important}
.table-head{background:#f7faff!important;border:1px solid var(--pro-line)!important}
.table-row{padding:14px 14px!important;border-bottom:1px solid #edf2fa!important}
.hero-kpi{padding:14px 16px!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:14px!important}
.hero-kpi strong,.metric-card strong,.drawer-stat-value{font-size:24px!important;line-height:1.1!important;color:var(--pro-text)!important;word-break:break-word}
.drawer{width:min(1140px,calc(100vw - 24px))!important;height:calc(100vh - 24px)!important;top:12px!important;right:12px!important;border-radius:28px!important}
.drawer-header{background:#fff!important;border-bottom:1px solid var(--pro-line)!important;padding:18px 22px!important;min-height:78px!important}
.drawer-body{padding:18px!important;overflow:auto!important;scroll-behavior:smooth}
.drawer-card.accent-drawer,.profile-drawer-card,.project-view-card,.task-view-card{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;padding:20px!important;border-radius:24px!important}
.drawer-headline{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.drawer-view-title{font-size:34px!important;line-height:1.08!important;margin:6px 0 0}
.drawer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}
.task-view-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.task-view-grid .drawer-stat,.profile-summary-grid .drawer-stat{padding:16px!important;min-height:96px!important;background:#fff!important;border-radius:18px!important}
.task-focus-strip,.project-focus-strip{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px!important;padding:16px!important;background:linear-gradient(180deg,#fff,#f6f9ff)!important;border:1px solid var(--pro-line)!important;border-radius:22px!important}
.task-focus-actions,.task-focus-analytics{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:flex-start!important}
.task-focus-analytics .drawer-stat{flex:1 1 0;min-width:180px}
.drawer-tabs-shell{display:grid;gap:16px!important}
.drawer-tabs-nav{position:sticky;top:0;z-index:4;background:#f8fbff!important;border:1px solid var(--pro-line)!important;padding:8px!important;border-radius:18px!important}
.drawer-tab{background:transparent!important;color:var(--pro-text)!important;border:1px solid transparent!important}
.drawer-tab.is-active{background:#fff!important;border-color:#cfe0ff!important;box-shadow:var(--pro-shadow-soft)!important;color:#274dc4!important}
.drawer-tab-panel{display:grid;gap:16px}
.task-view-overview-grid{grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr)!important;align-items:start!important}
.task-edit-panel,.project-edit-panel{margin-top:0!important;padding:16px!important;background:#fff!important;border:1px solid var(--pro-line)!important;border-radius:20px!important}
.member-chip-row{display:flex;gap:10px;flex-wrap:wrap}
.member-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--pro-line)!important;background:#fff!important;border-radius:999px;color:var(--pro-text)!important}
.member-chip img{width:24px;height:24px;border-radius:999px;object-fit:cover}
.chat-main,.tg-chat-main{display:flex!important;flex-direction:column!important;min-height:0!important;padding:18px!important;border-radius:24px!important}
.drawer-chat-layout{display:grid!important;grid-template-columns:320px minmax(0,1fr)!important;gap:16px!important;min-height:74vh!important}
.chat-side{padding:16px!important;background:linear-gradient(180deg,#fbfdff 0%,#f4f8ff 100%)!important}
.chat-side-title{font-size:12px!important;font-weight:800!important;letter-spacing:.08em!important;color:var(--pro-muted)!important;text-transform:uppercase!important}
.chat-thread{padding:14px!important;border-radius:18px!important;background:#fff!important;border:1px solid var(--pro-line)!important;box-shadow:none!important}
.chat-thread.active{background:#eef4ff!important;border-color:#98b4ef!important;box-shadow:0 10px 20px rgba(62,99,187,.10)!important}
.chat-thread strong,.chat-thread-meta,.chat-thread .muted{color:var(--pro-text)!important}
.chat-thread small,.chat-thread .muted,.chat-side-title{color:var(--pro-muted)!important}
.chat-thread-hero{display:flex!important;justify-content:space-between!important;gap:16px!important;align-items:flex-start!important;padding:0 0 14px!important;margin-bottom:14px!important;border-bottom:1px solid var(--pro-line)!important;background:transparent!important}
.chat-thread-hero-main{display:flex!important;gap:16px!important;align-items:center!important;min-width:0!important}
.chat-thread-hero-meta{display:grid!important;gap:4px!important;min-width:0!important}
.chat-thread-hero-meta strong{font-size:32px!important;line-height:1.05!important;color:var(--pro-text)!important}
.chat-thread-hero-meta .muted{font-size:14px!important;color:var(--pro-muted)!important}
.chat-members-summary{background:#f6faff!important;border:1px solid var(--pro-line)!important;border-radius:18px!important;padding:12px 14px!important}
.chat-members-summary-meta strong{color:var(--pro-text)!important}
.chat-members-summary-action{background:#fff!important;border:1px solid var(--pro-line)!important;color:#24457f!important}
.messages,.modern-messages{display:flex!important;flex-direction:column!important;gap:12px!important;min-height:360px!important;max-height:none!important;flex:1 1 auto!important;overflow:auto!important;padding:18px!important;background:linear-gradient(180deg,#fbfdff 0%,#f6faff 100%)!important;border:1px solid var(--pro-line)!important;border-radius:20px!important}
.message-day-sep{display:flex;justify-content:center;margin:4px 0 10px}
.message-day-sep span{padding:5px 10px;border-radius:999px;background:#edf3ff;border:1px solid #d8e4fb;color:#607391;font-size:12px;font-weight:700}
.message-line,.tg-message-line{display:flex!important;gap:12px!important;align-items:flex-end!important;margin-bottom:0!important}
.message-line.mine,.tg-message-line.mine{justify-content:flex-end!important}
.message,.tg-message{max-width:min(68%,680px)!important;min-width:120px;background:#fff!important;color:var(--pro-text)!important;border:1px solid var(--pro-line)!important;border-radius:18px!important;padding:12px 14px!important;box-shadow:0 8px 18px rgba(15,30,58,.05)!important}
.message.mine,.tg-message.mine{background:linear-gradient(135deg,#edf4ff,#e9fbff)!important;border-color:#cbdcff!important}
.message-author{font-size:12px!important;font-weight:700!important;color:#3f63c5!important;margin-bottom:4px}
.chat-body-text{font-size:15px!important;line-height:1.5!important;color:var(--pro-text)!important;word-break:break-word!important}
.message-time{display:block!important;margin-top:6px!important;font-size:12px!important;color:var(--pro-muted)!important;text-align:right}
.file-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;border:1px solid var(--pro-line)!important;border-radius:14px!important;background:#fff!important;color:var(--pro-text)!important}
.file-btn input{display:none}
.chat-compose-card{padding:0!important;background:transparent!important;border:none!important;box-shadow:none!important;margin-top:16px!important}
.chat-compose-row{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;gap:12px!important;align-items:end!important;padding:14px!important;background:#fff!important;border:1px solid var(--pro-line)!important;border-radius:20px!important}
.chat-compose-input{min-height:96px!important;background:#fff!important;border:1px solid var(--pro-line)!important;border-radius:16px!important;padding:12px 14px!important;color:var(--pro-text)!important}
#chat-send{min-width:140px!important;align-self:stretch!important}
.compose-files{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.attach-thumb,.message .attach-thumb,.tg-message .attach-thumb{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;padding:10px!important;border:1px solid var(--pro-line)!important;border-radius:16px!important;background:#fff!important;max-width:100%}
.attach-thumb-img{width:96px!important;height:96px!important;border-radius:14px!important;object-fit:cover!important;background:#f1f5fb!important}
.attach-row{display:grid;gap:8px;margin-top:8px}
.api-center-page pre,.api-center-page code{background:#0f1b31!important;color:#eaf2ff!important;border-color:#1d3156!important}
.api-center-grid{display:grid!important;grid-template-columns:minmax(380px,.9fr) minmax(380px,1fr)!important;gap:18px!important}
.api-center-page .card,.api-center-page .toolbar-card{padding:18px!important}
.entity-page-pro .section-head,.analytics-page-pro .section-head,.reports-page .section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}
.entity-toolbar,.analytics-toolbar,.toolbar-inline,.filters-grid,.toolbar-line{display:grid!important;grid-template-columns:minmax(260px,1.2fr) repeat(2,minmax(180px,.75fr)) auto auto!important;gap:12px!important;align-items:end!important}
.entity-page-pro .card,.analytics-page-pro .card,.access-center-page .card{padding:18px!important}
.entity-record-details details summary,.entity-record-details summary{list-style:none}
.entity-record-details summary::-webkit-details-marker{display:none}
.entity-record-details{padding:16px 18px!important;border-radius:18px!important;background:#fff!important}
.kanban-grid,.entity-kanban-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;gap:16px!important;align-items:start!important}
.kanban-column{background:#f8fbff!important;border:1px solid var(--pro-line)!important;border-radius:20px!important;min-height:220px}
.kanban-column-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px!important;border-bottom:1px solid #e7eef9!important;background:#fff!important;border-radius:20px 20px 0 0!important}
.kanban-list,.entity-kanban-list{padding:14px!important;display:grid!important;gap:12px!important}
.kanban-card,.entity-kanban-card{padding:14px!important;background:#fff!important;border:1px solid var(--pro-line)!important;border-radius:16px!important;box-shadow:var(--pro-shadow-soft)!important}
.kanban-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.report-card{padding:18px!important;border-radius:20px!important;background:#fff!important;border:1px solid var(--pro-line)!important}
@media (max-width:1400px){.topbar{grid-template-columns:1fr!important}.topbar-actions{justify-content:flex-start!important}.api-center-grid{grid-template-columns:1fr!important}}
@media (max-width:1180px){.shell{grid-template-columns:1fr!important}.sidebar,.right-rail{display:none!important}.mobile-nav-trigger{display:inline-flex!important}.drawer{width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;top:8px!important;right:8px!important}.task-view-grid,.task-view-overview-grid,.task-focus-strip,.drawer-chat-layout,.api-center-grid{grid-template-columns:1fr!important}}
@media (max-width:900px){.entity-toolbar,.analytics-toolbar,.toolbar-inline,.filters-grid,.toolbar-line,.drawer-grid{grid-template-columns:1fr!important}.message,.tg-message{max-width:100%!important}.chat-thread-hero{flex-direction:column!important;align-items:stretch!important}.chat-thread-hero-meta strong{font-size:28px!important}.chat-compose-row{grid-template-columns:1fr!important}#chat-send{width:100%!important}}

.compact-page-header,.panel,.glass,.glass-soft,.glass-border,.chat-layout,.chat-sidebar-panel,.chat-main-panel{background:var(--pro-surface)!important;border-color:var(--pro-line)!important;color:var(--pro-text)!important}
.compact-page-header{padding:18px 20px!important;border-radius:22px!important;box-shadow:var(--pro-shadow-soft)!important}
.panel{padding:18px!important;border-radius:22px!important;box-shadow:var(--pro-shadow-soft)!important}
.chat-layout{display:grid!important;grid-template-columns:320px minmax(0,1fr)!important;gap:18px!important}
.chat-sidebar-panel,.chat-main-panel{display:flex!important;flex-direction:column!important;gap:14px!important}
.quick-people-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important;gap:10px!important}
.quick-person-btn{display:flex!important;align-items:center!important;gap:10px!important;padding:12px!important;border:1px solid var(--pro-line)!important;border-radius:16px!important;background:#fff!important;color:var(--pro-text)!important}
.chat-messages{display:flex!important;flex-direction:column!important;gap:12px!important;min-height:420px!important;padding:18px!important;background:linear-gradient(180deg,#fbfdff,#f6faff)!important;border:1px solid var(--pro-line)!important;border-radius:20px!important;overflow:auto!important}
.chat-bubble{max-width:min(72%,720px)!important;padding:12px 14px!important;border:1px solid var(--pro-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:var(--pro-shadow-soft)!important}
.chat-bubble.me{align-self:flex-end!important;background:linear-gradient(135deg,#edf4ff,#e9fbff)!important;border-color:#cadcff!important}
.chat-bubble-head{display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:8px!important;color:var(--pro-muted)!important}
.chat-form{display:grid!important;gap:12px!important;padding:14px!important;background:#fff!important;border:1px solid var(--pro-line)!important;border-radius:20px!important}
.chat-form-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
@media (max-width:900px){.chat-layout{grid-template-columns:1fr!important}.chat-bubble{max-width:100%!important}}


/* v25 interaction/layout fixes */
@media (min-width:1181px){#mobile-nav-trigger,.mobile-nav-trigger{display:none !important}}
@media (max-width:1180px){
  .sidebar.mobile-open{display:flex !important;position:fixed !important;left:8px !important;top:8px !important;bottom:8px !important;width:min(340px,calc(100vw - 16px)) !important;z-index:60 !important;transform:translateX(0) !important;overflow:auto !important}
  .mobile-overlay.open{opacity:1 !important;pointer-events:auto !important}
}
.task-view-overview-grid .drawer-section .inline-create-row,.task-view-overview-grid .drawer-section .js-apply-template-btn{display:none !important}
.entity-record-card{padding:16px 18px;border:1px solid var(--pro-line);border-radius:18px;background:var(--pro-surface);box-shadow:var(--pro-shadow-soft);cursor:pointer}
.entity-record-card:hover{border-color:rgba(81,110,255,.28);transform:translateY(-1px)}
.entity-record-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.entity-record-card__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.entity-record-drawer .drawer-grid{margin-top:14px}
.entity-record-drawer .drawer-stat{background:rgba(248,250,255,.9) !important}
.entity-page-pro .card > form{margin-top:12px}
.chat-compose-card textarea,.chat-compose-card .textarea,.chat-compose-card .input{min-height:56px !important;color:#172034 !important}
.chat-message-bubble,.message-bubble,.message .bubble,.tg-message .bubble{color:#162033 !important}
.topbar .search-input::placeholder,.search-shell input::placeholder{color:#8da0bf !important}
