*{box-sizing:border-box}html,body{min-height:100%;}body.turningline-desktop-theme{overflow:hidden;background:#050817}.tl-app{--bg:#060a18;--bg2:#0b1126;--panel:#111b35;--panel2:#162344;--line:rgba(255,255,255,.105);--line2:rgba(255,255,255,.18);--text:#f3f7ff;--muted:#95a4c7;--muted2:#657397;--cyan:#34d9ff;--violet:#8d5cff;--purple:#b24cff;--gold:#f3c76a;--green:#31e3a5;--red:#ff6b7a;--radius:18px;min-height:100vh;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:radial-gradient(circle at 10% 10%,rgba(59,130,246,.28),transparent 35%),radial-gradient(circle at 80% 15%,rgba(139,92,246,.32),transparent 34%),linear-gradient(135deg,#050817 0%,#09122a 42%,#0c1026 100%);position:relative;overflow:hidden}.tl-app:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.14));pointer-events:none}.tl-ambient{position:absolute;filter:blur(80px);border-radius:999px;opacity:.28;pointer-events:none}.tl-ambient-a{width:430px;height:430px;background:#118cff;left:-150px;top:-100px}.tl-ambient-b{width:380px;height:380px;background:#8c2dff;right:-120px;top:10%}.tl-ambient-c{width:340px;height:340px;background:#24e0c1;left:45%;bottom:-160px}.tl-topbar,.tl-workspace,.tl-statusbar{position:relative;z-index:1}.tl-topbar{height:72px;margin:14px 14px 0;border:1px solid var(--line);border-radius:18px;background:rgba(8,15,34,.78);backdrop-filter:blur(16px);display:flex;align-items:center;gap:18px;padding:0 18px;box-shadow:0 22px 70px rgba(0,0,0,.35)}.tl-mobile-menu{display:none}.tl-brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);min-width:258px}.tl-brand-mark{color:var(--cyan);display:grid;place-items:center}.tl-brand strong{font-size:24px;letter-spacing:1px;line-height:1}.tl-brand small{display:block;color:#a9b7dc;font-size:11px;margin-top:3px;letter-spacing:.2px}.tl-command{height:44px;flex:1;max-width:840px;border:1px solid rgba(139,92,246,.5);background:rgba(12,20,45,.9);border-radius:16px;display:flex;align-items:center;gap:10px;padding:0 10px 0 16px;box-shadow:0 0 0 4px rgba(139,92,246,.07)}.tl-command-icon{font-size:20px;color:#bfc8e6}.tl-command input{flex:1;background:transparent;border:0;outline:0;color:var(--text);font-size:14px}.tl-command input::placeholder{color:#7d8cb2}.tl-command button,.tl-home-search-row button,.tl-primary-action,.tl-small-btn{border:0;border-radius:12px;background:linear-gradient(135deg,var(--purple),#5a6dff);color:white;font-weight:800;cursor:pointer;transition:.2s;box-shadow:0 12px 30px rgba(104,84,255,.25)}.tl-command button{width:32px;height:32px}.tl-command button:hover,.tl-home-search-row button:hover,.tl-primary-action:hover,.tl-small-btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.tl-top-actions{display:flex;align-items:center;gap:10px}.tl-pill{border:1px solid var(--line);border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.055);color:#cbd7f7;font-size:12px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.tl-pill-gold{color:#191304;background:linear-gradient(135deg,#ffe295,#c99031);border:0;font-size:10px;text-transform:uppercase;font-weight:900}.tl-signin{font-size:12px;color:#cbd7f7;text-decoration:none}.tl-avatar{width:32px;height:32px;border-radius:50%;border:1px solid rgba(52,217,255,.45);background:rgba(52,217,255,.08);color:#72ecff}.tl-workspace{display:grid;grid-template-columns:248px minmax(0,1fr) 292px;gap:14px;height:calc(100vh - 154px);padding:14px}.tl-sidebar,.tl-main,.tl-guide{border:1px solid var(--line);border-radius:18px;background:rgba(9,18,42,.78);backdrop-filter:blur(18px);box-shadow:0 24px 80px rgba(0,0,0,.28);overflow:hidden}.tl-side-nav{padding:14px;display:flex;flex-direction:column;gap:6px;max-height:calc(100% - 120px);overflow:auto}.tl-side-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;border-radius:12px;padding:11px 12px;color:#d9e4ff;background:transparent;cursor:pointer;font-size:13px}.tl-side-item span{width:20px;text-align:center}.tl-side-item:hover,.tl-side-item.tl-active{background:linear-gradient(90deg,rgba(139,92,246,.32),rgba(52,217,255,.08));color:white}.tl-side-footer{margin:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.045)}.tl-side-footer strong{display:block;font-size:13px}.tl-side-footer p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.tl-main{position:relative;overflow:auto}.tl-page{display:none;min-height:100%;padding:18px}.tl-page.tl-active{display:block}.tl-home-hero{display:grid;grid-template-columns:1fr 260px;gap:20px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,rgba(25,37,75,.92),rgba(14,24,52,.82));padding:28px;min-height:190px;overflow:hidden;position:relative}.tl-kicker{margin:0 0 10px;color:#69ebff;font-weight:800;font-size:12px;letter-spacing:.14em;text-transform:uppercase}.tl-home-hero h1,.tl-module h1{margin:0;font-size:clamp(34px,4.3vw,64px);line-height:.96;letter-spacing:-2px}.tl-home-copy{max-width:720px;color:#b7c5e8;font-size:16px;line-height:1.65;margin:16px 0 0}.tl-home-orbit{position:relative;min-height:150px}.tl-home-orbit span,.tl-home-orbit b,.tl-home-orbit i{position:absolute;inset:18px;border-radius:50%;border:1px solid rgba(52,217,255,.28);transform:rotate(-20deg)}.tl-home-orbit b{inset:42px;background:radial-gradient(circle,#82fff2,rgba(130,255,242,.08) 44%,transparent 60%);box-shadow:0 0 70px rgba(52,217,255,.35);border:0}.tl-home-orbit i{inset:68px;background:linear-gradient(135deg,#af5cff,#32d8ff);border:0;box-shadow:0 0 42px rgba(160,92,255,.8)}.tl-home-search-card{margin:14px 0;border:1px solid rgba(139,92,246,.45);border-radius:18px;background:rgba(13,22,50,.78);padding:16px}.tl-home-search-card label{display:block;color:#c9d4f0;font-weight:800;margin-bottom:9px}.tl-home-search-row{display:flex;gap:10px}.tl-home-search-row input{flex:1;border:1px solid var(--line);border-radius:14px;background:#0b142f;color:white;padding:14px}.tl-home-search-row button{padding:0 22px}.tl-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:18px 0 12px}.tl-section-head h2{margin:0;font-size:18px}.tl-section-head span{color:var(--muted);font-size:13px}.tl-task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tl-task-card{min-height:142px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,rgba(16,28,61,.95),rgba(11,18,41,.85));padding:16px;text-align:left;color:white;cursor:pointer;transition:.2s;display:flex;flex-direction:column;align-items:flex-start;gap:8px;position:relative;overflow:hidden}.tl-task-card:before{content:"";position:absolute;right:-22px;top:-22px;width:80px;height:80px;border-radius:50%;background:rgba(139,92,246,.12)}.tl-task-card:hover{transform:translateY(-3px);border-color:rgba(52,217,255,.42);box-shadow:0 18px 48px rgba(0,0,0,.24)}.tl-task-icon{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,rgba(139,92,246,.9),rgba(52,217,255,.65));display:grid;place-items:center;font-size:19px}.tl-task-title{font-weight:900;font-size:15px}.tl-task-desc{color:#aab8db;font-size:12px;line-height:1.4;min-height:34px}.tl-task-status{margin-top:auto;font-size:10px;font-weight:900;text-transform:uppercase;color:#07101d;background:#36e7ae;border-radius:999px;padding:4px 8px}.tl-status-free-to-start,.tl-status-guided-free{background:#f3c76a}.tl-status-coming-soon{background:#58627d;color:#d6def5}.tl-guide{padding:14px;display:flex;flex-direction:column;gap:14px}.tl-guide-inner{min-height:0;flex:1;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,rgba(20,32,68,.7),rgba(9,16,36,.52));padding:18px;position:relative;overflow:hidden}.tl-guide h2{margin:0 0 16px;font-size:18px}.tl-guide ol{counter-reset:item;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:15px}.tl-guide li{position:relative;padding-left:34px;color:#d6e1ff;font-size:13px;line-height:1.45}.tl-guide li:before{counter-increment:item;content:counter(item);position:absolute;left:0;top:-1px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(52,217,255,.1);border:1px solid rgba(52,217,255,.35);color:#69ebff;font-weight:900;font-size:11px}.tl-guide-art{height:110px;margin:28px 0 12px;border-radius:20px;display:grid;place-items:center;font-size:64px;color:#b24cff;background:radial-gradient(circle,rgba(178,76,255,.32),transparent 62%)}#tl-guide-note{font-size:12px;color:#8fa0c6;line-height:1.5;margin:0}.tl-statusbar{height:54px;margin:0 14px 14px;border:1px solid var(--line);border-radius:16px;background:rgba(8,15,34,.78);display:flex;align-items:center;justify-content:space-around;text-transform:uppercase;font-size:12px;letter-spacing:.06em;color:#d5def8}.tl-module{min-height:100%;display:flex;flex-direction:column;gap:14px}.tl-module-title-row{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,rgba(20,33,70,.94),rgba(11,18,41,.86));padding:22px}.tl-module-title-row h1{font-size:32px}.tl-module-title-row p:not(.tl-kicker){color:#aebce0;line-height:1.55;margin:8px 0 0}.tl-module-badge{align-self:start;border-radius:999px;background:#223154;color:#b9c7ea;padding:8px 11px;font-size:12px;font-weight:900}.tl-two-col{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px}.tl-three-col{display:grid;grid-template-columns:260px minmax(0,1fr) 280px;gap:14px}.tl-card,.tl-result,.tl-control-panel{border:1px solid var(--line);border-radius:18px;background:rgba(10,19,43,.82);padding:18px}.tl-card h2,.tl-result h2,.tl-control-panel h2{margin:0 0 12px;font-size:18px}.tl-field{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}.tl-field label{font-size:12px;font-weight:900;color:#c4d0ef}.tl-input,.tl-textarea,.tl-select{width:100%;border:1px solid var(--line);border-radius:12px;background:#081229;color:white;padding:12px;font:inherit;outline:0}.tl-textarea{min-height:110px;resize:vertical}.tl-input:focus,.tl-textarea:focus,.tl-select:focus{border-color:rgba(52,217,255,.5);box-shadow:0 0 0 3px rgba(52,217,255,.08)}.tl-primary-action{height:44px;padding:0 16px}.tl-small-btn{min-height:38px;padding:0 12px}.tl-muted{color:var(--muted);font-size:13px;line-height:1.5}.tl-chat-box{border:1px solid var(--line);border-radius:18px;background:rgba(7,13,30,.75);min-height:410px;display:flex;flex-direction:column;overflow:hidden}.tl-chat-messages{flex:1;padding:18px;display:flex;flex-direction:column;gap:12px;overflow:auto;max-height:52vh}.tl-msg{max-width:82%;border:1px solid var(--line);border-radius:16px;padding:13px 14px;line-height:1.55;color:#dfe8ff;background:#101d3c}.tl-msg-user{align-self:flex-end;background:linear-gradient(135deg,#674cff,#303ea7)}.tl-msg-ai{align-self:flex-start}.tl-chat-input{border-top:1px solid var(--line);display:flex;gap:10px;padding:12px}.tl-chat-input textarea{flex:1;min-height:48px}.tl-quick-row{display:flex;flex-wrap:wrap;gap:8px}.tl-chip{border:1px solid var(--line);background:rgba(255,255,255,.055);border-radius:999px;color:#d6e1ff;padding:8px 10px;cursor:pointer;font-size:12px}.tl-chip:hover{border-color:rgba(52,217,255,.45)}.tl-result-box{min-height:260px;white-space:pre-wrap;line-height:1.6;color:#dbe5ff;background:#081229;border:1px solid var(--line);border-radius:14px;padding:16px;overflow:auto}.tl-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.tl-tab{border:1px solid var(--line);background:#0b1530;color:#d6e1ff;border-radius:999px;padding:8px 12px;font-weight:800;font-size:12px}.tl-tab.tl-active{background:linear-gradient(135deg,#b24cff,#5b69ff);border-color:transparent}.tl-style-grid,.tl-mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.tl-style-btn{border:1px solid var(--line);border-radius:12px;background:#0b1530;color:#d8e4ff;padding:10px 8px;cursor:pointer;text-align:center;font-size:12px}.tl-style-btn.tl-active{border-color:#34d9ff;background:rgba(52,217,255,.12)}.tl-image-preview{min-height:400px;border:1px solid var(--line);border-radius:18px;background:radial-gradient(circle at 50% 45%,rgba(52,217,255,.18),transparent 34%),linear-gradient(135deg,#101b39,#091126);display:grid;place-items:center;overflow:hidden;position:relative}.tl-image-preview img{width:100%;height:100%;object-fit:cover}.tl-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.tl-gallery img{width:100%;aspect-ratio:1.25;border-radius:12px;object-fit:cover;border:1px solid var(--line)}.tl-photo-stage{min-height:420px;border:1px solid var(--line);border-radius:18px;background:#081229;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px}.tl-photo-half{border-radius:14px;background:linear-gradient(135deg,#152144,#0b1228);display:grid;place-items:center;color:#8fa0c6;overflow:hidden;position:relative}.tl-photo-half strong{position:absolute;top:10px;left:10px;border-radius:999px;background:rgba(0,0,0,.45);padding:4px 9px;font-size:11px}.tl-photo-half img{width:100%;height:100%;object-fit:cover}.tl-video-preview{min-height:330px;border-radius:18px;border:1px solid var(--line);background:linear-gradient(135deg,#07142e,#132a52);position:relative;display:grid;place-items:center;overflow:hidden}.tl-video-preview:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 40%,rgba(52,217,255,.28),transparent 28%),linear-gradient(120deg,rgba(255,255,255,.05),transparent 40%)}.tl-play{width:70px;height:70px;border-radius:50%;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;font-size:28px;z-index:1}.tl-chart{height:260px;border:1px solid rgba(49,227,165,.2);border-radius:16px;background:linear-gradient(180deg,rgba(49,227,165,.08),rgba(49,227,165,.015));position:relative;overflow:hidden}.tl-chart svg{width:100%;height:100%}.tl-doc-drop{min-height:230px;border:1px dashed rgba(52,217,255,.4);border-radius:18px;background:rgba(52,217,255,.045);display:grid;place-items:center;text-align:center;color:#cbd7f7;padding:20px}.tl-business-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tl-business-tool{border:1px solid var(--line);border-radius:16px;background:rgba(16,28,61,.9);padding:16px;text-align:left;color:white;cursor:pointer}.tl-business-tool:hover{border-color:#34d9ff}.tl-business-tool span{font-size:22px}.tl-business-tool strong{display:block;margin:8px 0 4px}.tl-business-tool em{font-style:normal;color:#9faed2;font-size:12px;line-height:1.4}.tl-library-toolbar{display:flex;gap:10px;margin:12px 0 16px;align-items:center}.tl-library-toolbar input{flex:1;border:1px solid var(--line);border-radius:14px;background:#081229;color:white;padding:12px}.tl-library-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tl-library-row{display:grid;grid-template-columns:34px 1fr auto;grid-template-areas:"icon title status" "icon desc status";gap:2px 10px;text-align:left;align-items:center;border:1px solid var(--line);border-radius:14px;background:rgba(16,28,61,.86);padding:12px;color:white;cursor:pointer}.tl-library-row span{grid-area:icon;font-size:22px}.tl-library-row strong{grid-area:title}.tl-library-row em{grid-area:desc;color:#9faed2;font-style:normal;font-size:12px}.tl-library-row b{grid-area:status;color:#31e3a5;font-size:12px}.tl-empty-state{grid-column:1/-1;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.04);padding:28px}.tl-loading{opacity:.7;animation:tlPulse 1.2s infinite}@keyframes tlPulse{50%{opacity:.35}}
.tl-wp-page{max-width:960px;margin:80px auto;padding:32px;background:white;color:#111;border-radius:20px}.tl-wp-page a{color:#125bc5}
@media(max-width:1180px){.tl-workspace{grid-template-columns:220px minmax(0,1fr)}.tl-guide{display:none}.tl-task-grid{grid-template-columns:repeat(3,1fr)}.tl-two-col,.tl-three-col{grid-template-columns:1fr}.tl-top-actions{display:none}.tl-brand{min-width:auto}.tl-brand small{display:none}}
@media(max-width:780px){body.turningline-desktop-theme{overflow:auto}.tl-topbar{height:auto;min-height:70px;flex-wrap:wrap}.tl-mobile-menu{display:block;border:1px solid var(--line);background:rgba(255,255,255,.06);color:white;border-radius:12px;width:40px;height:40px}.tl-brand strong{font-size:18px}.tl-command{order:3;flex-basis:100%;max-width:none;margin-bottom:12px}.tl-workspace{grid-template-columns:1fr;height:auto;min-height:calc(100vh - 150px)}.tl-sidebar{position:fixed;left:14px;top:86px;bottom:14px;width:260px;z-index:5;transform:translateX(-112%);transition:.24s}.tl-sidebar.tl-open{transform:translateX(0)}.tl-home-hero{grid-template-columns:1fr}.tl-home-orbit{display:none}.tl-task-grid{grid-template-columns:1fr 1fr}.tl-statusbar{height:auto;flex-wrap:wrap;gap:10px;padding:14px}.tl-home-search-row,.tl-chat-input{flex-direction:column}.tl-business-grid,.tl-library-list{grid-template-columns:1fr}.tl-photo-stage{grid-template-columns:1fr}.tl-page{padding:12px}.tl-home-hero h1,.tl-module h1{font-size:34px}}@media(max-width:520px){.tl-task-grid{grid-template-columns:1fr}.tl-topbar{margin:8px}.tl-workspace{padding:8px}.tl-statusbar{margin:0 8px 8px}.tl-style-grid{grid-template-columns:repeat(2,1fr)}}


/* v1.0.2 desktop fit + WordPress admin-bar layout corrections */
body.turningline-desktop-theme{overflow:hidden;}
.admin-bar .tl-app{min-height:calc(100vh - 32px);}
.tl-app{width:100%;max-width:100vw;overflow:hidden;}
.tl-topbar{height:64px;margin:10px 10px 0;border-radius:16px;padding:0 14px;gap:14px;}
.tl-brand{min-width:220px;}
.tl-brand strong{font-size:21px;}
.tl-brand small{font-size:10px;}
.tl-command{height:42px;min-width:0;max-width:none;}
.tl-workspace{grid-template-columns:220px minmax(0,1fr) 270px;gap:10px;height:calc(100vh - 138px);padding:10px;min-width:0;}
.admin-bar .tl-workspace{height:calc(100vh - 170px);}
.tl-sidebar,.tl-main,.tl-guide{min-width:0;}
.tl-sidebar{overflow:hidden;}
.tl-side-nav{padding:12px;gap:4px;max-height:calc(100% - 112px);}
.tl-side-item{font-size:12.5px;padding:9px 10px;gap:9px;white-space:nowrap;}
.tl-side-item span{width:18px;}
.tl-side-footer{margin:10px;padding:12px;}
.tl-side-footer p{font-size:11.5px;}
.tl-main{overflow-x:hidden;}
.tl-page{padding:14px;}
.tl-home-hero{grid-template-columns:minmax(0,1fr) 210px;gap:16px;padding:22px 24px;min-height:168px;}
.tl-home-hero>*{min-width:0;}
.tl-home-hero h1,.tl-module h1{font-size:clamp(34px,3.55vw,56px);letter-spacing:-1.6px;}
.tl-home-copy{font-size:15px;line-height:1.55;max-width:760px;}
.tl-home-orbit{min-height:135px;}
.tl-home-orbit span{inset:8px;}
.tl-home-orbit b{inset:32px;}
.tl-home-orbit i{inset:58px;}
.tl-home-search-card{margin:10px 0 14px;padding:14px;}
.tl-home-search-row{min-width:0;}
.tl-home-search-row input{min-width:0;}
.tl-home-search-row button{flex:0 0 auto;min-width:92px;white-space:nowrap;}
.tl-section-head{margin:14px 0 10px;}
.tl-section-head span{font-size:12px;white-space:nowrap;}
.tl-task-grid{grid-template-columns:repeat(auto-fit,minmax(228px,1fr));gap:10px;}
.tl-task-card{min-width:0;min-height:134px;padding:14px;}
.tl-task-title{font-size:14.5px;}
.tl-task-desc{font-size:12px;line-height:1.35;min-height:auto;}
.tl-task-status{font-size:9.5px;}
.tl-guide{padding:10px;}
.tl-guide-inner{padding:16px;}
.tl-guide-art{height:96px;margin:22px 0 10px;}
.tl-statusbar{height:46px;margin:0 10px 10px;border-radius:14px;font-size:10.5px;}
.tl-two-col{grid-template-columns:minmax(0,1fr) minmax(300px,340px);}
.tl-three-col{grid-template-columns:230px minmax(0,1fr) 250px;}
.tl-module-title-row{padding:18px;}
.tl-module-title-row h1{font-size:30px;}
.tl-card,.tl-result,.tl-control-panel{padding:16px;}
.tl-chat-box{min-height:360px;}
.tl-image-preview,.tl-photo-stage{min-height:360px;}
.tl-video-preview{min-height:300px;}
@media(max-width:1500px){
  .tl-workspace{grid-template-columns:204px minmax(0,1fr) 248px;}
  .tl-brand{min-width:200px;}
  .tl-home-hero{grid-template-columns:minmax(0,1fr) 170px;}
  .tl-home-orbit{min-height:118px;}
  .tl-task-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));}
  .tl-guide li{font-size:12px;}
}
@media(max-width:1320px){
  .tl-workspace{grid-template-columns:204px minmax(0,1fr);}
  .tl-guide{display:none;}
}
@media(max-width:782px){
  .admin-bar .tl-app{min-height:calc(100vh - 46px);}
  .admin-bar .tl-workspace{height:auto;}
}


