
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;width:100%;height:100%;background:#090d0f;color:#f5f5f5;font-family:Arial,Helvetica,sans-serif;overflow:hidden}
button{font:inherit;color:inherit}
#game{position:relative;width:100%;height:100%;max-width:480px;margin:auto;background:#0c1114;overflow:hidden}
.screen{position:absolute;inset:0;display:none}
.screen.active{display:block}
.status{height:42px;background:#252a2d;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:12px;color:#eee}
.status .right{display:flex;gap:8px;align-items:center}
.battery{border:2px solid #ddd;border-radius:4px;padding:1px 4px;font-size:10px}
.navbar{height:58px;background:#171c1f;border-bottom:1px solid #2b3033;display:flex;align-items:center;padding:0 16px;gap:14px}
.navbar .back{font-size:32px;width:34px;background:none;border:0}
.navbar h2{margin:0;font-size:23px;font-weight:400}
.navbar .tools{margin-left:auto;display:flex;gap:10px}
.tool{width:42px;height:42px;border-radius:50%;border:0;background:#252e32;font-size:22px}
.tool.on{background:#087f6d;box-shadow:0 0 0 2px rgba(35,210,180,.22)}
.tool.off{opacity:.58}
.auto-speed-btn{width:68px;height:48px;border-radius:24px;padding:0 8px;display:flex;align-items:center;justify-content:center;gap:5px;background:#101820;border:2px solid #4b8cff;color:#fff;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 3px 12px rgba(0,0,0,.35)}
.auto-speed-btn.active{background:#0a8f7a;box-shadow:0 0 0 2px rgba(35,210,180,.22)}
@media(max-width:390px){.navbar{gap:8px;padding:0 10px}.navbar .tools{gap:6px}.tool{width:38px;height:38px}.auto-speed-btn{width:62px;height:44px;padding:0 5px;font-size:11px}.navbar h2{font-size:21px}}
#lock{background-image:linear-gradient(rgba(5,12,15,.38),rgba(5,12,15,.58)),url(../images/assets/img_01_dcc186d3e2.jpg);background-size:cover;background-position:center;background-repeat:no-repeat}
.locktime{text-align:center;margin-top:105px;font-size:76px;font-weight:300;letter-spacing:-3px}
.lockdate{text-align:center;color:#c8cdd0;font-size:18px;margin-top:4px}
.unlock{position:absolute;bottom:52px;left:0;right:0;text-align:center;color:#cbd0d2;font-size:15px}
.swipe{margin:14px auto 0;width:72px;height:4px;border-radius:4px;background:#ddd;opacity:.8}
#home{background-image:linear-gradient(rgba(5,12,15,.46),rgba(5,12,15,.68)),url(../images/assets/img_01_dcc186d3e2.jpg);background-size:cover;background-position:center;background-repeat:no-repeat}
.homeclock{padding:44px 24px 20px;font-size:52px;font-weight:300}
.homedate{padding:0 26px;color:#adb7bb;font-size:15px}
.apps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px 12px;padding:44px 22px}
.app{border:0;background:none;text-align:center;color:#fff;font-size:12px}
.appicon{position:relative;width:62px;height:62px;margin:auto;border-radius:18px;display:grid;place-items:center;font-size:29px;background:#273238;box-shadow:0 5px 15px #0006}
.dot{position:absolute;right:-2px;top:-4px;width:14px;height:14px;border-radius:50%;background:#19e58a;box-shadow:0 0 9px #19e58a;animation:blink 1.2s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.2}}
.appname{margin-top:7px}
#messages{background:#0b1013}
.listTitle{padding:18px 24px 8px;color:#9aa3a7;font-size:14px;letter-spacing:1px}
.thread{display:flex;align-items:center;gap:14px;padding:16px 24px;border-bottom:1px solid #293034;cursor:pointer}
.avatar{width:62px;height:62px;border-radius:50%;object-fit:cover;background:#243137;flex:none;object-position:center 22%;}
.threadmain{min-width:0;flex:1}
.threadmain img.avatar{display:none!important}
.threadname{font-size:21px;font-weight:600;margin-bottom:7px}
.preview{font-size:15px;color:#aab1b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
.read{color:#8ee8bd;font-size:13px;text-align:right;white-space:nowrap}
.locked{opacity:.45}
#chat{background:#0b1013}
.chatbody{height:calc(100% - 100px);overflow:auto;padding:18px 24px 70px;scroll-behavior:smooth}
.chatbody::-webkit-scrollbar{width:0}
.meta{font-size:13px;color:#7f898d;margin:10px 6px 7px}
.msg{margin:0 0 22px;max-width:92%}
.msg.husband{margin-left:auto}
.msg .bubble{font-size:20px;line-height:1.35;color:#f4f4f4}
.msg.husband .bubble{background:#078d7d;border:1px solid #12a996;padding:11px 14px;border-radius:22px 22px 6px 22px;display:table;max-width:100%;margin-left:auto}
.msg.wife .bubble,.msg.employee .bubble,.msg.boss .bubble{
  background:#252e32;
  border:1px solid #394347;
  padding:7px 11px !important;
  border-radius:16px 16px 16px 5px;
  display:table;
  max-width:82%;
  margin-right:auto;
  color:#f4f4f4;
}
.msg.thinking .bubble{display:inline-block;color:#9da5a8;font-style:italic;border:1px dashed #697277;border-radius:20px;padding:13px 20px}
/* Office Hours: Inner thinking stays gray, but these Boss thoughts sit on the right like Boss messages. */
.msg.thinking.boss-thinking{margin-left:auto;margin-right:0;text-align:right;max-width:92%}
.msg.thinking.boss-thinking .meta{text-align:right}
.msg.thinking.boss-thinking .bubble{margin-left:auto;margin-right:0;text-align:left;background:#11171a;border-color:#697277;color:#9da5a8}
.photoMsg{width:100%;height:auto;max-height:none;border-radius:20px;display:block;border:1px solid #343b3f;object-fit:contain;image-rendering:auto;cursor:pointer}
.photoLabel{color:#8d969a;font-size:13px;margin:0 0 7px 7px;font-style:italic}
.tap{position:absolute;bottom:8px;left:0;right:0;text-align:center;color:#697276;font-size:14px;pointer-events:none}
#viewer{background:#000;z-index:10}
#viewer img{width:100%;height:100%;object-fit:contain}
.close{position:absolute;top:18px;right:18px;border:0;background:#222b;color:#fff;border-radius:50%;width:42px;height:42px;font-size:24px}
.savePhoto{position:absolute;top:18px;left:18px;z-index:11;border:0;background:#222b;color:#fff;border-radius:22px;padding:10px 14px;font-size:15px}
.toast{position:absolute;left:50%;bottom:34px;transform:translateX(-50%);background:#20272b;padding:10px 16px;border-radius:20px;color:#ddd;display:none;z-index:20}
/* BOSS FACE POSITION */
.thread img.avatar{object-position:center 22%;}

.patreonIcon{background:#ff424d;color:#fff;border-radius:14px;width:56px;height:56px;
display:flex;align-items:center;justify-content:center;font-weight:800;font-size:28px}
  .itchIcon{background:#fa5c5c;color:#fff;border-radius:14px;width:56px;height:56px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:15px;letter-spacing:-.7px}


.photosGrid{padding:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;overflow:auto;height:calc(100% - 150px)}
.photosGrid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:4px;display:block}
.photosEmpty{grid-column:1/-1;text-align:center;color:#aaa;padding:60px 20px;font-size:16px}


/* PREMIUM ANDROID-STYLE BARS */
:root{--phone-bg:#070b0d;--surface:#101619;--surface2:#1b2327;--line:rgba(255,255,255,.08);--muted:#9aa4a9;--accent:#00a884}
html,body{background:#000}
#game{background:var(--phone-bg);box-shadow:0 0 40px rgba(0,0,0,.55)}
.status{height:46px;background:linear-gradient(180deg,rgba(20,25,28,.98),rgba(13,18,20,.96));backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);padding:0 16px;font-size:12px;font-weight:650;letter-spacing:.15px;border-bottom:1px solid rgba(255,255,255,.06);box-shadow:0 1px 8px rgba(0,0,0,.22)}
.status .right{gap:8px;align-items:center}
.status .right span{display:inline-flex;align-items:center;justify-content:center}
.status .battery{min-width:38px;height:20px;text-align:center;border:1.6px solid #e7eaeb;border-radius:5px;padding:1px 5px;font-weight:700;position:relative}
.status .battery:after{content:"";position:absolute;right:-4px;top:6px;width:3px;height:7px;background:#e7eaeb;border-radius:0 2px 2px 0}
.navbar{height:68px;background:linear-gradient(180deg,rgba(18,25,28,.99),rgba(14,20,23,.98));backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);padding:0 14px;gap:11px;border-bottom:1px solid rgba(255,255,255,.10);box-shadow:0 4px 16px rgba(0,0,0,.30);position:relative;z-index:5}
.navbar:after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(0,168,132,.35),transparent);pointer-events:none}
.navbar .back{width:44px;height:44px;border-radius:50%;font-size:34px;line-height:40px;display:grid;place-items:center;color:#f1f4f5;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.05);transition:background .15s,transform .12s}
.navbar .back:active{background:rgba(255,255,255,.12);transform:scale(.93)}
.navbar h2{font-size:24px;font-weight:550;letter-spacing:-.35px}
.navbar .tools{gap:8px}
.tool{width:44px;height:44px;border-radius:50%;background:rgba(35,44,48,.95);border:1px solid rgba(255,255,255,.07);box-shadow:0 4px 12px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.05);font-size:21px;transition:transform .12s,background .15s,opacity .15s}
.tool:active{transform:scale(.91)}
.tool.on{background:linear-gradient(145deg,#0aa987,#087c6b);box-shadow:0 0 0 2px rgba(35,210,180,.14),0 4px 14px rgba(0,0,0,.30)}
.tool.off{background:#20272b;opacity:.68}
#home{background-position:center;background-size:cover}
.homeclock{padding:48px 25px 4px;font-size:54px;line-height:1.05;font-weight:300;letter-spacing:-2px;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.homedate{padding:3px 27px;color:#d0d5d7;font-size:16px;text-shadow:0 1px 8px rgba(0,0,0,.45)}
.apps{grid-template-columns:repeat(4,1fr);gap:25px 9px;padding:48px 18px 28px}
.app{font-size:12px;font-weight:500;text-shadow:0 1px 5px rgba(0,0,0,.65);cursor:pointer}
.appicon{width:60px;height:60px;border-radius:17px;font-size:28px;background:rgba(36,46,50,.92);border:1px solid rgba(255,255,255,.08);box-shadow:0 7px 18px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.07);transition:transform .12s,filter .12s}
.app:active .appicon{transform:scale(.9);filter:brightness(.85)}
.appname{margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dot{width:13px;height:13px;right:-1px;top:-3px;border:2px solid rgba(0,0,0,.45);box-shadow:0 0 10px #19e58a}
#messages,#photos,#chat{background:#070c0f}
.listTitle{padding:17px 22px 9px;color:#879196;font-size:12px;font-weight:700;letter-spacing:1.25px}
.thread{padding:14px 20px;gap:14px;border-bottom:1px solid var(--line);background:rgba(17,23,26,.55);transition:background .15s}
.thread:active{background:rgba(255,255,255,.06)}
.avatar{width:58px;height:58px;border:1px solid rgba(255,255,255,.1);box-shadow:0 2px 10px rgba(0,0,0,.35)}
.threadname{font-size:18px;font-weight:600;margin-bottom:5px}
.preview{font-size:14px;color:#aeb6b9}
.read{font-size:12px}
.chatbody{padding:14px 16px 74px;overscroll-behavior:contain}
.meta{font-size:11px;color:#7f8a8f;margin:8px 8px 5px;font-weight:500}
.msg{margin-bottom:13px;max-width:88%}
.msg .bubble{font-size:17px;line-height:1.38}
.msg.husband .bubble{background:#008f7a;border:1px solid rgba(31,205,177,.55);padding:9px 13px;border-radius:18px 18px 5px 18px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.msg.wife .bubble,.msg.boss .bubble{background:#20282c;border:1px solid #343e42;padding:8px 12px!important;border-radius:5px 18px 18px 18px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.msg.thinking .bubble{padding:11px 17px;border-radius:18px;background:rgba(20,27,30,.7)}
.photoMsg{border-radius:16px;border-color:#30393d;box-shadow:0 4px 16px rgba(0,0,0,.3)}
.tap{bottom:9px;color:#707b80;font-size:13px;background:linear-gradient(transparent,rgba(7,12,15,.92) 38%);padding:20px 0 8px}
.photosGrid{padding:12px;gap:5px}
.photosGrid img{border-radius:7px;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.close,.savePhoto{box-shadow:0 4px 14px rgba(0,0,0,.4);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.close{top:16px;right:16px;background:rgba(35,42,46,.88)}
.savePhoto{top:16px;left:16px;background:rgba(35,42,46,.88)}
@media (min-width:520px){#game{border-radius:28px;overflow:hidden;margin-top:10px;height:calc(100% - 20px)}}

/* Final message-size fix: the game uses .msg, not .message */
.msg .bubble{
  font-size:14px !important;
  line-height:1.3 !important;
}
.msg.husband .bubble{
  padding:7px 10px !important;
  border-radius:16px 16px 5px 16px !important;
  max-width:82% !important;
}
.msg.wife .bubble,
.msg.boss .bubble{
  padding:3px 8px !important;
  max-width:82% !important;
}
.meta{
  font-size:10px !important;
  margin:6px 5px 4px !important;
}
.msg{
  margin-bottom:8px !important;
}
.storyTime{
  text-align:center;
  color:#aeb6ba;
  font-size:13px;
  letter-spacing:.5px;
  margin:16px 0 14px;
  font-weight:500;
}



#patreonPage{background:#070b0d;overflow:hidden;}
.patreonPageStatus{height:46px;}
.patreonPageBody{position:absolute;top:46px;left:0;right:0;bottom:0;overflow:hidden;background:
  radial-gradient(circle at 50% 35%,rgba(255,66,77,.045),transparent 24%),
  linear-gradient(180deg,#070b0d 0%,#05090b 100%);}
.patreonBack{position:absolute;left:48px;top:40px;width:64px;height:64px;border-radius:50%;
  border:1px solid rgba(255,255,255,.12);background:rgba(35,42,46,.82);color:#f4f5f5;
  font-size:32px;line-height:1;display:grid;place-items:center;box-shadow:0 5px 18px rgba(0,0,0,.35);z-index:2;}
.patreonBack:active{transform:scale(.94);}
.patreonHero{position:absolute;left:0;right:0;top:125px;text-align:center;}
.patreonLogo{width:54px;height:54px;margin:0 auto 12px;border-radius:23px;background:#000;color:#fff;
  display:grid;place-items:center;font-size:30px;font-weight:700;box-shadow:0 0 34px rgba(255,66,77,.12);}
.patreonTitle{font-size:42px;font-weight:300;letter-spacing:-2px;line-height:1.05;margin:0;}
.patreonSubtitle{font-size:22px;font-weight:300;margin-top:18px;color:#f0f2f3;}
.patreonCard{position:absolute;left:40px;right:40px;top:330px;border:1px solid rgba(255,255,255,.12);
  border-radius:24px;background:linear-gradient(180deg,rgba(24,30,34,.92),rgba(15,20,23,.92));
  padding:20px 16px 18px;text-align:center;box-shadow:0 12px 30px rgba(0,0,0,.28);}
.patreonLabel{font-size:12px;letter-spacing:2.2px;color:#a0a8ac;font-weight:700;margin-bottom:16px;}
.patreonUrl{font-size:18px;color:#f3f5f5;margin-bottom:14px;}
.patreonDesc{font-size:14px;line-height:1.4;color:#b6bdc0;max-width:430px;margin:0 auto 18px;}
.patreonOpen{width:100%;height:50px;border:0;border-radius:34px;background:#f5f6f7;color:#111;font-size:17px;font-weight:500;box-shadow:0 4px 15px rgba(0,0,0,.2);}
.patreonOpen:active{transform:scale(.985);}
@media(max-width:390px){
  .patreonBack{left:48px;top:40px;width:64px;height:64px;}
  .patreonHero{top:125px;}
  .patreonLogo{width:54px;height:54px;font-size:30px;margin-bottom:12px;}
  .patreonTitle{font-size:42px;}
  .patreonSubtitle{font-size:22px;margin-top:12px;}
  .patreonCard{left:40px;right:40px;top:330px;padding:18px 16px 16px;}
  .patreonLabel{font-size:12px;letter-spacing:2px;}
  .patreonUrl{font-size:18px;}
  .patreonDesc{font-size:14px;}
  .patreonOpen{height:50px;font-size:17px;}
}



/* Husband inner thinking stays on the same right side as Husband messages. */
.msg.husband-thinking{
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:right !important;
}
.msg.husband-thinking .meta{
  text-align:right !important;
  margin-right:10px !important;
}
.msg.husband-thinking .bubble{
  display:table !important;
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:left !important;
}



/* Put Husband's speaker name on the right, above his message bubble */
.msg.husband .meta,
.msg.husband .speaker{
  text-align:right !important;
  margin-right:10px !important;
}



.msg.thinking.boss-thinking{margin-left:auto !important;margin-right:0 !important;text-align:right !important;}
.msg.thinking.boss-thinking .meta{text-align:right !important;margin-right:10px !important;margin-left:0 !important;}
.msg.thinking.boss-thinking .bubble{margin-left:auto !important;margin-right:0 !important;text-align:left !important;}

/* Office Hours (HR + Boss) only:
   HR stays on the left; Boss messages move to the right. */
#chatbody.office-hours2-chat .msg.boss{
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:right !important;
}
#chatbody.office-hours2-chat .msg.boss .meta{
  text-align:right !important;
  margin-right:10px !important;
  margin-left:0 !important;
}
#chatbody.office-hours2-chat .msg.boss .bubble{
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:left !important;
}
#chatbody.office-hours2-chat .msg.boss .bubble{
  background:#078d7d !important;
  border:1px solid #12a996 !important;
  color:#f4f4f4 !important;
  border-radius:22px 22px 6px 22px !important;
  padding:11px 14px !important;
}
#chatbody.office-hours2-chat .msg.employee{
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
}
#chatbody.office-hours2-chat .msg.employee .meta{
  text-align:left !important;
  margin-left:5px !important;
  margin-right:0 !important;
}
#chatbody.office-hours2-chat .msg.employee .bubble{
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
}
#chatbody.office-hours2-chat .msg.hr{
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
}
#chatbody.office-hours2-chat .msg.hr .meta{
  text-align:left !important;
  margin-left:5px !important;
  margin-right:0 !important;
}
#chatbody.office-hours2-chat .msg.hr .bubble{
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
}



/* Husband-sent photos stay on the same right side as Husband messages. */
.msg.husband.photo-message{
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:right !important;
}
.msg.husband.photo-message .photoLabel{
  text-align:right !important;
  margin-right:10px !important;
}
.msg.husband.photo-message .photoMsg{
  margin-left:auto !important;
  margin-right:0 !important;
}



/* Co-worker messages use the same incoming-message background as Wife/Boss. */
.msg.hr .bubble {
  background:#252e32 !important;
  border:1px solid #394347 !important;
  padding:7px 11px !important;
  border-radius:16px 16px 16px 5px !important;
  display:table !important;
}
.msg.coworker .bubble {
  background:#252e32 !important;
  border:1px solid #394347 !important;
  padding:7px 11px !important;
  border-radius:16px 16px 16px 5px !important;
  display:table !important;
  max-width:82% !important;
  margin-right:auto !important;
  margin-left:0 !important;
  color:#f4f4f4 !important;
}



/* FINAL FIX: Employee messages are incoming/left, but are explicitly labeled Employee. */
#chatbody .msg.employee{
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
}
#chatbody .msg.employee .meta{
  text-align:left !important;
  margin-left:5px !important;
  margin-right:0 !important;
}
#chatbody .msg.employee .bubble{
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
}
/* FINAL FIX: Office Hours inner thinking matches Boss/right-side positioning. */
#chatbody .msg.thinking.boss-thinking{
  display:block !important;
  width:82% !important;
  max-width:82% !important;
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:right !important;
  align-self:flex-end !important;
}
#chatbody .msg.thinking.boss-thinking .meta{
  text-align:right !important;
  margin-left:0 !important;
  margin-right:10px !important;
}
#chatbody .msg.thinking.boss-thinking .bubble{
  display:table !important;
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:left !important;
}



/* Requested final styling: Boss = green/right; Inner thinking = gray/right. */
#chatbody.office-hours2-chat .msg.boss{margin-left:auto !important;margin-right:0 !important;text-align:right !important;}
#chatbody.office-hours2-chat .msg.boss .meta{text-align:right !important;margin-left:0 !important;margin-right:10px !important;}
#chatbody.office-hours2-chat .msg.boss .bubble{margin-left:auto !important;margin-right:0 !important;text-align:left !important;background:#078d7d !important;border:1px solid #12a996 !important;color:#f4f4f4 !important;border-radius:22px 22px 6px 22px !important;padding:11px 14px !important;}
#chatbody.office-hours2-chat .msg.thinking.boss-thinking{display:block !important;width:82% !important;max-width:82% !important;margin-left:auto !important;margin-right:0 !important;text-align:right !important;align-self:flex-end !important;}
#chatbody.office-hours2-chat .msg.thinking.boss-thinking .meta{text-align:right !important;margin-left:0 !important;margin-right:10px !important;}
#chatbody.office-hours2-chat .msg.thinking.boss-thinking .bubble{display:table !important;margin-left:auto !important;margin-right:0 !important;text-align:left !important;background:#11171a !important;border:1px dashed #697277 !important;color:#9da5a8 !important;}



/* FINAL: Office Hours 2 inner-thinking is positioned exactly like Boss (right side), while keeping its gray thinking style. */
#chatbody.office-hours2-chat .msg.thinking.boss-thinking{
  display:block !important;
  width:82% !important;
  max-width:82% !important;
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:right !important;
  align-self:flex-end !important;
}
#chatbody.office-hours2-chat .msg.thinking.boss-thinking .meta{
  text-align:right !important;
  margin-left:0 !important;
  margin-right:10px !important;
}
#chatbody.office-hours2-chat .msg.thinking.boss-thinking .bubble{
  display:block !important;
  width:auto !important;
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:left !important;
  background:#11171a !important;
  border:1px dashed #697277 !important;
  color:#9da5a8 !important;
}



.auto-speed-btn::before{content:'▶';font-size:12px;line-height:1}
.auto-speed-btn[data-speed="0"]::before{content:'⏸'}



.auto-speed-btn{
  width:62px!important;height:48px!important;
  min-width:62px!important;padding:0!important;
  border-radius:25px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:4px!important;
  background:#111a20!important;
  border:2px solid rgba(0,210,180,.75)!important;
  color:#fff!important;
  font-size:15px!important;font-weight:700!important;
  white-space:nowrap!important;
  box-shadow:0 0 8px rgba(0,210,180,.18),inset 0 0 0 1px rgba(255,255,255,.05)!important;
}
.auto-speed-btn::before{
  content:'»';
  font-size:22px;
  line-height:1;
  font-weight:900;
}
.auto-speed-btn[data-speed="0"]::before{content:'⏸';font-size:16px}
.auto-speed-btn[data-speed="0"]{border-color:#59636a!important}
.auto-speed-btn[data-speed="1"]{border-color:#20c997!important}
.auto-speed-btn[data-speed="2"]{border-color:#f4b400!important}
.auto-speed-btn[data-speed="3"]{border-color:#00e0c0!important}
@media(max-width:430px){
  .auto-speed-btn{width:58px!important;min-width:58px!important;height:44px!important;font-size:14px!important}
  .auto-speed-btn::before{font-size:20px}
}



.auto-speed-btn{
  position:relative!important;
  width:62px!important;
  min-width:62px!important;
  height:48px!important;
  padding:0!important;
  border-radius:25px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  line-height:1!important;
  background:#111a20!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:700!important;
}
.auto-speed-btn::before{
  content:'»'!important;
  font-size:22px!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
.auto-speed-btn[data-speed="0"]::before{
  content:'⏸'!important;
  font-size:16px!important;
  transform:none!important;
}
.auto-speed-btn[data-speed="0"]{border-color:#59636a!important}
.auto-speed-btn[data-speed="1"]{border-color:#20c997!important}
.auto-speed-btn[data-speed="2"]{border-color:#f4b400!important}
.auto-speed-btn[data-speed="3"]{border-color:#00e0c0!important}
.auto-speed-btn .speed-num,
.auto-speed-btn{vertical-align:middle!important}
@media(max-width:430px){
  .auto-speed-btn{
    width:58px!important;
    min-width:58px!important;
    height:44px!important;
    font-size:14px!important;
  }
  .auto-speed-btn::before{font-size:20px!important}
}



.auto-speed-btn{
  position:relative!important;
  width:62px!important;
  min-width:62px!important;
  height:48px!important;
  padding:0!important;
  border-radius:25px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  background:#111a20!important;
  border:2px solid #00d6bd!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.auto-speed-btn::before{content:none!important;display:none!important}
.auto-speed-btn[data-speed="0"]{border-color:#59636a!important}
.auto-speed-btn[data-speed="1"]{border-color:#20c997!important}
.auto-speed-btn[data-speed="2"]{border-color:#f4b400!important}
.auto-speed-btn[data-speed="3"]{border-color:#00e0c0!important}
@media(max-width:430px){
  .auto-speed-btn{
    width:58px!important;
    min-width:58px!important;
    height:44px!important;
    font-size:14px!important;
  }
}



#saveLoad{background:#090f12;color:#f3f5f6;overflow:auto}
.saveWrap{height:100%;overflow-y:auto;padding-bottom:34px}
.saveNav{height:76px;background:#10171a;border-bottom:1px solid #2a3337;display:flex;align-items:center;padding:0 18px;gap:16px;position:sticky;top:0;z-index:5}
.saveBack{width:54px;height:54px;border-radius:50%;border:1px solid #334047;background:#121b1f;color:#fff;font-size:38px;line-height:1;font-weight:300;display:flex;align-items:center;justify-content:center}
.saveTitle{font-size:27px;font-weight:500;letter-spacing:.2px}
.saveContent{padding:20px 14px 0}
.saveCreate{display:flex;gap:12px;margin-bottom:22px}
.saveInput{flex:1;min-width:0;height:66px;border:1px solid #344147;border-radius:13px;background:#111a1e;color:#e9eef0;padding:0 18px;font-size:20px;outline:none}
.saveInput:focus{border-color:#14cdb2;box-shadow:0 0 0 2px rgba(20,205,178,.12)}
.saveCreateBtn{height:66px;border:1px solid #00d9b8;border-radius:13px;background:linear-gradient(#0bbd9e,#079e88);color:#fff;padding:0 24px;font-size:19px;font-weight:700;white-space:nowrap;box-shadow:0 4px 15px rgba(0,0,0,.25)}
.saveHint{text-align:center;color:#9ca8ad;font-size:14px;margin:-8px 0 18px}
.saveList{display:flex;flex-direction:column;gap:8px}
.saveRow{min-height:94px;border:1px solid #29363b;border-radius:15px;background:#10191d;display:flex;align-items:center;padding:12px 10px 12px 15px;gap:12px;box-shadow:inset 0 1px rgba(255,255,255,.02)}
.saveFileIcon{width:42px;height:50px;flex:0 0 42px;color:#e7ecee;position:relative;font-size:39px;line-height:50px;text-align:center}
.saveFileIcon:before{content:'▤';font-size:38px}
.saveInfo{min-width:0;flex:1}
.saveName{font-size:20px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saveDate{font-size:14px;color:#a7b1b6;margin-top:6px}
.saveActions{display:flex;gap:10px;align-items:center}
.saveLoadBtn{height:52px;min-width:128px;border:1px solid #00d9b8;border-radius:12px;background:#08a98f;color:#fff;font-size:17px;font-weight:700}
.saveDeleteBtn{height:52px;width:60px;border:0;border-radius:12px;background:#f02f35;color:#fff;font-size:31px;line-height:1}
.saveEmpty{padding:45px 15px;text-align:center;color:#8e999e;font-size:17px}
@media(max-width:430px){
 .saveNav{height:68px;padding:0 12px;gap:12px}.saveBack{width:48px;height:48px;font-size:34px}.saveTitle{font-size:23px}
 .saveContent{padding:14px 10px 0}.saveCreate{gap:8px}.saveInput{height:58px;font-size:17px;padding:0 13px}.saveCreateBtn{height:58px;padding:0 13px;font-size:16px}
 .saveRow{min-height:86px;padding:10px 8px 10px 10px;gap:8px}.saveFileIcon{width:34px;flex-basis:34px;font-size:31px}.saveFileIcon:before{font-size:31px}.saveName{font-size:17px}.saveDate{font-size:12px;margin-top:4px}.saveActions{gap:7px}.saveLoadBtn{min-width:88px;height:48px;font-size:15px}.saveDeleteBtn{width:52px;height:48px;font-size:27px}
}



/* Boss inner-thinking: right aligned like Boss messages in Office Hours */
#chatbody.office-hours2-chat .msg.thinking.boss-thinking,
#chatbody .msg.thinking.boss-thinking{
  display:block !important;
  width:82% !important;
  max-width:82% !important;
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:right !important;
}
#chatbody.office-hours2-chat .msg.thinking.boss-thinking .meta,
#chatbody .msg.thinking.boss-thinking .meta{
  display:block !important;
  width:100% !important;
  margin-left:0 !important;
  margin-right:10px !important;
  text-align:right !important;
}
#chatbody.office-hours2-chat .msg.thinking.boss-thinking .bubble,
#chatbody .msg.thinking.boss-thinking .bubble{
  display:inline-block !important;
  width:auto !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:0 !important;
  text-align:left !important;
}



/* Final requested fix: Boss Inner thinking stays on the left, matching incoming messages. */
#chatbody .msg.thinking.boss-thinking{
  display:table !important;
  width:auto !important;
  max-width:82% !important;
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
}
#chatbody .msg.thinking.boss-thinking .meta{
  text-align:left !important;
  margin-left:5px !important;
  margin-right:0 !important;
}
#chatbody .msg.thinking.boss-thinking .bubble{
  display:table !important;
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
  background:#11171a !important;
  border-color:#697277 !important;
  color:#9da5a8 !important;
}

/* HR reward video: keep it aligned with incoming HR messages and prevent taps on the player from advancing the story. */
#chatbody .msg.video-message{width:82%;max-width:82%;margin-left:0;margin-right:auto;text-align:left;}
#chatbody .msg.video-message .meta{text-align:left;margin-left:10px;margin-right:0;}
#chatbody .videoMsg{width:100%;height:auto;display:block;border-radius:16px;border:1px solid #30393d;box-shadow:0 4px 16px rgba(0,0,0,.3);background:#000;}


/* Saved video tile in the in-game Photos gallery */
.photosVideoTile{width:100%;aspect-ratio:1/1;position:relative;overflow:hidden;border-radius:4px;background:#15191c;display:flex;align-items:center;justify-content:center}
.photosVideoTile video{width:100%;height:100%;object-fit:cover;display:block;background:#15191c}
.photosVideoBadge{position:absolute;left:5px;top:5px;padding:3px 6px;border-radius:5px;background:rgba(0,0,0,.72);color:#fff;font-size:10px;font-weight:700;letter-spacing:.4px;pointer-events:none}

/* Custom video controls: consistent fullscreen playback in chat and Photos, without native overflow dots. */
.storyVideoWrap{position:relative;width:100%;overflow:hidden;background:#000;border-radius:16px;isolation:isolate}
.storyVideoWrap video{width:100%;height:auto;max-height:70vh;display:block;object-fit:contain;background:#000}
.storyVideoControls{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:8px;padding:24px 10px 9px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.88));z-index:4}
.storyVideoControls button{border:0;background:rgba(20,20,20,.45);color:#fff;border-radius:50%;min-width:34px;height:34px;font-size:20px;display:flex;align-items:center;justify-content:center;padding:0}
.storyVideoControls .storyVideoTime{font-size:12px;white-space:nowrap}
.storyVideoTimeline{min-width:0;flex:1;height:4px;accent-color:#fff;padding:0}
.storyVideoControls.compact{gap:4px;padding:16px 5px 5px}
.storyVideoControls.compact button{min-width:27px;height:27px;font-size:16px}
.storyVideoControls.compact .storyVideoTime{font-size:9px}
.storyVideoFallbackFullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important;z-index:2147483647!important;background:#000!important;display:flex!important;align-items:center!important;justify-content:center!important}
.storyVideoFallbackFullscreen video{width:100%!important;height:100%!important;max-height:100dvh!important;object-fit:contain!important}
.storyVideoFallbackFullscreen .storyVideoControls{bottom:env(safe-area-inset-bottom,0px);padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
.storyVideoFullscreenOpen{overflow:hidden!important}
.storyVideoFullscreenOpen .storyVideoFallbackFullscreen .storyVideoFullscreen:after{content:' ✕';font-size:13px}
.photosVideoTile .storyVideoWrap{width:100%;height:100%;border-radius:4px}
.photosVideoTile .storyVideoWrap video{width:100%;height:100%;object-fit:cover}
.photosVideoTile .storyVideoControls{padding-top:24px}
.photosVideoBadge{z-index:5}

/* Video full-screen uses an in-page overlay with a photo-viewer-style close button. */
.storyVideoCloseFullscreen{display:none;position:fixed;top:calc(16px + env(safe-area-inset-top,0px));right:16px;z-index:2147483647;border:0!important;border-radius:50%!important;width:44px!important;height:44px!important;min-width:44px!important;background:rgba(35,42,46,.9)!important;color:#fff!important;font-size:30px!important;line-height:1;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.4)}
.storyVideoFallbackFullscreen .storyVideoCloseFullscreen{position:fixed;display:flex;}
.storyVideoFallbackFullscreen .storyVideoControls{z-index:2147483646}


/* Requested fix: this single Office Hours inner-thinking message sits on the left like the Boss chat bubble. */
#chatbody .msg.thinking.inner-left{
  display:table !important;
  width:auto !important;
  max-width:82% !important;
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
  align-self:flex-start !important;
}
#chatbody .msg.thinking.inner-left .meta{
  text-align:left !important;
  margin-left:10px !important;
  margin-right:0 !important;
}
#chatbody .msg.thinking.inner-left .bubble{
  display:inline-block !important;
  margin-left:0 !important;
  margin-right:auto !important;
  text-align:left !important;
}
