﻿:root{color-scheme:dark;--bg:#06101c;--panel:#0d1b2c;--line:rgba(148,176,214,.18);--text:#f5f7fb;--muted:#8da1b9;--purple:#8a76ff;--green:#35d393;--danger:#ff758a;font-family:Inter,"Segoe UI Variable","Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{min-height:100vh;margin:0;color:var(--text);background:#06101c;font-size:16px;line-height:1.5}
body:before{content:"";position:fixed;inset:0;z-index:-3;background:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:64px 64px}
.ambient{position:fixed;z-index:-2;border-radius:50%;filter:blur(110px);opacity:.2}
.ambient.one{width:520px;height:520px;right:-120px;top:-180px;background:#6957ea}
.ambient.two{width:420px;height:420px;left:-220px;bottom:-160px;background:#118dc0}
a{color:inherit;text-decoration:none}
header{width:min(1220px,calc(100% - 40px));min-height:76px;margin:18px auto 0;padding:0 14px 0 16px;display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(148,176,214,.15);border-radius:18px;background:linear-gradient(145deg,rgba(10,23,39,.9),rgba(5,14,25,.88));box-shadow:0 18px 45px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.03);backdrop-filter:blur(12px)}
.brand{display:flex;align-items:center;gap:11px}
.brand img{width:44px;height:44px}
.brand strong,.brand small{display:block}
.brand strong{font-size:20px;line-height:1.2}
.brand small{color:#71869e;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
nav{display:flex;align-items:center;gap:24px;color:#a9b8ca;font-size:14px;font-weight:700}
nav>a:not(.download):not(.owner-return):not(.owner-login){min-height:42px;padding:0 14px;display:inline-flex;align-items:center;border:1px solid rgba(148,176,214,.12);border-radius:11px;color:#c7d4e4;background:rgba(17,35,58,.42);white-space:nowrap}
nav>a:not(.download):not(.owner-return):not(.owner-login):hover{border-color:rgba(138,118,255,.3);color:#fff;background:rgba(138,118,255,.09)}
.download{padding:12px 17px;border:1px solid rgba(138,118,255,.3);border-radius:11px;color:#ddd8ff;background:rgba(138,118,255,.1);white-space:nowrap}
.owner-return{padding:10px 13px;border:1px solid rgba(53,211,147,.28);border-radius:10px;color:#8ce2bd;background:rgba(53,211,147,.08);white-space:nowrap;font-weight:850}
.owner-login{padding:10px 13px;border:1px solid rgba(138,118,255,.25);border-radius:10px;color:#c9c2ff;background:rgba(138,118,255,.07);white-space:nowrap}
main{width:min(1160px,calc(100% - 40px));min-height:calc(100vh - 172px);margin:auto;display:grid;grid-template-columns:minmax(0,.9fr) minmax(460px,1.1fr);gap:58px;align-items:center;padding:64px 0}
.eyebrow{margin:0 0 16px;color:#8196ad;font-size:11px;font-weight:850;letter-spacing:.18em}
.intro h1{max-width:580px;margin:0;font-size:clamp(46px,5vw,66px);line-height:1.04;letter-spacing:-.045em}
.intro h1 em{color:transparent;background:linear-gradient(100deg,#b7adff,#7f6bf5 58%,#56bce8);background-clip:text;-webkit-background-clip:text;font-style:normal}
.intro>p:not(.eyebrow){max-width:520px;margin:24px 0 0;color:#a8b8ca;font-size:18px;line-height:1.65}
.trust{max-width:500px;margin-top:32px;padding:15px;display:grid;grid-template-columns:38px 1fr;gap:12px;border:1px solid rgba(53,211,147,.16);border-radius:13px;background:rgba(53,211,147,.045)}
.trust>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#8ce2bd;background:rgba(53,211,147,.1);font-weight:900}
.trust strong,.trust small{display:block}
.trust strong{font-size:14px}
.trust small{margin-top:3px;color:#8296aa;font-size:12px;line-height:1.55}
.cabinet-card{width:100%;padding:34px;border:1px solid rgba(148,176,214,.24);border-radius:22px;background:linear-gradient(145deg,rgba(15,31,51,.98),rgba(8,19,33,.98));box-shadow:0 35px 100px rgba(0,0,0,.33)}
.card-head{padding-bottom:24px;display:grid;grid-template-columns:48px 1fr;gap:13px;align-items:center;border-bottom:1px solid var(--line)}
.card-head>span{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#8b72ff,#39bfff);font-weight:900}
.card-head small,.dashboard-head small{color:#7890a8;font-size:10px;font-weight:850;letter-spacing:.14em}
.card-head h2,.dashboard-head h2{margin:4px 0 0;font-size:26px;line-height:1.2}
form{margin-top:24px}
.login-divider{position:relative;margin:18px 0 6px;text-align:center;color:#6f83a0;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.login-divider:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line)}
.login-divider span{position:relative;padding:0 12px;background:#0c1c2f}
.license-login-form{margin-top:24px;padding:0;border:0;background:transparent}
.license-login-form label{margin-bottom:14px}
.license-login-form input{border-color:rgba(138,118,255,.36);font-size:16px}
.owner-key-help{padding:12px 13px;border:1px solid rgba(53,211,147,.16);border-radius:12px;color:#9fb5c8;background:rgba(53,211,147,.04)}
.owner-key-help b{color:#e8fff5}
.legacy-login{margin-top:14px;border:1px solid rgba(148,176,214,.16);border-radius:13px;background:rgba(17,35,58,.32);overflow:hidden}
.legacy-login summary{min-height:46px;padding:0 14px;display:flex;align-items:center;cursor:pointer;color:#b7c5d8;font-size:13px;font-weight:850;list-style:none}
.legacy-login summary::-webkit-details-marker{display:none}
.legacy-login summary:after{content:"+";margin-left:auto;color:#9f91ff;font-size:18px;line-height:1}
.legacy-login[open] summary:after{content:"−"}
.legacy-login form{margin:0;padding:0 14px 14px}
.legacy-login label{margin-bottom:12px}
.legacy-login button{min-height:46px}
label{display:block;margin-bottom:18px;color:#b7c4d2;font-size:13px;font-weight:750}
input{width:100%;margin-top:8px;padding:15px 16px;border:1px solid var(--line);border-radius:11px;outline:none;color:#fff;background:#06121f;font:inherit;font-size:15px}
input:focus{border-color:rgba(138,118,255,.65);box-shadow:0 0 0 3px rgba(138,118,255,.08)}
button,.ready-actions a{width:100%;min-height:52px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#a18fff,#6b56ec 72%);font-family:inherit;font-size:14px;font-weight:800;cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
.help{margin:17px 2px 0;color:#8295aa;font-size:12px;line-height:1.6}
.help a{color:#aaa0fa}
.connection-guide{margin-top:16px;padding:14px;border:1px solid rgba(138,118,255,.22);border-radius:13px;background:rgba(138,118,255,.06)}
.connection-guide small{display:block;color:#9b90ff;font-size:8px;font-weight:850;letter-spacing:.14em}
.connection-guide strong{display:block;margin-top:5px;font-size:14px;line-height:1.35}
.connection-guide ul{margin:10px 0 0;padding-left:18px;color:#93a7bb;font-size:12px;line-height:1.55}
.connection-guide li{margin:4px 0}.connection-guide b{color:#dce6f2}
.connection-guide strong,.connection-guide li,.help,.sync-note,.mobile-workspace-callout strong,.mobile-workspace-callout p{overflow-wrap:break-word;word-break:normal}
.dashboard-guide{margin:16px 0 0;border-color:rgba(53,211,147,.2);background:rgba(53,211,147,.045)}
.dashboard-guide small{color:#73d9b2}
.dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.dashboard-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.owner-return-inline{min-height:30px;padding:7px 10px;display:inline-flex;align-items:center;justify-content:center;font-size:10px}
.text-button{width:auto;min-height:auto;padding:7px 10px;border:1px solid var(--line);color:#9badc0;background:#11233a;font-size:10px}
.order-row{margin:18px 0;padding:13px;display:flex;align-items:center;justify-content:space-between;border:1px dashed #38506b;border-radius:11px;background:#071523}
.order-row small,.order-row strong{display:block}
.order-row small{color:#7890a8;font-size:9px;letter-spacing:.14em}
.order-row strong{margin-top:4px;font-size:14px;letter-spacing:.06em}
.status-card{padding:17px;display:grid;grid-template-columns:44px 1fr;gap:13px;border:1px solid rgba(138,118,255,.18);border-radius:14px;background:rgba(138,118,255,.055)}
.status-card>span{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;color:#b6adff;background:rgba(138,118,255,.12);font-size:18px;font-weight:900}
.status-card[data-status=approved]{border-color:rgba(53,211,147,.22);background:rgba(53,211,147,.055)}
.status-card[data-status=approved]>span{color:#87e0ba;background:rgba(53,211,147,.11)}
.status-card[data-status=expired]{border-color:rgba(255,117,138,.25);background:rgba(255,117,138,.055)}
.status-card[data-status=expired]>span{color:#ff9bac;background:rgba(255,117,138,.11)}
.status-card small{color:#7890a8;font-size:9px;font-weight:850;letter-spacing:.14em}
.status-card strong{display:block;margin-top:3px;font-size:16px}
.status-card p{margin:5px 0 0;color:#91a3b6;font-size:12px;line-height:1.55}
.details{margin:15px 0;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:12px;background:rgba(6,18,31,.6)}
.details div{padding:13px;border-right:1px solid var(--line)}
.details div:last-child{border:0}
.details small,.details strong{display:block}
.details small{color:#7b90a6;font-size:10px}
.details strong{margin-top:5px;font-size:13px}
.secondary{margin-top:10px;border:1px solid var(--line);color:#bac7d6;background:#11233a}
.license-box{margin-top:17px;padding:17px;border:1px solid rgba(53,211,147,.22);border-radius:13px;background:rgba(53,211,147,.05)}
.license-box small{color:#75bda0;font-size:8px;letter-spacing:.14em}
.license-box code{display:block;margin:8px 0;padding:13px;border-radius:9px;color:#fff;background:#06121f;font-size:15px;word-break:break-all}
.license-box p{margin:11px 0 0;color:#748b80;font-size:9px}
.ready-actions{margin-top:16px;display:grid;gap:9px}
.secondary-link{border:1px solid var(--line);color:#bac7d6!important;background:#11233a!important}
.error{margin:15px 0 0;padding:11px;border:1px solid rgba(255,117,138,.2);border-radius:10px;color:#ff9aab;background:rgba(255,117,138,.07);font-size:10px}
.error[data-type=success]{border-color:rgba(53,211,147,.22);color:#8fe3be;background:rgba(53,211,147,.08)}
footer{width:min(1220px,calc(100% - 40px));min-height:80px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);color:#71869e;font-size:11px}
footer a{color:#778ba1}
@media(max-width:900px){header{min-height:70px;margin-top:12px}
nav>a:first-child{display:none}
main{grid-template-columns:1fr;gap:30px;padding:32px 0}
.cabinet-card{order:-1}
.intro{text-align:center}
.intro>p,.trust{margin-left:auto!important;margin-right:auto!important}
.cabinet-card{width:min(580px,100%);margin:auto}
}
@media(max-width:520px){header,main,footer{width:calc(100% - 24px)}
header{gap:10px}.brand{min-width:0}.brand small{font-size:8px}.brand strong{font-size:17px}
nav{gap:7px}.download{display:none}.owner-login,.owner-return{padding:9px 10px;font-size:10px}
.brand img{width:38px;height:38px}
main{display:block;min-height:auto;padding:24px 0}
.intro,.cabinet-card{min-width:0}.intro *,.cabinet-card *{min-width:0}
.intro{padding:8px 4px 18px;overflow:hidden}.intro h1{max-width:330px;margin-left:auto;margin-right:auto;font-size:34px;overflow-wrap:anywhere}
.intro>p:not(.eyebrow){max-width:330px;font-size:14px;overflow-wrap:anywhere}
.trust{display:none}.cabinet-card{width:100%;max-width:100%;margin:0;padding:20px 14px;border-radius:17px;overflow:hidden}.card-head h2{font-size:22px}
input{font-size:16px}.help{font-size:11px}
.connection-guide{padding:12px;border-radius:12px;text-align:left}
.connection-guide small{font-size:7px;letter-spacing:.1em}
.connection-guide strong{font-size:13px;line-height:1.3}
.connection-guide ul{max-width:100%;padding-left:16px;font-size:11px;line-height:1.48}
.connection-guide li,.connection-guide a,.help{white-space:normal;overflow-wrap:anywhere}
.details{grid-template-columns:1fr}
.details div{border-right:0;border-bottom:1px solid var(--line)}
footer{gap:15px;text-align:center;flex-direction:column;justify-content:center}
}

button,.ready-actions a{font-family:inherit;font-size:14px;font-weight:800}
.renew-button{margin-top:10px;color:#91e3c1;border:1px solid rgba(53,211,147,.22);background:rgba(53,211,147,.08)}
.renewal-box{margin-top:17px;padding:17px;border:1px solid rgba(138,118,255,.22);border-radius:14px;background:rgba(138,118,255,.055)}
.renewal-head{display:grid;grid-template-columns:39px 1fr;gap:11px;align-items:center;margin-bottom:14px}
.renewal-head>span{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;color:#b7adff;background:rgba(138,118,255,.12);font-size:17px}
.renewal-head small,.renewal-head strong{display:block}.renewal-head small{color:#756bba;font-size:7px;letter-spacing:.14em}.renewal-head strong{margin-top:2px;font-size:13px}
.renewal-code{position:relative;margin:8px 0;padding:12px;border:1px dashed #38506b;border-radius:10px;background:#071523}
.renewal-code small,.renewal-code strong{display:block}.renewal-code small{color:#657b93;font-size:8px}.renewal-code strong{max-width:75%;margin-top:3px;font-size:11px;word-break:break-all}.renewal-code .text-button{position:absolute;right:8px;bottom:8px}
.renewal-box label{margin-top:13px}.renewal-link{width:100%;min-height:48px;margin:4px 0 9px;display:flex;align-items:center;justify-content:center;border-radius:11px;font-size:11px;font-weight:800}

body.cabinet-active main{width:min(1180px,calc(100% - 40px));grid-template-columns:1fr;padding-top:36px;align-items:start}
body.cabinet-active .intro{display:none}
body.cabinet-active .cabinet-card{max-width:none}
.sync-panel{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.sync-title,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.sync-title small{color:#70ad98;font-size:9px;font-weight:850;letter-spacing:.15em}
.sync-title h3{margin:3px 0 0;font-size:24px}
.sync-note{margin:12px 0 18px;padding:12px 14px;border:1px solid rgba(53,211,147,.15);border-radius:11px;color:#93a9bb;background:rgba(53,211,147,.04);font-size:12px}
.sync-note.compact{margin:8px 0 14px;font-size:11px;line-height:1.55}
.workspace-form{margin:0;padding:18px;border:1px solid var(--line);border-radius:15px;background:rgba(6,18,31,.55)}
.workspace-form label{margin-bottom:14px}
.workspace-form textarea,.workspace-form select{width:100%;margin-top:8px;padding:13px 14px;border:1px solid var(--line);border-radius:11px;outline:none;color:#fff;background:#06121f;font:inherit;font-size:14px}
.workspace-form textarea{resize:vertical;min-height:84px}
.file-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.file-picker span{min-height:52px;margin-top:8px;padding:0 15px;display:flex;align-items:center;border:1px dashed #46617f;border-radius:11px;color:#b8c6d5;background:#081725;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-section{margin-top:22px}
.section-heading{margin-bottom:11px}
.section-heading h4{margin:0;font-size:18px}
.section-heading span{color:#7f94aa;font-size:12px}
.count-pill{min-width:56px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;padding:6px 11px;border:1px solid rgba(139,115,255,.26);border-radius:999px;background:#17233e;color:#d8d2ff!important;font-weight:900;white-space:nowrap;line-height:1}
.materials-list,.tasks-list{display:grid;gap:10px}
.material-item,.task-item{padding:12px;display:grid;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;background:#091827}
.material-item{grid-template-columns:68px minmax(0,1fr) auto}
.material-thumb{width:68px;height:68px;display:grid;place-items:center;overflow:hidden;border-radius:11px;color:#8db2cf;background:#10253a;font-weight:900}
.material-thumb img{width:100%;height:100%;object-fit:cover}
.item-copy{min-width:0}
.item-copy strong,.item-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-copy strong{font-size:13px}.item-copy small{margin-top:4px;color:#7e94aa;font-size:11px}
.item-actions{display:flex;align-items:center;gap:7px}
.item-actions button{width:auto;min-height:36px;padding:0 11px;border:1px solid var(--line);background:#10233a;font-size:11px}
.item-actions .danger{color:#ff9cac;border-color:rgba(255,117,138,.22);background:rgba(255,117,138,.07)}
.task-form,.week-form{margin-top:22px}
.target-options{margin-bottom:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.target-options label{margin:0;padding:12px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;background:#081725;font-size:12px}
.target-options input,.material-toggle{width:17px;height:17px;margin:0;accent-color:#7d68f3}
.client-week-days{display:grid;gap:9px;margin:10px 0 14px}
.client-week-day{margin:0!important;padding:12px;border:1px solid var(--line);border-radius:12px;background:#081725}
.client-week-day.active{border-color:rgba(139,115,255,.65);background:linear-gradient(145deg,rgba(32,34,79,.85),rgba(8,23,37,.95));box-shadow:0 0 0 1px rgba(139,115,255,.18)}
.client-week-day.has-selection{border-color:rgba(53,211,147,.28)}
.client-week-day span{display:flex;align-items:center;gap:9px;color:#dbe7f4;font-weight:850}
.client-week-day input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:#7d68f3}
.client-week-day .client-week-time{margin-top:10px}
.client-week-pick{margin-top:10px;min-height:44px;border:1px solid rgba(139,115,255,.36);border-radius:12px;background:linear-gradient(135deg,#8d78ff,#6049dc);font-size:13px}
.client-week-summary{display:block;margin-top:8px;color:#90a5ba;font-size:11px;line-height:1.35}
.client-week-picker{margin:12px 0 14px;padding:14px;border:1px solid rgba(53,211,147,.22);border-radius:16px;background:linear-gradient(145deg,rgba(10,35,39,.9),rgba(8,20,34,.96));box-shadow:0 20px 55px rgba(0,0,0,.22)}
.client-week-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.client-week-picker-head small{display:block;color:#72d9b3;font-size:8px;font-weight:850;letter-spacing:.14em}
.client-week-picker-head strong{display:block;margin-top:4px;font-size:16px}
.client-week-picker input[type=search]{margin:0 0 10px}
.client-week-picker-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:10px}
.client-week-picker-actions button{min-height:40px;margin:0;padding:0 10px;font-size:11px}
.client-week-picker-list{display:grid;gap:8px;max-height:360px;overflow:auto;padding-right:2px}
.client-week-choice{margin:0!important;padding:11px;display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:13px;background:#071322;color:#dce7f3}
.client-week-choice:has(input:checked){border-color:rgba(53,211,147,.36);background:rgba(53,211,147,.08)}
.client-week-choice input{width:21px;height:21px;margin:1px 0 0;accent-color:#32d28b}
.client-week-choice b,.client-week-choice small{display:block;overflow:hidden;text-overflow:ellipsis}
.client-week-choice b{font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.client-week-choice small{margin-top:4px;color:#8297ac;font-size:10px;white-space:nowrap}
.week-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.week-settings label{margin:0 0 14px}
.task-item{grid-template-columns:38px minmax(0,1fr) auto}
.target-badge{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#fff;background:#299fda;font-weight:900}
.target-badge.whatsapp{background:#20bf70}
.task-item[data-disabled=true]{opacity:.55}
.empty-state{margin:0;padding:20px;text-align:center;border:1px dashed var(--line);border-radius:12px;color:#71869d;font-size:12px}
.sync-loading{opacity:.55;pointer-events:none}
@media(max-width:620px){
  body.cabinet-active main{width:calc(100% - 24px);padding-top:18px}
  .sync-panel{margin-top:18px;padding-top:18px}.sync-title h3{font-size:20px}
  .section-heading{align-items:flex-start;gap:10px}.count-pill{flex:0 0 auto;min-width:52px;min-height:32px;padding:6px 10px}
  .workspace-form{padding:14px}.material-item{grid-template-columns:54px minmax(0,1fr)}
  .material-thumb{width:54px;height:54px}.material-item .item-actions{grid-column:1/-1;justify-content:flex-end}
  .task-item{grid-template-columns:36px minmax(0,1fr)}.task-item .item-actions{grid-column:1/-1;justify-content:flex-end}
  .target-options,.week-settings{grid-template-columns:1fr}
  .client-week-day select[multiple]{min-height:128px}
  .mobile-workspace-callout{padding:14px;border-radius:14px}
  .mobile-workspace-callout strong{font-size:16px}
  .mobile-workspace-callout p{font-size:11px;line-height:1.5}
}

.mobile-workspace-callout[hidden]{display:none}
.mobile-workspace-callout{margin:18px 0 0;padding:16px;border:1px solid rgba(53,211,147,.22);border-radius:16px;background:linear-gradient(145deg,rgba(53,211,147,.08),rgba(138,118,255,.06))}
.mobile-workspace-callout small{display:block;color:#75d8b1;font-size:9px;font-weight:850;letter-spacing:.15em}
.mobile-workspace-callout strong{display:block;margin-top:6px;font-size:18px;line-height:1.25}
.mobile-workspace-callout p{margin:8px 0 0;color:#96aabd;font-size:12px;line-height:1.55}
.mobile-steps{margin:12px 0 0;padding-left:18px;color:#a8b8ca;font-size:11px;line-height:1.55}
.mobile-steps li+li{margin-top:5px}
.mobile-jumps{margin-top:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mobile-jumps a{min-height:40px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:#10233a;color:#d8e4f2;font-size:12px;font-weight:800;text-decoration:none}
body.mobile-app .download{display:none!important}
body.mobile-app .ready-actions{display:none!important}
body.mobile-app header{position:sticky;top:0;z-index:10;background:rgba(6,16,28,.94);backdrop-filter:blur(14px)}
body.mobile-app main{display:block;min-height:auto;padding-top:18px}
body.mobile-app .intro{display:none}
body.mobile-app .cabinet-card{width:min(620px,100%);margin:0 auto;padding:18px;border-radius:20px;background:linear-gradient(160deg,rgba(12,27,45,.98),rgba(5,15,27,.98))}
body.mobile-app .card-head{padding-bottom:16px}
body.mobile-app .card-head h2{font-size:22px}
body.mobile-app.cabinet-active #dashboard-view:not([hidden]){display:flex;flex-direction:column;gap:14px}
body.mobile-app.cabinet-active .dashboard-head{order:-40;position:static;margin:0;padding:0 0 12px;background:transparent}
body.mobile-app.cabinet-active .dashboard-head h2{font-size:19px}
body.mobile-app.cabinet-active #sync-panel{order:-30;margin-top:0;padding:16px;border:1px solid rgba(138,118,255,.22);border-radius:18px;background:linear-gradient(155deg,rgba(13,27,45,.9),rgba(7,18,31,.82));box-shadow:0 22px 60px rgba(0,0,0,.22)}
body.mobile-app.cabinet-active #sync-panel{width:calc(100% - 24px);align-self:center}
body.mobile-app.cabinet-active #dashboard-view,body.mobile-app.cabinet-active #sync-panel,body.mobile-app.cabinet-active #sync-panel *{min-width:0;max-width:100%}
body.mobile-app #sync-refresh{display:none}
body.mobile-app .sync-title{align-items:flex-start}
body.mobile-app .sync-note,body.mobile-app .empty-state,body.mobile-app .item-copy strong,body.mobile-app .item-copy small{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
body.mobile-app.cabinet-active #mobile-workspace-callout{order:-20;margin-top:0}
body.mobile-app.cabinet-active .order-row{order:-10;margin:0}
body.mobile-app.cabinet-active .status-card{order:-9}
body.mobile-app.cabinet-active .details{order:-8}
body.mobile-app.cabinet-active #refresh{order:-7}
body.mobile-app.cabinet-active .dashboard-guide{order:60}
body.mobile-app.cabinet-active .renewal-box{order:70}
body.mobile-app.owner-authorized.cabinet-active #mobile-workspace-callout{order:-35}
body.mobile-app.owner-authorized.cabinet-active .order-row{order:-30}
body.mobile-app.owner-authorized.cabinet-active .status-card{order:-29}
body.mobile-app.owner-authorized.cabinet-active .details{order:-28}
body.mobile-app.owner-authorized.cabinet-active #refresh{order:-27}
body.mobile-app.owner-authorized.cabinet-active #sync-panel{order:20}
@media(max-width:620px){
  body.mobile-app header{min-height:70px}
  body.mobile-app header nav{display:none}
  body.mobile-app.owner-authorized header nav{display:flex}
  body.mobile-app.owner-authorized header .owner-return{display:inline-flex;min-height:40px;align-items:center}
  body.mobile-app.cabinet-active main{width:calc(100% - 24px);margin:0 auto;padding:0 0 22px}
  body.mobile-app.cabinet-active .cabinet-card{width:calc(100% - 24px);max-width:calc(100% - 24px);margin:0 auto;padding:14px;border-radius:18px}
  body.mobile-app.cabinet-active .dashboard-head{position:static}
  body.mobile-app.cabinet-active .dashboard-head{align-items:flex-start}
  body.mobile-app.cabinet-active .dashboard-actions{margin-left:auto;display:flex;gap:7px;flex:0 0 auto}
  body.mobile-app.cabinet-active .dashboard-actions .owner-return-inline,
  body.mobile-app.cabinet-active .dashboard-actions .text-button{width:auto;min-height:34px;padding:7px 9px;font-size:10px;border-radius:10px}
  .mobile-workspace-callout{padding:14px;border-radius:14px}
  .mobile-workspace-callout strong{font-size:16px}
  .mobile-workspace-callout p{font-size:11px;line-height:1.5}
  .mobile-steps{padding-left:16px;font-size:10px;line-height:1.45}
  .mobile-jumps{grid-template-columns:1fr}
  .sync-panel{scroll-margin-top:92px}
  body.mobile-app.cabinet-active #sync-panel{width:calc(100% - 24px);padding:14px;border-radius:17px;scroll-margin-top:132px}
  body.mobile-app .workspace-form{padding:13px;border-radius:15px}
  body.mobile-app .workspace-form label{font-size:12px}
  body.mobile-app .workspace-form textarea,body.mobile-app .workspace-form select,body.mobile-app input{font-size:16px;border-radius:14px}
  body.mobile-app .material-item,body.mobile-app .task-item{border-radius:15px}
  body.mobile-app .material-item{grid-template-columns:54px minmax(0,1fr);align-items:start}
  body.mobile-app .material-item .item-actions,body.mobile-app .task-item .item-actions{grid-column:1/-1;width:100%;justify-content:space-between}
  body.mobile-app .item-actions button{flex:1;min-height:38px;padding:0 10px;font-size:11px}
  body.mobile-app .item-actions .material-toggle{flex:0 0 24px;width:24px;height:24px}
  body.mobile-app .client-week-days{gap:10px}
  body.mobile-app .client-week-day{padding:13px;border-radius:17px;background:rgba(8,23,37,.92)}
  body.mobile-app .client-week-day span{font-size:18px}
  body.mobile-app .client-week-day input[type=checkbox]{width:24px;height:24px}
  body.mobile-app .client-week-time{height:52px}
  body.mobile-app .client-week-pick{min-height:52px;border-radius:15px;font-size:14px}
  body.mobile-app .client-week-summary{font-size:12px}
  body.mobile-app .client-week-picker{position:relative;margin:12px -2px 16px;padding:13px;border-radius:19px;border-color:rgba(53,211,147,.32);background:linear-gradient(155deg,rgba(8,39,42,.96),rgba(8,18,31,.98))}
  body.mobile-app .client-week-picker-head strong{font-size:15px}
  body.mobile-app .client-week-picker-actions{grid-template-columns:1fr;gap:7px}
  body.mobile-app .client-week-picker-actions button{min-height:44px;border-radius:13px}
  body.mobile-app .client-week-picker-list{max-height:430px}
  body.mobile-app .client-week-choice{min-height:62px;padding:12px;border-radius:15px;grid-template-columns:26px minmax(0,1fr)}
  body.mobile-app .client-week-choice input{width:24px;height:24px}
  body.mobile-app .client-week-choice b{font-size:13px}
}

/* Android/WebView safety layer: every mobile workspace block must stay inside the viewport. */
@media(max-width:620px){
  body.mobile-app{
    width:100%;
    min-width:0;
    overflow-x:hidden;
    touch-action:pan-y;
  }
  body.mobile-app .ambient{
    display:none;
  }
  body.mobile-app header,
  body.mobile-app main,
  body.mobile-app footer{
    width:100%;
    max-width:100%;
  }
  body.mobile-app header{
    margin:0;
    padding:10px 14px;
    border-left:0;
    border-right:0;
    border-radius:0;
  }
  body.mobile-app main,
  body.mobile-app.cabinet-active main{
    width:100%;
    max-width:560px;
    margin:0 auto;
    padding:12px 12px 26px;
    overflow:hidden;
  }
  body.mobile-app .cabinet-card,
  body.mobile-app.cabinet-active .cabinet-card{
    width:100%;
    max-width:100%;
    min-width:0;
    margin:0;
    padding:12px;
    border-radius:20px;
    overflow:hidden;
  }
  body.mobile-app .cabinet-card > *,
  body.mobile-app .cabinet-card form,
  body.mobile-app .cabinet-card label,
  body.mobile-app .cabinet-card input,
  body.mobile-app .cabinet-card button,
  body.mobile-app .cabinet-card .secondary,
  body.mobile-app .cabinet-card .help,
  body.mobile-app .connection-guide,
  body.mobile-app .connection-guide *{
    max-width:100%;
    min-width:0;
  }
  body.mobile-app .cabinet-card form{
    width:100%;
  }
  body.mobile-app .cabinet-card input,
  body.mobile-app .cabinet-card button,
  body.mobile-app .cabinet-card .secondary{
    width:100%;
  }
  body.mobile-app .cabinet-card p,
  body.mobile-app .cabinet-card strong,
  body.mobile-app .cabinet-card small,
  body.mobile-app .cabinet-card li,
  body.mobile-app .cabinet-card .help,
  body.mobile-app .connection-guide,
  body.mobile-app .connection-guide a{
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  body.mobile-app.cabinet-active #dashboard-view,
  body.mobile-app.cabinet-active #sync-panel,
  body.mobile-app .workspace-form,
  body.mobile-app .workspace-section,
  body.mobile-app .materials-list,
  body.mobile-app .tasks-list,
  body.mobile-app .client-week-days,
  body.mobile-app .client-week-day,
  body.mobile-app .client-week-picker,
  body.mobile-app .client-week-picker-list{
    width:100%;
    max-width:100%;
    min-width:0;
    margin-left:0;
    margin-right:0;
    overflow-x:hidden;
  }
  body.mobile-app.cabinet-active #sync-panel{
    align-self:stretch;
    padding:12px;
    border-radius:18px;
  }
  body.mobile-app .sync-title,
  body.mobile-app .section-heading,
  body.mobile-app .client-week-picker-head{
    min-width:0;
  }
  body.mobile-app .workspace-form{
    padding:12px;
    border-radius:17px;
  }
  body.mobile-app .workspace-form input:not([type=file]),
  body.mobile-app .workspace-form select,
  body.mobile-app .workspace-form textarea,
  body.mobile-app .workspace-form button,
  body.mobile-app .client-week-day input,
  body.mobile-app .client-week-day button,
  body.mobile-app .client-week-picker input,
  body.mobile-app .client-week-picker button{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  body.mobile-app .client-week-day{
    display:grid;
    gap:10px;
    padding:12px;
    border-radius:18px;
    box-shadow:none;
  }
  body.mobile-app .client-week-day.active{
    box-shadow:inset 0 0 0 1px rgba(139,115,255,.22);
  }
  body.mobile-app .client-week-day span{
    min-width:0;
    font-size:17px;
    line-height:1.25;
    overflow-wrap:anywhere;
  }
  body.mobile-app .client-week-day .client-week-time{
    margin-top:0;
    height:50px;
  }
  body.mobile-app .client-week-pick{
    margin-top:0;
    min-height:52px;
  }
  body.mobile-app .client-week-summary{
    margin-top:0;
    overflow-wrap:anywhere;
  }
  body.mobile-app .client-week-picker{
    margin:10px 0 14px;
    padding:12px;
  }
  body.mobile-app .client-week-choice{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
  }
  body.mobile-app .client-week-choice b,
  body.mobile-app .client-week-choice small,
  body.mobile-app .item-copy strong,
  body.mobile-app .item-copy small{
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  body.mobile-app .material-item,
  body.mobile-app .task-item{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
  }
  body.mobile-app .target-options label{
    min-width:0;
    overflow-wrap:anywhere;
  }
  body.mobile-app .count-pill{
    min-width:54px;
    flex:0 0 auto;
  }
  body.mobile-app .file-picker input[type=file]{
    position:absolute;
    width:1px!important;
    height:1px!important;
    min-width:0!important;
    max-width:1px!important;
    margin:0!important;
    padding:0!important;
    opacity:0;
    pointer-events:none;
  }
}

@media(max-width:520px){
  .cabinet-card,
  .cabinet-card > *,
  .cabinet-card form,
  .cabinet-card label,
  .cabinet-card input,
  .cabinet-card button,
  .cabinet-card .secondary,
  .connection-guide,
  .connection-guide *{
    max-width:100%;
    min-width:0;
  }
  .cabinet-card input,
  .cabinet-card button,
  .cabinet-card .secondary{
    width:100%;
  }
  .cabinet-card p,
  .cabinet-card strong,
  .cabinet-card small,
  .cabinet-card li,
  .cabinet-card .help,
  .connection-guide,
  .connection-guide a{
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}

/* Final phone anti-drift guard. It intentionally does not depend on JS classes:
   every phone browser/WebView must stay inside the visible screen. */
@media(max-width:760px){
  html,
  body{
    width:100%;
    max-width:100vw;
    min-width:0;
    overflow-x:hidden!important;
  }
  header,
  main,
  footer{
    width:100%!important;
    max-width:100vw!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow-x:hidden!important;
  }
  header{
    min-height:64px;
    padding:10px 14px!important;
    border-left:0;
    border-right:0;
    border-radius:0;
  }
  header nav{
    display:none!important;
  }
  main{
    display:block!important;
    min-height:auto!important;
    padding:22px 12px 32px!important;
  }
  .brand,
  .brand span,
  .intro,
  .cabinet-card,
  #dashboard-view,
  #sync-panel,
  .sync-panel,
  .workspace-section,
  .workspace-form,
  .materials-list,
  .tasks-list,
  .client-week-days,
  .client-week-day,
  .client-week-picker,
  .client-week-picker-list{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow-x:hidden!important;
  }
  .brand{
    width:auto!important;
  }
  .intro{
    padding:8px 0 18px!important;
    text-align:center;
  }
  .intro h1,
  .intro>p:not(.eyebrow){
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow-wrap:anywhere!important;
  }
  .cabinet-card{
    padding:12px!important;
    border-radius:18px!important;
  }
  .cabinet-card *,
  .connection-guide,
  .connection-guide *,
  .help{
    max-width:100%!important;
    min-width:0!important;
    white-space:normal;
    overflow-wrap:anywhere!important;
    word-break:break-word;
  }
  .cabinet-card form,
  .cabinet-card label,
  .cabinet-card input,
  .cabinet-card button,
  .cabinet-card .secondary,
  .workspace-form input:not([type=file]),
  .workspace-form select,
  .workspace-form textarea,
  .workspace-form button{
    width:100%!important;
    max-width:100%!important;
  }
}