/* v1.0.3 viewport-safe desktop shell refinements
   Keeps the approved desktop-app look while preventing right-side clipping,
   squeezed buttons, hidden task cards, and admin-bar viewport compression. */
body.turningline-desktop-theme{overflow:auto;background:#050817;}
.tl-app{
  min-height:100vh;
  height:auto;
  overflow-x:hidden;
  overflow-y:auto;
  padding:10px 0 12px;
}
.admin-bar .tl-app{min-height:calc(100vh - 32px);}
.tl-topbar,.tl-workspace,.tl-statusbar{
  width:min(1760px, calc(100vw - 20px));
  margin-left:auto;
  margin-right:auto;
}
.tl-topbar{
  margin-top:0;
  height:68px;
  padding:0 18px;
  border-radius:18px;
  background:rgba(8,15,34,.88);
}
.tl-brand{min-width:238px;overflow:hidden;}
.tl-brand-mark svg{width:38px;height:38px;}
.tl-command{
  min-width:280px;
  max-width:none;
  flex:1 1 auto;
}
.tl-top-actions{flex:0 0 auto;}
.tl-workspace{
  display:grid;
  grid-template-columns:228px minmax(0,1fr) 282px;
  gap:14px;
  height:auto;
  min-height:calc(100vh - 156px);
  padding:14px 0 12px;
}
.admin-bar .tl-workspace{
  height:auto;
  min-height:calc(100vh - 188px);
}
.tl-sidebar,.tl-main,.tl-guide{align-self:stretch;}
.tl-sidebar{min-height:640px;}
.tl-main{
  overflow:visible;
  min-height:640px;
}
.tl-guide{min-height:640px;}
.tl-page{padding:18px;}
.tl-home-hero{
  grid-template-columns:minmax(0,1fr) 220px;
  padding:26px;
  min-height:190px;
}
.tl-home-hero h1,.tl-module h1{
  font-size:clamp(40px,3.85vw,66px);
  line-height:.98;
}
.tl-home-copy{max-width:820px;}
.tl-home-search-card{margin:14px 0 16px;}
.tl-home-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 112px;
  gap:10px;
}
.tl-home-search-row button{
  width:112px;
  min-width:112px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.tl-section-head{align-items:center;}
.tl-task-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.tl-task-card{min-height:150px;}
.tl-task-title{font-size:15px;}
.tl-task-desc{font-size:12.25px;line-height:1.42;}
.tl-side-item{font-size:13px;overflow:hidden;text-overflow:ellipsis;}
.tl-side-footer p{font-size:12px;}
.tl-statusbar{
  height:48px;
  margin-top:0;
  margin-bottom:0;
  position:relative;
}
.tl-two-col{grid-template-columns:minmax(0,1fr) 350px;}
.tl-three-col{grid-template-columns:250px minmax(0,1fr) 270px;}

@media(max-width:1700px){
  .tl-topbar,.tl-workspace,.tl-statusbar{width:min(1580px, calc(100vw - 18px));}
  .tl-workspace{grid-template-columns:218px minmax(0,1fr) 260px;gap:12px;}
  .tl-home-hero{grid-template-columns:minmax(0,1fr) 180px;}
  .tl-home-hero h1,.tl-module h1{font-size:clamp(36px,3.65vw,58px);}
  .tl-task-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:1500px){
  .tl-topbar,.tl-workspace,.tl-statusbar{width:min(1360px, calc(100vw - 16px));}
  .tl-workspace{grid-template-columns:214px minmax(0,1fr);}
  .tl-guide{display:none;}
  .tl-task-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:1180px){
  .tl-workspace{grid-template-columns:200px minmax(0,1fr);}
  .tl-task-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .tl-home-hero{grid-template-columns:1fr;}
  .tl-home-orbit{display:none;}
}
@media(max-width:900px){
  .tl-workspace{grid-template-columns:1fr;height:auto;min-height:auto;}
  .tl-sidebar{min-height:auto;}
  .tl-main{min-height:auto;}
  .tl-topbar{height:auto;min-height:68px;}
  .tl-command{order:3;flex-basis:100%;margin-bottom:10px;min-width:0;}
  .tl-home-search-row{grid-template-columns:1fr;}
  .tl-home-search-row button{width:100%;min-width:0;height:44px;}
}
@media(max-width:620px){
  .tl-topbar,.tl-workspace,.tl-statusbar{width:calc(100vw - 14px);}
  .tl-task-grid{grid-template-columns:1fr;}
}


/* v1.0.4 mobile viewport correction
   Converts the desktop shell into a single-column mobile experience and
   removes all fixed desktop geometry that was pushing content off-screen. */
@media (max-width: 782px){
  html, body{
    width:100%;
    max-width:100%;
    overflow-x:hidden !important;
  }
  body.turningline-desktop-theme{
    overflow-x:hidden !important;
    overflow-y:auto !important;
    background:#050817;
  }
  .tl-app{
    width:100% !important;
    max-width:100vw !important;
    min-width:0 !important;
    min-height:100vh;
    height:auto !important;
    padding:8px 0 10px !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  .admin-bar .tl-app{
    min-height:calc(100vh - 46px);
  }
  .tl-app:before{
    background-size:34px 34px;
    opacity:.65;
  }
  .tl-ambient{
    filter:blur(66px);
    opacity:.22;
  }
  .tl-ambient-a{width:260px;height:260px;left:-120px;top:-80px;}
  .tl-ambient-b{width:260px;height:260px;right:-130px;top:80px;}
  .tl-ambient-c{width:240px;height:240px;left:30%;bottom:-140px;}

  .tl-topbar,
  .tl-workspace,
  .tl-statusbar{
    width:calc(100vw - 16px) !important;
    max-width:calc(100vw - 16px) !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .tl-topbar{
    margin-top:0 !important;
    height:auto !important;
    min-height:0 !important;
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr);
    gap:10px 12px;
    align-items:center;
    padding:12px !important;
    border-radius:16px !important;
  }
  .tl-mobile-menu{
    display:none !important;
  }
  .tl-brand{
    min-width:0 !important;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .tl-brand-mark svg{
    width:34px !important;
    height:34px !important;
    flex:0 0 auto;
  }
  .tl-brand strong{
    font-size:18px !important;
    letter-spacing:.5px;
    white-space:nowrap;
  }
  .tl-brand small{
    display:block !important;
    font-size:10px !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:210px;
  }
  .tl-command{
    grid-column:1 / -1;
    order:initial !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:46px;
    margin:0 !important;
    padding:7px 8px 7px 12px;
    border-radius:14px;
  }
  .tl-command input{
    min-width:0;
    font-size:13px;
  }
  .tl-command button{
    width:38px;
    height:34px;
    flex:0 0 38px;
  }
  .tl-top-actions{
    display:none !important;
  }

  .tl-workspace{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
    height:auto !important;
    min-height:0 !important;
    padding:10px 0 !important;
  }
  .admin-bar .tl-workspace{
    height:auto !important;
    min-height:0 !important;
  }
  .tl-sidebar{
    display:none !important;
  }
  .tl-main,
  .tl-guide{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;
    overflow:visible !important;
    align-self:auto !important;
    border-radius:16px !important;
  }
  .tl-main{
    order:1;
  }
  .tl-guide{
    order:2;
    padding:10px !important;
  }
  .tl-guide-inner{
    min-height:0 !important;
    padding:16px !important;
  }
  .tl-guide h2{
    font-size:17px;
    margin-bottom:12px;
  }
  .tl-guide ol{
    gap:10px;
  }
  .tl-guide li{
    font-size:12.5px;
  }
  .tl-guide-art{
    height:72px !important;
    margin:14px 0 10px !important;
    font-size:42px !important;
  }

  .tl-page{
    padding:10px !important;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .tl-home-hero{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:18px !important;
    border-radius:18px !important;
    overflow:hidden !important;
  }
  .tl-kicker{
    font-size:10.5px;
    letter-spacing:.11em;
    margin-bottom:9px;
  }
  .tl-home-hero h1,
  .tl-module h1{
    width:100%;
    max-width:100%;
    font-size:clamp(31px, 11vw, 44px) !important;
    line-height:1.02 !important;
    letter-spacing:-1.2px !important;
    overflow-wrap:break-word;
  }
  .tl-home-copy{
    font-size:14px !important;
    line-height:1.55 !important;
    margin-top:12px !important;
    max-width:100% !important;
  }
  .tl-home-orbit{
    display:none !important;
  }
  .tl-home-search-card{
    margin:10px 0 12px !important;
    padding:13px !important;
    border-radius:16px !important;
  }
  .tl-home-search-card label{
    font-size:13px;
  }
  .tl-home-search-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:8px !important;
  }
  .tl-home-search-row input{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:12px !important;
    font-size:13px;
  }
  .tl-home-search-row button{
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    padding:0 14px !important;
    border-radius:13px !important;
  }
  .tl-section-head{
    display:block !important;
    margin:14px 0 10px !important;
  }
  .tl-section-head h2{
    font-size:17px;
  }
  .tl-section-head span{
    display:block;
    margin-top:4px;
    white-space:normal !important;
    font-size:12px;
  }
  .tl-task-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
  }
  .tl-task-card{
    width:100%;
    max-width:100%;
    min-width:0 !important;
    min-height:128px !important;
    padding:14px !important;
    border-radius:15px !important;
  }
  .tl-task-icon{
    width:36px;
    height:36px;
    border-radius:11px;
  }
  .tl-task-title{
    font-size:15px !important;
  }
  .tl-task-desc{
    font-size:12px !important;
    line-height:1.4 !important;
  }

  .tl-module,
  .tl-module-title-row,
  .tl-two-col,
  .tl-three-col,
  .tl-card,
  .tl-result,
  .tl-control-panel,
  .tl-chat-box,
  .tl-image-preview,
  .tl-photo-stage,
  .tl-video-preview,
  .tl-doc-layout,
  .tl-stock-layout,
  .tl-business-grid,
  .tl-library-list{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .tl-module-title-row,
  .tl-two-col,
  .tl-three-col,
  .tl-doc-layout,
  .tl-stock-layout,
  .tl-business-grid,
  .tl-library-list{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
  }
  .tl-module-title-row{
    padding:16px !important;
    border-radius:16px !important;
  }
  .tl-module-badge{
    justify-self:start;
    margin-top:2px;
  }
  .tl-card,
  .tl-result,
  .tl-control-panel{
    padding:14px !important;
    border-radius:16px !important;
  }
  .tl-field input,
  .tl-field textarea,
  .tl-field select,
  .tl-library-toolbar input{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .tl-chat-box,
  .tl-image-preview,
  .tl-photo-stage,
  .tl-video-preview{
    min-height:260px !important;
  }
  .tl-style-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .tl-video-preview video,
  .tl-image-preview img,
  .tl-photo-stage img{
    max-width:100% !important;
    height:auto !important;
  }
  .tl-library-row{
    grid-template-columns:30px minmax(0,1fr) auto;
  }
  .tl-library-row strong,
  .tl-library-row em{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .tl-statusbar{
    height:auto !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    padding:12px !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:8px !important;
    text-align:center;
    font-size:10.5px !important;
    line-height:1.35;
    border-radius:15px !important;
  }
}

@media (max-width: 380px){
  .tl-topbar,.tl-workspace,.tl-statusbar{
    width:calc(100vw - 10px) !important;
    max-width:calc(100vw - 10px) !important;
  }
  .tl-topbar{padding:10px !important;}
  .tl-page{padding:8px !important;}
  .tl-home-hero{padding:15px !important;}
  .tl-home-hero h1,.tl-module h1{font-size:31px !important;}
}


/* v1.0.6 emergency rollback from v1.0.5:
   Restore v1.0.4 shell behavior and remove the desktop fixed-height containment
   that hid active module content. Minimal active-panel alignment only. */
@media (min-width: 783px){
  body.turningline-desktop-theme{
    overflow:auto !important;
  }
  .tl-app{
    height:auto !important;
    min-height:100vh !important;
    overflow-x:hidden !important;
    overflow-y:visible !important;
  }
  .tl-workspace{
    height:auto !important;
    min-height:calc(100vh - 156px) !important;
    overflow:visible !important;
  }
  .admin-bar .tl-workspace{
    height:auto !important;
    min-height:calc(100vh - 188px) !important;
  }
  .tl-main{
    overflow:visible !important;
    min-height:640px !important;
  }
  .tl-page{
    min-height:auto !important;
    overflow:visible !important;
  }
  .tl-page.tl-active{
    display:block !important;
  }
  .tl-page:not(.tl-active){
    display:none !important;
  }
}

/* v1.0.9: guide/sidebar hardening */
.tl-guide .tldocs-guide-injected li{padding-left:0;}
.tl-guide .tldocs-guide-injected li:before{display:none!important;content:none!important;}
.tl-guide[data-active-module] > :not(.tl-guide-inner):not(.tl-ai-guide-inner):not([data-tl-guide-inner]):not(.tl-deal-card){display:none!important;}

/* v1.0.13: Real tool URLs use anchors styled like the original app buttons. */
a.tl-side-item,
a.tl-task-card,
a.tl-library-row{
  text-decoration:none;
  font:inherit;
}


/* v1.0.14: Higher-contrast form fields across the TurningLine app.
   Keeps the dark premium UI, but makes text boxes, search fields, textareas,
   and dropdowns visibly distinct from the page/card background. */
.tl-app :where(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]), textarea, select),
.tl-app .tl-input,
.tl-app .tl-textarea,
.tl-app .tl-select,
.tl-app .tl-result-box,
.tl-app .tl-command input,
.tl-app .tl-home-search-row input,
.tl-app .tl-library-toolbar input{
  background:#132044 !important;
  border:1px solid rgba(130,165,255,.42) !important;
  color:#f6f8ff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035), 0 0 0 1px rgba(255,255,255,.015) !important;
}

.tl-app :where(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]), textarea)::placeholder,
.tl-app .tl-input::placeholder,
.tl-app .tl-textarea::placeholder,
.tl-app .tl-command input::placeholder,
.tl-app .tl-home-search-row input::placeholder,
.tl-app .tl-library-toolbar input::placeholder{
  color:#b9c7ea !important;
  opacity:1 !important;
}

.tl-app :where(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]), textarea, select):focus,
.tl-app .tl-input:focus,
.tl-app .tl-textarea:focus,
.tl-app .tl-select:focus,
.tl-app .tl-command input:focus,
.tl-app .tl-home-search-row input:focus,
.tl-app .tl-library-toolbar input:focus{
  background:#172957 !important;
  border-color:rgba(83,243,255,.9) !important;
  color:#ffffff !important;
  outline:0 !important;
  box-shadow:0 0 0 4px rgba(83,243,255,.12), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.tl-app select,
.tl-app .tl-select{
  color-scheme:dark;
}

/* Featured search fields are slightly brighter because they are primary actions. */
.tl-app .tl-home-search-row input,
.tl-app .tl-search-input-row input,
.tl-app .tl-command{
  background:#172957 !important;
  border-color:rgba(130,165,255,.50) !important;
}

.tl-app .tl-home-search-row input:focus,
.tl-app .tl-search-input-row input:focus{
  background:#1b3065 !important;
}

/* v1.0.15 (cleaned): mobile menu button :active, topbar, hero, search, cards.
   Drawer/sidebar/side-item rules removed — now owned by v1.0.25. */
@media (max-width: 782px){
  .tl-mobile-menu:active{
    transform:translateY(1px) scale(.99);
  }

  .tl-topbar{
    position:sticky !important;
    top:0 !important;
    z-index:100000 !important;
    padding-right:124px !important;
    background:rgba(8,15,34,.94) !important;
    box-shadow:0 14px 42px rgba(0,0,0,.34) !important;
  }
  .admin-bar .tl-topbar{top:0 !important;}

  .tl-home-hero{
    padding:22px !important;
    border-color:rgba(130,165,255,.20) !important;
    box-shadow:0 18px 50px rgba(0,0,0,.26) !important;
  }
  .tl-home-hero h1,
  .tl-module h1{
    font-size:clamp(35px, 11.8vw, 50px) !important;
    line-height:1.03 !important;
    letter-spacing:-1.35px !important;
  }
  .tl-home-copy{
    font-size:15px !important;
  }
  .tl-home-search-card{
    padding:16px !important;
    border-color:rgba(178,76,255,.68) !important;
    box-shadow:0 16px 44px rgba(0,0,0,.22), 0 0 0 3px rgba(139,92,246,.08) !important;
  }
  .tl-home-search-card label{
    font-size:15px !important;
  }
  .tl-home-search-row input{
    min-height:48px !important;
    font-size:14px !important;
  }
  .tl-home-search-row button{
    min-height:50px !important;
    font-size:16px !important;
    font-weight:950 !important;
    box-shadow:0 16px 36px rgba(104,84,255,.38) !important;
  }

  .tl-section-head h2{
    font-size:20px !important;
  }
  .tl-section-head span{
    font-size:13px !important;
  }
  .tl-task-grid{
    gap:12px !important;
  }
  .tl-task-card:active{
    transform:translateY(1px) scale(.995) !important;
  }
  .tl-task-status{
    position:absolute;
    left:18px;
    bottom:16px;
    font-size:10.5px !important;
    padding:5px 10px !important;
  }
}

@media (max-width: 380px){
  .tl-mobile-menu{
    right:10px !important;
    top:10px !important;
    min-width:92px !important;
    height:42px !important;
    padding:0 12px !important;
    font-size:18px !important;
  }
  .tl-mobile-menu::after{font-size:12px;}
  .tl-topbar{padding-right:108px !important;}
  .tl-home-hero h1,.tl-module h1{font-size:34px !important;}
  .tl-task-title{font-size:17px !important;}
  .tl-task-desc{font-size:13px !important;}
}


/* v1.0.17 (cleaned): mobile Menu/Close button + task-card mobile styling.
   Drawer/scrim/sidebar/side-item rules removed — now owned by v1.0.25-27. */
@media (max-width: 900px){
  .tl-mobile-menu{
    display:inline-flex !important;
    position:fixed !important;
    right:10px !important;
    top:10px !important;
    z-index:2147483000 !important;
    min-width:104px !important;
    height:48px !important;
    padding:0 15px !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    border:1px solid rgba(255,255,255,.28) !important;
    border-radius:999px !important;
    background:linear-gradient(135deg,#b24cff,#5a6dff) !important;
    color:#fff !important;
    font-size:21px !important;
    font-weight:950 !important;
    line-height:1 !important;
    box-shadow:0 16px 46px rgba(92,72,255,.55),0 0 0 5px rgba(139,92,246,.16) !important;
    text-shadow:0 1px 1px rgba(0,0,0,.25) !important;
  }
  .tl-mobile-menu::after{
    content:"Menu" !important;
    font-size:14px !important;
    font-weight:950 !important;
    text-transform:uppercase !important;
    letter-spacing:.06em !important;
  }
  body.tl-mobile-nav-open .tl-mobile-menu::after{content:"Close" !important;}

  .tl-task-card{
    min-height:142px !important;
    padding:19px !important;
    border-color:rgba(130,165,255,.24) !important;
    background:linear-gradient(135deg,rgba(19,32,68,.98),rgba(10,18,43,.96)) !important;
    box-shadow:0 12px 34px rgba(0,0,0,.24) !important;
  }
  .tl-task-icon{width:46px !important;height:46px !important;font-size:22px !important;border-radius:14px !important;}
  .tl-task-title{font-size:18px !important;line-height:1.18 !important;}
  .tl-task-desc{font-size:13.5px !important;line-height:1.45 !important;min-height:auto !important;color:#c4cfec !important;}
  .tl-task-card::after{
    content:"Tap to open →";
    margin-top:auto;
    color:#69ebff;
    font-size:12px;
    font-weight:900;
    letter-spacing:.02em;
  }
}


/* v1.0.18: replace header command box with slogan */
.tl-header-slogan{
  flex:1;
  min-height:44px;
  max-width:840px;
  border:1px solid rgba(139,92,246,.38);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(18,31,65,.86),rgba(13,21,48,.72));
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:2px;
  padding:8px 18px;
  color:#f7fbff;
  box-shadow:0 0 0 4px rgba(139,92,246,.055), inset 0 1px 0 rgba(255,255,255,.06);
  text-align:center;
}
.tl-header-slogan span{
  display:block;
  font-size:22px;
  line-height:1;
  font-weight:950;
  letter-spacing:.015em;
  text-transform:uppercase;
  background:linear-gradient(90deg,#ffffff,#73ecff,#c89cff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 24px rgba(83,243,255,.10);
}
.tl-header-slogan small{
  display:block;
  color:#aebce4;
  font-size:11px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:.04em;
}
@media(max-width:780px){
  .tl-topbar{align-items:center !important;gap:10px !important;}
  .tl-brand{min-width:0 !important;flex:1 1 auto !important;max-width:calc(100% - 118px) !important;}
  .tl-brand small{font-size:10px !important;}
  .tl-header-slogan{
    order:3;
    flex:0 0 100%;
    width:100%;
    min-height:48px;
    margin:2px 0 10px;
    padding:8px 12px;
    border-color:rgba(83,243,255,.28);
    background:linear-gradient(135deg,rgba(17,31,68,.90),rgba(10,18,43,.82));
  }
  .tl-header-slogan span{font-size:20px;}
  .tl-header-slogan small{font-size:10.5px;}
}
@media(max-width:420px){
  .tl-brand strong{font-size:17px !important;}
  .tl-brand small{font-size:9.5px !important;}
  .tl-header-slogan span{font-size:18px;}
}


/* v1.0.19: slimmer centered header slogan and mobile brand fix */
.tl-header-slogan{
  flex:1 1 auto;
  max-width:420px;
  min-height:38px;
  padding:6px 16px;
  border-radius:15px;
  flex-direction:row;
}
.tl-header-slogan span{
  font-size:19px;
  letter-spacing:.045em;
  white-space:nowrap;
}
.tl-header-slogan small{display:none !important;}

@media(max-width:900px){
  .tl-topbar{
    min-height:64px !important;
    height:auto !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:8px !important;
    padding:8px 122px 8px 12px !important;
  }
  .tl-brand{
    flex:0 1 166px !important;
    min-width:150px !important;
    max-width:172px !important;
    overflow:visible !important;
    gap:8px !important;
  }
  .tl-brand-mark svg{
    width:34px !important;
    height:34px !important;
  }
  .tl-brand strong{
    font-size:17px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    letter-spacing:.6px !important;
  }
  .tl-brand small{display:none !important;}
  .tl-header-slogan{
    order:0 !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:108px !important;
    max-width:155px !important;
    min-height:38px !important;
    margin:0 !important;
    padding:5px 8px !important;
    border-radius:14px !important;
    border-color:rgba(83,243,255,.34) !important;
    background:linear-gradient(135deg,rgba(17,31,68,.92),rgba(10,18,43,.86)) !important;
  }
  .tl-header-slogan span{
    font-size:14px !important;
    line-height:1 !important;
    letter-spacing:.045em !important;
  }
  .tl-top-actions{display:none !important;}
}

@media(max-width:420px){
  .tl-topbar{padding-right:112px !important;gap:6px !important;}
  .tl-brand{flex-basis:142px !important;min-width:132px !important;max-width:146px !important;}
  .tl-brand-mark svg{width:31px !important;height:31px !important;}
  .tl-brand strong{font-size:15.5px !important;letter-spacing:.35px !important;}
  .tl-header-slogan{min-width:92px !important;max-width:126px !important;padding:5px 6px !important;}
  .tl-header-slogan span{font-size:12.5px !important;letter-spacing:.035em !important;}
}

@media(max-width:360px){
  .tl-topbar{padding-right:104px !important;}
  .tl-brand{flex-basis:126px !important;min-width:118px !important;max-width:128px !important;}
  .tl-brand strong{font-size:14px !important;}
  .tl-header-slogan{min-width:84px !important;max-width:104px !important;}
  .tl-header-slogan span{font-size:11.5px !important;}
}

/* ============================================================
   v1.0.25: AUTHORITATIVE MOBILE DRAWER (supersedes v1.0.15–v1.0.24)
   Fixes two bugs:
   1. "Fuzzy / image-like" drawer  -> caused by backdrop-filter:blur on the
      panel sampling the ambient blobs + masked grid behind it. We force the
      drawer to a flat opaque background with NO backdrop-filter and its own
      isolated stacking context so it never composites the blurred backdrop.
   2. "Menu items unclickable"      -> caused by the full-screen ::after overlay
      intercepting taps and by .tl-open having its transform re-asserted to the
      off-screen value. We pin the open transform last, make the overlay sit
      strictly BELOW the drawer, and guarantee the links receive pointer events.
   This block is intentionally last so source-order wins among !important rules.
   ============================================================ */
@media (max-width: 900px){

  /* Drawer panel: flat, opaque, crisp. No blur, no filter, isolated layer. */
  body.turningline-desktop-theme #tl-app .tl-sidebar{
    display:block !important;               /* overrides v1.0.4 display:none */
    position:fixed !important;
    left:0 !important;
    top:0 !important;
    bottom:auto !important;
    width:min(360px,88vw) !important;
    max-width:88vw !important;
    height:100dvh !important;
    min-height:100dvh !important;
    max-height:100dvh !important;
    margin:0 !important;
    padding:78px 12px 20px !important;
    background:#0a142e !important;        /* solid, no transparency to blur */
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    filter:none !important;
    isolation:isolate !important;          /* own stacking context */
    border:0 !important;
    border-right:1px solid rgba(139,92,246,.45) !important;
    border-radius:0 22px 22px 0 !important;
    box-shadow:16px 0 60px rgba(0,0,0,.7) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
    transform:translateX(-110%) !important;   /* closed by default */
    transition:transform .24s ease !important;
    z-index:2147483600 !important;            /* ABOVE the overlay below */
    pointer-events:auto !important;
  }

  /* Open state pinned LAST so nothing re-hides it. */
  body.tl-mobile-nav-open #tl-app .tl-sidebar,
  body.turningline-desktop-theme #tl-app .tl-sidebar.tl-open,
  body.tl-mobile-nav-open #tl-app .tl-sidebar.tl-open{
    transform:translateX(0) !important;
  }

  /* Kill any inherited blur/filter on EVERY child so text stays sharp. */
  body.turningline-desktop-theme #tl-app .tl-sidebar *{
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    filter:none !important;
    text-shadow:none !important;
  }

  /* Nav links: real tap targets, fully clickable, full opacity. */
  body.turningline-desktop-theme #tl-app .tl-side-nav{
    padding:0 !important;
    gap:10px !important;
    max-height:none !important;
    overflow:visible !important;
  }
  body.turningline-desktop-theme #tl-app .tl-side-item{
    position:relative !important;
    z-index:1 !important;
    pointer-events:auto !important;
    opacity:1 !important;
    min-height:54px !important;
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    padding:15px 16px !important;
    font-size:16px !important;
    font-weight:800 !important;
    color:#f4f7ff !important;
    background:rgba(255,255,255,.05) !important;
    border:1px solid rgba(255,255,255,.08) !important;
    border-radius:14px !important;
    letter-spacing:-.01em !important;
  }
  body.turningline-desktop-theme #tl-app .tl-side-item span{
    width:28px !important;
    font-size:19px !important;
    text-align:center !important;
  }
  body.turningline-desktop-theme #tl-app .tl-side-item.tl-active,
  body.turningline-desktop-theme #tl-app .tl-side-item:hover{
    background:linear-gradient(90deg,rgba(139,92,246,.55),rgba(52,217,255,.13)) !important;
    border-color:rgba(52,217,255,.32) !important;
  }

  /* Scrim overlay: strictly BELOW the drawer AND offset so it only covers
     the page to the RIGHT of the drawer. It can never overlap the menu,
     so it can never intercept a menu tap. Tapping it still closes. */
  body.tl-mobile-nav-open #tl-app.tl-app::after{
    content:"" !important;
    position:fixed !important;
    top:0 !important;
    bottom:0 !important;
    right:0 !important;
    left:min(360px,88vw) !important;   /* starts where the drawer ends */
    background:rgba(3,7,20,.55) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
    filter:none !important;
    z-index:2147483000 !important;   /* below sidebar (…3600), above page */
    pointer-events:auto !important;
  }

  /* Lock body scroll only while the drawer is open. */
  body.turningline-desktop-theme.tl-mobile-nav-open{
    overflow:hidden !important;
  }
}


