/* Mobile presentation is explicitly owned by the top-level viewport. */
.mobile-navigation,.mobile-only,.mobile-tabs,.mobile-task-menu{display:none}
.more-links{display:grid;gap:12px;margin-bottom:24px}.more-links>a{display:flex;justify-content:space-between;padding:16px;border:1px solid var(--line);background:white;border-radius:8px}
#attention-screen .mobile-tabs{display:flex;gap:8px;margin-bottom:16px}
#attention-screen .attention-entry{display:block;padding:16px;background:white;border-bottom:1px solid var(--line)}
#attention-screen .attention-entry span{display:block;margin-top:6px}
.mobile-tabs button[aria-selected=true]{background:#e3efe9;color:#216e5c;border-color:#216e5c}
html.soko-mobile{font-size:16px;overflow-x:clip;scroll-padding-bottom:90px}
.soko-mobile body{font-size:16px;min-width:0;overflow-x:clip}
.soko-mobile body .sidebar,.soko-mobile .main>footer,.soko-mobile .topbar-date,.soko-mobile .mobile-logout{display:none!important}
.soko-mobile body .main{margin:0!important;width:100%;min-width:0;padding:0!important}
.soko-mobile body .page{max-width:none;width:100%;padding:16px 12px calc(90px + env(safe-area-inset-bottom))!important;margin:0!important}
.soko-mobile body .topbar{position:sticky;top:0;z-index:55;min-height:60px;height:auto;padding:8px 12px!important;gap:8px;background:#f8faf7;flex-wrap:wrap}
.soko-mobile body h1,.soko-mobile body .topbar h1{font-size:22px;line-height:1.3;margin:0}
.soko-mobile body h2{font-size:18px}.soko-mobile body h3{font-size:16px}
.soko-mobile body p,.soko-mobile body label,.soko-mobile body input,.soko-mobile body textarea,.soko-mobile body select{font-size:16px}
.soko-mobile body small,.soko-mobile body .help,.soko-mobile body .muted,.soko-mobile body .badge,.soko-mobile body .count,.soko-mobile body .eyebrow{font-size:13px;line-height:1.45}
.soko-mobile body button,.soko-mobile body .button,.soko-mobile body summary,.soko-mobile body input:not([type=checkbox]):not([type=radio]),.soko-mobile body select{min-height:44px;font-size:14px}
.soko-mobile body button,.soko-mobile body .button{min-width:44px}
.soko-mobile body input,.soko-mobile body select,.soko-mobile body textarea{max-width:100%}
.soko-mobile body img{max-width:100%;height:auto}
.soko-mobile body .panel{padding:16px;min-width:0}.soko-mobile body .inline-form{flex-wrap:wrap}
.soko-mobile .mobile-navigation{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:80;background:#fff;border-top:1px solid var(--line);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
.mobile-navigation a{min-height:52px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;font-size:13px;border-radius:8px;color:#455e55}
.mobile-navigation [aria-current=page]{color:#216e5c;background:#e3efe9;font-weight:600}.mobile-navigation .has-attention{color:#b64135;background:#fff0ed}
.mobile-navigation [data-mobile-count]{background:#b64135;color:white;border-radius:10px;padding:2px 5px;font-size:12px}
.soko-mobile .mobile-only{display:block}.soko-mobile .dashboard-search{width:100%;display:flex}.soko-mobile .dashboard-search input{min-width:0;flex:1}
.soko-mobile body .workspace-fixed-controls{position:static!important;top:auto!important;margin:0!important;padding:0!important;height:auto!important}
.soko-mobile .tasks-page #dashboard-filters,.soko-mobile .tasks-page .task-list-filters{display:none!important}
.soko-mobile .mobile-list-toolbar{display:flex;gap:8px;margin-bottom:16px}.mobile-list-toolbar select{flex:1;min-width:0}
.soko-mobile .mobile-create{position:fixed;right:16px;bottom:calc(80px + env(safe-area-inset-bottom));z-index:70;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#216e5c;color:white;font-size:28px;box-shadow:0 3px 12px #1234}
.soko-mobile .task-table,.soko-mobile .task-group{min-width:0;overflow:visible}.soko-mobile body .task-entry>.task-row{display:flex;flex-wrap:wrap;gap:4px 12px;padding:12px!important;min-width:0;grid-template-columns:none}
.soko-mobile body .task-row>.task-title{width:100%;flex:1 0 100%;padding-left:min(calc(var(--tree-depth,0)*12px),36px)!important;min-width:0}
.soko-mobile body .task-title>a{min-width:0;flex:1}.soko-mobile .task-name-line{display:block}.soko-mobile body .task-name-line strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:1.4}
.soko-mobile .task-progress,.soko-mobile .task-type,.soko-mobile .task-title>a>small{display:none}.soko-mobile .task-tools{width:auto;flex-shrink:0}.soko-mobile .child-toggle{width:44px!important;height:44px!important}.soko-mobile .child-spacer{width:0;min-width:0}
.soko-mobile .task-row .assignee,.soko-mobile .task-row .due,.soko-mobile .task-row .task-topic{font-size:13px;white-space:normal}.soko-mobile .task-row .list-cell{font-size:13px!important;min-height:32px!important;padding:0}.soko-mobile .task-children{margin:0;padding:0}
.soko-mobile dialog{max-width:calc(100vw - 16px);max-height:calc(95dvh - env(safe-area-inset-top));overflow:auto;border-radius:16px;padding:16px}
.soko-mobile dialog::backdrop{background:#132e2255}
.soko-mobile .mobile-filter-sheet{margin:auto 0 0;width:100%;max-width:100%;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}
.mobile-filter-sheet label{display:flex;align-items:center;gap:12px;min-height:48px}.mobile-filter-sheet input{width:20px;height:20px}.mobile-filter-sheet footer{display:flex;gap:12px;margin-top:16px}.mobile-filter-sheet h2{margin:0 0 16px}
.soko-mobile .compact-task-drawer{position:fixed;inset:auto 0 0!important;width:100%!important;max-width:none!important;height:var(--mobile-sheet-height,67dvh)!important;max-height:95dvh!important;margin:0!important;padding:0!important;border-radius:16px 16px 0 0!important;overflow:hidden}
.soko-mobile .compact-task-drawer>header{height:44px;padding:0 12px}.soko-mobile .compact-task-drawer>header>a{display:none}.soko-mobile .compact-task-drawer iframe{width:100%;height:calc(100% - 72px);border:0}.soko-mobile .drawer-resize{display:none}
.soko-mobile .sheet-handle{display:block;width:100%;height:28px;min-height:28px;border:0;background:#fff;touch-action:none}.sheet-handle:before{content:'';display:block;width:44px;height:5px;background:#82958c;border-radius:3px;margin:auto}
.soko-embedded.soko-mobile .topbar,.soko-embedded.soko-mobile .mobile-navigation,.soko-embedded.soko-mobile .back-link{display:none!important}
.soko-mobile .mobile-detail .page{padding:12px 12px 24px!important}.soko-mobile .mobile-detail .detail-grid{display:block!important}.soko-mobile .mobile-detail .detail-main,.soko-mobile .mobile-detail .detail-aside{display:contents!important}
.soko-mobile .mobile-detail .detail-heading{display:block!important;margin:0 0 12px}.soko-mobile .mobile-detail .detail-heading .task-actions{display:none}.soko-mobile .mobile-detail .inline-meta{flex-wrap:wrap}.soko-mobile .mobile-detail .editable-title{font-size:22px;min-height:32px}
.soko-mobile .mobile-tabs{display:flex;gap:4px;overflow-x:auto;position:sticky;top:0;background:#f8faf7;z-index:20;padding:8px 0}.soko-mobile .mobile-tabs button{flex:1;white-space:nowrap;padding:8px;font-size:13px;border:1px solid var(--line);border-radius:7px}
.soko-mobile .mobile-detail .panel{margin:0!important}.soko-mobile .mobile-detail .panel>h2,.soko-mobile .mobile-detail #discussion>.card-tabs{display:none}.soko-mobile .mobile-detail .scroll-panel{max-height:none;overflow:visible}.soko-mobile .mobile-detail .compact-properties{display:block}.soko-mobile .mobile-detail .compact-properties>*{margin:12px 0}
.soko-mobile .mobile-detail .addresses{height:auto;max-height:none;overflow:visible}.soko-mobile .mobile-detail [data-address-form]{position:sticky;bottom:0;background:#fff;padding:12px 0;margin:0;z-index:10}.soko-mobile .mobile-detail [data-address-form] textarea{min-height:72px;height:72px}.soko-mobile .mobile-detail .people-row{grid-template-columns:1fr}.soko-mobile .mobile-detail .people-caption{font-size:13px}.soko-mobile .mobile-detail .people-menu{position:relative;top:auto;bottom:auto;left:auto;width:100%;max-width:none}
.soko-mobile .mobile-detail .mobile-task-menu{display:block;margin-bottom:8px}.mobile-task-menu summary{width:44px;margin-left:auto;text-align:center}.mobile-task-menu>div{display:flex;flex-wrap:wrap;gap:8px}
.soko-mobile .mobile-detail .deadline-popover>form,.soko-mobile .mobile-detail .deadline-popover.with-repeat>form{position:fixed!important;inset:5dvh 8px auto!important;width:auto!important;max-width:none;max-height:85dvh!important;overflow:auto!important;display:block!important;z-index:95;background:white;padding:16px!important}
.soko-mobile .repeat-settings{position:static;padding:12px 0;border:0}.soko-mobile .range-panel{max-width:100%}.soko-mobile #task-autosave{position:static;margin:8px 0;max-width:none}
.soko-mobile .mobile-sticky-action{position:sticky;bottom:0;display:flex;gap:8px;background:#fff;padding:12px 0;z-index:12}
.soko-mobile .smart-calendar-scroll{overflow:visible}.soko-mobile .smart-calendar{display:block;min-width:0}.soko-mobile .smart-day{width:100%;min-width:0;border:1px solid var(--line)}.soko-mobile .smart-day:not(.mobile-selected-day){display:none}.soko-mobile .smart-day>header{display:none}.soko-mobile .smart-segment{min-height:64px;height:auto!important}.soko-mobile .smart-gap{min-height:52px}.soko-mobile .smart-event{min-height:64px;width:100%;padding:12px 42px 12px 12px!important}.soko-mobile .smart-event strong{font-size:16px;white-space:normal}.soko-mobile .smart-planning{padding:12px}.soko-mobile .planning-task strong{white-space:normal;font-size:16px}.soko-mobile .planning-task{min-height:72px}
.soko-mobile .mobile-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:12px 0}.mobile-days button{padding:6px 0;border:1px solid var(--line);border-radius:7px;background:white;font-size:13px!important;min-width:0!important}.mobile-days .today{border-color:#216e5c;color:#216e5c}.mobile-days [aria-pressed=true]{background:#216e5c;color:white}.soko-mobile .calendar-toolbar{flex-wrap:wrap;gap:8px}
.soko-mobile .notification-center{margin-left:auto}.soko-mobile .notification-bell{font-size:13px}.soko-mobile #notification-panel{position:fixed;inset:60px 8px calc(72px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:none}.soko-mobile .notification-category{display:flex;flex-wrap:wrap}
.soko-mobile .org-add,.soko-mobile .org-actions,.soko-mobile .org-start{display:none!important}

.soko-mobile [hidden]{display:none!important}
.soko-mobile .compact-task-drawer{bottom:var(--mobile-keyboard-offset,0px)!important;max-height:calc(var(--mobile-viewport-height,100dvh) * .95)!important}
.soko-mobile dialog:not(.compact-task-drawer){max-height:calc(var(--mobile-viewport-height,100dvh) - 24px);margin-bottom:var(--mobile-keyboard-offset,auto)}
.soko-mobile .mobile-detail #discussion-panel{height:calc(100dvh - 260px);min-height:300px;overflow:hidden;display:flex;flex-direction:column}
.soko-mobile .mobile-detail #discussion-panel>.addresses{flex:1;min-height:70px;overflow:auto;padding:8px}
.soko-mobile .mobile-detail #discussion-panel>[data-address-form]{flex-shrink:0;position:relative;padding:8px;margin:0}
.soko-mobile:not(.soko-embedded) .mobile-detail .page{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
.soko-mobile .mobile-detail #discussion-panel>[data-address-form]{max-height:80%;overflow:auto}
.soko-mobile .mobile-detail .mobile-task-menu{margin:0}.soko-mobile .mobile-task-menu summary{list-style:none}.soko-mobile .mobile-feed-controls{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.soko-mobile .mobile-detail .detail-heading .eyebrow{font-size:13px}.soko-mobile .mobile-detail .people-caption,.soko-mobile .person-summary-name,.soko-mobile .compact-info .role-person strong{font-size:16px}
.soko-mobile .sheet-handle{height:44px;min-height:44px}.soko-mobile .compact-task-drawer iframe{height:calc(100% - 88px)}
.soko-mobile .mobile-navigation [data-mobile-count]{font-size:13px}.soko-mobile .task-row .list-cell{min-height:44px!important}.soko-mobile .task-title>a{min-height:44px;display:flex;align-items:center}
.soko-mobile .calendar-edit{width:44px;height:44px}.soko-mobile .smart-event strong,.soko-mobile .planning-task strong{padding-right:44px}
.soko-mobile .mobile-tabs{flex-direction:row!important}.soko-mobile .task-row .assignee{display:block!important}.soko-mobile .org-create-company{display:none!important}.soko-mobile .finance-period{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px}.soko-mobile .finance-period>label:first-child{grid-column:1/-1}.soko-mobile .finance-period>label{min-width:0}.soko-mobile .finance-period>label input{width:100%}.soko-mobile .finance-group{grid-template-columns:minmax(0,1fr) 90px 48px!important;gap:4px!important;padding:12px}.soko-mobile .finance-entries{padding:8px}.soko-mobile .finance-entry{display:flex;flex-wrap:wrap;gap:8px}.soko-mobile .finance-entry>div:first-child{flex:1 0 100%}.soko-mobile .slot-time-row{display:flex;flex-wrap:wrap}.soko-mobile .slot-time-row>label{flex:1;min-width:90px}
.soko-mobile .finance-period{display:flex;flex-wrap:wrap;gap:8px}.soko-mobile .finance-period label{flex:1;min-width:120px}.soko-mobile .finance-heading{display:block}.soko-mobile .finance-balances{display:grid;grid-template-columns:1fr 1fr;gap:16px}.soko-mobile .finance-balances strong{font-size:18px}.soko-mobile .finance-report-group{padding:8px;margin:0 0 16px}.soko-mobile .finance-table{min-width:0}.soko-mobile .finance-table-head,.soko-mobile .finance-group-total,.soko-mobile .finance-article>summary,.soko-mobile .finance-catalog-row{grid-template-columns:minmax(0,1fr) 90px 48px;font-size:13px;gap:4px}.soko-mobile .finance-form-pair{display:block}.soko-mobile .finance-operation-row{display:flex;flex-wrap:wrap;font-size:13px}.soko-mobile .finance-page{min-width:0}.soko-mobile .finance-actions{flex-wrap:wrap}.soko-mobile .org-company-toolbar{flex-wrap:wrap}.soko-mobile .org-company-tabs{max-width:100%;overflow:auto}.soko-mobile .calendar-popover{position:fixed!important;inset:auto 8px calc(72px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:75dvh;overflow:auto}

.soko-mobile .mobile-quick-bar{display:block;bottom:var(--mobile-keyboard-offset,0px);padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--paper,#f8faf7)}
.mobile-quick-bar>form[data-mobile-quick-create]{display:flex;align-items:center;gap:8px;margin:0;position:relative}
.mobile-quick-bar>form[data-mobile-quick-create] input[name=title]{flex:1;min-width:0;height:44px;border:1px solid var(--line);border-radius:22px;background:#fff;padding:10px 16px;font-size:16px;color:var(--ink)}
.mobile-quick-bar>form[data-mobile-quick-create] button[type=submit]{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;border-radius:50%;background:var(--green,#216e5c);color:white}
.mobile-quick-bar button:disabled{opacity:.5}
.mobile-quick-bar .mobile-section-toggle{position:absolute;right:16px;bottom:calc(100% + 12px);width:48px;height:48px;border:1px solid var(--line);border-radius:50%;background:var(--green,#216e5c);color:white;font-size:28px;box-shadow:0 3px 12px #183d2426}
.mobile-section-toggle [data-mobile-count]{position:absolute;top:-5px;right:-5px}
.mobile-quick-bar [data-quick-status]:not([hidden]){position:absolute;bottom:calc(100% + 14px);left:0;right:64px;margin:0;padding:10px;background:white;border:1px solid var(--line);border-radius:8px;font-size:13px}
#mobile-sections header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#mobile-sections h2{margin:0}
#mobile-sections nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#mobile-sections a{border:1px solid var(--line);padding:12px}

.soko-mobile .topbar>h1,.soko-mobile .topbar>.dashboard-search{display:none!important}
.soko-mobile .mobile-header-menu{position:relative;flex:1;min-width:0;order:0}
.mobile-header-menu summary{display:flex;align-items:center;gap:6px;min-height:44px;list-style:none;cursor:pointer;font-size:18px;font-weight:600;color:var(--ink)}
.mobile-header-menu summary::-webkit-details-marker{display:none}
.mobile-header-menu summary>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-header-menu nav{position:absolute;top:calc(100% + 6px);left:0;min-width:210px;padding:6px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #183d2420;z-index:90}
.mobile-header-menu nav a{display:flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:6px;color:var(--ink);font-size:16px}
.mobile-header-menu nav a:hover,.mobile-header-menu nav a:focus-visible{background:var(--mint)}
.soko-mobile .mobile-header-search{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;background:transparent;color:var(--green);order:1;padding:0}
.soko-mobile .topbar>.notification-center{order:2;margin-left:0;flex:none}
.soko-mobile .topbar .notification-bell{font-size:13px;padding:8px;min-height:44px;white-space:nowrap}
.soko-mobile #mobile-header-search-form:not([hidden]){display:flex;order:3;flex-basis:100%;gap:8px;margin:0}
#mobile-header-search-form[hidden]{display:none!important}
#mobile-header-search-form input{min-width:0;flex:1;font-size:16px;min-height:44px}

.soko-mobile .topbar .mobile-header-menu>summary{font-size:18px;line-height:1.3;padding:0;min-height:44px}

#mobile-create-task form{display:block}
#mobile-create-task header,#mobile-create-task footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
#mobile-create-task label{display:block;margin:14px 0;font-size:14px}
#mobile-create-task label[hidden]{display:none}
#mobile-create-task input:not([type=checkbox]),#mobile-create-task textarea,#mobile-create-task select{width:100%;min-height:44px;margin-top:6px;font-size:16px}
#mobile-create-task button[type=submit]{width:auto;height:auto;border-radius:8px;padding:12px 16px}
#mobile-create-task [data-create-error]{color:var(--red)}

/* Compact mobile list: a title and one metadata line, with quiet separators. */
.soko-mobile .tasks-page .page{padding-top:10px!important}
.soko-mobile body .topbar{min-height:56px;padding:6px 14px!important;gap:4px}
.soko-mobile .topbar .mobile-header-menu>summary{font-size:18px;font-weight:600}
.soko-mobile .mobile-list-toolbar{gap:8px;margin:0 0 12px;align-items:center}
.soko-mobile .mobile-list-toolbar select{height:44px;border:0;border-radius:9px;background:#eaf0e9;padding:8px 12px;font-size:15px}
.soko-mobile .mobile-list-toolbar>.button{height:44px;border:0;border-radius:9px;background:#eaf0e9;padding:8px 12px;color:var(--green)}
.soko-mobile body .page .task-group{margin-bottom:16px}
.soko-mobile body .page .task-group>h2{font-size:17px;font-weight:500;min-height:40px;margin:0;padding:8px 2px;gap:8px}
.soko-mobile .task-group .group-dot{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #7d9487;background:transparent;border-radius:0}
.soko-mobile .task-table.compact-tree{border:0;border-radius:0;background:transparent;box-shadow:none}
.soko-mobile body .task-entry{border:0;background:transparent}
.soko-mobile body .task-entry>.task-row{display:block;min-height:64px;padding:8px 0!important;border:0;border-bottom:1px solid var(--line);background:transparent}
.soko-mobile body .task-entry>.task-row>.task-title{display:flex;width:100%;padding-left:min(calc(var(--tree-depth,0)*10px),30px)!important;align-items:flex-start;gap:8px}
.soko-mobile body .task-entry>.task-row>.task-title>a{display:block;min-height:44px;padding:0;overflow:hidden}
.soko-mobile body .task-name-line strong{font-size:16px;font-weight:400;line-height:1.35}
.soko-mobile body .task-entry>.task-row>.task-title .task-tools{display:flex;flex-direction:row;align-items:center;gap:0;min-height:24px;width:auto}
.soko-mobile body .task-tools .task-kind{font-size:24px;line-height:24px;width:24px;text-align:center;color:#7d9c8d}
.soko-mobile body .task-tools .child-toggle{width:28px!important;min-width:28px!important;height:44px!important;margin-top:-8px;padding:0;border:0;background:transparent}
.soko-mobile body .task-entry>.task-row>a,.soko-mobile body .task-entry>.task-row>.assignee,.soko-mobile body .task-entry>.task-row>.task-topic,.soko-mobile body .task-entry>.task-row>.due,.soko-mobile body .task-entry>.task-row>.task-type{display:none!important}
.soko-mobile .task-title .mobile-task-meta{display:flex;gap:6px;align-items:center;overflow:hidden;white-space:nowrap;margin-top:4px;font-size:13px;line-height:18px;color:var(--muted)}
.soko-mobile .mobile-task-meta>span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.soko-mobile .mobile-task-meta>span:first-child{flex-shrink:0}
.soko-mobile .mobile-task-meta>span+span:before{content:'·';margin-right:6px}
.soko-mobile .task-entry.is-done .task-name-line strong{text-decoration:line-through;color:var(--muted)}
.soko-mobile .task-entry.is-done .task-kind{color:var(--green)}
.soko-mobile .task-children{margin:0 0 0 8px;border-radius:0;background:transparent}

.soko-mobile body .topbar{min-height:62px;padding:8px 14px!important;gap:6px;border-bottom:0}
.soko-mobile .topbar .mobile-header-menu>summary{font-size:20px;font-weight:500;gap:7px}
.soko-mobile .mobile-list-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;margin-bottom:12px}
.soko-mobile .mobile-list-toolbar>.button{display:grid;place-items:center;padding:0;height:44px;width:44px;color:#6c8578;position:relative}
.soko-mobile .mobile-sort-button[aria-pressed=true]{color:var(--green);box-shadow:inset 0 0 0 1px #a8c5b7}
.mobile-theme-control{display:flex;align-items:center;justify-content:center;position:relative;min-width:0;background:#eaf0e9;border-radius:9px;color:#6c8578;padding-left:12px;gap:6px}
.mobile-theme-control>svg{flex-shrink:0}
.soko-mobile .mobile-theme-control select{width:100%;min-width:0;background:transparent;padding-left:2px;font-size:16px;text-align:center;color:var(--ink);cursor:pointer}
.mobile-filter-count{position:absolute;top:-4px;right:-3px;min-width:17px;padding:1px 4px;border-radius:9px;background:var(--green);color:white;font-size:11px;line-height:16px}

.mobile-add-menu{position:absolute;right:16px;bottom:calc(100% + 66px);width:184px;padding:4px 0;background:#f0f6f2;border:1px solid #cddfd3;border-radius:10px;box-shadow:0 4px 18px #183d2424;overflow:hidden}
.mobile-add-menu[hidden]{display:none}
.mobile-add-menu>button{display:block;width:100%;min-height:44px;text-align:left;padding:10px 16px;border:0;background:transparent;font-size:14px;color:var(--ink);border-radius:0}
.mobile-add-menu>button+button{border-top:1px solid #d2e1d8}
.mobile-add-menu>button:hover,.mobile-add-menu>button:focus-visible{background:#dfeee4}

.soko-mobile dialog.mobile-finance-overlay{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden}
.mobile-finance-overlay iframe{width:100%;height:100%;border:0;background:transparent}
.mobile-finance-overlay>p,.mobile-finance-overlay>button{position:absolute;top:20px;left:20px;z-index:1;background:var(--paper);padding:12px;border-radius:8px}
.mobile-finance-overlay>button{left:auto;right:20px}

/* Shared mobile chrome, matching the compact finance screen. */
.soko-mobile body .topbar{box-sizing:border-box;min-height:52px;padding:4px 12px!important;gap:4px}
.soko-mobile .topbar .mobile-header-menu>summary{font-size:16px;line-height:1.3;font-weight:600}
.soko-mobile body .page,.soko-mobile .tasks-page .page{padding-top:8px!important}
.soko-mobile .mobile-list-toolbar{display:flex;justify-content:flex-start;gap:8px;min-width:0;margin:0 0 10px}
.soko-mobile .mobile-list-toolbar>.button{width:32px;height:32px;min-height:32px;flex:none;border-radius:16px;background:#eaf1ec}
.soko-mobile .mobile-list-toolbar>.button svg{width:18px;height:18px}
.soko-mobile .mobile-theme-control{flex:0 1 auto;max-width:calc(100% - 80px);border-radius:18px;padding-left:10px;gap:4px;background:#eaf1ec}
.soko-mobile .mobile-theme-control>svg{width:16px;height:16px}
.soko-mobile .mobile-theme-control select{flex:0 1 auto;width:var(--mobile-control-width,auto);max-width:100%;height:32px;min-height:32px;padding:4px 24px 4px 2px;font-size:12px;text-align:left;margin:0;border-radius:18px}
.soko-mobile .org-company-heading{border:0;background:transparent;padding:0 0 12px;gap:8px}
.soko-mobile .org-company-picker{min-width:0;padding:0;border:0;border-radius:18px;background:#eaf1ec;max-width:100%}
.soko-mobile .org-company-picker small{display:none}
.soko-mobile .org-company-picker select{width:var(--mobile-control-width,auto);max-width:100%;height:32px;min-height:32px;padding:4px 28px 4px 12px;margin:0;font-size:12px;font-weight:400;border-radius:18px;color:var(--green)}
.soko-mobile .calendar-toolbar{gap:8px;margin-bottom:10px}
.soko-mobile .calendar-toolbar .button,.soko-mobile .calendar-toolbar select{min-height:32px;height:32px;border:0;border-radius:18px;font-size:12px;padding:4px 12px;background:#eaf1ec;color:var(--green)}
.soko-mobile .calendar-toolbar select{width:var(--mobile-control-width,auto);max-width:100%}
.soko-mobile .calendar-toolbar h2{font-size:16px;line-height:1.3}
.soko-mobile .mobile-tabs{gap:6px}
.soko-mobile .mobile-tabs button{min-height:32px;border-radius:18px;font-size:12px;padding:6px 12px}

/* Reserve an explicit arrow area instead of the browser's variable native inset. */
.soko-mobile .mobile-theme-control select,.soko-mobile .org-company-picker select,.soko-mobile .calendar-toolbar select,.soko-mobile .finance-company-label select{
 appearance:none;-webkit-appearance:none;box-sizing:border-box;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23246c58' stroke-width='1.5'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 9px center;padding-right:30px!important;
}
.soko-mobile .mobile-theme-control{flex:0 0 auto;max-width:none}
.soko-mobile .mobile-theme-control select{flex:none;max-width:none}
.soko-mobile .mobile-list-toolbar{flex-wrap:wrap}

.full-label-select{display:inline-block;position:relative;width:max-content;max-width:100%;min-width:0;vertical-align:middle;border-radius:18px;background:#eaf1ec;color:var(--green);line-height:1.4}
.full-label-selection{display:block;white-space:normal;overflow-wrap:anywhere;padding:8px 32px 8px 12px;min-height:32px;max-width:100%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23246c58' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center}
body .full-label-select select{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;min-width:0!important;opacity:0;cursor:pointer;margin:0!important}
.full-label-select:focus-within{outline:2px solid var(--green);outline-offset:2px}
.soko-mobile .mobile-theme-control{flex:0 1 auto;max-width:calc(100% - 80px)}
.soko-mobile .mobile-theme-control .full-label-select{min-width:0}
.soko-mobile .mobile-theme-control .full-label-selection{padding-left:2px}
.soko-mobile .mobile-section-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px!important}
.soko-mobile .mobile-quick-filters{display:flex;gap:10px;margin-left:auto;align-items:center}
.soko-mobile .mobile-quick-filters label{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:400;white-space:nowrap;margin:0;min-height:32px}
.soko-mobile .mobile-quick-filters input{appearance:none;width:26px;height:16px;min-height:0;border:0;border-radius:10px;background:#c6d7cf;position:relative;margin:0;padding:0;flex:none}
.soko-mobile .mobile-quick-filters input:before{content:'';position:absolute;width:12px;height:12px;top:2px;left:2px;border-radius:50%;background:white}
.soko-mobile .mobile-quick-filters input:checked{background:var(--green)}
.soko-mobile .mobile-quick-filters input:checked:before{left:12px}
.soko-mobile .mobile-quick-filters input:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.full-label-select{max-width:min(100%,520px,calc(100vw - 40px))}
.finance-heading .finance-company-label,.org-company-picker{min-width:0!important;max-width:100%}


.soko-mobile .mobile-action-dialog{width:calc(100vw - 16px);max-height:calc(95dvh - env(safe-area-inset-bottom));padding:16px}
.mobile-action-dialog>button{float:right;margin-bottom:8px}
.mobile-action-dialog>h2{font-size:18px;margin:8px 0 16px}
.mobile-action-dialog .report-card{clear:both;margin:0;border:0;padding:0}
.mobile-action-dialog .review-form{display:block}
.mobile-action-dialog .form-actions{display:flex;gap:8px;flex-wrap:wrap}
.mobile-action-dialog .form-actions button{flex:1;min-height:44px}

.attention-back-heading{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.attention-back-heading>a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;font-size:24px;text-decoration:none;flex-shrink:0}.attention-page .topbar .attention-back-heading h1{display:block;margin:0;font-size:16px}.attention-page .notification-center{display:none}.attention-page .mobile-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}.attention-page .mobile-tabs .count{flex-shrink:0}

.attention-entry.is-unread{background:#e7f3ed!important;box-shadow:inset 3px 0 0 #246d5b}.attention-entry.is-unread>strong::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#246d5b;margin-right:8px;vertical-align:middle}#attention-screen .attention-entry:not(.is-unread)>strong{font-weight:500}#attention-screen .attention-entry.is-unread>strong{font-weight:700}

.soko-mobile .mobile-quick-bar{display:flex;align-items:center;gap:8px;left:10px;right:10px;bottom:calc(var(--mobile-keyboard-offset,0px) + 10px + env(safe-area-inset-bottom));padding:8px;border:1px solid var(--line);border-radius:32px;background:var(--paper,#f8faf7);box-shadow:0 4px 20px #183d2424}
.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create]{flex:1;min-width:0;gap:6px}
.soko-mobile .mobile-quick-bar .mobile-section-toggle{position:static;width:40px;height:40px;flex:0 0 40px;margin:0;padding:0;display:grid;place-items:center;line-height:1;font-size:26px;box-shadow:none}
.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create] input[name=title]{height:40px;padding:8px 12px}
.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create] button[type=submit]{width:40px;height:40px}
.soko-mobile .mobile-quick-bar .mobile-add-menu{right:0;bottom:calc(100% + 8px)}

.soko-mobile .mobile-quick-bar{left:16px;right:16px;max-width:440px;margin:0 auto;padding:5px;gap:5px;border-radius:26px;box-shadow:0 3px 14px #183d241f}
.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create]{gap:4px}
.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create] input[name=title]{height:34px;padding:6px 10px;border:0;background:transparent}
.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create] button[type=submit],.soko-mobile .mobile-quick-bar .mobile-section-toggle{width:34px;height:34px;min-height:34px;flex:0 0 34px}
.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create] button[type=submit] svg{width:20px;height:20px}
.soko-mobile .mobile-quick-bar .mobile-section-toggle{font-size:24px}
.soko-mobile .mobile-calendar-date{position:relative;display:inline-flex;align-items:center;margin:0;cursor:pointer;overflow:hidden}
.soko-mobile .mobile-calendar-date input[type=date]{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;padding:0;cursor:pointer}
.soko-mobile .mobile-calendar-date:focus-within{outline:2px solid var(--green,#216e5c);outline-offset:2px}

.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create] input[name=title]{min-height:34px!important}.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create] button[type=submit],.soko-mobile .mobile-quick-bar .mobile-section-toggle{min-width:34px;padding:0}
.soko-mobile .mobile-quick-bar>form[data-mobile-quick-create]{height:34px;min-height:0}

body .badge[data-task-status="Просрочена"]{background:#c32f35;color:#fff;font-weight:600}
body .badge[data-task-status="В работе"],body .badge[data-task-status="В процессе"]{background:#168647;color:#fff;font-weight:600}
body .badge[data-task-status="Запланировано"]{background:#eceeef;color:#5e666b}
body .task-entry.is-overdue>.task-row,.soko-mobile body .task-entry.is-overdue>.task-row{background:#fff0f0;box-shadow:inset 3px 0 0 #c32f35}
body .task-entry.is-overdue>.task-row:hover,.soko-mobile body .task-entry.is-overdue>.task-row:hover{background:#ffe4e4}
body .task-entry.is-overdue>.task-row .task-kind{color:#c32f35}

body .badge[data-task-status="Доработка"]{background:#ed8a23;color:#472400;font-weight:600}
body .badge[data-task-status="Ждет согласования"],body .badge[data-task-status="Ждет завершения"]{background:#246cd6;color:#fff;font-weight:600}
body .badge[data-task-status="Выполнено"]{background:#e9eceb;color:#78817d;font-weight:400}
body .task-entry.is-done>.task-row,.soko-mobile body .task-entry.is-done>.task-row{background:#f4f5f4;color:#8a938f}
body .task-entry.is-done>.task-row a,body .task-entry.is-done>.task-row .task-kind,body .task-entry.is-done>.task-row .task-progress,body .task-entry.is-done>.task-row .list-cell,body .task-entry.is-done>.task-row .my-task-roles{color:#8a938f}
body .task-entry.is-done>.task-row .task-name-line strong{text-decoration:line-through;font-weight:400;color:#8a938f}

[data-task-status="Просрочена"]{--status-bg:#c32f35;--status-text:#fff}
[data-task-status="В работе"],[data-task-status="В процессе"]{--status-bg:#168647;--status-text:#fff}
[data-task-status="Доработка"]{--status-bg:#ed8a23;--status-text:#472400}
[data-task-status="Ждет согласования"],[data-task-status="Ждет завершения"]{--status-bg:#246cd6;--status-text:#fff}
[data-task-status="Запланировано"]{--status-bg:#eceeef;--status-text:#5e666b}
[data-task-status="Выполнено"]{--status-bg:#e9eceb;--status-text:#78817d}
body .badge[data-task-status],body .gantt-bar[data-task-status],body .gantt-routine-slot[data-task-status]{background:var(--status-bg,#eceeef);color:var(--status-text,#5e666b);border-color:var(--status-bg,#eceeef)}
body .gantt-bar[data-task-status="Выполнено"] .gantt-bar-title,body .gantt-routine-slot[data-task-status="Выполнено"]{text-decoration:line-through;font-weight:400}
body .gantt-bar[data-task-status] .gantt-slot{background:rgba(49,169,127,.38);border-color:#438b69}

body .gantt-bar[data-task-status]:not([data-task-status="Просрочена"]):not([data-task-status="Выполнено"]),body .gantt-routine-slot[data-task-status]:not([data-task-status="Просрочена"]):not([data-task-status="Выполнено"]){background:#e8efeb;color:#395046;border-color:#b4cbbd}
body .gantt-bar[data-task-status="Выполнено"],body .gantt-routine-slot[data-task-status="Выполнено"]{background:#e5eaed;color:#859097;border-color:#cdd5da}
body .task-entry[data-task-status="В работе"]>.task-row .task-name-line strong,body .task-entry[data-task-status="В процессе"]>.task-row .task-name-line strong,body .gantt-row[data-task-status="В работе"] .gantt-task-drag,body .gantt-row[data-task-status="В процессе"] .gantt-task-drag{color:#168647}
body .task-entry[data-task-status="Доработка"]>.task-row .task-name-line strong,body .gantt-row[data-task-status="Доработка"] .gantt-task-drag{color:#c46706}
body .task-entry[data-task-status="Ждет согласования"]>.task-row .task-name-line strong,body .task-entry[data-task-status="Ждет завершения"]>.task-row .task-name-line strong,body .gantt-row[data-task-status="Ждет согласования"] .gantt-task-drag,body .gantt-row[data-task-status="Ждет завершения"] .gantt-task-drag{color:#246cd6}
body .gantt-row[data-task-status="Выполнено"] .gantt-task-drag{color:#8a938f;text-decoration:line-through}

body .gantt-bar[data-task-status="Просрочена"] .gantt-slot{background:rgba(255,255,255,.28);border-color:#fff9}body .gantt-bar[data-task-status] .gantt-slot{box-shadow:inset 0 -3px 0 #438b69}body .gantt-bar[data-task-status="Просрочена"] .gantt-slot{box-shadow:inset 0 -3px 0 #fff9}

.task-slot-summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--muted);padding:4px 8px 4px 0}.task-slot-summary strong{color:var(--ink);white-space:nowrap}.detail-heading .task-actions{flex-wrap:wrap;align-items:center}.soko-mobile .mobile-detail .detail-heading .task-actions{display:flex;margin-top:8px}.soko-mobile .task-slot-summary{padding:0;font-size:12px}

.detail-heading .heading-slots,.detail-heading .task-slot-summary{position:relative;margin:0;border:0;padding:0;font-size:12px;display:block}
.detail-heading .heading-slots>summary,.task-slot-summary>summary{cursor:pointer;color:var(--green);padding:5px 0}
.slot-popup{position:absolute;top:100%;right:0;width:520px;max-width:calc(100vw - 32px);max-height:65vh;overflow:auto;z-index:55;padding:16px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #23352a26;color:var(--ink)}
.heading-slots>.slot-popup{left:0;right:auto}.slot-popup .panel{border:0;padding:0;margin:0}.past-slots-table{width:100%;border-collapse:collapse;font-size:12px}.past-slots-table th,.past-slots-table td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line)}.past-slots-table th{color:var(--muted);font-weight:500}
.soko-mobile .detail-heading .slot-popup{position:fixed;left:12px;right:12px;top:110px;width:auto;max-width:none;max-height:65dvh}.slot-popup>p{margin-top:0}

.heading-slots .task-slot-summary>.slot-popup,.soko-mobile .heading-slots .task-slot-summary>.slot-popup{position:static;width:100%;max-width:none;max-height:none;box-shadow:none;padding:10px 0;border:0}.heading-slots .section-title{flex-wrap:wrap;gap:10px}.heading-slots .task-slot-summary[open]{flex-basis:100%;order:3}.heading-slots h3{font-size:12px;color:var(--muted);font-weight:500}

body .task-team-info .role-person,body .task-team-info .people-row{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:baseline;gap:8px;margin:0;padding:5px 0;min-height:28px}
body .task-team-info .role-person>small,body .task-team-info .people-caption{font-size:11px;letter-spacing:0;text-transform:none;color:var(--muted);margin:0}
body .task-team-info .role-assignees{display:flex;flex-wrap:wrap;gap:3px 8px;min-width:0;font-size:12px;overflow-wrap:anywhere}
body .task-team-info .role-assignees>strong,body .task-team-info .role-assignees>span{font-size:12px;font-weight:400;margin:0}
body .task-team-info .people-picker>summary{min-height:24px;font-size:12px;padding:0}
.soko-mobile body .task-team-info .people-row{grid-template-columns:112px minmax(0,1fr)}

.topic-folders{padding:0 0 6px 23px}.sidebar-folder{display:flex;align-items:center;gap:7px;padding:5px 8px;font-size:12px;color:var(--ink);border-radius:6px}.sidebar-folder>span:nth-child(2){flex:1;overflow-wrap:anywhere}.sidebar-folder small{color:var(--muted)}.folder-drop-active{outline:2px solid var(--green)!important;background:#e1f1e7!important}.gantt-folder-heading{position:relative;height:32px;line-height:32px;padding-left:12px;background:#f0f5f1;color:var(--green);font-size:12px;font-weight:600;border-bottom:1px solid var(--line)}.folder-move-button{border:0;background:transparent;color:var(--muted);padding:0;width:18px;min-width:18px;font-size:15px;cursor:pointer}.folder-toolbar{display:flex;justify-content:flex-end;margin:4px 0 10px}.task-group>h2[data-folder-drop]{padding:8px;border-radius:5px}

.gantt-slot-history{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #dce6e0;border-radius:12px;color:var(--text,#183c40);background:var(--surface,#fff)}
.gantt-slot-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 16px}.gantt-slot-history h3{margin-top:18px}.gantt-slot-history::backdrop{background:rgba(20,40,30,.25)}

/* Folder rows use the same typography and separators as task rows. */
.sidebar-folder{font-family:inherit;font-size:12px;font-weight:400;line-height:1.4}
.folder-symbol{display:inline-block;flex:0 0 15px;width:15px;height:11px;border:1.3px solid currentColor;border-radius:2px;position:relative;box-sizing:border-box;color:#78998a;vertical-align:middle}
.folder-symbol:before{content:"";position:absolute;left:-1.3px;top:-4px;width:7px;height:4px;border:1.3px solid currentColor;border-bottom:0;border-radius:2px 2px 0 0;background:inherit}
.task-folder-row{display:flex;align-items:center;gap:9px;min-height:42px;padding:0 18px;border-bottom:1px solid #e3ece8;background:#fff;color:#285b54;font-family:inherit;font-size:12px;font-weight:400;line-height:1.4;cursor:grab;box-sizing:border-box}
.task-folder-row button{border:0;background:none;padding:0;width:16px;color:#8ca69b;cursor:pointer;font:inherit}
.task-folder-children{padding-left:24px}.task-folder-children[hidden]{display:none}
.gantt-folder-heading.task-folder-row{height:38px;min-height:38px;padding:0;background:#fff;font-weight:400;line-height:normal}
.gantt-folder-heading .gantt-name{height:100%;padding-left:12px;font:inherit}
.gantt-row.folder-collapsed{display:none!important}
@media(max-width:700px){.task-folder-row{font-size:14px;min-height:46px;padding:0 10px}.task-folder-children{padding-left:16px}}

.sidebar .sidebar-topics .sidebar-folder{font-size:11px;gap:7px;padding:5px 8px;margin:0}
.sidebar .sidebar-topics .sidebar-folder [data-folder-name]{font:inherit;text-align:left;width:auto;flex:1}
.sidebar .sidebar-topics .sidebar-folder .folder-symbol{width:15px;flex:0 0 15px;font-size:11px}
@media(min-width:701px){.folder-move-button{display:none}}

.task-folder-row>span:not(.count),.gantt-folder-heading .gantt-name>span{font-weight:650}
.task-folder-row{touch-action:none}
.folder-menu-button,.task-folder-row .folder-menu-button{margin-left:auto!important;width:26px!important;min-width:26px;font-size:20px!important;line-height:24px;border:0;background:transparent;color:#52786a;cursor:pointer}
.folder-actions-menu{position:fixed;z-index:10000;min-width:170px;padding:4px;border:1px solid #d8e4de;border-radius:8px;background:#fff;box-shadow:0 5px 20px #183c4020}
.folder-actions-menu[hidden]{display:none}.folder-actions-menu button{display:block;width:100%;text-align:left;border:0;background:none;padding:10px;font:inherit;color:inherit}.folder-actions-menu button:hover{background:#edf4ef}
.folder-order-target{box-shadow:inset 0 -2px #26765f}.folder-order-dragging{opacity:.5}

.folder-drag-preview{position:fixed;z-index:10020;pointer-events:none;display:flex;align-items:center;gap:10px;max-width:min(300px,calc(100vw - 24px));padding:10px 14px;border:1px solid #96b6a7;border-radius:7px;background:#fff;color:#285b54;box-shadow:0 6px 20px #183c4026;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4}
.folder-drag-preview>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.folder-drop-line{position:fixed;height:2px;background:#26765f;z-index:10019;pointer-events:none}.folder-drop-line:before{content:"";position:absolute;left:-3px;top:-2px;width:6px;height:6px;border-radius:50%;background:inherit}
.folder-drag-preview[hidden],.folder-drop-line[hidden]{display:none}.folder-is-dragging,.folder-is-dragging *{cursor:grabbing!important;user-select:none!important}
