*{box-sizing:border-box}body{margin:0;background:#eef1f5;color:#111827;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:#2563eb;text-decoration:none}.topbar{height:60px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:10}.brand{font-weight:800;color:#111827;font-size:18px}.brand-mark{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#2563eb;color:#fff;margin-right:8px}.user-chip{display:flex;gap:14px;align-items:center;font-size:14px}.container{width:min(1120px,100%);margin:0 auto;padding:24px 16px 48px}.container.narrow{width:min(760px,100%)}.card{background:#fff;border-radius:18px;padding:22px;box-shadow:0 2px 12px rgba(15,23,42,.06);margin-bottom:16px}.card h2{margin:0 0 16px;font-size:21px}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d1d5db;background:#fff;color:#111827;border-radius:11px;padding:10px 15px;font-weight:700;cursor:pointer}.btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}.btn.light{background:#eef0f3;border-color:#e5e7eb}.btn.small{padding:8px 12px;font-size:14px}.btn.wide{width:100%}.btn:disabled{opacity:.6;cursor:not-allowed}.stack-form label{font-weight:700;display:block;margin:14px 0 7px}.stack-form input,.stack-form textarea,.inline-form input,.reply-form input{width:100%;border:1.5px solid #dfe3e8;background:#f8fafc;border-radius:12px;padding:13px;font:inherit}.stack-form textarea{resize:vertical}.stack-form .btn{margin-top:14px}.alert{border-radius:12px;padding:12px 14px;margin-bottom:14px}.alert.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.alert.ok,.success-card{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.copy-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.copy-row code{background:#fff;border:1px solid #d1fae5;border-radius:10px;padding:10px;word-break:break-all}.success-card .btn{background:#047857;color:#fff;border-color:#047857}.copy-row.compact code{background:#eff6ff;border-color:#bfdbfe}.room-list{display:flex;flex-direction:column}.room-row{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid #eef0f3;align-items:flex-start}.room-row:last-child{border-bottom:0}.room-code{flex:none;min-width:66px;text-align:center;background:#eef0f3;border-radius:10px;padding:9px;font-weight:800}.room-main{flex:1}.muted{color:#6b7280;font-size:14px}.actions{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}.badge{flex:none;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}.badge.blue{background:#dbeafe;color:#1d4ed8}.badge.green{background:#d1fae5;color:#047857}.badge.grey{background:#e5e7eb;color:#4b5563}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(430px,100%);background:#fff;border-radius:22px;box-shadow:0 8px 32px rgba(15,23,42,.09);padding:34px 26px;text-align:center}.auth-card .logo{width:66px;height:66px;margin:0 auto 16px;border-radius:19px;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:28px}.auth-card h1{font-size:26px;margin:0 0 24px}.google-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border:1.5px solid #d1d5db;background:#fff;border-radius:12px;padding:13px;color:#111827;font-weight:700;font-size:16px}.google-g{font-size:19px;font-weight:900;color:#4285f4}.only-line{color:#4b5563;font-size:14px;margin:18px 0 0}.room-head{display:flex;gap:12px;align-items:center;margin-bottom:16px}.room-head h1{font-size:24px;margin:0}.room-head .copy-row{margin-left:auto}.back{width:34px;height:34px;background:#fff;border-radius:50%;display:grid;place-items:center;color:#111827;font-size:25px;box-shadow:0 1px 5px rgba(0,0,0,.08)}.version-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.version-tabs a{background:#fff;border:1px solid #dbe2ec;border-radius:999px;padding:8px 14px;color:#374151;font-weight:700}.version-tabs a.active{background:#2563eb;color:#fff;border-color:#2563eb}.player-card{background:#0b1220;border-radius:18px;padding:12px;margin-bottom:16px;box-shadow:0 4px 16px rgba(15,23,42,.18)}video{width:100%;max-height:68vh;background:#000;border-radius:12px;display:block}.timeline-wrap{padding:12px 4px 2px;color:#cbd5e1}.time-row{display:flex;justify-content:space-between;font-size:13px;margin-bottom:7px}.timeline{height:12px;background:#26334d;border-radius:99px;position:relative;cursor:pointer}.timeline-fill{position:absolute;inset:0 auto 0 0;width:0;background:#3b82f6;border-radius:99px}.point-marker,.segment-marker{position:absolute;top:50%;transform:translate(-50%,-50%);border:2px solid #0b1220;z-index:2}.point-marker{width:13px;height:13px;border-radius:50%;background:#fbbf24;padding:0}.segment-marker{height:18px;border-radius:6px;background:#f59e0b;padding:0;min-width:12px}.range-status{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:10px;padding:9px 11px;font-size:14px}.tool-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.section-head h2{margin:0}.filter-links{display:flex;gap:7px;flex-wrap:wrap}.filter-links a{border-radius:999px;background:#eef0f3;color:#374151;padding:7px 11px;font-size:13px;font-weight:700}.filter-links a.active{background:#2563eb;color:#fff}.progress{height:8px;background:#eef0f3;border-radius:99px;overflow:hidden;margin:16px 0 7px}.progress span{display:block;height:100%;background:#16a34a}.comment-list{margin-top:8px}.comment{border-top:1px solid #eef0f3;padding:16px 0}.comment-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.avatar{width:28px;height:28px;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.time-chip{border:0;background:#eff6ff;color:#1d4ed8;border-radius:8px;padding:5px 8px;font-weight:800;cursor:pointer}.time-chip.segment{background:#fef3c7;color:#92400e}.status{margin-left:auto;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}.status.open{background:#fee2e2;color:#b91c1c}.status.done{background:#d1fae5;color:#047857}.comment p{line-height:1.55;margin:9px 0}.comment-actions{display:flex;gap:8px;flex-wrap:wrap}.comment-actions form{margin:0}.replies{margin:12px 0 0 18px;border-left:3px solid #e5e7eb;padding-left:13px}.reply{padding:7px 0}.reply p{margin:4px 0}.reply-form{display:flex;gap:8px;margin-top:12px}.reply-form input{flex:1}.inline-form{display:flex;gap:10px}.inline-form input{flex:1}@media(max-width:640px){.topbar{padding:0 13px}.user-chip span{display:none}.room-head{flex-wrap:wrap}.room-head .copy-row{margin-left:0}.inline-form,.reply-form{flex-direction:column}.card{padding:17px}.room-row{flex-wrap:wrap}}
.container.wide{width:min(1460px,100%)}
.badge.orange{background:#ffedd5;color:#c2410c}
.room-layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:16px;align-items:start}
.room-main-col{min-width:0}
.room-main-col .player-card{margin-bottom:16px}
.room-side{position:sticky;top:76px}
.comments-card{margin-bottom:0}
.comment-scroll{max-height:calc(100vh - 330px);overflow-y:auto;padding-right:4px}
.timeline{height:14px}
.point-marker{width:15px;height:15px}
@media(max-width:1023px){.room-layout{grid-template-columns:1fr}.room-side{position:static}.comment-scroll{max-height:none}}
.comments-card{display:flex;flex-direction:column;height:calc(100vh - 92px)}
.comments-card .comment-scroll{flex:1;max-height:none;min-height:100px}
.note-composer{border-top:1px solid #e5e7eb;padding-top:12px;margin-top:12px}
.note-composer .tool-actions{margin:10px 0}
.note-composer .stack-form .btn{margin-top:10px;width:100%}
@media(max-width:1023px){.comments-card{height:auto}.comments-card .comment-scroll{max-height:70vh}}
.comment p{white-space:pre-line}
.range-chip{display:inline-flex;align-items:center;gap:8px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:999px;padding:5px 8px 5px 12px;font-size:13px;font-weight:700;margin-bottom:10px}
.range-chip[hidden]{display:none}
.chip-x{border:0;background:#f59e0b;color:#fff;border-radius:50%;width:20px;height:20px;cursor:pointer;line-height:1;font-size:12px}
.timeline-range{position:absolute;top:50%;transform:translateY(-50%);height:18px;background:rgba(245,158,11,.45);border:1px solid #f59e0b;border-radius:6px;pointer-events:none;z-index:1}
.timeline{touch-action:none}
.edit-box{margin-top:8px}
.edit-box textarea{width:100%;border:1.5px solid #dfe3e8;background:#f8fafc;border-radius:12px;padding:10px;font:inherit;resize:vertical}
.edit-box .comment-actions{margin-top:8px}
.js-delete{color:#b91c1c}
.reply-actions{display:inline-flex;gap:8px;margin-left:8px}
.link-btn{border:0;background:none;color:#2563eb;cursor:pointer;font:inherit;font-size:13px;font-weight:700;padding:0}
.link-btn.delete{color:#b91c1c}

/* ===== Dark theme + compact comments (Frame.io style) ===== */
body{background:#0a0b0e;color:#e8eaed}
a{color:#6ea8fe}
.topbar{background:#101216;border-bottom-color:#23262d}
.brand{color:#fff}
.btn{background:#1d2026;border-color:#2e323b;color:#e8eaed}
.btn.light{background:#22252c;border-color:#2e323b;color:#e8eaed}
.btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}
.stack-form input,.stack-form textarea,.inline-form input,.reply-form input,.edit-box textarea{background:#0d0f12;border-color:#2c313a;color:#e8eaed}
.card{background:#14161b;border:1px solid #23262d;box-shadow:none}
.alert.error{background:#2a1416;color:#fca5a5;border-color:#7f1d1d}
.alert.ok,.success-card{background:#0f241a;color:#6ee7b7;border-color:#14532d}
.copy-row code,.copy-row.compact code{background:#0d0f12;border-color:#2c313a;color:#e8eaed}
.room-row{border-bottom-color:#23262d}
.room-code{background:#1d2026;color:#e8eaed}
.muted{color:#9aa3ad}
.badge.grey{background:#26292f;color:#c8ccd2}
.badge.blue{background:#17283f;color:#7db3ff}
.badge.green{background:#0f2c1e;color:#4ade80}
.badge.orange{background:#33200d;color:#fbbf24}
.auth-card{background:#14161b;border:1px solid #23262d;box-shadow:none}
.google-btn{background:#1d2026;border-color:#2e323b;color:#e8eaed}
.only-line{color:#9aa3ad}
.back{background:#1d2026;color:#e8eaed;box-shadow:none}
.version-tabs a{background:#14161b;border-color:#2c313a;color:#c8ccd2}
.version-tabs a.active{background:#2563eb;border-color:#2563eb;color:#fff}
.player-card{background:#101216;border:1px solid #23262d;box-shadow:none}
.timeline{background:#262b33}
.timeline-wrap{color:#9aa3ad}
.filter-links a{background:#1d2026;color:#c8ccd2}
.filter-links a.active{background:#2563eb;color:#fff}
.progress{background:#23262d}
.note-composer{border-top-color:#23262d}
.range-chip{background:rgba(245,158,11,.14);border-color:rgba(245,158,11,.45);color:#fbbf24}
.replies{border-left-color:#2c313a}
.comment{border-top:1px solid #1f2229;padding:13px 2px}
.c-row{display:flex;gap:10px}
.avatar.ini{width:32px;height:32px;flex:none;font-size:12px;background:#475569}
.avatar.ini.rev{background:#e75480}
.avatar.ini.sm{width:24px;height:24px;font-size:10px}
.c-main{flex:1;min-width:0}
.c-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.c-head strong{font-size:14px}
.c-time{color:#8b929c;font-size:12px}
.c-tools{margin-left:auto;display:inline-flex;gap:2px;align-items:center;flex:none}
.icon-btn{width:28px;height:28px;border-radius:50%;border:1px solid transparent;background:transparent;color:#aeb4bd;cursor:pointer;display:grid;place-items:center;font-size:15px;line-height:1;padding:0}
.icon-btn:hover{background:#22252c;color:#fff}
.icon-btn.resolve{border-color:#3a3f47;font-size:13px}
.icon-btn.resolve.done{background:#22c55e;border-color:#22c55e;color:#fff}
.menu-wrap{position:relative;display:inline-flex}
.menu{position:absolute;right:0;top:32px;background:#1e2127;border:1px solid #2e323b;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.55);min-width:170px;padding:5px;z-index:40;display:flex;flex-direction:column}
.menu[hidden]{display:none}
.menu button{border:0;background:none;color:#e8eaed;text-align:left;padding:8px 10px;border-radius:7px;cursor:pointer;font:inherit;font-size:14px}
.menu button:hover{background:#2a2e36}
.menu button.danger{color:#f87171}
.comment .c-body{margin:5px 0 0;line-height:1.5;font-size:14.5px;white-space:pre-line}
.comment.done .c-body{opacity:.6}
.time-chip{display:inline-block;background:rgba(245,158,11,.16);color:#fbbf24;border-radius:6px;padding:1px 7px;font-weight:700;margin-right:7px;font-size:13.5px;vertical-align:baseline}
.c-foot{display:flex;gap:14px;align-items:center;margin-top:6px}
.c-foot .link-btn{color:#9aa3ad;font-weight:600}
.c-foot .link-btn:hover{color:#fff}
.reply-form[hidden]{display:none}
.link-btn{color:#6ea8fe}
.link-btn.delete{color:#f87171}
.js-delete{color:#f87171}

/* ===== Fixed room layout: big player, page locked, only comments scroll ===== */
.add-version-card h2{font-size:17px}
@media (min-width:1024px){
  body.room-page{height:100vh;overflow:hidden}
  body.room-page .container.wide{width:min(1840px,100%);height:calc(100vh - 60px);display:flex;flex-direction:column;padding:14px 18px 16px}
  body.room-page .room-layout{flex:1;min-height:0;align-items:stretch;grid-template-columns:minmax(0,1fr) 420px}
  body.room-page .room-main-col{display:flex;flex-direction:column;height:100%;min-height:0}
  body.room-page .player-card{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:0}
  body.room-page video{flex:1;min-height:0;height:100%;max-height:none;width:100%;object-fit:contain}
  body.room-page .room-side{position:static;height:100%;min-height:0;display:flex;flex-direction:column;gap:12px}
  body.room-page .comments-card{flex:1;height:auto;min-height:0;margin-bottom:0}
  body.room-page .add-version-card{flex:none;margin-bottom:0;padding:14px 16px}
  body.room-page .add-version-card h2{margin-bottom:10px}
  body.room-page .add-version-card .inline-form{flex-direction:column;align-items:stretch}
}

/* ===== Compact room header (more room for player + comments) ===== */
body.room-page .topbar{height:44px;padding:0 14px}
body.room-page .brand{font-size:15px}
body.room-page .brand-mark{width:24px;height:24px;border-radius:7px}
body.room-page .room-head{margin-bottom:10px}
body.room-page .room-head h1{font-size:17px;margin:0}
body.room-page .room-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0}
body.room-page .version-tabs{margin-bottom:0}
body.room-page .version-tabs a{padding:5px 11px;font-size:13px}
body.room-page .back{width:28px;height:28px;font-size:20px}
body.room-page .comments-card{padding:14px 16px}
body.room-page .note-composer{padding-top:9px;margin-top:9px}
@media (min-width:1024px){
  body.room-page .container.wide{height:calc(100vh - 44px);padding:10px 14px 12px}
}

/* ===== Photo background (login brighter, app pages dimmed for readability) ===== */
body{background-image:linear-gradient(rgba(7,9,13,.52),rgba(7,9,13,.52)),url('/static/bg-bath.jpg');background-size:cover;background-position:center;background-attachment:fixed}
.auth-page{background-image:linear-gradient(rgba(7,9,13,.22),rgba(7,9,13,.22)),url('/static/bg-bath.jpg');background-size:cover;background-position:center}

/* ===== Portal home: function grid + activity feed ===== */
.section-title{font-size:19px;margin:2px 0 12px}
.func-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:12px;margin-bottom:18px}
.func-card{background:#14161b;border:1px solid #23262d;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px}
.func-top{display:flex;align-items:center}
.func-top .badge{margin-left:auto}
.func-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;font-size:18px;background:#1d2026}
.func-card h3{margin:0;font-size:16px}
.func-card p{margin:0;color:#9aa3ad;font-size:13.5px;line-height:1.45;flex:1}
.func-meta{font-size:12.5px;color:#8b929c}
.func-card .btn{align-self:flex-start}
.func-card.dashed{border-style:dashed;align-items:flex-start;justify-content:center}
.func-plus{font-size:26px;color:#8b929c;line-height:1}
.act-list{display:flex;flex-direction:column}
.act-row{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #1f2229}
.act-row:last-child{border-bottom:0;padding-bottom:2px}
.act-row .c-main{font-size:14px;line-height:1.45}

/* ===== Per-function soft colors ===== */
.func-card.c-blue{border-color:rgba(96,165,250,.38);background-image:linear-gradient(180deg,rgba(96,165,250,.08),rgba(96,165,250,0) 62%)}
.func-card.c-blue .func-icon{background:rgba(96,165,250,.17);color:#7db3ff}
.func-card.c-violet{border-color:rgba(167,139,250,.38);background-image:linear-gradient(180deg,rgba(167,139,250,.08),rgba(167,139,250,0) 62%)}
.func-card.c-violet .func-icon{background:rgba(167,139,250,.17);color:#c4b0ff}
.func-card.c-teal{border-color:rgba(45,212,191,.34);background-image:linear-gradient(180deg,rgba(45,212,191,.07),rgba(45,212,191,0) 62%)}
.func-card.c-teal .func-icon{background:rgba(45,212,191,.15);color:#5eead4}

/* ===== Function page tint (Duyet video = soft blue) ===== */
body.tint-blue{background-image:linear-gradient(rgba(10,17,34,.55),rgba(10,17,34,.55)),url('/static/bg-bath.jpg')}
.func-icon.blue{background:rgba(96,165,250,.17);color:#7db3ff}

/* ===== Brand logo ===== */
.brand{display:inline-flex;align-items:center;gap:9px}
.brand-logo{height:32px;width:auto;display:block}
body.room-page .brand-logo{height:27px}
.logo-img{height:76px;width:auto;display:block;margin:0 auto 14px}

/* ===== Strong per-function backgrounds (not just borders) ===== */
.func-card.c-blue{background-color:#152540;background-image:linear-gradient(160deg,rgba(59,130,246,.42),rgba(59,130,246,.12) 60%,rgba(59,130,246,0))}
.func-card.c-blue .func-icon{background:rgba(59,130,246,.38);color:#dbeafe}
.func-card.c-violet{background-color:#251a44;background-image:linear-gradient(160deg,rgba(139,92,246,.42),rgba(139,92,246,.12) 60%,rgba(139,92,246,0))}
.func-card.c-violet .func-icon{background:rgba(139,92,246,.38);color:#ede9fe}
.func-card.c-teal{background-color:#0e2c28;background-image:linear-gradient(160deg,rgba(20,184,166,.40),rgba(20,184,166,.12) 60%,rgba(20,184,166,0))}
.func-card.c-teal .func-icon{background:rgba(20,184,166,.38);color:#ccfbf1}
body.tint-blue{background-image:linear-gradient(rgba(12,26,54,.80),rgba(9,15,30,.88)),url('/static/bg-bath.jpg')}
body.tint-violet{background-image:linear-gradient(rgba(36,20,64,.80),rgba(17,12,32,.88)),url('/static/bg-bath.jpg')}
body.tint-teal{background-image:linear-gradient(rgba(7,38,35,.80),rgba(8,20,20,.88)),url('/static/bg-bath.jpg')}

/* ===== Translucency: photo background shows through surfaces ===== */
body{background-image:linear-gradient(rgba(7,9,13,.40),rgba(7,9,13,.40)),url('/static/bg-bath.jpg')}
body.tint-blue{background-image:linear-gradient(rgba(12,26,54,.58),rgba(9,15,30,.68)),url('/static/bg-bath.jpg')}
body.tint-violet{background-image:linear-gradient(rgba(36,20,64,.58),rgba(17,12,32,.68)),url('/static/bg-bath.jpg')}
body.tint-teal{background-image:linear-gradient(rgba(7,38,35,.58),rgba(8,20,20,.68)),url('/static/bg-bath.jpg')}
.card{background:rgba(19,21,27,.80)}
.func-card{background:rgba(19,21,27,.72)}
.func-card.c-blue{background-color:rgba(37,99,235,.34);background-image:linear-gradient(160deg,rgba(59,130,246,.30),rgba(59,130,246,.08) 60%,rgba(59,130,246,0))}
.func-card.c-violet{background-color:rgba(124,58,237,.34);background-image:linear-gradient(160deg,rgba(139,92,246,.30),rgba(139,92,246,.08) 60%,rgba(139,92,246,0))}
.func-card.c-teal{background-color:rgba(13,148,136,.32);background-image:linear-gradient(160deg,rgba(20,184,166,.30),rgba(20,184,166,.08) 60%,rgba(20,184,166,0))}
.topbar{background:rgba(14,16,21,.84)}

/* ===== Function names: bigger and bolder ===== */
.func-card h3{font-size:21px;font-weight:800;letter-spacing:.2px}
.room-title h1{font-size:25px;font-weight:800}
.func-icon.blue{width:46px;height:46px;font-size:21px}

/* ===== Function backgrounds: dial back transparency a notch ===== */
.func-card.c-blue{background-color:rgba(37,99,235,.55);background-image:linear-gradient(160deg,rgba(59,130,246,.45),rgba(59,130,246,.14) 60%,rgba(59,130,246,0))}
.func-card.c-violet{background-color:rgba(124,58,237,.55);background-image:linear-gradient(160deg,rgba(139,92,246,.45),rgba(139,92,246,.14) 60%,rgba(139,92,246,0))}
.func-card.c-teal{background-color:rgba(13,148,136,.52);background-image:linear-gradient(160deg,rgba(20,184,166,.44),rgba(20,184,166,.14) 60%,rgba(20,184,166,0))}
body.tint-blue{background-image:linear-gradient(rgba(12,26,54,.66),rgba(9,15,30,.75)),url('/static/bg-bath.jpg')}
body.tint-violet{background-image:linear-gradient(rgba(36,20,64,.66),rgba(17,12,32,.75)),url('/static/bg-bath.jpg')}
body.tint-teal{background-image:linear-gradient(rgba(7,38,35,.66),rgba(8,20,20,.75)),url('/static/bg-bath.jpg')}

/* ===== Function management (admin only, amber) ===== */
.func-card.c-amber{background-color:rgba(217,119,6,.48);background-image:linear-gradient(160deg,rgba(245,158,11,.40),rgba(245,158,11,.12) 60%,rgba(245,158,11,0))}
.func-card.c-amber .func-icon{background:rgba(245,158,11,.38);color:#fde68a}
.badge.gold{background:rgba(245,158,11,.25);color:#fcd34d}
body.tint-amber{background-image:linear-gradient(rgba(54,36,8,.66),rgba(30,22,8,.75)),url('/static/bg-bath.jpg')}
.func-icon.amber{background:rgba(245,158,11,.38);color:#fcd34d}
.fn-head{display:flex;align-items:center;gap:12px;margin-bottom:6px;flex-wrap:wrap}
.fn-head h2{margin:0}
.fn-head .badge{margin-left:auto}
.lock-row{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid #23262d}
.lock-text{flex:1}
.lock-text p{margin:4px 0 0}
.switch{position:relative;width:50px;height:28px;flex:none;margin-top:2px}
.switch input{opacity:0;width:100%;height:100%;position:absolute;inset:0;margin:0;cursor:pointer;z-index:2}
.switch .track{position:absolute;inset:0;background:#2a2e36;border-radius:99px;transition:background .15s}
.switch .track:before{content:"";position:absolute;width:22px;height:22px;border-radius:50%;background:#8b939e;top:3px;left:3px;transition:all .15s}
.switch input:checked + .track{background:#dc2626}
.switch input:checked + .track:before{transform:translateX(22px);background:#fff}
.lock-card{text-align:center;padding:40px 22px}
.lock-big{font-size:44px;margin-bottom:10px}
.lock-card .btn{margin-top:16px}

/* ===== Narration writer ===== */
.func-icon.violet{background:rgba(139,92,246,.38);color:#ede9fe}
.narration-result{white-space:pre-wrap;line-height:1.65;font-size:15px;word-break:break-word}
.check-line{display:flex;align-items:center;gap:8px;font-weight:600;margin-top:12px}
.check-line input{width:auto}

/* ===== Narration: select + file input ===== */
.stack-form select{width:100%;border:1.5px solid #2c313a;background:#0d0f12;color:#e8eaed;border-radius:12px;padding:13px;font:inherit}
.stack-form input[type="file"]{padding:10px 13px}

/* ===== Narration: language picker + editable results ===== */
.lang-grid{display:flex;flex-wrap:wrap;gap:2px 20px}
.lang-grid .check-line{margin-top:8px}
.result-edit{width:100%;border:1.5px solid #2c313a;background:#0d0f12;color:#e8eaed;border-radius:12px;padding:13px;font:inherit;line-height:1.6;resize:vertical}
.link-toggle{background:none;border:0;color:#c4b0ff;cursor:pointer;font:inherit;font-weight:700;padding:0}

/* ===== Narration: add-language row ===== */
.add-lang-row{display:flex;gap:8px;margin-top:10px}
.add-lang-row input{flex:1}
.chip-x{background:#2a2e36;border:0;color:#f87171;border-radius:6px;width:20px;height:20px;cursor:pointer;font-size:11px;line-height:1;padding:0}

/* ===== Narration: model column + error suggestions ===== */
.nar-row{display:grid;grid-template-columns:1fr 280px;gap:20px;align-items:start}
@media (max-width:820px){.nar-row{grid-template-columns:1fr}}
.nar-row select{width:100%}
.suggest-card{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:rgba(124,58,237,.14);border:1px solid rgba(167,139,250,.45);border-radius:12px;padding:10px 12px;margin:0 0 10px}

/* ===== Workspace layout: sticky controls + results grid ===== */
.container.wide{max-width:1560px}
.nar-workspace{display:grid;grid-template-columns:var(--side-w,400px) 10px minmax(0,1fr);gap:14px;align-items:start}
.nar-side{position:sticky;top:64px;max-height:calc(100vh - 80px);overflow:auto}
.results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--card-min,430px),1fr));gap:16px;align-items:start}
.results-grid .card{margin:0}
@media (max-width:1020px){.nar-workspace{grid-template-columns:1fr}.nar-side{position:static;max-height:none}.splitter{display:none}}
.progress-wrap{display:flex;align-items:center;gap:10px;margin-top:10px}
.progress-track{flex:1;height:10px;background:#262a33;border-radius:99px;overflow:hidden}
.progress-fill{height:100%;width:0%;background:linear-gradient(90deg,#7c3aed,#a78bfa);border-radius:99px;transition:width .25s ease}
.progress-label{font-weight:700;min-width:42px;text-align:right}
.export-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px;padding:12px 16px}

/* ===== Voice page ===== */
.voice-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end}
@media (max-width:820px){.voice-controls{grid-template-columns:1fr}}
.voice-control-btns{display:flex;gap:8px;flex-wrap:wrap}
.voice-line{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.voice-line:last-child{border-bottom:0}
.voice-text{flex:1;margin:0}
.voice-line-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.voice-line-actions audio{height:34px;max-width:230px}
.progress-fill.teal{background:linear-gradient(90deg,#0d9488,#2dd4bf)}
.draft-list{margin:8px 0;padding-left:18px}


/* ===== Layout customization ===== */
.splitter{cursor:ew-resize;border-radius:99px;background:rgba(255,255,255,.10);position:sticky;top:64px;height:calc(100vh - 80px);display:flex;align-items:center;justify-content:center;touch-action:none}
.splitter::after{content:"⋮";color:rgba(255,255,255,.55);font-size:18px;line-height:1}
.splitter:hover,.splitter.active{background:rgba(167,139,250,.55)}
.nar-side .nar-row{grid-template-columns:1fr}
.results-grid .result-edit{height:300px;resize:vertical;min-height:150px;max-height:75vh}
textarea{resize:vertical}

/* ===== Full-bleed workspace pages (viet + voice only) ===== */
.container.full{width:100%;max-width:none;padding-left:18px;padding-right:18px}

/* ---- pick rows / voice login ---- */
.pick-row{display:flex;gap:10px;align-items:center}
.pick-row select{flex:1}
.voice-login-row{display:flex;gap:10px;align-items:center}
.voice-login-row input{flex:1;padding:10px 12px;border:1px solid #2c313a;border-radius:10px;background:#0d0f12;color:#f3f4f6}

/* ---- LIGHT THEME ---- */
html.light{color-scheme:light}
html.light body{background:linear-gradient(rgba(255,255,255,.74),rgba(255,255,255,.82)),url('/static/bg-bath.jpg') center/cover fixed;color:#0f172a}
html.light body.tint-blue{background:linear-gradient(rgba(219,234,254,.70),rgba(255,255,255,.82)),url('/static/bg-bath.jpg') center/cover fixed}
html.light body.tint-violet{background:linear-gradient(rgba(237,233,254,.70),rgba(255,255,255,.82)),url('/static/bg-bath.jpg') center/cover fixed}
html.light body.tint-teal{background:linear-gradient(rgba(204,251,241,.66),rgba(255,255,255,.82)),url('/static/bg-bath.jpg') center/cover fixed}
html.light body.tint-amber{background:linear-gradient(rgba(254,243,199,.66),rgba(255,255,255,.82)),url('/static/bg-bath.jpg') center/cover fixed}
html.light .topbar{background:rgba(255,255,255,.88);border-bottom:1px solid #e2e8f0;color:#0f172a}
html.light .card,html.light .func-card{background:rgba(255,255,255,.93);border-color:#e2e8f0;color:#0f172a;box-shadow:0 8px 24px rgba(15,23,42,.08)}
html.light h1,html.light h2,html.light h3{color:#0f172a}
html.light .muted{color:#64748b}
html.light a{color:#2563eb}
html.light .btn{background:#ffffff;border-color:#cbd5e1;color:#0f172a}
html.light .btn.primary{background:#2563eb;border-color:#2563eb;color:#ffffff}
html.light input,html.light select,html.light textarea{background:#ffffff;border-color:#cbd5e1;color:#0f172a}
html.light .voice-login-row input{background:#ffffff;border-color:#cbd5e1;color:#0f172a}
html.light .alert.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
html.light .alert.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
html.light .progress-track{background:#e2e8f0}
html.light .splitter{background:rgba(15,23,42,.10)}
html.light .splitter:hover,html.light .splitter.active{background:rgba(124,58,237,.35)}
html.light .suggest-card{background:#f5f3ff;border-color:#ddd6fe;color:#0f172a}
html.light .voice-line{border-color:#e2e8f0}
html.light .lang-grid label{background:#ffffff;border-color:#cbd5e1;color:#0f172a}
html.light .auth-page{background:linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.65)),url('/static/bg-bath.jpg') center/cover fixed}

/* ---- episode gallery (Flow-style) ---- */
.episode-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:18px}
.episode-card{display:block;text-decoration:none}
.episode-card:hover{transform:translateY(-2px);transition:transform .15s}
.ep-code{font-size:22px;font-weight:800;margin-bottom:4px}
.ep-meta{font-size:13px;margin-bottom:8px}
.mini-chip{display:inline-block;padding:2px 9px;border-radius:999px;background:rgba(124,58,237,.28);color:#e9e4ff;font-size:12px;margin:2px 4px 2px 0}
.create-card h3{margin-top:0}
.create-card input{width:100%;margin:6px 0 10px}
.create-sep{display:flex;align-items:center;gap:10px;color:#9aa3af;font-size:13px;margin:16px 0 8px}
.create-sep:before,.create-sep:after{content:'';flex:1;border-top:1px solid rgba(255,255,255,.15)}
html.light .mini-chip{background:#ede9fe;color:#5b21b6}
html.light .create-sep{color:#64748b}
html.light .create-sep:before,html.light .create-sep:after{border-top-color:#e2e8f0}

/* ---- voice workspace 2/3 - 1/3 ---- */
.voice-workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px;align-items:start;margin-top:18px}
.voice-side{position:sticky;top:76px}
.voice-pick-row{display:flex;gap:8px;align-items:center}
.voice-pick-row select{flex:1}
.pick-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pick-grid label{display:block;margin-bottom:6px}
.voice-done-item{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.voice-done-item audio{flex:1;height:36px;min-width:0}
@media (max-width:1000px){.voice-workspace{grid-template-columns:1fr}.voice-side{position:static}.pick-grid{grid-template-columns:1fr}}
html.light .voice-done-item{border-bottom-color:#e2e8f0}

/* ---- voice pickers: full-width styled selects ---- */
.pick-grid{grid-template-columns:1fr 1fr auto;align-items:end}
.pick-grid select{width:100%;padding:11px 12px;border:1px solid #2c313a;border-radius:10px;background:#0d0f12;color:#f3f4f6;font-size:15px}
.pick-open{padding-bottom:1px}
.voice-pick-row select,.voice-controls select{padding:10px 12px;border:1px solid #2c313a;border-radius:10px;background:#0d0f12;color:#f3f4f6;font-size:15px}
@media (max-width:1000px){.pick-grid{grid-template-columns:1fr}}
html.light .pick-grid select,html.light .voice-pick-row select,html.light .voice-controls select{background:#ffffff;border-color:#cbd5e1;color:#0f172a}

/* ---- rose tint / Thay Voice ---- */
.func-card.c-rose{border-color:rgba(251,113,133,.38);background-color:rgba(225,29,72,.30);background-image:linear-gradient(160deg,rgba(244,63,94,.30),rgba(244,63,94,.08) 60%,rgba(244,63,94,0))}
.func-card.c-rose .func-icon{background:rgba(244,63,94,.38);color:#ffe4e6}
.func-icon.rose{background:rgba(244,63,94,.38);color:#ffe4e6}
body.tint-rose{background-image:linear-gradient(rgba(54,10,24,.58),rgba(24,8,14,.68)),url('/static/bg-bath.jpg')}
html.light body.tint-rose{background:linear-gradient(rgba(255,228,230,.70),rgba(255,255,255,.82)),url('/static/bg-bath.jpg') center/cover fixed}
.job-row{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.job-row:last-child{border-bottom:none}
.chip{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;margin-left:6px}
.chip-run{background:rgba(217,119,6,.25);color:#fcd34d}
.chip-done{background:rgba(22,163,74,.25);color:#86efac}
.chip-err{background:rgba(220,38,38,.25);color:#fca5a5}
.thay-video{width:280px;max-width:100%;border-radius:10px;display:block;margin-top:8px}
.job-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
html.light .job-row{border-bottom-color:#e2e8f0}
html.light .chip-run{background:#fef3c7;color:#92400e}
html.light .chip-done{background:#dcfce7;color:#166534}
html.light .chip-err{background:#fee2e2;color:#991b1b}

/* ---- full-width layout (2026-11-14) ---- */
.container{width:100%;max-width:none;padding-left:18px;padding-right:18px}
.container.wide{width:100%;max-width:none}
body.room-page .container.wide{width:100%;max-width:none}

/* ---- collapsible recent activity ---- */
.act-toggle{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;color:inherit;font:inherit;font-size:21px;font-weight:800;cursor:pointer;padding:0;text-align:left}
.act-count{font-size:13px;font-weight:600}
#act-body{margin-top:14px}

/* episode cards: main link + delete button (2026-11-14) */
.ep-main{display:block;color:inherit;text-decoration:none}
.ep-del{margin-top:10px}

/* function cards: visible border + hover zoom (2026-11-15) */
.func-card{border:2px solid rgba(255,255,255,.45);box-shadow:0 4px 18px rgba(0,0,0,.35);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;position:relative}
.func-card:hover{transform:scale(1.045);z-index:3;border-color:rgba(255,255,255,.95);box-shadow:0 14px 34px rgba(0,0,0,.5)}
html.light .func-card{border:2px solid rgba(15,23,42,.35);box-shadow:0 4px 18px rgba(15,23,42,.15)}
html.light .func-card:hover{border-color:rgba(15,23,42,.75);box-shadow:0 14px 34px rgba(15,23,42,.28)}

/* centered, bigger function cards + readable dark cards (2026-11-15) */
.func-grid{grid-template-columns:repeat(auto-fit,minmax(330px,420px));justify-content:center;gap:20px}
.section-title{text-align:center;font-size:22px}
.func-card{padding:24px;min-height:220px}
.func-card h3{font-size:25px}
.func-card p{font-size:15.5px;color:rgba(255,255,255,.92);font-weight:600}
.func-card .func-meta{color:rgba(255,255,255,.78);font-weight:600;font-size:13.5px}
.func-card{background-color:rgba(19,21,27,.92)}
.func-card.c-blue{background-color:rgba(30,64,175,.9)}
.func-card.c-violet{background-color:rgba(109,40,217,.9)}
.func-card.c-teal{background-color:rgba(15,118,110,.9)}
.func-card.c-rose{background-color:rgba(190,18,60,.88)}
.func-card.c-amber{background-color:rgba(180,83,9,.9)}
html.light .func-card p{color:#334155}
html.light .func-card .func-meta{color:#64748b}

/* whole-card click (2026-11-15): no more Mo button, the card itself is the link */
.func-card { position: relative; }
.func-card .card-hit { position: absolute; inset: 0; border-radius: inherit; z-index: 2; cursor: pointer; }

/* ===== Background dim: user-adjustable overall background (--bgdim from fx.js) ===== */
:root{--bgdim:.58}
body{background-image:linear-gradient(rgb(7 9 13 / var(--bgdim)),rgb(7 9 13 / var(--bgdim))),url('/static/bg-bath.jpg')}
body.tint-blue{background-image:linear-gradient(rgb(12 26 54 / calc(var(--bgdim) * 1.25)),rgb(9 15 30 / calc(var(--bgdim) * 1.45))),url('/static/bg-bath.jpg')}
body.tint-violet{background-image:linear-gradient(rgb(36 20 64 / calc(var(--bgdim) * 1.25)),rgb(17 12 32 / calc(var(--bgdim) * 1.45))),url('/static/bg-bath.jpg')}
body.tint-teal{background-image:linear-gradient(rgb(7 38 35 / calc(var(--bgdim) * 1.25)),rgb(8 20 20 / calc(var(--bgdim) * 1.45))),url('/static/bg-bath.jpg')}
body.tint-amber{background-image:linear-gradient(rgb(54 36 8 / calc(var(--bgdim) * 1.25)),rgb(30 22 8 / calc(var(--bgdim) * 1.45))),url('/static/bg-bath.jpg')}
html.light body{background-image:linear-gradient(rgb(238 241 245 / var(--bgdim)),rgb(238 241 245 / var(--bgdim))),url('/static/bg-bath.jpg')}

/* loose headings/intro text sit in a backed box for readability (2026-11-16) */
.container>h1,.container>h2.section-title,.container>p.muted,.container>div>h1,.container>div>h2.section-title,.container>div>p.muted{background:rgba(8,15,22,.8);border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:10px 16px;width:fit-content;max-width:100%;margin-left:auto;margin-right:auto}
html.light .container>h1,html.light .container>h2.section-title,html.light .container>p.muted,html.light .container>div>h1,html.light .container>div>h2.section-title,html.light .container>div>p.muted{background:rgba(255,255,255,.88);border-color:rgba(15,23,42,.16)}

/* Hover phong to o bam duoc - toan giao dien (sep chot 16/11/2026).
   O trong o: chi o trong cung dang tro moi phong to (:has chan o cha). */
.tcard, .ep-block, .admin-tile, .my-task, .tb-card, .tb-un-item{transition:transform .18s ease,box-shadow .18s ease}
.tcard:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
.ep-block:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
.admin-tile:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
.my-task:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
.tb-card:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
.tb-un-item:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)){transform:scale(1.04);z-index:4;box-shadow:0 12px 28px rgba(0,0,0,.35)}
html.light .tcard:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
html.light .ep-block:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
html.light .admin-tile:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
.my-task:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
html.light .tb-card:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)),
html.light .tb-un-item:hover:not(:has(.tcard:hover, .ep-block:hover, .admin-tile:hover, .func-card:hover, .lang-card:hover, .my-task:hover, .tb-card:hover, .tb-un-item:hover)){box-shadow:0 12px 28px rgba(15,23,42,.25)}

/* boss 2026-11-16: function cards — no descriptions, centered, bigger titles */
.func-card{align-items:center;text-align:center;justify-content:center}
.func-card .func-top{justify-content:center}
.func-card .func-top .badge{margin-left:8px}
.func-card h3{font-size:30px}
.func-card p:not(.wait-note){display:none}
.func-card .btn{align-self:center}

/* ===== TEST 2026-11-17 (family.scottvold.com only): sidebar card menu + clay 3D skin, home page only ===== */
body:is(.home3d,.has-side3d) .shell3d{display:grid;grid-template-columns:348px minmax(0,1fr);gap:20px;align-items:start;max-width:1460px;margin:0 auto}
body:is(.home3d,.has-side3d) .side3d{position:sticky;top:76px;background:rgba(9,12,19,.80);border:1px solid rgba(255,255,255,.16);border-radius:28px;padding:18px;box-shadow:0 18px 40px rgba(0,0,0,.35)}
body:is(.home3d,.has-side3d) .side3d-title{text-align:center;margin:0 0 14px;font-size:15px;font-weight:800;letter-spacing:4px;color:#cbd5e1}
body:is(.home3d,.has-side3d) .side3d-home{display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:20px;font-weight:800;font-size:17px;color:#fff;background:linear-gradient(160deg,rgba(71,85,105,.95),rgba(30,41,59,.95));border:2px solid rgba(255,255,255,.30);box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -6px 12px rgba(0,0,0,.30),0 6px 0 #0f172a,0 14px 24px rgba(0,0,0,.35);transition:transform .18s ease,box-shadow .18s ease}
body:is(.home3d,.has-side3d) .side3d-home:hover{transform:scale(1.04)}
body:is(.home3d,.has-side3d) .side3d-home.is-active{border-color:#f59e0b}
body:is(.home3d,.has-side3d) .side3d-home-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-size:19px;background:rgba(245,158,11,.35);box-shadow:inset 0 2px 3px rgba(255,255,255,.4),inset 0 -4px 8px rgba(0,0,0,.25)}
body:is(.home3d,.has-side3d) .side3d-list{display:flex;flex-direction:column;gap:16px;margin:16px 0 2px}
body:is(.home3d,.has-side3d) .side3d .func-card{flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;min-height:0;padding:16px 18px;border-radius:24px;border:2px solid rgba(255,255,255,.38);box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -8px 14px rgba(0,0,0,.28),0 8px 0 rgba(0,0,0,.35),0 18px 28px rgba(0,0,0,.35)}
body:is(.home3d,.has-side3d) .side3d .func-card.c-teal{box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -8px 14px rgba(0,0,0,.28),0 8px 0 #0b4f4a,0 18px 28px rgba(0,0,0,.35)}
body:is(.home3d,.has-side3d) .side3d .func-card.c-blue{box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -8px 14px rgba(0,0,0,.28),0 8px 0 #1e3a8a,0 18px 28px rgba(0,0,0,.35)}
body:is(.home3d,.has-side3d) .side3d .func-card.c-violet{box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -8px 14px rgba(0,0,0,.28),0 8px 0 #4c1d95,0 18px 28px rgba(0,0,0,.35)}
body:is(.home3d,.has-side3d) .side3d .func-card.c-amber{box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -8px 14px rgba(0,0,0,.28),0 8px 0 #92400e,0 18px 28px rgba(0,0,0,.35)}
body:is(.home3d,.has-side3d) .side3d .func-card:hover{box-shadow:inset 0 2px 3px rgba(255,255,255,.35),inset 0 -8px 14px rgba(0,0,0,.28),0 8px 0 rgba(0,0,0,.35),0 22px 36px rgba(0,0,0,.5)}
body:is(.home3d,.has-side3d) .side3d .func-top{justify-content:flex-start}
body:is(.home3d,.has-side3d) .side3d .func-icon{width:52px;height:52px;flex:none;border-radius:16px;font-size:24px;box-shadow:inset 0 2px 3px rgba(255,255,255,.45),inset 0 -4px 8px rgba(0,0,0,.25),0 4px 10px rgba(0,0,0,.30)}
body:is(.home3d,.has-side3d) .side3d .func-card h3{font-size:20px}
body:is(.home3d,.has-side3d) .side3d .func-top .badge{position:absolute;bottom:10px;right:12px;margin:0}
body:is(.home3d,.has-side3d) .side3d .func-card:has(.func-meta){flex-direction:column;align-items:stretch;gap:7px}
body:is(.home3d,.has-side3d) .side3d .func-card:has(.func-meta) .func-top{width:100%}
body:is(.home3d,.has-side3d) .side3d .func-card:has(.func-meta) .func-top .badge{position:static;margin:0 0 0 auto}
body:is(.home3d,.has-side3d) .side3d .func-card:has(.func-meta) h3{font-size:19px}
body:is(.home3d,.has-side3d) .side3d .func-meta{color:rgba(255,255,255,.85);font-size:13px;font-weight:600;text-align:left}
html.light body:is(.home3d,.has-side3d) .side3d .func-meta{color:#475569}
body:is(.home3d,.has-side3d) .side3d .wait-bubble{top:-10px;right:-6px}
body:is(.home3d,.has-side3d) .page3d-title{background:rgba(8,15,22,.8);border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:10px 16px;width:fit-content;max-width:100%;margin:0 auto 16px;font-size:22px;text-align:center}
html.light body:is(.home3d,.has-side3d) .side3d{background:rgba(255,255,255,.88);border-color:rgba(15,23,42,.14)}
html.light body:is(.home3d,.has-side3d) .side3d-title{color:#475569}
html.light body:is(.home3d,.has-side3d) .page3d-title{background:rgba(255,255,255,.88);border-color:rgba(15,23,42,.16)}
@media (max-width:900px){
  body:is(.home3d,.has-side3d) .shell3d{grid-template-columns:1fr}
  body:is(.home3d,.has-side3d) .side3d{position:static}
  body:is(.home3d,.has-side3d) .side3d-list{flex-direction:row;overflow-x:auto;padding:4px 2px 10px}
  body:is(.home3d,.has-side3d) .side3d .func-card{flex:0 0 auto}
}
body:is(.home3d,.has-side3d) .side3d .func-card.is-active{border-color:#f59e0b}
body:is(.home3d,.has-side3d) .content3d{min-width:0}

/* ===== TEST 2026-11-17 v2: hub pages — menu = the page's own cards; clay 3D on every clickable box ===== */
body:is(.home3d,.has-side3d) .side3d-back{display:flex;align-items:center;gap:10px;padding:11px 16px;border-radius:18px;font-weight:700;font-size:15.5px;color:#e2e8f0;background:rgba(255,255,255,.08);border:2px solid rgba(255,255,255,.18);box-shadow:inset 0 2px 3px rgba(255,255,255,.22),inset 0 -5px 10px rgba(0,0,0,.22),0 5px 0 rgba(0,0,0,.28),0 10px 18px rgba(0,0,0,.28);transition:transform .18s ease}
body:is(.home3d,.has-side3d) .side3d-back:hover{transform:scale(1.04)}
html.light body:is(.home3d,.has-side3d) .side3d-back{color:#1e293b;background:rgba(15,23,42,.06)}
body:is(.home3d,.has-side3d) .side3d .func-logo{width:52px;height:52px;flex:none;border-radius:16px;box-shadow:inset 0 2px 3px rgba(255,255,255,.45),inset 0 -4px 8px rgba(0,0,0,.25),0 4px 10px rgba(0,0,0,.30)}
body:is(.home3d,.has-side3d) .side3d .plus-only{min-height:0;font-size:44px;padding:2px 0}
body:is(.home3d,.has-side3d) .side3d .lang-grid{display:flex;flex-direction:column;gap:16px;margin:16px 0 2px}
body:is(.home3d,.has-side3d) .side3d .lang-card,body:is(.home3d,.has-side3d) .side3d .lang-add{border-radius:24px;box-shadow:inset 0 2px 3px rgba(255,255,255,.30),inset 0 -8px 14px rgba(0,0,0,.22),0 8px 0 rgba(0,0,0,.30),0 18px 28px rgba(0,0,0,.32)}
body:is(.home3d,.has-side3d) .hub-panel{max-width:680px;margin:0 auto;text-align:center;padding:28px 24px}
body:is(.home3d,.has-side3d) .hub-panel p{margin:0;font-size:16px;line-height:1.6}
body:is(.home3d,.has-side3d) .hub-wait{margin-top:12px!important;font-weight:800;color:#fca5a5;font-size:17px!important}
html.light body:is(.home3d,.has-side3d) .hub-wait{color:#b91c1c}
/* clay 3D skin for clickable boxes everywhere (test) */
.func-card,.lang-card,.admin-tile,.episode-card{box-shadow:inset 0 2px 3px rgba(255,255,255,.25),inset 0 -6px 12px rgba(0,0,0,.20),0 6px 0 rgba(0,0,0,.20),0 14px 24px rgba(0,0,0,.30)}
.tcard,.ep-block,.my-task,.tb-card,.tb-un-item{box-shadow:inset 0 1px 2px rgba(255,255,255,.22),inset 0 -4px 8px rgba(0,0,0,.18),0 4px 0 rgba(0,0,0,.18),0 10px 18px rgba(0,0,0,.26)}
body:is(.home3d,.has-side3d) .hub-panel.wide{max-width:none;text-align:left}
body:is(.home3d,.has-side3d) .hub-h{margin:0 0 14px;font-size:19px}
body:is(.home3d,.has-side3d) .hub-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
body:is(.home3d,.has-side3d) .hub-list li{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:9px 12px}
body:is(.home3d,.has-side3d) .hub-ep{font-weight:800}
body:is(.home3d,.has-side3d) .hub-stage{color:#cbd5e1}
body:is(.home3d,.has-side3d) .hub-due{margin-left:auto;font-weight:700}
body:is(.home3d,.has-side3d) .hub-due.bad{color:#f87171}
body:is(.home3d,.has-side3d) .hub-line{margin:9px 0;font-size:15.5px}
body:is(.home3d,.has-side3d) .hub-sub{font-weight:700;margin:12px 0 8px}
body:is(.home3d,.has-side3d) .mini-kpi{display:flex;align-items:center;gap:10px;margin:8px 0}
body:is(.home3d,.has-side3d) .mk-name{width:180px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 0 auto}
body:is(.home3d,.has-side3d) .mk-track{flex:1;height:14px;background:rgba(255,255,255,.14);border-radius:99px;overflow:hidden}
body:is(.home3d,.has-side3d) .mk-fill{height:100%;background:linear-gradient(90deg,#f59e0b,#ef4444);border-radius:99px}
body:is(.home3d,.has-side3d) .mk-pct{width:54px;text-align:right;font-weight:800;flex:0 0 auto}
html.light body:is(.home3d,.has-side3d) .hub-list li{background:rgba(15,23,42,.05);border-color:rgba(15,23,42,.10)}
html.light body:is(.home3d,.has-side3d) .hub-stage{color:#64748b}
html.light body:is(.home3d,.has-side3d) .mk-track{background:rgba(15,23,42,.12)}
@media (max-width:640px){body:is(.home3d,.has-side3d) .mk-name{width:110px}}
body:is(.home3d,.has-side3d) .preview-wrap{display:flex;flex-direction:column;gap:10px}
body:is(.home3d,.has-side3d) .preview-bar{display:flex;align-items:center;gap:12px}
body:is(.home3d,.has-side3d) .pv-title{background:rgba(8,15,22,.8);border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:9px 16px;font-weight:800;font-size:17px}
html.light body:is(.home3d,.has-side3d) .pv-title{background:rgba(255,255,255,.88);border-color:rgba(15,23,42,.16)}
body:is(.home3d,.has-side3d) .preview-bar .btn{margin-left:auto}
body:is(.home3d,.has-side3d) #pv-frame{width:100%;height:calc(100vh - 185px);min-height:460px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(10,13,20,.45)}
body:is(.home3d,.has-side3d) .side3d .is-preview{border-color:#f59e0b!important}
.embed-list{display:flex;flex-direction:column;gap:14px}
@media (max-width:900px){body:is(.home3d,.has-side3d) #pv-frame{height:62vh;min-height:380px}}
body:is(.home3d,.has-side3d) #pv-frame{visibility:hidden}
body:is(.home3d,.has-side3d) .pv-load{font-weight:700;color:#fbbf24}
body:is(.home3d,.has-side3d) .preview-stack{position:relative;height:calc(100vh - 185px);min-height:460px}
body:is(.home3d,.has-side3d) .preview-stack iframe{position:absolute;inset:0;width:100%;height:100%;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(10,13,20,.45);opacity:0;pointer-events:none;transition:opacity .18s ease}
body:is(.home3d,.has-side3d) .preview-stack iframe.pv-on{opacity:1;pointer-events:auto}
body.home3d .preview-stack{height:56vh;min-height:380px}
@media (max-width:900px){body:is(.home3d,.has-side3d) .preview-stack{height:62vh;min-height:380px}}

/* ===== CLAY V20 SKIN — TEST 2026-11-17: full pastel clay like the Code XR V20 video.
   Puffy rounded surfaces, soft inner light, springy press (squish) on clickables. */
body, html.light body{background-image:linear-gradient(165deg,#E7E4FF 0%,#F4F2FF 52%,#FFEFE2 100%);background-attachment:fixed;color:#2E2A55}
.topbar{background:rgba(255,255,255,.88);border-bottom:0;box-shadow:0 10px 24px rgba(80,70,180,.14),inset 0 -3px 6px rgba(80,70,180,.06);backdrop-filter:blur(6px)}
.topbar .brand,.topbar .user-chip{color:#2E2A55}
.card,.func-card,.lang-card,.admin-tile,.episode-card,.tcard,.ep-block,.my-task,.tb-card,.tb-un-item,.success-card,.auth-card,.player-card{
  background:#FFFDFB;color:#2E2A55;border:2px solid rgba(255,255,255,.9);border-radius:26px;
  box-shadow:inset 0 3px 6px rgba(255,255,255,1),inset 0 -8px 14px rgba(96,84,210,.10),0 18px 30px rgba(80,70,180,.16)}
.player-card{background:#2E2A55;color:#fff}
.muted{color:#6F6C96}
.container>h1,.container>h2.section-title,.container>p.muted,.container>div>h1,.container>div>h2.section-title,.container>div>p.muted{
  background:rgba(255,255,255,.92);color:#2E2A55;border:2px solid rgba(255,255,255,.9);
  box-shadow:inset 0 3px 6px #fff,inset 0 -8px 14px rgba(96,84,210,.10),0 18px 30px rgba(80,70,180,.16)}
.btn{border-radius:999px;border:2px solid rgba(255,255,255,.9);background:#FFFDFB;color:#2E2A55;
  box-shadow:inset 0 3px 5px #fff,inset 0 -6px 10px rgba(96,84,210,.12),0 10px 18px rgba(80,70,180,.16)}
.btn.primary{background:linear-gradient(180deg,#8B7CF6,#6D5DF0);border-color:#8B7CF6;color:#fff;
  box-shadow:inset 0 3px 5px rgba(255,255,255,.5),inset 0 -6px 10px rgba(40,30,120,.35),0 12px 20px rgba(109,93,240,.35)}
input,select,textarea{background:#FBFAFF!important;color:#2E2A55!important;border:2px solid #E3E0FA!important;border-radius:16px!important;
  box-shadow:inset 0 3px 7px rgba(96,84,210,.12)}
.board .col{background:rgba(255,255,255,.66);border:2px solid rgba(255,255,255,.85);border-radius:26px;
  box-shadow:inset 0 3px 6px #fff,inset 0 -8px 14px rgba(96,84,210,.08),0 16px 26px rgba(80,70,180,.13)}
.board .col header{color:#2E2A55}
/* springy press: hover lift stays, click squishes with an elastic release */
.func-card,.lang-card,.admin-tile,.tcard,.ep-block,.my-task,.tb-card,.tb-un-item,.btn,.side3d-home,.lang-add{
  transition:transform .22s cubic-bezier(.34,1.8,.64,1),box-shadow .22s ease,border-color .2s ease,background .2s ease}
.func-card:active,.lang-card:active,.admin-tile:active,.tcard:active,.ep-block:active,.my-task:active,.tb-card:active,.tb-un-item:active,.btn:active,.side3d-home:active,.lang-add:active{
  transform:scale(.93)!important;box-shadow:inset 0 3px 6px #fff,inset 0 -3px 6px rgba(96,84,210,.12),0 5px 10px rgba(80,70,180,.18)}
/* sidebar: violet clay panel + greeting, like the video */
body:is(.home3d,.has-side3d) .side3d{background:linear-gradient(180deg,var(--acc1),var(--acc1));border:2px solid rgba(255,255,255,.55);
  box-shadow:inset 0 4px 8px rgba(255,255,255,.45),inset 0 -12px 20px rgba(46,36,140,.35),0 24px 38px rgba(80,70,180,.30)}
.side3d-hello{display:flex;align-items:center;gap:12px;margin:2px 0 14px}
.hello-ava{width:52px;height:52px;flex:0 0 auto;display:grid;place-items:center;font-size:25px;border-radius:50%;
  background:linear-gradient(180deg,#FFF,#E9E5FF);border:2px solid rgba(255,255,255,.9);
  box-shadow:inset 0 3px 5px #fff,inset 0 -5px 8px rgba(96,84,210,.25),0 8px 14px rgba(46,36,140,.30)}
.hello-txt{font-size:19px;font-weight:800;color:#fff;text-shadow:0 2px 6px rgba(46,36,140,.35)}
body:is(.home3d,.has-side3d) .side3d-title{color:#fff}
body:is(.home3d,.has-side3d) .side3d-back{color:#EDEBFF}
body:is(.home3d,.has-side3d) .side3d .func-card,body:is(.home3d,.has-side3d) .side3d .lang-card{
  background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.40);color:#fff;
  box-shadow:inset 0 3px 5px rgba(255,255,255,.35),inset 0 -7px 12px rgba(46,36,140,.28),0 10px 18px rgba(46,36,140,.25)}
body:is(.home3d,.has-side3d) .side3d .func-card h3,body:is(.home3d,.has-side3d) .side3d .lang-card .lang{color:#fff}
body:is(.home3d,.has-side3d) .side3d .is-preview,body:is(.home3d,.has-side3d) .side3d .side3d-home.is-active{
  background:#FFFDFB!important;color:#3B3480!important;border-color:#fff!important}
body:is(.home3d,.has-side3d) .side3d .is-preview h3,body:is(.home3d,.has-side3d) .side3d .is-preview .lang{color:#3B3480!important}
body:is(.home3d,.has-side3d) .pv-title{background:rgba(255,255,255,.94);color:#2E2A55;border-color:#fff;
  box-shadow:inset 0 3px 5px #fff,inset 0 -6px 10px rgba(96,84,210,.10),0 12px 20px rgba(80,70,180,.16)}
html.light body:is(.home3d,.has-side3d) .pv-title{background:rgba(255,255,255,.94);color:#2E2A55}
body:is(.home3d,.has-side3d) .preview-stack iframe{background:rgba(255,255,255,.55);border-color:rgba(255,255,255,.85)}
body:is(.home3d,.has-side3d) .hub-list li{background:rgba(255,255,255,.75);border-color:rgba(255,255,255,.9);color:#2E2A55}
body:is(.home3d,.has-side3d) .hub-stage{color:#6F6C96}
/* ===== CLAY V20 SKIN fixes — TEST 2026-11-17 ===== */
body:is(.home3d,.has-side3d) .page3d-title,html.light body:is(.home3d,.has-side3d) .page3d-title{
  background:rgba(255,255,255,.94);color:#2E2A55;border:2px solid #fff;
  box-shadow:inset 0 3px 5px #fff,inset 0 -6px 10px rgba(96,84,210,.10),0 12px 20px rgba(80,70,180,.16)}
.board .col{background:var(--cb,#F4F2FF)}
.board .col>header{color:#fff}
#sound-toggle,#glass-toggle,#bell-btn,#theme-toggle{background:#FFFDFB!important;color:#2E2A55!important;border:2px solid #fff!important;border-radius:50%!important;
  box-shadow:inset 0 3px 5px #fff,inset 0 -5px 8px rgba(96,84,210,.14),0 8px 14px rgba(80,70,180,.18)!important}
.func-card:active,.lang-card:active,.admin-tile:active,.tcard:active,.ep-block:active,.my-task:active,.tb-card:active,.tb-un-item:active,.btn:active,.side3d-home:active,.lang-add:active{
  transform:scale(.90)!important}
body:is(.home3d,.has-side3d) .preview-stack iframe.pv-on{opacity:0}
body:is(.home3d,.has-side3d) .preview-stack iframe.pv-on.pv-loaded{opacity:1}
/* ===== CLAY V20 SKIN fixes 2 — TEST 2026-11-17: pastel card tints + JS squish ===== */
.func-card.c-blue{background-color:#D9E7FF;background-image:linear-gradient(160deg,#EAF2FF,#CCDEFF)}
.func-card.c-violet{background-color:#E4DBFF;background-image:linear-gradient(160deg,#F1EBFF,#D8CBFF)}
.func-card.c-teal{background-color:#CFF2EA;background-image:linear-gradient(160deg,#E4FAF3,#B9EBDD)}
.func-card.c-amber{background-color:#FCE9BE;background-image:linear-gradient(160deg,#FFF4D7,#F9DFA3)}
.func-card.c-rose{background-color:#FFDCE5;background-image:linear-gradient(160deg,#FFEBF1,#FFC4D3)}
.squish{transform:scale(.90)!important}
/* ===== CLAY V20 v2 + APP SHELL — TEST 2026-11-17 (sep: click-to-switch, slim menu, dock) ===== */
body{background-image:linear-gradient(170deg,#ECE9FF,#F8F5FF 55%,#FFF6EC)}
.card,.func-card,.lang-card,.admin-tile,.episode-card,.tcard,.ep-block,.my-task,.tb-card,.tb-un-item,.hub-panel{
  border:1px solid rgba(255,255,255,.75);
  box-shadow:inset 0 2px 3px #fff,inset 0 -10px 18px rgba(109,93,240,.07),0 24px 44px rgba(109,93,240,.15)}
.preview-stack iframe{transition:opacity .45s ease,transform .45s ease;transform:scale(.985)}
.preview-stack iframe.pv-on.pv-loaded{transform:scale(1)}
/* shell layout */
.shell-app{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px;max-width:1560px;margin:0 auto;padding:14px 14px 96px;align-items:start}
.app-side{position:sticky;top:14px;height:calc(100vh - 28px);display:flex;flex-direction:column;background:linear-gradient(180deg,var(--acc1),var(--acc2));border-radius:28px;padding:22px 14px 16px;box-shadow:inset 0 2px 3px rgba(255,255,255,.5),0 24px 44px rgba(109,93,240,.35)}
.app-hello{margin:2px 6px 18px}
.app-hello .hello-ava{width:58px;height:58px;font-size:28px;border:3px solid rgba(255,255,255,.85);box-shadow:0 8px 18px rgba(50,40,140,.35);position:relative;background:linear-gradient(145deg,#A594FF,var(--acc2))}
.app-hello .hello-ava.has-img{background:#fff}
.app-hello .hello-ava img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.app-hello .hello-ava::after{content:"";position:absolute;right:1px;bottom:1px;width:13px;height:13px;border-radius:50%;background:#34D399;border:2.5px solid var(--acc1)}
.app-hello .hello-txt{color:#fff;font-size:19px;text-shadow:0 1px 3px rgba(50,40,140,.45)}
.app-hello .hello-sub{color:rgba(255,255,255,.75);font-size:12.5px}
.app-nav{display:flex;flex-direction:column;gap:3px;overflow-y:auto}
.app-nav a{display:flex;align-items:center;gap:11px;padding:11px 14px;border-radius:999px;color:#fff;font-weight:700;font-size:15.5px;text-decoration:none;transition:background .18s}
.app-nav a:hover{background:rgba(255,255,255,.16)}
.app-nav a.on{background:#FFFBF5;color:#2A2160;box-shadow:inset 0 2px 3px #fff,0 10px 20px rgba(50,40,140,.28)}
.app-nav .nav-ic{width:22px;text-align:center;flex:none}
.app-nav .nav-group{margin:14px 14px 4px;font-size:11.5px;font-weight:800;letter-spacing:.12em;color:rgba(255,255,255,.65)}
.app-nav .nav-spacer{flex:1;min-height:14px}
.app-main .preview-stack{height:calc(100vh - 28px)}
.app-main .preview-stack iframe{border-radius:28px}
/* dock */
.app-dock{position:fixed;left:50%;transform:translateX(-50%);bottom:16px;z-index:80;display:flex;gap:2px;align-items:center;background:linear-gradient(180deg,var(--acc1),var(--acc2));padding:8px;border-radius:999px;box-shadow:inset 0 2px 3px rgba(255,255,255,.5),0 22px 40px rgba(80,66,190,.45)}
.app-dock a{color:#fff;font-weight:700;font-size:14.5px;text-decoration:none;padding:9px 15px;border-radius:999px;white-space:nowrap}
.app-dock a:hover{background:rgba(255,255,255,.16)}
.app-dock a.on{background:#FFFBF5;color:#2A2160}
.app-dock .dock-plus{width:44px;height:44px;border-radius:50%;border:0;background:#FFFBF5;color:var(--acc2);font-size:26px;font-weight:800;display:grid;place-items:center;margin-left:6px;cursor:pointer;box-shadow:0 8px 16px rgba(50,40,140,.3)}
/* tong quan + cai dat bits (unscoped copies of mini-kpi / hub-list) */
.mini-kpi{display:flex;align-items:center;gap:10px;margin-top:9px;font-size:15px}
.mini-kpi-medal{width:26px;text-align:center;flex:none}
.mini-kpi-name{width:120px;flex:none;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-kpi-bar{flex:1;height:10px;border-radius:99px;background:rgba(109,93,240,.14);overflow:hidden}
.mini-kpi-bar>span{display:block;height:100%;border-radius:99px}
.mini-kpi-val{width:52px;text-align:right;font-weight:800;flex:none}
.hub-panel-title{margin:0 0 6px;font-size:19px;color:#2E2A55}
a.hub-list{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;color:#2E2A55;text-decoration:none;font-weight:700}
a.hub-list:hover{background:rgba(109,93,240,.08)}
.hub-wait{color:#8B85B8;font-weight:700;white-space:nowrap}
.tq-banner{background:linear-gradient(120deg,#E4DEFF,#FFE9E4);text-align:center}
.tq-hi{margin:4px 0 6px;font-size:30px;color:#2A2160}
.tq-sub{margin:0;color:#5B558C;font-size:16px}
.ava-row{display:flex;gap:22px;align-items:flex-start;flex-wrap:wrap}
.ava-big{width:112px;height:112px;border-radius:50%;object-fit:cover;box-shadow:inset 0 2px 3px #fff,0 14px 28px rgba(109,93,240,.25);flex:none}
.ava-ph{display:grid;place-items:center;font-size:52px;background:linear-gradient(145deg,#A594FF,var(--acc2))}
.ava-form{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.ava-saved{color:#059669;font-weight:800}
@media(max-width:900px){
  .shell-app{grid-template-columns:1fr;padding-bottom:110px}
  .app-side{position:static;height:auto}
  .app-nav{flex-direction:row;flex-wrap:wrap}
  .app-nav .nav-spacer{display:none}
  .app-main .preview-stack{height:70vh}
  .app-dock{max-width:94vw;overflow-x:auto}
}
/* ===== SHELL FIXES — TEST 2026-11-17: full-height frame, embed chrome, greeting ===== */
body.home3d .app-main .preview-stack{height:calc(100vh - 28px)}
.app-hello .hello-sub{display:block;margin-top:1px}
html.is-embed .topbar,html.is-embed .back-link,html.is-embed .hub-panel,html.is-embed .page3d-title,html.is-embed .side3d{display:none!important}
html.is-embed main.container{padding-top:12px}
html.is-embed .shell3d{grid-template-columns:minmax(0,1fr)!important}
html.is-embed .embed-list .func-grid,html.is-embed .embed-list .lang-grid{display:flex!important;flex-direction:column;gap:12px;max-width:860px;margin:0 auto}
html.is-embed .embed-list .func-card,html.is-embed .embed-list .lang-card{flex-direction:row;justify-content:flex-start;text-align:left;min-height:0;padding:16px 20px}
@media(max-width:900px){body.home3d .app-main .preview-stack{height:70vh}}
/* ===== SHELL FIXES 2 — TEST 2026-11-17: KPI name width, kanban fills frame ===== */
.mini-kpi-name{width:178px;font-size:14.5px}
html.is-embed .board{min-height:calc(100vh - 158px)}
/* ===== SHELL FIXES 3 — TEST 2026-11-17: full KPI names ===== */
.mini-kpi-name{width:216px;white-space:normal;line-height:1.25}
/* ===== SHELL v3 — TEST 2026-11-17: entrance pop, full width, shell hub strip, hero, contrast ===== */
@keyframes appIn{0%{transform:scale(.93);opacity:0}55%{transform:scale(1.015);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes dockIn{0%{transform:translateX(-50%) scale(.88);opacity:0}55%{transform:translateX(-50%) scale(1.03);opacity:1}100%{transform:translateX(-50%) scale(1);opacity:1}}
.shell-app{animation:appIn .65s cubic-bezier(.34,1.4,.64,1) both;max-width:none;padding:10px 14px 96px}
.topbar{animation:appIn .65s cubic-bezier(.34,1.4,.64,1) both;flex-wrap:wrap}
.app-dock{animation:dockIn .65s .08s cubic-bezier(.34,1.4,.64,1) both}
.app-side{top:10px;height:calc(100vh - 79px)}
body.home3d .app-main .preview-stack{height:calc(100vh - 79px)}
/* hub pages inside the app frame: their own cards become a strip on top */
html.is-embed.is-shell .side3d{display:flex!important;position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:10px;padding:14px;margin-bottom:14px}
html.is-embed.is-shell .side3d .side3d-hello,html.is-embed.is-shell .side3d .side3d-back,html.is-embed.is-shell .side3d .side3d-home{display:none!important}
html.is-embed.is-shell .side3d .func-card,html.is-embed.is-shell .side3d .lang-card,html.is-embed.is-shell .side3d .lang-add{flex:1 1 180px}
html.is-embed.is-shell .hub-panel{display:block!important}
/* hero banner (Tong quan) */
.hero{position:relative;overflow:hidden;border-radius:26px;padding:26px 30px;background:linear-gradient(120deg,#C9BAFF,#E7E1FF 55%,#FFE7DB);display:flex;gap:28px;align-items:center;box-shadow:inset 0 2px 3px #fff,inset 0 -12px 22px rgba(109,93,240,.10),0 24px 44px rgba(109,93,240,.18)}
.hero-art{position:relative;width:250px;height:160px;flex:none}
.hero-card{position:absolute;left:6px;top:14px;width:225px;height:140px;background:#FFFBF5;border-radius:16px;box-shadow:0 18px 34px rgba(80,66,190,.25);padding:14px 16px}
.hero-dots{display:flex;gap:6px;margin-bottom:12px}
.hero-dots span{width:10px;height:10px;border-radius:50%;background:#FF9E7D}
.hero-dots span:nth-child(2){background:#FFC94D}
.hero-dots span:nth-child(3){background:#7BDDB0}
.hero-bars{display:flex;gap:10px;align-items:flex-end;height:82px}
.hero-bars span{flex:1;border-radius:7px 7px 4px 4px}
.hero-ring{position:absolute;right:2px;top:2px;width:52px;height:52px;border-radius:50%;border:11px solid #FFC94D;border-top-color:#FF9E7D;border-right-color:#A594FF;opacity:.9}
.hero-coin{position:absolute;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(145deg,#FFE29A,#FFC94D);color:#9A6B00;font-weight:900;font-size:15px;box-shadow:0 8px 14px rgba(180,130,20,.35)}
.hero-coin.c1{right:26px;bottom:16px}
.hero-coin.c2{right:52px;bottom:2px;width:24px;height:24px;font-size:12px}
.hero-spark{position:absolute;width:12px;height:12px;background:#fff;border-radius:3px;transform:rotate(45deg);opacity:.85}
.hero-spark.s1{left:0;top:0}
.hero-spark.s2{right:64px;top:64px;width:9px;height:9px}
.hero-txt{min-width:0}
.hero-hi{margin:0 0 8px;font-size:33px;color:#2A2160}
.hero-sub{margin:0 0 16px;font-size:16.5px;color:#4A4370;line-height:1.5}
.hero-cta{display:inline-block;background:linear-gradient(180deg,var(--acc1),var(--acc2));color:#fff;font-weight:800;padding:12px 22px;border-radius:999px;text-decoration:none;box-shadow:0 14px 26px rgba(80,66,190,.35)}
@media(max-width:760px){.hero{flex-direction:column;align-items:flex-start}.hero-art{width:225px}}
/* contrast in light mode + muted text */
.hub-wait{color:#6A639E}
html.light .muted{color:#5F5896}
html.light .app-dock a{color:#fff}
html.light .app-dock a.on{color:#2A2160}
html.light .app-nav a{color:#fff}
html.light .app-nav a.on{color:#2A2160}
html.light .hero-sub{color:#4A4370}
/* ===== TEXT COLOR UNIFY — TEST 2026-11-17: dark navy text, color only as accent (V20) ===== */
body .hs-name{color:#26224D}
body .kpi-setup-name{color:#26224D!important}
body .cd-ghead{color:#26224D}
.hs-card .person-ava{background:var(--pc);color:#fff}
/* ===== REVEAL CASCADE — TEST 2026-11-17: blocks appear one-by-one like the V20 sample ===== */
@keyframes rvIn{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media (prefers-reduced-motion: no-preference){
 html.reveal .container>*{animation:rvIn .55s cubic-bezier(.22,.9,.3,1) backwards}
 html.reveal .container>*:nth-child(1){animation-delay:.03s} html.reveal .container>*:nth-child(2){animation-delay:.12s}
 html.reveal .container>*:nth-child(3){animation-delay:.21s} html.reveal .container>*:nth-child(4){animation-delay:.30s}
 html.reveal .container>*:nth-child(5){animation-delay:.39s} html.reveal .container>*:nth-child(6){animation-delay:.48s}
 html.reveal .container>*:nth-child(7){animation-delay:.57s} html.reveal .container>*:nth-child(8){animation-delay:.66s}
 html.reveal .container>*:nth-child(n+9){animation-delay:.75s}
 html.reveal .board>.col{animation:rvIn .55s cubic-bezier(.22,.9,.3,1) backwards}
 html.reveal .board>.col:nth-child(2){animation-delay:.11s} html.reveal .board>.col:nth-child(3){animation-delay:.22s}
 html.reveal .board>.col:nth-child(4){animation-delay:.33s} html.reveal .board>.col:nth-child(5){animation-delay:.44s}
 html.reveal .board>.col:nth-child(6){animation-delay:.55s} html.reveal .board>.col:nth-child(7){animation-delay:.66s}
 html.reveal .board>.col:nth-child(8){animation-delay:.77s} html.reveal .board>.col:nth-child(n+9){animation-delay:.88s}
 html.reveal .func-grid>*,html.reveal .lang-grid>*,html.reveal .ep-grid>*{animation:rvIn .5s cubic-bezier(.22,.9,.3,1) backwards}
 html.reveal .func-grid>*:nth-child(2),html.reveal .lang-grid>*:nth-child(2),html.reveal .ep-grid>*:nth-child(2){animation-delay:.08s}
 html.reveal .func-grid>*:nth-child(3),html.reveal .lang-grid>*:nth-child(3),html.reveal .ep-grid>*:nth-child(3){animation-delay:.16s}
 html.reveal .func-grid>*:nth-child(4),html.reveal .lang-grid>*:nth-child(4),html.reveal .ep-grid>*:nth-child(4){animation-delay:.24s}
 html.reveal .func-grid>*:nth-child(n+5),html.reveal .lang-grid>*:nth-child(n+5),html.reveal .ep-grid>*:nth-child(n+5){animation-delay:.32s}
 body.home3d .app-nav a{animation:rvIn .5s cubic-bezier(.22,.9,.3,1) backwards}
 body.home3d .app-nav a:nth-child(2){animation-delay:.07s} body.home3d .app-nav a:nth-child(3){animation-delay:.14s}
 body.home3d .app-nav a:nth-child(4){animation-delay:.21s} body.home3d .app-nav a:nth-child(5){animation-delay:.28s}
 body.home3d .app-nav a:nth-child(6){animation-delay:.35s} body.home3d .app-nav a:nth-child(7){animation-delay:.42s}
 body.home3d .app-nav a:nth-child(n+8){animation-delay:.49s}
}
/* ===== VIOLET UNIFY — TEST 2026-11-17: every inner surface = violet 3D + white text (like sidebar/dock), old colors removed ===== */
body{background-color:#ECE9FB!important;background-image:none!important}
.my-task,.hs-card,.kpi-setup,.cd-group,.ct-panel,.ct-person,.card,.job-row,.room-row,.func-card,.lang-card,.admin-tile,.tq-sec,.hub-panel,.ep-block,.person-head,.don-head,.hs-who,.pv-card,.thumb-job,.setup-card{
 background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;border:none!important;
 box-shadow:0 18px 34px rgba(90,70,200,.32),inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(40,25,120,.16)!important}
.my-task *,.hs-card *,.kpi-setup *,.cd-group *,.ct-panel *,.ct-person *,.card *,.job-row *,.room-row *,.tq-sec *,.hub-panel *,.ep-block *,.person-head *,.don-head *,.hs-who *{color:#fff}
.my-task .muted,.hs-card .muted,.kpi-setup .muted,.cd-group .muted,.ct-panel .muted,.ct-person .muted,.card .muted,.job-row .muted,.room-row .muted,.tq-sec .muted,.hub-panel .muted,.kpi-setup-note,.my-line,.ct-lydo,.room-main .muted{color:rgba(255,255,255,.85)!important}
.my-task a,.hs-card a,.kpi-setup a,.cd-group a,.ct-panel a,.card a,.room-row a,.tq-sec a,.hub-panel a{color:#fff}
body .hs-name{color:#fff}
body .kpi-setup-name{color:#fff!important}
body .cd-ghead{color:#fff}
.hs-card{border-top:none!important}
.hs-card .person-ava{background:rgba(255,255,255,.25)!important}
.badge,.chip,.room-code,.ct-code,.cnt,.tq-badge,.my-tb-status,.my-vr-status{background:rgba(255,255,255,.22)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)!important}
body .btn{background:linear-gradient(160deg,var(--acc1),var(--acc2));color:#fff;border:none;box-shadow:0 10px 22px rgba(90,70,200,.35),inset 0 2px 0 rgba(255,255,255,.35)}
body .btn.ghost,body .btn.light{background:#fff;color:var(--acc-deep);border:1.5px solid #C9C2F5;box-shadow:0 8px 18px rgba(90,70,200,.18)}
.my-task .btn,.hs-card .btn,.kpi-setup .btn,.cd-group .btn,.ct-panel .btn,.ct-person .btn,.card .btn,.job-row .btn,.room-row .btn,.tq-sec .btn,.hub-panel .btn,.cd-item .btn{background:#fff!important;color:var(--acc-deep)!important;box-shadow:0 8px 18px rgba(40,25,120,.25)}
.my-task .btn.ghost,.cd-group .btn.ghost,.ct-panel .btn.ghost,.card .btn.ghost{background:rgba(255,255,255,.16)!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.45)!important}
.cd-tab{background:#fff!important;color:var(--acc-deep)!important;border:3px solid #C9C2F5!important}
.cd-tab.on{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;border-color:transparent!important}
.ct-month{background:linear-gradient(160deg,#F59E0B,#F97316)}
.ct-month{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important}
.mini-kpi-name,.mini-kpi-val{color:#fff!important}
.mini-kpi-bar{background:rgba(255,255,255,.25)!important}
.mini-kpi-fill{background:#fff!important}
.tq-item{background:rgba(255,255,255,.14)!important;color:#fff!important;border:none!important}
.tq-item *{color:#fff}
.pbar,.pbar-wrap{background:rgba(255,255,255,.25)!important}
.pfill{background:#fff!important}
.board{background:transparent!important;border:none!important;box-shadow:none!important}
.board>.col{background:linear-gradient(180deg,#7E6FE8,var(--acc2))!important;color:#fff!important;border:none!important;box-shadow:0 16px 30px rgba(90,70,200,.30),inset 0 2px 0 rgba(255,255,255,.30)!important}
.board>.col .col-name,.board>.col header *{color:#fff!important}
.board>.col .col-body{background:rgba(255,255,255,.13)!important}
.board .tcard{background:#fff!important;color:#26224D!important;box-shadow:0 8px 18px rgba(40,25,120,.22)!important}
.board .tcard *{color:#26224D}
.board .mchip{background:rgba(255,255,255,.20)!important;color:#fff!important}
.board .mchip *{color:#fff!important}
.board .col-btn{background:rgba(255,255,255,.18)!important;color:#fff!important}
table th{background:var(--acc2)!important;color:#fff!important}
input,select,textarea{background-color:#fff;color:#1F1B3D;border:1.5px solid #D9D4F8}
.kpi-target-in{background:#fff!important;color:#1F1B3D!important}
.func-icon{background:rgba(255,255,255,.22)!important;color:#fff!important}
.section-title,.page3d-title{color:#2E2A55}
.hub-wait{color:#fff!important;background:rgba(255,255,255,.22)!important}
/* ===== VIOLET UNIFY 2 — TEST 2026-11-17: stragglers from verification ===== */
.bk-card,.tn-sec{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;border:none!important;box-shadow:0 18px 34px rgba(90,70,200,.32),inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(40,25,120,.16)!important}
.bk-card *,.tn-sec *{color:#fff}
.bk-rule{background:rgba(255,255,255,.16)!important;color:#fff!important;border:none!important}
.bk-auto{background:rgba(255,255,255,.22)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)!important}
.bk-reset{background:#fff!important;color:var(--acc-deep)!important;border:none!important;box-shadow:0 8px 18px rgba(40,25,120,.25)}
.tn-sec{border-top:5px solid rgba(255,255,255,.45)!important}
.cd-group *{color:#fff!important}
.cd-group input,.cd-group select,.cd-group textarea,.bk-card input,.bk-card select,.bk-card textarea,.tn-sec input,.tn-sec select,.tn-sec textarea{color:#1F1B3D!important;background:#fff!important}
.cd-group .btn,.bk-card .btn,.tn-sec .btn{background:#fff!important;color:var(--acc-deep)!important}
.cd-hklink{color:#fff!important;text-decoration:underline}
.kpi-setup-unit,.kpi-setup .muted{color:rgba(255,255,255,.88)!important}
.ct-person td,.ct-person .ct-name,.ct-person .ct-metric,.ct-person .ct-code{color:#fff!important}
.board>.col>header{background:transparent!important;border-bottom:1px solid rgba(255,255,255,.28)!important}
.board>.col .col-body{background:rgba(46,32,130,.30)!important}
.board .tcard a{color:var(--acc-deep)!important}
.board .tcard .btn{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;opacity:1!important}
.board .tcard .muted{color:#5F5896!important}
/* ===== VIOLET UNIFY 3 — TEST 2026-11-17: dark bars + chips + code links ===== */
.gv-head,.hs-grp,.hs-pv-title,.kl-title,.cd-done,.bk-rule{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;border:none!important}
.gv-head *,.hs-grp *,.hs-pv-title *,.kl-title *,.cd-done *,.bk-rule *{color:#fff!important}
.board .mchip{background:rgba(38,24,110,.55)!important}
.board .col-members{background:transparent!important}
.cd-ep{color:#fff!important}
.bk-card a,.tn-sec a{color:#fff!important}
/* ===== VIOLET UNIFY 4 — TEST 2026-11-17: back button in violet bars + small texts ===== */
.gv-head .btn,.hs-grp .btn,.hs-pv-title .btn,.kl-title .btn,.cd-done .btn,.bk-rule .btn{color:var(--acc-deep)!important}
.cd-span,.cd-saved,.bk-card .muted,.tn-sec .muted{color:rgba(255,255,255,.88)!important}
/* ===== VIOLET UNIFY 5 + LAYOUT — TEST 2026-11-17 ===== */
.hs-days{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;border:none!important;box-shadow:0 18px 34px rgba(90,70,200,.32),inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(40,25,120,.16)!important}
.hs-days *{color:#fff!important}
.hs-days .hs-next{color:#FFE29A!important}
.hs-days .hs-drow{border-bottom:1px solid rgba(255,255,255,.22)!important}
.hs-days .hs-dhead{border-bottom:2px solid rgba(255,255,255,.4)!important}
.hs-sum{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;border:none!important;box-shadow:0 18px 34px rgba(90,70,200,.32),inset 0 2px 0 rgba(255,255,255,.35)!important}
.hs-sum *{color:#fff}
.hs-tab{background:#fff!important;color:var(--acc-deep)!important;border-color:#C9C2F5!important}
.hs-tab.on{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;border-color:transparent!important}
body .hs-tabs-big{margin:2px 0 10px;gap:12px}
body .hs-tab{min-width:170px;padding:10px 22px;font-size:18px}
body .hs-navrow{margin:4px 0 8px}
.hs-ep .hs-eptime{color:rgba(255,255,255,.88)!important}
.hs-ded{color:#FFE29A!important}
.hs-overlap{color:#FFC9B8!important}
.mini-kpi-bar{background:rgba(38,24,110,.35)!important}
.mini-kpi-bar>span{background:#fff!important}
.tq-sec .hub-list{background:#fff!important}
.tq-sec .hub-list *{color:#26224D!important}
.tq-sec .hub-wait{background:#EFEAFE!important;color:var(--acc-deep)!important}
.board>.col{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important}
.board>.col .col-body{background:rgba(255,255,255,.13)!important}
html.is-embed.is-shell .shell3d{grid-template-columns:1fr!important;max-width:none!important}
html.is-embed.is-shell .side3d{flex-direction:column!important;width:100%!important;background:transparent!important;box-shadow:none!important;padding:4px 0!important}
html.is-embed.is-shell .side3d .side3d-title{color:#2E2A55!important;text-align:left!important}
html.is-embed.is-shell .side3d-list{display:flex!important;flex-wrap:wrap;gap:12px;width:100%}
html.is-embed.is-shell .side3d-list .func-card,html.is-embed.is-shell .side3d-list .lang-card{flex:1 1 200px}
/* ===== SHELL STRIP FIX — TEST 2026-11-17: hub cards full-width row in shell ===== */
html.is-embed.is-shell body .shell3d{grid-template-columns:minmax(0,1fr)!important}
html.is-embed.is-shell body .side3d{display:block!important;width:100%!important;max-width:none!important}
html.is-embed.is-shell body .content3d{display:none!important}
html.is-embed.is-shell body .side3d-list{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;max-width:none!important;margin:8px 0 0!important;align-items:stretch!important}
html.is-embed.is-shell body .side3d-list>*{flex:1 1 200px!important}
html.is-embed.is-shell body .side3d .func-card{flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important}
html.is-embed.is-shell main.container{display:block!important}

/* === SHELL v4: no topbar, accent themes, hero logo, strip balance (2026-11-17) === */
:root{--acc1:#8B7CF0;--acc2:#6D5DF6;--acc-deep:#4A3FD6}
html[data-accent="xanh-duong"]{--acc1:#6FA8F5;--acc2:#3B78E0;--acc-deep:#1D4FB8}
html[data-accent="xanh-la"]{--acc1:#5FC98E;--acc2:#2FA36B;--acc-deep:#177A4C}
html[data-accent="cam"]{--acc1:#FFB066;--acc2:#F08A2E;--acc-deep:#C2620F}
html[data-accent="hong"]{--acc1:#F58FBC;--acc2:#E55A97;--acc-deep:#C2337A}
.topbar{display:none!important}
body:is(.home3d,.has-side3d) .side3d{top:12px}
.hero-logo{margin-left:auto;display:flex;flex-direction:column;align-items:center;gap:8px;flex:none}
.hero-logo img{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 12px 22px rgba(90,70,200,.35))}
.hero-logo span{font-family:'Anton','Arial Black',sans-serif;font-size:31px;color:#F97316;background:linear-gradient(180deg,#FFB03A,#F97316 55%,#EA580C);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:.5px}
@supports ((-webkit-background-clip:text) or (background-clip:text)){.hero-logo span{color:transparent}}
@media(max-width:760px){.hero-logo{margin-left:0}.hero-logo img{width:72px;height:72px}}
body .vr-box-del{background:rgba(255,255,255,.20)!important;border:1px solid rgba(255,255,255,.38)!important;color:#fff!important;border-radius:999px!important;padding:4px 12px!important}
html.is-shell .side3d .func-top{display:flex;justify-content:center;width:100%}
html.is-shell .side3d .func-card{min-height:150px}
html.is-shell .side3d .func-meta{justify-content:center!important}

/* Cong-thang request rows inside violet panels: dark translucent row so the
   forced-white text reads (rows were white pills -> invisible text). */
.ct-panel .ct-req{background:rgba(38,24,110,.32)!important;border-color:rgba(255,255,255,.25)!important}

/* Tong-quan section titles sit on violet cards: white like the rest of the
   panel (boss 2026-11-17 11:21). Scoped to violet surfaces only. */
.card .hub-panel-title,.tq-sec .hub-panel-title,.hub-panel .hub-panel-title{color:#fff!important}

/* === Round 11:24-11:26 (boss): CTA white, cong-thang cell/metric contrast,
   3D active pill + sliding hover frame in menu/dock === */
.hero .hero-cta{color:#fff!important}
.ct-person .ct-day b{color:#0f172a!important}
.ct-person .ct-metric{color:#0f172a!important}
.ct-panel .ct-h3{color:#fff!important}
.app-nav a.on,.app-dock a.on{background:linear-gradient(180deg,#FFFFFF,#E9E2FF)!important;color:#2A2160!important;box-shadow:inset 0 2px 3px #fff,inset 0 -5px 8px rgba(90,70,200,.22),0 16px 26px rgba(50,40,140,.38)!important;border:1px solid rgba(255,255,255,.85)}
#app-nav,#app-dock{position:relative}
.nav-ind{position:absolute;left:0;top:0;border-radius:999px;background:linear-gradient(180deg,#FFFFFF,#E9E2FF);box-shadow:inset 0 2px 3px #fff,inset 0 -5px 8px rgba(90,70,200,.22),0 16px 26px rgba(50,40,140,.38);border:1px solid rgba(255,255,255,.85);opacity:0;pointer-events:none;transition:transform .38s cubic-bezier(.34,1.3,.64,1),width .38s cubic-bezier(.34,1.3,.64,1),height .38s cubic-bezier(.34,1.3,.64,1),opacity .25s;z-index:0}
#app-nav a,#app-dock a,#app-dock .dock-plus{position:relative;z-index:1;transition:transform .25s}
#app-nav a:hover,#app-dock a:hover,#app-dock .dock-plus:hover{transform:scale(1.07)}
#app-nav.has-ind a.on,#app-dock.has-ind a.on{background:transparent!important;box-shadow:none!important;border-color:transparent!important}
.ct-person .ct-metric b{color:#0f172a!important}

/* === Round 11:59 (boss): dock restore, review back/icon/headings,
   whole-card click for my-task === */
#app-dock{position:fixed!important}
a.back{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;box-shadow:0 10px 20px rgba(80,66,190,.35),inset 0 2px 2px rgba(255,255,255,.5),inset 0 -3px 5px rgba(40,25,120,.25)!important;border:1px solid rgba(255,255,255,.5)!important}
.card h2,.card h3{color:#fff!important}
.room-head .func-icon{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;box-shadow:0 10px 20px rgba(80,66,190,.32),inset 0 2px 2px rgba(255,255,255,.45)}
.my-task{position:relative}
.my-task .my-ep::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.my-task a:not(.my-ep),.my-task button,.my-task select,.my-task input{position:relative;z-index:2}

/* === AUDIT SYNC (boss 12:10): last white surfaces join the violet system === */
.detail-card,.stage-box,.cd-panel,.kl-panel,.tb-card,.vr-toggle-bar{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;box-shadow:0 24px 44px rgba(96,80,220,.28),inset 0 2px 2px rgba(255,255,255,.35),inset 0 -6px 12px rgba(70,55,180,.18)!important;border-color:rgba(255,255,255,.35)!important}
.detail-card *,.stage-box *,.cd-panel *,.kl-panel *,.tb-card *{color:#fff}
.detail-card .muted,.detail-card .stage-owner,.cd-panel .muted,.kl-panel .muted,.tb-card .muted{color:rgba(255,255,255,.88)!important}
.detail-card a,.stage-box a,.cd-panel a,.kl-panel a,.tb-card a{color:#fff}
.detail-card input,.detail-card select,.detail-card textarea,.stage-box input,.stage-box select,.cd-panel input,.cd-panel select,.cd-panel textarea,.kl-panel input,.kl-panel select,.tb-card input,.tb-card select,.tb-card textarea{background:#fff!important;color:#26224D!important;border-color:rgba(255,255,255,.5)!important}
.detail-card .btn,.stage-box .btn,.cd-panel .btn,.kl-panel .btn,.tb-card .btn,.tb-card .tr-del{background:#fff!important;color:var(--acc-deep)!important;border-color:transparent!important}
.detail-card .btn.primary,.stage-box .btn.primary{background:#fff!important;color:var(--acc-deep)!important}
.tb-card.st-doing{border-color:#d97706!important}
.tb-card.st-fix{border-color:#dc2626!important}
body .btn{background:linear-gradient(160deg,var(--acc1),var(--acc2));color:#fff;border-color:transparent}
.tb-unnamed{background:linear-gradient(160deg,var(--acc1),var(--acc2))!important;color:#fff!important;box-shadow:0 24px 44px rgba(96,80,220,.28),inset 0 2px 2px rgba(255,255,255,.35),inset 0 -6px 12px rgba(70,55,180,.18)!important;border-color:rgba(255,255,255,.35)!important}
.tb-unnamed *{color:#fff!important}
.tb-un-item{background:rgba(255,255,255,.14)!important;border-color:rgba(255,255,255,.3)!important}
.tb-unnamed .btn,.tb-unnamed button{background:#fff!important;color:var(--acc-deep)!important;border-color:transparent!important}
.card p,.card li{color:#fff!important}
.tb-noimg,.tb-un-noimg{background:rgba(38,24,110,.35)!important;color:#fff!important}

/* === KPI fault page readability (boss 12:31) === */
.kl-panel .kl-hbtn{color:#fff!important;font-size:20px}
.kl-panel .kl-count{color:rgba(255,255,255,.88)!important;font-size:14.5px}
.kl-panel .kl-name{font-size:16.5px}
.kl-panel .kl-meta,.kl-panel .kl-note,.kl-panel .kl-note2{color:rgba(255,255,255,.88)!important;font-size:14.5px}
.kl-panel .kl-pts{color:#fff!important;font-size:17px;font-weight:800}
.kl-panel .kl-total{color:#FCA5A5!important}
.kl-src.file,.kl-src.att,.kl-src.portal{display:none!important}
.kl-panel .kl-act,.kl-panel .kl-del{background:#fff!important;color:var(--acc-deep)!important;border:0;border-radius:8px;padding:4px 10px;font-weight:700;cursor:pointer}