/* ============================================================
   v1.0.26: CLICK FIX — free the workspace stacking-context trap.
   Root cause of "menu items unclickable": .tl-workspace has
   position:relative; z-index:1, which creates a stacking context.
   The sidebar lives INSIDE it, so the sidebar's huge z-index can
   never exceed level 1 at the page scope. The scrim (.tl-app::after)
   is a sibling of the workspace at z-index 2147483000, so it paints
   ABOVE the whole workspace — including the menu — and intercepts
   every tap.
   Fix: while the drawer is open, set the workspace z-index to auto.
   With position:relative + z-index:auto it no longer establishes a
   stacking context, so the fixed sidebar (z-index 2147483600) is now
   compared at the root and correctly sits above the scrim
   (2147483000). The scrim still covers/dims the page content and
   still closes the drawer on tap.
   ============================================================ */
@media (max-width: 900px){
  body.turningline-desktop-theme.tl-mobile-nav-open #tl-app .tl-workspace{
    z-index:auto !important;
  }
  /* Belt-and-suspenders: guarantee the open drawer and its links
     receive pointer events even if another rule lowers them. */
  body.tl-mobile-nav-open #tl-app .tl-sidebar,
  body.tl-mobile-nav-open #tl-app .tl-sidebar .tl-side-nav,
  body.tl-mobile-nav-open #tl-app .tl-sidebar .tl-side-item{
    pointer-events:auto !important;
  }
}


