/* Browser workspace additions to the packaged 0.1.37 interface. */
:root{--muted-dialog:#e0cfd7;color-scheme:dark}
[hidden]{display:none!important}
.skip{position:fixed;top:-100px;left:12px;z-index:99;background:#231423;color:white;padding:10px 14px;border-radius:8px}
.skip:focus{top:12px}
#app-content:focus{outline:none}
#mode-caption{color:#e6cfd9;margin-left:.6rem;font-size:.68rem;font-weight:500;letter-spacing:0;white-space:nowrap}
.workspace-links,.ws-account-links{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px}
.workspace-links{margin:8px 0 0;color:#eedee5;font-size:.75rem}
.workspace-links a,.ws-account-links a{color:inherit;text-decoration:underline;text-underline-offset:3px}
#ws-dialog{line-height:1.5;color:#fff7f9;background:#30202d;--muted:#ddced5;--edge:#72505e}
#ws-dialog :is(input,textarea){font:inherit;color:#fff5f5;width:100%;background:#22151f;border:1px solid #735463;border-radius:9px;padding:.55rem .7rem}
#ws-dialog :is(.action,.primary),.tour-actions :is(a,button){display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;font:inherit;cursor:pointer}
#ws-dialog .primary{background:var(--offtik-accent-paint)!important;color:white!important;border:0!important;padding:.5rem 1.15rem}
#ws-dialog .action{background:#523a4c!important;border:0!important;padding:.5rem 1rem;color:#fff}
#ws-dialog .close-x{padding:0;min-height:36px}
#ws-dialog .ws-account-links{border-top:1px solid var(--edge);margin-top:20px;padding-top:16px}
#ws-dialog .mode-switch{display:flex;gap:6px;flex-wrap:wrap;margin:15px 0}
#ws-dialog [data-mode]{padding:.5rem .9rem;border-radius:30px;background:#503749!important;color:#fff;border:0!important}
#ws-dialog [data-mode][aria-pressed=true]{background:var(--offtik-accent-paint)!important}
#ws-dialog .ws-search-group{display:grid;gap:3px;margin-top:14px}
#ws-dialog .ws-search-group h3{font-size:1.02rem;margin:0 0 4px}
#ws-dialog .ws-search-hit{display:block;width:100%;border:0!important;border-radius:9px;padding:.5rem .7rem;color:#fff;text-align:left;background:#46303f!important}
.ws-search-hit small{display:block;color:#deced6}
#app-content .wsp-list-panel input{width:100%;min-width:0}
#app-content .wsp-summary{color:var(--lens-hint);margin:0;padding:8px 0;font-size:.85rem}
#app-content .wsp-row-list{display:grid;gap:5px}
#app-content .wsp-row-list button{width:100%;text-align:left}
#app-content .wsp-row-list button small{display:block;overflow-wrap:anywhere}
#app-content .wsp-journal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:12px}
#app-content .wsp-journal-grid button{padding:16px;min-width:0;text-align:left;margin:0}
#app-content .wsp-journal-grid :is(small,strong,span){display:block;min-width:0;overflow-wrap:anywhere}
#app-content .wsp-journal-grid strong{font-size:1.12rem;margin:5px 0}
#app-content .wsp-journal-grid small{line-height:1.55;color:var(--lens-hint)}
#app-content .wsp-profile-detail{min-width:0}
#app-content .wsp-profile-detail p{white-space:pre-wrap;overflow-wrap:anywhere}
#app-content .wsp-summary-grid{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
#app-content .wsp-summary-grid>div{background:var(--lens-thin);border-radius:13px;min-width:85px;padding:10px 13px}
#app-content .wsp-summary-grid strong{display:block;font-size:1.3rem}
.wsp-feedback{font-size:.92rem;color:#f0d9e4}
.workspace-links a:focus-visible,.ws-account-links a:focus-visible,.ws-search-hit:focus-visible{outline:2px solid white;outline-offset:2px}
dialog{color:#fff7f9;width:min(31rem,calc(100% - 2rem));max-height:88svh;overflow:auto;border:1px solid var(--edge);background:#31202b;box-shadow:0 20px 80px #12061077;border-radius:22px;padding:clamp(19px,2.3vw,29px)}
dialog::backdrop{background:#100a12ab;backdrop-filter:blur(5px)}.dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.dialog-top h2{font-size:1.55rem;line-height:1.25}
.close-x{border-radius:50%;background:rgba(240,225,235,.1);color:#fff;display:inline-grid;place-items:center;width:36px;height:36px;flex:none;font-size:1.45rem;line-height:1}
dialog form{display:grid;gap:12px;margin-top:1rem}dialog form label{display:grid;gap:5px;color:#f7e9f0;font-weight:600}dialog form label input,dialog form label textarea{font-weight:400}.dialog-actions{justify-content:flex-end;flex-wrap:wrap;margin-top:.5rem}.dialog-actions .action,.dialog-actions .primary{min-height:42px}
.dialog-note,.detail-label{color:var(--muted);font-size:.875rem}.dialog-note{margin:.55rem 0}.detail-label{margin:1.15rem 0 .25rem}.detail-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.danger{color:#ffc6c2}.form-error{margin:0;color:#ffb8b0}.ws-toast{position:fixed;left:50%;bottom:1.2rem;max-width:min(90%,600px);transform:translateX(-50%);padding:.65rem 1.1rem;border-radius:12px;background:#251525;color:#fff;z-index:4;box-shadow:0 5px 20px #160b16aa}.ws-toast:empty{display:none}[hidden]{display:none!important}

/* This invitation leaves the dashboard interactive while it is on screen. */
body:has(.tour-choice:not([hidden])) .ws-shell::after {
  content:"";
  position:fixed;
  z-index:900;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(30,5,16,.55),rgba(15,5,11,.26) 78%);
  animation:tour-appear .45s ease-out both;
}
.tour-choice {
  position:fixed;
  z-index:901;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(29rem, calc(100% - 2rem));
  max-height:calc(100dvh - 2rem);
  overflow:auto;
  padding:clamp(1.4rem,3.7vw,2.45rem);
  border:1px solid rgba(190,103,133,.36);
  border-radius:22px;
  color:#faeaf1;
  background:linear-gradient(145deg,rgba(48,17,30,.98),rgba(24,12,19,.98) 76%);
  box-shadow:0 22px 68px rgba(13,2,9,.5), inset 0 1px 0 rgba(242,181,204,.06);
  backdrop-filter:blur(18px);
  animation:tour-appear .45s ease-out both;
}
.tour-heading h2{text-align:center;font-size:clamp(1.22rem,1.9vw,1.65rem);font-weight:600;line-height:1.32;letter-spacing:-.045em}
.tour-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:1.4rem;gap:.65rem}
.tour-actions :is(a,button){
  min-height:46px;
  border:1px solid transparent;
  border-radius:14px;
  color:#fbe7ef;
  font-size:1rem;
  padding:.6rem .7rem;
  transition:background-color .18s, border-color .18s;
}
.tour-actions .action{background:#391322!important;border-color:#713149!important}
.tour-actions .primary{background:#6e1b39!important;border-color:#984259!important}
.tour-actions .action:hover,.tour-actions .action:focus-visible{background:#4d1a30!important;border-color:#a85a76!important}
.tour-actions .primary:hover,.tour-actions .primary:focus-visible{background:#812344!important;border-color:#bf6880!important}
.tour-actions :is(a,button):focus-visible{outline:2px solid #f3c6d8;outline-offset:3px}
@keyframes tour-appear{from{opacity:0}to{opacity:1}}
@media(max-width:430px){
  .ws-sidebar footer{gap:.16rem;font-size:.8rem}
  .tour-actions :is(a,button){padding:.45rem;font-size:.925rem}
}
@media(prefers-reduced-motion:reduce){
  .tour-choice,body:has(.tour-choice:not([hidden])) .ws-shell::after{animation:none}
  .tour-actions :is(a,button){transition:none}
}
@media(prefers-reduced-transparency:reduce){.tour-choice{background:#24101b;backdrop-filter:none}}
@media(forced-colors:active){.tour-choice,.tour-actions :is(a,button){border:1px solid ButtonText}}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
