/* Shared panel surfaces and controls, matching the compact platform navigation. */
body{--panel-soft:color-mix(in srgb,var(--accent) 9%,var(--card));--panel-hover:color-mix(in srgb,var(--accent) 6%,var(--card))}
body:not(.hub-open) #page{padding:22px 24px;max-width:1600px;line-height:1.75}
body:not(.hub-open) #page .page-head{gap:14px;align-items:center;margin-bottom:20px;flex-wrap:wrap}
body:not(.hub-open) #page .page-head h1{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;line-height:1.5;margin:0}
body:not(.hub-open) #page .page-head p{font-size:12px;margin:5px 0 0;color:var(--muted)}
.panel-page-icon{display:inline-grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));border-radius:10px;background:var(--panel-soft);color:var(--accent)}
.panel-page-icon svg{width:20px;height:20px}.panel-inline-icon{display:inline-grid;place-items:center;flex:none;vertical-align:middle}.panel-inline-icon svg{width:16px;height:16px;display:block}
body:not(.hub-open) #page .card,body:not(.hub-open) #page .stat{border-radius:12px;padding:16px;border:1px solid var(--line);background:var(--card);box-shadow:none}
body:not(.hub-open) #page .card h3{font-size:15px;font-weight:700;line-height:1.7;margin:0 0 10px}
body:not(.hub-open) #page .card h4{font-size:13px;font-weight:600}
body:not(.hub-open) #page .sub{font-size:12px;line-height:1.85;margin:6px 0 16px}
body:not(.hub-open) #page .btn,.modal-wrap .btn{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:34px;border-radius:8px;padding:6px 12px;font-size:12px;font-weight:600;line-height:1.6;border:1px solid var(--accent);box-shadow:none;transition:background-color .15s,border-color .15s,opacity .15s}
body:not(.hub-open) #page .btn:hover,.modal-wrap .btn:hover{filter:brightness(.97)}
body:not(.hub-open) #page .btn.ghost,.modal-wrap .btn.ghost{background:var(--card);border-color:var(--line);color:inherit}
body:not(.hub-open) #page .btn.ghost:hover,.modal-wrap .btn.ghost:hover{background:var(--panel-hover);border-color:color-mix(in srgb,var(--accent) 25%,var(--line));filter:none}
body:not(.hub-open) #page .btn.danger,.modal-wrap .btn.danger{color:var(--danger);background:color-mix(in srgb,var(--danger) 9%,var(--card));border-color:color-mix(in srgb,var(--danger) 15%,var(--line))}
body:not(.hub-open) #page .btn:disabled,.modal-wrap .btn:disabled{opacity:.5;cursor:default}
body:not(.hub-open) #page input,body:not(.hub-open) #page select,body:not(.hub-open) #page textarea,.modal-wrap input,.modal-wrap select,.modal-wrap textarea{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--card);color:inherit;font-size:13px;line-height:1.6;min-width:0;box-shadow:none}
body:not(.hub-open) #page input:focus,body:not(.hub-open) #page select:focus,body:not(.hub-open) #page textarea:focus,.modal-wrap input:focus,.modal-wrap select:focus,.modal-wrap textarea:focus{outline:2px solid color-mix(in srgb,var(--accent) 70%,transparent);outline-offset:-1px;border-color:var(--accent);box-shadow:none}
body:not(.hub-open) #page input[type=checkbox],body:not(.hub-open) #page input[type=radio],.modal-wrap input[type=checkbox],.modal-wrap input[type=radio]{width:16px;height:16px;padding:0;accent-color:var(--accent);flex:none}
body:not(.hub-open) #page input[type=color]{width:54px;height:36px;padding:4px;cursor:pointer}
body:not(.hub-open) #page input[type=range]{padding:0;accent-color:var(--accent)}
body:not(.hub-open) #page .field,.modal-wrap .field{gap:5px;margin:12px 0}
body:not(.hub-open) #page .field label,.modal-wrap .field label{font-size:12px;font-weight:500;color:var(--muted)}
body:not(.hub-open) #page .grid{gap:12px;grid-template-columns:repeat(auto-fill,minmax(265px,1fr))}
body:not(.hub-open) #page .stats{gap:12px}
body:not(.hub-open) #page .stat{gap:11px;min-width:0}
body:not(.hub-open) #page .stat-icon{width:36px;height:36px;border-radius:10px;background:var(--panel-soft);color:var(--accent);font-size:18px;flex:none}
body:not(.hub-open) #page .stat-icon svg{width:19px;height:19px;display:block}
body:not(.hub-open) #page .stat b{font-size:24px;line-height:1.4}
body:not(.hub-open) #page .stat span:not(.stat-icon){font-size:11px;color:var(--muted)}
body:not(.hub-open) #page .tag,body:not(.hub-open) #page .role,body:not(.hub-open) #page .privacy{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:var(--bg);color:var(--muted);border-radius:6px;font-size:10px;padding:3px 7px}
body:not(.hub-open) #page .actions{gap:6px;margin-top:14px;flex-wrap:wrap}
body:not(.hub-open) #page .site-card h3{font-size:16px;margin:9px 0 5px}
body:not(.hub-open) #page .site-card p{font-size:12px;line-height:1.85;min-height:0;margin:9px 0 12px}
body:not(.hub-open) #page .site-mark{height:3px;right:16px;left:16px}
body:not(.hub-open) #page .site-card a{font-size:12px}
body:not(.hub-open) #page .welcome{background:var(--card);color:inherit;border:1px solid var(--line);border-right:3px solid var(--accent);border-radius:12px;padding:22px;min-height:125px;margin-top:16px}
body:not(.hub-open) #page .welcome:after{display:none}
body:not(.hub-open) #page .welcome h2{font-size:20px}
body:not(.hub-open) #page .welcome p{color:var(--muted);font-size:13px;line-height:1.8}
body:not(.hub-open) #page .health-grid{gap:12px;margin-top:16px}
body:not(.hub-open) #page .health-info b{font-size:13px}.health-info small{font-size:11px}
body:not(.hub-open) #page .health-dot{width:9px;height:9px;box-shadow:0 0 0 4px #9991}
body:not(.hub-open) #page .health-dot.online{box-shadow:0 0 0 4px #32bd7815}
body:not(.hub-open) #page .health-dot.offline{box-shadow:0 0 0 4px #e94c6215}
body:not(.hub-open) #page .dual-clock{gap:12px;margin:0 0 16px}
body:not(.hub-open) #page .clock-box{border-radius:12px;padding:12px 16px;box-shadow:none}
/* Settings: separate editable responsibilities while preserving the existing forms. */
body:not(.hub-open) #page .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
body:not(.hub-open) #page .settings-grid>.card{padding:18px}
.panel-card-heading{display:flex;align-items:center;gap:8px;padding-bottom:11px;border-bottom:1px solid var(--line);margin-bottom:14px!important}
.panel-card-heading>.panel-inline-icon{width:28px;height:28px;border-radius:8px;background:var(--panel-soft);color:var(--accent)}
body:not(.hub-open) #page .settings-grid .panel-settings-hint{color:var(--muted);font-size:12px;line-height:1.8;margin:6px 0 14px}
body:not(.hub-open) #page .settings-grid #orgform{margin-top:14px;border-top:1px solid var(--line);padding-top:3px}
body:not(.hub-open) #page .settings-grid #pwform{margin-top:0!important}
body:not(.hub-open) #page .settings-grid .telegram-card{grid-column:1/-1}
body:not(.hub-open) #page .telegram-card .telegram-token-form{max-width:600px}
/* Team and personal tasks share the same calm status and selection treatment. */
body:not(.hub-open) #page .task-toolbar{grid-template-columns:auto minmax(120px,1fr) minmax(130px,170px) minmax(110px,145px);gap:8px;padding:12px;margin-bottom:14px}
body:not(.hub-open) #page .task-view-filter,body:not(.hub-open) #page .market-ranges{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:3px;gap:3px}
body:not(.hub-open) #page .task-view-filter button,body:not(.hub-open) #page .my-filter,body:not(.hub-open) #page .market-ranges button{border:1px solid transparent;border-radius:6px;padding:5px 9px;font-size:12px;color:var(--muted);white-space:nowrap}
body:not(.hub-open) #page .task-view-filter button.active,body:not(.hub-open) #page .my-filter.active,body:not(.hub-open) #page .market-ranges button.active{background:var(--panel-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 18%,var(--line));box-shadow:none}
body:not(.hub-open) #page .board{gap:12px}
body:not(.hub-open) #page .task-board-v2 .column{min-height:320px;border-radius:12px;padding:12px;background:color-mix(in srgb,var(--card) 45%,var(--bg));border:1px solid var(--line)}
body:not(.hub-open) #page .task-board-v2 .column>header{padding:2px 1px 12px;border-bottom:1px solid var(--line);margin-bottom:12px}
body:not(.hub-open) #page .column>header h3{display:flex;align-items:center;gap:7px;font-size:13px}
body:not(.hub-open) #page .column>header h3:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--muted)}
body:not(.hub-open) #page .column[data-status=doing]>header h3:before{background:#3b82f6}
body:not(.hub-open) #page .column[data-status=done]>header h3:before{background:#22a56b}
body:not(.hub-open) #page .column>header span{border:1px solid var(--line);border-radius:6px;padding:1px 6px;font-size:11px}
body:not(.hub-open) #page .task-v2{border-radius:10px;padding:12px;margin-bottom:9px;transition:border-color .15s,background-color .15s}
body:not(.hub-open) #page .task-v2:hover{transform:none;box-shadow:none;border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
body:not(.hub-open) #page .task-v2 h4{font-size:13px;line-height:1.8;margin:8px 0 5px}
body:not(.hub-open) #page .task-v2 p{font-size:11px;margin:5px 0 10px}
body:not(.hub-open) #page .task-progress{height:4px;margin-top:10px}
body:not(.hub-open) #page .task-v2 footer{font-size:9px;padding-top:8px;margin-top:9px;flex-wrap:wrap}
body:not(.hub-open) #page .task-empty{padding:24px 5px;line-height:1.8}
body:not(.hub-open) #page .my-private,body:not(.hub-open) #page .acc-secure{display:inline-flex;align-items:center;gap:5px;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:5px 9px;font-size:11px}
body:not(.hub-open) #page .my-quick-form{padding:12px;gap:8px}
body:not(.hub-open) #page .my-task{padding:11px 13px;border-radius:10px;gap:9px}
body:not(.hub-open) #page .my-task-body b{font-size:13px}
body:not(.hub-open) #page .my-task-summary{flex-wrap:wrap}
body:not(.hub-open) #page .my-check{width:22px;height:22px;border-radius:6px}
/* Finance and tables: clear grouping with less visual weight. */
body:not(.hub-open) #page .acc-tabs{gap:5px;padding:0 0 14px;scrollbar-width:thin}
body:not(.hub-open) #page .acc-tabs button{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:6px 11px;font-size:12px}
body:not(.hub-open) #page .acc-tabs button.active{background:var(--panel-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 22%,var(--line))}
body:not(.hub-open) #page .acc-stats,body:not(.hub-open) #page .acc-my-stats,body:not(.hub-open) #page .acc-quick{gap:12px}
body:not(.hub-open) #page .acc-quick button{transition:border-color .15s;background:var(--card);border-radius:12px;box-shadow:none}
body:not(.hub-open) #page .acc-quick button:hover{border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
body:not(.hub-open) #page .acc-position{border-right-width:3px}
body:not(.hub-open) #page .acc-slip-grid,body:not(.hub-open) #page .acc-contract{gap:8px}
body:not(.hub-open) #page .acc-slip-grid span{border:1px solid var(--line);background:var(--bg);border-radius:8px}
body:not(.hub-open) #page .acc-salary b{font-size:18px}
body:not(.hub-open) #page .acc-calc-result{background:var(--panel-soft);color:inherit;border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line));border-radius:10px;padding:16px}
body:not(.hub-open) #page .acc-calc-result b{color:var(--accent);font-size:24px}
body:not(.hub-open) #page .acc-slip footer strong{font-size:20px}
body:not(.hub-open) #page .users-table{border:1px solid var(--line);border-radius:12px;overflow:hidden}
body:not(.hub-open) #page .users-table th,body:not(.hub-open) #page .users-table td{padding:11px 13px;font-size:12px}
body:not(.hub-open) #page .users-table th{background:var(--bg);font-size:11px;font-weight:500}
body:not(.hub-open) #page .users-table tbody tr:hover{background:var(--panel-hover)}
body:not(.hub-open) #page .users-table .btn{min-height:29px;padding:4px 8px;font-size:11px}
body:not(.hub-open) #page .dashboard-market,body:not(.hub-open) #page .market-grid{gap:12px}
body:not(.hub-open) #page .market-mini{padding:13px 15px;border-radius:12px}
body:not(.hub-open) #page .market-mini b{font-size:20px}
body:not(.hub-open) #page .market-icon{width:44px;height:44px;border-radius:11px;background:var(--panel-soft);color:var(--accent)}
body:not(.hub-open) #page .market-icon svg{width:24px;height:24px}
body:not(.hub-open) #page .market-card{gap:12px}
body:not(.hub-open) #page .market-card b{font-size:28px}
body:not(.hub-open) #page .market-chart-stats>div{border-radius:8px;border:1px solid var(--line);padding:9px 11px}
body:not(.hub-open) #page .market-chart-card{padding:16px}
/* Chat keeps comfortable reading sizes and independent message scrolling. */
body:not(.hub-open) #page:has(.chat-shell){padding:16px;max-width:none}
body:not(.hub-open) #page .chat-shell{grid-template-columns:270px minmax(0,1fr);height:calc(100dvh - 110px);min-height:360px;border-radius:12px}
body:not(.hub-open) #page .chat-people>header,body:not(.hub-open) #page .chat-head{height:64px;padding:12px 14px}
body:not(.hub-open) #page .chat-people h1{font-size:18px;display:flex;align-items:center;gap:8px}
body:not(.hub-open) #page #chatPeople{height:calc(100% - 124px)}
body:not(.hub-open) #page .chat-person{border-radius:9px;padding:9px;gap:8px;font-size:12px;border:1px solid transparent}
body:not(.hub-open) #page .chat-person.active{background:var(--panel-soft);border-color:color-mix(in srgb,var(--accent) 18%,var(--line))}
body:not(.hub-open) #page .chat-person .avatar{width:34px;height:34px;border-radius:10px}
body:not(.hub-open) #page .chat-bubble>div{border-radius:11px;padding:9px 12px;box-shadow:none;font-size:13px}
body:not(.hub-open) #page .chat-messages{padding:16px;overscroll-behavior:contain}
body:not(.hub-open) #page .chat-compose textarea{font-size:16px;min-height:44px}
body:not(.hub-open) #page .chat-welcome i svg{width:44px;height:44px;color:var(--muted)}
/* Dialogs and whiteboard chrome follow the same surfaces without changing the canvas. */
.modal-wrap .modal{border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 16px 50px #0002}
.modal-wrap .modal-head h3{font-size:17px}.modal-wrap .modal-head{gap:12px}.modal-wrap .modal-foot{gap:7px;margin-top:16px}
.modal-wrap .icon-btn{width:36px;height:36px;border-radius:9px;display:inline-grid;place-items:center}
.topbar .icon-btn{width:36px;height:36px;border-radius:9px}
.topbar .icon-btn:not(.mobile-menu):not(.desktop-collapse){display:inline-grid;place-items:center}
.modal-wrap .sub{font-size:12px;line-height:1.8;margin-bottom:14px}
.modal-wrap .task-detail-modal{width:min(820px,96vw)}.modal-wrap .task-detail .modal-head h2{font-size:20px}
.modal-wrap .task-detail-meta{margin:14px 0}.modal-wrap .task-detail-meta span{border:1px solid var(--line);border-radius:8px;padding:8px}
.modal-wrap .checklist{border-radius:8px;padding:6px}.modal-wrap .check{padding:6px;font-size:12px}
.wb-tools,.wb-bottom,.wb-pages,.wb-properties{border-radius:10px;box-shadow:0 3px 12px #0001}
.wb-tools button,.wb-bottom button,.wb-v3-header .toolbtn{border-radius:7px;min-width:34px;height:34px}
.wb-tools button.active,.wb-page.active{background:var(--panel-soft);color:var(--accent)}
.wb-v3-header{gap:8px}.wb-page{font-size:12px;border-radius:7px;padding:5px 10px}
body:not(.hub-open) #page .btn:focus-visible,.modal-wrap button:focus-visible,body:not(.hub-open) #page button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:1100px){body:not(.hub-open) #page .task-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body:not(.hub-open) #page .task-view-filter{grid-column:1/-1}}
@media(max-width:1000px){body:not(.hub-open) #page .settings-grid{grid-template-columns:minmax(0,1fr)}body:not(.hub-open) #page .my-quick-form,body:not(.hub-open) #page .my-edit-form{grid-template-columns:minmax(0,1fr)}body:not(.hub-open) #page .acc-stats{grid-template-columns:1fr 1fr}}
@media(max-width:850px){body:not(.hub-open) #page{padding:18px 14px}body:not(.hub-open) #page .page-head h1{font-size:20px}body:not(.hub-open) #page .board{grid-template-columns:minmax(0,1fr)}body:not(.hub-open) #page .stats{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.hub-open) #page .card,body:not(.hub-open) #page .stat{padding:14px}}
@media(max-width:760px){body:not(.hub-open) #page .chat-shell{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 98px);min-height:0}body:not(.hub-open) #page:has(.chat-shell){padding:10px}body:not(.hub-open) #page .chat-main{inset:78px 0 0}body:not(.hub-open) #page .chat-head{height:64px}}
@media(max-width:550px){body:not(.hub-open) #page .task-toolbar{grid-template-columns:minmax(0,1fr)}body:not(.hub-open) #page .grid{grid-template-columns:minmax(0,1fr)}body:not(.hub-open) #page .card h3{font-size:14px}body:not(.hub-open) #page .page-head{gap:10px}body:not(.hub-open) #page .stat{padding:12px;gap:8px}body:not(.hub-open) #page .stat b{font-size:22px}body:not(.hub-open) #page .stat-icon{width:32px;height:32px}body:not(.hub-open) #page .btn,.modal-wrap .btn{min-height:36px}body:not(.hub-open) #page .settings-grid>.card{padding:15px}.modal-wrap .modal{padding:16px}body:not(.hub-open) #page .task-view-filter{flex-wrap:wrap}body:not(.hub-open) #page .users-table{display:block;overflow:auto;max-width:100%}}
@media(prefers-reduced-motion:reduce){body:not(.hub-open) #page *, .modal-wrap *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.modal-wrap .icon-btn svg{width:18px;height:18px;display:block}