/* ============================================================
   v1.0.30: AI content notice (in-tool) + footer legal bar.
   ============================================================ */
.tl-ai-notice{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid rgba(52,217,255,.30);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(52,217,255,.10),rgba(139,92,246,.08));
  color:#dbe6ff;
  font-size:13px;
  line-height:1.5;
}
.tl-ai-notice.tl-hidden{display:none;}
.tl-ai-notice-icon{
  flex:0 0 auto;
  font-size:16px;
  color:#69ebff;
  line-height:1.4;
}
.tl-ai-notice p{margin:0;flex:1;}
.tl-ai-notice a{color:#69ebff;text-decoration:underline;}
.tl-ai-notice-x{
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:#9fb0d6;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  padding:2px 4px;
  border-radius:6px;
}
.tl-ai-notice-x:hover{color:#fff;background:rgba(255,255,255,.08);}

.tl-legal-bar{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px 18px;
  margin:0 14px 16px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(8,15,34,.7);
  font-size:12px;
}
.tl-legal-bar a{
  color:#b9c7ea;
  text-decoration:none;
  letter-spacing:.01em;
}
.tl-legal-bar a:hover{color:#69ebff;text-decoration:underline;}
.tl-legal-copy{color:#7d8cb2;}
@media (max-width: 900px){
  .tl-legal-bar{margin:0 8px 12px;gap:6px 12px;padding:12px;}
}


/* ============================================================
   v1.0.34: Crawlable module explainers and FAQ blocks.
   ============================================================ */
.tl-seo-explainer{
  margin:18px 0 0;
  padding:22px;
  border:1px solid rgba(129,164,255,.18);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(8,18,43,.84),rgba(5,12,30,.72));
  color:#dbe6ff;
  box-shadow:0 16px 45px rgba(0,0,0,.18);
}
.tl-seo-explainer-head h2{
  margin:0 0 8px;
  color:#fff;
  font-size:clamp(24px,3vw,34px);
  letter-spacing:-.035em;
}
.tl-seo-explainer-head p{max-width:980px;margin:0;color:#c5d2f4;line-height:1.55;}
.tl-seo-explainer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;}
.tl-seo-mini-card{padding:16px;border:1px solid rgba(129,164,255,.16);border-radius:16px;background:rgba(3,12,31,.48);}
.tl-seo-mini-card h3,.tl-seo-faq h3{margin:0 0 10px;color:#fff;font-size:16px;letter-spacing:-.01em;}
.tl-seo-mini-card ul,.tl-seo-mini-card ol{margin:0;padding-left:20px;color:#c5d2f4;line-height:1.55;}
.tl-seo-mini-card p{margin:0 0 8px;color:#c5d2f4;line-height:1.55;}
.tl-seo-mini-card p:last-child{margin-bottom:0;}
.tl-seo-privacy{background:linear-gradient(135deg,rgba(52,217,255,.08),rgba(139,92,246,.06));}
.tl-seo-faq{margin-top:16px;display:grid;gap:10px;}
.tl-seo-faq details{border:1px solid rgba(129,164,255,.16);border-radius:14px;background:rgba(3,12,31,.42);padding:12px 14px;}
.tl-seo-faq summary{cursor:pointer;color:#fff;font-weight:800;}
.tl-seo-faq p{margin:9px 0 0;color:#c5d2f4;line-height:1.5;}
@media (max-width: 1100px){.tl-seo-explainer-grid{grid-template-columns:1fr;}}
@media (max-width: 700px){.tl-seo-explainer{padding:16px;border-radius:18px}.tl-seo-mini-card{padding:14px}}


/* ============================================================
   v1.0.43: Homepage Deal of the Day embedded inside the AI Guide overlay with Amazon affiliate disclosure.
   ============================================================ */
.tl-deal-card{
  margin-top:0;
  padding:14px;
  border:1px solid rgba(243,199,106,.34);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(39,29,8,.58),rgba(10,16,36,.72));
  box-shadow:0 18px 46px rgba(0,0,0,.22);
}

body.turningline-desktop-theme #tl-app .tl-guide-inner > .tl-deal-card{
  display:block !important;
  position:relative;
  z-index:4;
  flex:0 0 auto;
  margin:0 0 16px;
}
body.turningline-desktop-theme #tl-app .tl-guide-inner > .tl-deal-card + h2{
  margin-top:2px;
}
.tl-deal-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0 0 10px;
  padding:5px 8px;
  border-radius:999px;
  background:linear-gradient(135deg,#ffe295,#c99031);
  color:#191304;
  font-size:10px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.tl-deal-image{
  display:block;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  aspect-ratio:16/10;
  margin-bottom:12px;
}
.tl-deal-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.tl-deal-card h3{
  margin:0 0 8px;
  color:#fff;
  font-size:16px;
  line-height:1.2;
  letter-spacing:-.01em;
}
.tl-deal-desc{
  margin:0 0 10px;
  color:#c8d3ef;
  font-size:12px;
  line-height:1.45;
}
.tl-deal-price{
  margin:0 0 11px;
  color:#ffe295;
  font-size:22px;
  font-weight:950;
  letter-spacing:-.03em;
}
.tl-deal-button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 12px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--gold),#d18a28);
  color:#1b1202;
  text-decoration:none;
  font-size:12px;
  font-weight:950;
  box-shadow:0 14px 28px rgba(209,138,40,.2);
}
.tl-deal-button:hover{filter:brightness(1.05);transform:translateY(-1px);}
.tl-deal-disclosure{
  margin:10px 0 0;
  color:#8798bd;
  font-size:10px;
  line-height:1.35;
}
.tl-deal-disclosure strong{
  display:block;
  color:#b8c6e6;
  font-weight:800;
  margin-bottom:3px;
}
.tl-deal-disclosure span{display:block;}
@media (max-width: 1100px){
  .tl-deal-card{margin-top:0;}
}

/* TurningLine Control Center media overrides */
.tl-brand-logo{width:44px;height:44px;object-fit:contain;display:block;border-radius:12px;}
.tl-home-visual{width:min(260px,32vw);aspect-ratio:1.25/1;border-radius:28px;overflow:hidden;border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 70px rgba(0,0,0,.32);background:rgba(255,255,255,.08);}
.tl-home-visual img{width:100%;height:100%;object-fit:cover;display:block;}
@media(max-width:780px){.tl-home-visual{width:100%;max-width:340px;}}


/* TurningLine Control Center custom header logo override.
   When a Site Logo is selected, it replaces the full hardcoded header brand block. */
.tl-brand.tl-brand-has-custom-logo{min-width:260px;max-width:360px;flex:0 0 auto;overflow:visible;}
.tl-brand-custom-logo-wrap{display:flex;align-items:center;min-width:0;max-width:100%;}
.tl-brand-custom-logo{display:block;width:auto;height:auto;max-height:54px;max-width:340px;object-fit:contain;}
@media(max-width:1180px){.tl-brand.tl-brand-has-custom-logo{min-width:220px;max-width:300px}.tl-brand-custom-logo{max-height:50px;max-width:290px}}
@media(max-width:780px){.tl-brand.tl-brand-has-custom-logo{flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 118px)!important}.tl-brand-custom-logo{max-height:44px;max-width:100%}}
@media(max-width:520px){.tl-brand.tl-brand-has-custom-logo{flex-basis:180px!important;max-width:190px!important}.tl-brand-custom-logo{max-height:40px;max-width:190px}}


/* v1.0.47 Save TurningLine as App / PWA install helper */
.tl-save-app-top{
  border:0;
  border-radius:999px;
  padding:9px 13px;
  background:linear-gradient(135deg,#1fdd8f,#86f6bd);
  color:#06130d;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(49,227,165,.22);
  white-space:nowrap;
}
.tl-save-app-top:hover{transform:translateY(-1px);filter:brightness(1.04);}
.tl-install-home-card{
  margin:14px 0 16px;
  border:1px solid rgba(49,227,165,.38);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(21,86,65,.72),rgba(16,28,61,.88));
  padding:18px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  box-shadow:0 18px 46px rgba(0,0,0,.22);
}
.tl-install-kicker{display:inline-flex;margin-bottom:6px;color:#9cffd2;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;}
.tl-install-home-copy h2{margin:0;color:white;font-size:24px;line-height:1.1;letter-spacing:-.5px;}
.tl-install-home-copy p{margin:8px 0 0;color:#c7d6ed;font-size:13px;line-height:1.45;}
.tl-install-choice-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.tl-install-choice-row button,.tl-install-guide-button,.tl-install-primary{
  border:0;
  border-radius:13px;
  background:#27e596;
  color:#04120c;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(39,229,150,.20);
}
.tl-install-choice-row button{padding:12px 13px;font-size:12px;}
.tl-install-choice-row button:hover,.tl-install-guide-button:hover,.tl-install-primary:hover{transform:translateY(-1px);filter:brightness(1.04);}
.tl-install-guide-card{
  border:1px solid rgba(49,227,165,.34);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(18,71,56,.82),rgba(12,23,48,.72));
  padding:14px;
  margin-bottom:14px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:11px;
  align-items:start;
}
.tl-deal-card + .tl-install-guide-card{margin-top:12px;}
.tl-install-guide-icon{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  background:rgba(49,227,165,.16);border:1px solid rgba(49,227,165,.35);color:#90ffd0;font-weight:900;
}
.tl-install-guide-card h3{margin:0;color:white;font-size:15px;line-height:1.2;}
.tl-install-guide-card p{grid-column:2;margin:2px 0 0;color:#aebfe0;font-size:12px;line-height:1.4;}
.tl-install-guide-button{grid-column:1 / -1;width:100%;padding:10px 12px;margin-top:2px;font-size:12px;}
.tl-install-modal[hidden]{display:none!important;}
body.tl-install-modal-open{overflow:hidden!important;}
.tl-install-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px;}
.tl-install-backdrop{position:absolute;inset:0;background:rgba(2,6,18,.76);backdrop-filter:blur(10px);}
.tl-install-dialog{
  position:relative;
  width:min(760px,calc(100vw - 28px));
  max-height:calc(100vh - 34px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.18);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(14,24,52,.98),rgba(7,12,30,.98));
  box-shadow:0 40px 120px rgba(0,0,0,.52);
  padding:22px;
  color:#f3f7ff;
}
.tl-install-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:rgba(255,255,255,.06);color:white;cursor:pointer;}
.tl-install-dialog-head{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:center;padding-right:36px;}
.tl-install-dialog-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#32d8ff,#27e596);color:#06111d;font-weight:1000;letter-spacing:-1px;box-shadow:0 18px 46px rgba(50,216,255,.22);}
.tl-install-dialog h2{margin:0;font-size:28px;line-height:1.05;letter-spacing:-.8px;}
.tl-install-dialog-head p:not(.tl-kicker){margin:8px 0 0;color:#b8c6e7;font-size:14px;line-height:1.45;}
.tl-install-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0 14px;padding:6px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.045);}
.tl-install-tab{border:0;border-radius:12px;padding:11px 10px;background:transparent;color:#cdd8f4;font-weight:900;cursor:pointer;}
.tl-install-tab.tl-active{background:linear-gradient(135deg,#27e596,#83f8bd);color:#06130d;}
.tl-install-panel{display:none;border:1px solid rgba(255,255,255,.105);border-radius:18px;background:rgba(255,255,255,.045);padding:18px;}
.tl-install-panel.tl-active{display:block;}
.tl-install-panel h3{margin:0 0 12px;font-size:20px;}
.tl-install-panel ol{margin:0;padding-left:22px;display:grid;gap:10px;}
.tl-install-panel li{color:#dbe6ff;line-height:1.5;font-size:14px;}
.tl-install-note,.tl-install-status{margin:14px 0 0;color:#9fb0d3;font-size:13px;line-height:1.45;}
.tl-install-primary{margin-top:16px;padding:13px 16px;font-size:14px;}
html.tl-can-install-app .tl-save-app-top:after{content:' • Ready';}
@media(max-width:1180px){
  .tl-install-home-card{grid-template-columns:1fr;}
  .tl-install-choice-row{justify-content:flex-start;}
}
@media(max-width:782px){
  .tl-top-actions{gap:6px;justify-content:flex-end;}
  .tl-save-app-top{padding:8px 10px;font-size:11px;}
  .tl-install-home-card{padding:15px;margin:12px 0 14px;border-radius:18px;}
  .tl-install-home-copy h2{font-size:21px;}
  .tl-install-choice-row{display:grid;grid-template-columns:1fr;}
  .tl-install-choice-row button{width:100%;padding:12px;}
  .tl-install-dialog{padding:18px;border-radius:20px;}
  .tl-install-dialog-head{grid-template-columns:48px minmax(0,1fr);gap:12px;padding-right:30px;}
  .tl-install-dialog-icon{width:46px;height:46px;border-radius:14px;font-size:14px;}
  .tl-install-dialog h2{font-size:22px;}
  .tl-install-tabs{grid-template-columns:1fr;}
  .tl-install-panel{padding:15px;}
}
@media(max-width:520px){
  .tl-save-app-top{grid-column:auto;}
  .tl-pill-gold{display:none;}
}

/* v1.0.47 install fallback and readiness check */
.tl-install-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;align-items:center;}
.tl-install-secondary{
  border:1px solid rgba(255,255,255,.16);
  border-radius:13px;
  background:rgba(255,255,255,.07);
  color:#e8f0ff;
  font-weight:850;
  cursor:pointer;
  padding:12px 14px;
}
.tl-install-secondary:hover{transform:translateY(-1px);background:rgba(255,255,255,.11);}
.tl-install-primary.tl-install-ready{box-shadow:0 0 0 4px rgba(39,229,150,.16),0 18px 40px rgba(39,229,150,.30);}
.tl-install-check-result{margin-top:12px;}
.tl-install-check-list{list-style:none;margin:0;padding:0;display:grid;gap:7px;}
.tl-install-check-list li{border-radius:12px;padding:9px 11px;font-size:12px;line-height:1.35;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);}
.tl-install-check-list li strong{color:#ffffff;}
.tl-check-good{border-color:rgba(49,227,165,.24)!important;background:rgba(49,227,165,.08)!important;color:#c9ffe7;}
.tl-check-bad{border-color:rgba(255,135,135,.26)!important;background:rgba(255,95,95,.08)!important;color:#ffd6d6;}
@media(max-width:640px){.tl-install-actions{display:grid;grid-template-columns:1fr}.tl-install-secondary,.tl-install-primary{width:100%;}}


/* ============================================================
   v1.0.54: SINGLE SCROLL OWNER — OFFICIAL BASELINE.
   html (the browser viewport) is the ONLY normal page scroller.
   body remains overflow:visible and must never paint its own scrollbar.
   Horizontal clipping belongs on #tl-app, not body.
   The only intentional internal scrollers are the open mobile drawer,
   the open install dialog, chat message panes, and result/result boxes.
   Do not add competing overflow rules to html/body elsewhere — edit
   this block if the scroll ownership model ever needs to change.
   ============================================================ */
html{
  height:auto !important;
  min-height:100% !important;
  max-height:none !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
}
body,
body.turningline-desktop-theme,
body.turningline-desktop-theme:not(#tl-never){
  height:auto !important;
  min-height:100vh !important;
  max-height:none !important;
  overflow:visible !important;     /* body must NEVER be a scroll container */
  overflow-x:visible !important;   /* overflow-x:hidden also creates one */
  overflow-y:visible !important;
}

/* Horizontal clipping moves off body onto the app shell itself. */
body.turningline-desktop-theme:not(#tl-never) #tl-app.tl-app{
  width:100% !important;
  max-width:100vw !important;
  min-height:100vh !important;
  overflow-x:clip !important;      /* clip ≠ scroll container, unlike hidden */
  overflow-y:visible !important;
  position:relative !important;
}

/* Shell internals stay in normal document flow — no fixed viewport
   heights, no internal page scrolling. */
body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-workspace,
body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-main,
body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-page,
body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-page.tl-active,
body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-guide,
body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-guide-inner,
body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-statusbar{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}
body.turningline-desktop-theme:not(#tl-never):not(.tl-mobile-nav-open) #tl-app .tl-sidebar,
body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-side-nav{
  max-height:none !important;
  overflow:visible !important;
}

/* Scroll locks (modal / mobile drawer open) now live on html — the one
   real scroller — instead of body. */
html:has(body.tl-install-modal-open),
html:has(body.tl-mobile-nav-open){
  overflow:hidden !important;
}

/* The two intentional overlay scrollers keep working. */
@media (max-width:900px){
  body.turningline-desktop-theme:not(#tl-never) #tl-app .tl-sidebar.tl-open{
    height:100dvh !important;
    max-height:100dvh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
  }
}
body.turningline-desktop-theme.tl-install-modal-open .tl-install-dialog{
  max-height:calc(100dvh - 34px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch;
}

/* JS-driven fallback lock class (set by app.js when modal/drawer is open). */
html.tl-scroll-locked{
  overflow:hidden !important;
}

/* ============================================================
   v1.0.54: installed-app state and mobile gesture cleanup.
   These rules do not change PWA install files. They only prevent the
   Save App cards/buttons from trapping vertical swipes and suppress
   repeated install promotion once the app is installed/dismissed.
   ============================================================ */
.tl-install-home-card,
.tl-install-guide-card{
  overflow:visible !important;
  touch-action:pan-y !important;
}
.tl-install-choice-row,
.tl-install-actions{
  touch-action:pan-y !important;
}
.tl-install-choice-row button,
.tl-install-actions button,
.tl-save-app-top,
.tl-install-close,
.tl-install-tab{
  touch-action:manipulation !important;
}
html.tl-app-installed .tl-install-home-card,
body.tl-installed-app .tl-install-home-card,
body.tl-installed-app .tl-install-guide-card,
html.tl-app-installed .tl-install-guide-card{
  display:none !important;
}
body.tl-installed-app .tl-save-app-top,
html.tl-app-installed .tl-save-app-top{
  background:rgba(49,227,165,.14) !important;
  border-color:rgba(49,227,165,.35) !important;
  color:#b9ffe5 !important;
}
@media (max-width:782px){
  .tl-install-backdrop{
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }
  .tl-install-modal{
    padding:12px !important;
    align-items:start !important;
    overflow:hidden !important;
  }
  .tl-install-dialog{
    width:min(100%, 560px) !important;
    max-height:calc(100dvh - 24px) !important;
  }
}

/* ============================================================
   v1.0.55: Homepage command-center mockup + install state.
   Preserves existing task cards/modules while adding a visible match
   confirmation before routing from the homepage sentence box.
   ============================================================ */
.tl-home-command-center{
  position:relative;
  margin:16px 0 10px !important;
  padding:22px !important;
  border:1px solid rgba(139,92,246,.78) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,rgba(14,24,55,.94),rgba(8,16,37,.92)) !important;
  box-shadow:0 0 0 3px rgba(139,92,246,.22), 0 24px 80px rgba(89,63,255,.23), inset 0 1px 0 rgba(255,255,255,.07) !important;
  overflow:hidden;
}
.tl-home-command-center::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  border-radius:26px;
  background:radial-gradient(circle at 84% 12%,rgba(178,76,255,.22),transparent 30%), radial-gradient(circle at 18% 90%,rgba(52,217,255,.10),transparent 28%);
}
.tl-home-command-center > *{position:relative;z-index:1;}
.tl-home-command-center label{
  color:#b276ff !important;
  font-weight:950 !important;
  letter-spacing:.02em !important;
}
.tl-home-command-center .tl-home-search-row{
  grid-template-columns:minmax(0,1fr) 190px !important;
}
.tl-home-command-center .tl-home-search-row input{
  min-height:58px !important;
  border-radius:15px !important;
  background:#132044 !important;
  border-color:rgba(130,165,255,.34) !important;
  font-size:15px !important;
  color:#fff !important;
}
.tl-home-command-center .tl-home-search-row button{
  width:auto !important;
  min-width:190px !important;
  min-height:58px !important;
  padding:0 18px !important;
  border-radius:15px !important;
  font-size:15px !important;
  font-weight:950 !important;
  white-space:nowrap;
}
.tl-home-route-preview{
  display:grid;
  grid-template-columns:74px minmax(0,1fr) minmax(230px,320px);
  gap:18px;
  align-items:center;
  margin-top:16px;
  padding:18px;
  border:1px solid rgba(130,165,255,.14);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(9,18,42,.86),rgba(13,22,51,.80));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
.tl-home-route-preview[hidden]{display:none !important;}
.tl-route-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,rgba(178,76,255,.34),rgba(91,109,255,.16));
  color:#ff57ec;
  font-size:34px;
  box-shadow:0 14px 40px rgba(178,76,255,.20);
}
.tl-route-copy strong{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  color:#ffffff;
  font-size:18px;
  line-height:1.2;
}
.tl-route-copy em{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  color:#06120d;
  background:#31e3a5;
  font-style:normal;
  font-size:13px;
  font-weight:950;
}
.tl-route-copy p{margin:8px 0 0;color:#c6d2ef;font-size:13px;line-height:1.45;}
.tl-route-copy small{display:block;margin-top:10px;color:#9fb0d5;font-size:12px;}
.tl-route-actions{display:grid;gap:10px;}
.tl-route-actions button{
  min-height:46px;
  border-radius:13px;
  cursor:pointer;
  font-weight:950;
}
.tl-route-continue{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#5a6dff,#b24cff);
  box-shadow:0 15px 34px rgba(104,84,255,.30);
}
.tl-route-choose{
  border:1px solid rgba(130,165,255,.32);
  color:#dce6ff;
  background:rgba(255,255,255,.035);
}
.tl-home-quick-tasks{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 18px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:18px;
  background:rgba(7,14,32,.52);
}
.tl-home-quick-tasks span{
  flex:0 0 100%;
  color:#fff;
  font-weight:900;
  font-size:14px;
}
.tl-home-quick-tasks button{
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(130,165,255,.34);
  border-radius:11px;
  background:rgba(13,22,50,.86);
  color:#dbe6ff;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.tl-home-quick-tasks button:hover{border-color:rgba(52,217,255,.55);color:#fff;transform:translateY(-1px);}

html.tl-app-installed body.turningline-desktop-theme #tl-app .tl-install-guide-card,
body.tl-installed-app #tl-app .tl-install-guide-card{
  display:grid !important;
}
html.tl-app-installed body.turningline-desktop-theme #tl-app .tl-install-home-card,
body.tl-installed-app #tl-app .tl-install-home-card{
  display:none !important;
}
.tl-install-guide-card.tl-installed-state{
  border-color:rgba(49,227,165,.34) !important;
  background:linear-gradient(135deg,rgba(49,227,165,.12),rgba(8,22,40,.82)) !important;
}
.tl-install-guide-card.tl-installed-state .tl-install-guide-icon{
  background:rgba(49,227,165,.15) !important;
  border-color:rgba(49,227,165,.36) !important;
  color:#31e3a5 !important;
}
.tl-install-guide-card.tl-installed-state .tl-install-guide-button{
  background:linear-gradient(135deg,#27e596,#83f8bd) !important;
  color:#06130d !important;
}

@media (max-width: 1320px){
  .tl-home-route-preview{grid-template-columns:64px minmax(0,1fr);}
  .tl-route-actions{grid-column:1 / -1;grid-template-columns:1fr 1fr;}
}
@media (max-width: 900px){
  .tl-mobile-menu{
    position:static !important;
    right:auto !important;
    top:auto !important;
    z-index:2 !important;
    min-width:40px !important;
    width:40px !important;
    height:40px !important;
    padding:0 !important;
    border-radius:12px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    font-size:24px !important;
  }
  .tl-mobile-menu::after{content:"" !important;display:none !important;}
  .tl-topbar{
    display:flex !important;
    min-height:66px !important;
    height:auto !important;
    padding:10px 12px !important;
    gap:8px !important;
  }
  .tl-brand.tl-brand-has-custom-logo,
  .tl-brand{
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:none !important;
  }
  .tl-brand-custom-logo{max-height:40px !important;max-width:160px !important;}
  .tl-header-slogan{display:none !important;}
  .tl-top-actions{
    display:flex !important;
    flex:0 0 auto !important;
    gap:6px !important;
    align-items:center !important;
  }
  .tl-top-actions .tl-pill-gold{
    display:inline-flex !important;
    padding:8px 9px !important;
    font-size:10px !important;
  }
  .tl-save-app-top{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:38px !important;
    padding:8px 10px !important;
    border-radius:12px !important;
    border:1px solid rgba(178,76,255,.74) !important;
    background:rgba(91,109,255,.18) !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:950 !important;
    white-space:nowrap !important;
  }
  body.tl-installed-app .tl-save-app-top,
  html.tl-app-installed .tl-save-app-top{
    display:none !important;
  }
  body.tl-installed-app #tl-app .tl-install-guide-card,
  html.tl-app-installed body.turningline-desktop-theme #tl-app .tl-install-guide-card{
    display:none !important;
  }
  .tl-home-hero{grid-template-columns:minmax(0,1fr) 82px !important;padding:22px 18px !important;}
  .tl-home-orbit{min-height:96px !important;}
  .tl-home-orbit span{inset:0 !important;}
  .tl-home-orbit b{inset:20px !important;}
  .tl-home-orbit i{inset:36px !important;}
  .tl-home-command-center{padding:16px !important;border-radius:18px !important;}
  .tl-home-command-center .tl-home-search-row{display:grid !important;grid-template-columns:1fr !important;gap:10px !important;}
  .tl-home-command-center .tl-home-search-row button{width:100% !important;min-width:0 !important;min-height:52px !important;}
  .tl-home-route-preview{grid-template-columns:56px minmax(0,1fr);gap:12px;padding:14px;border-radius:16px;}
  .tl-route-icon{width:52px;height:52px;font-size:28px;}
  .tl-route-copy strong{font-size:16px;}
  .tl-route-copy p{font-size:12.5px;}
  .tl-route-actions{grid-column:1 / -1;grid-template-columns:1fr;}
  .tl-home-quick-tasks{overflow-x:auto;flex-wrap:nowrap;align-items:stretch;padding:10px;scrollbar-width:none;}
  .tl-home-quick-tasks::-webkit-scrollbar{display:none;}
  .tl-home-quick-tasks span{display:block;min-width:max-content;align-self:center;flex:0 0 auto;}
  .tl-home-quick-tasks button{min-width:118px;flex:0 0 auto;white-space:normal;}
}
@media (min-width: 901px){
  body.tl-installed-app .tl-save-app-top,
  html.tl-app-installed .tl-save-app-top{
    display:inline-flex !important;
  }
}
@media (max-width: 420px){
  .tl-top-actions .tl-pill-gold{font-size:0 !important;min-width:76px;}
  .tl-top-actions .tl-pill-gold::before{content:"★ 100% FREE";font-size:10px;}
  .tl-save-app-top{font-size:11px !important;padding:8px 9px !important;}
  .tl-brand-custom-logo{max-width:130px !important;}
}

/* v1.0.56: Command-center Start button and quick-task chips now navigate immediately. */
