/* ============================================================
   SWEEP DESIGN OS — stylesheet
   ============================================================ */

:root{
  --ink: #383938;
  --paper: #EFEDED;
  --accent: #E8622C;   /* sweep orange */
  --amber: #E8A33D;    /* folder amber */
  --win-bg: rgba(249,247,243,.9);
  --win-radius: 12px;
  --spring: cubic-bezier(.32,.72,0,1);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html,body{ height:100%; }
body{
  overflow:hidden;
  height:100dvh;
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  color:var(--ink);
  transition: background 1s ease;
}
img{ -webkit-user-drag:none; user-select:none; }
button{ font-family:inherit; }
[hidden]{ display:none !important; }

/* film grain over everything */
body::after{
  content:"";
  position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity:.12;
  mix-blend-mode:overlay;
  pointer-events:none;
  z-index:3000;
}

/* ---------- wallpapers ---------- */
body.wp-paper{
  background:
    radial-gradient(1100px 700px at 50% 30%, rgba(244,206,160,.5), transparent 62%),
    radial-gradient(1400px 900px at 85% 92%, rgba(232,98,44,.16), transparent 55%),
    radial-gradient(1200px 800px at 6% 88%, rgba(56,57,56,.15), transparent 60%),
    linear-gradient(180deg, #EDEAE3, #E1DBCF);
}
body.wp-charcoal{
  background:
    radial-gradient(1000px 650px at 50% 26%, rgba(232,98,44,.17), transparent 62%),
    radial-gradient(1300px 900px at 92% 96%, rgba(122,110,255,.09), transparent 55%),
    linear-gradient(180deg, #2B2B2F, #1B1B1E);
}
body.wp-sunset{
  background:
    radial-gradient(1300px 850px at 50% 108%, #F6B03E, transparent 68%),
    radial-gradient(900px 600px at 15% 10%, rgba(255,220,175,.55), transparent 60%),
    linear-gradient(180deg, #EA8C4C, #D2551F);
}

/* ============================================================
   BOOT
   ============================================================ */
#boot{
  position:fixed; inset:0; z-index:1000;
  background:#1B1B1D;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:30px;
  padding-bottom:6vh;
  transition:opacity .65s ease .05s;
}
.boot-logo{ width:min(200px,44vw); opacity:.96; }
.boot-bar{ width:190px; height:5px; border-radius:4px; background:rgba(239,237,237,.15); overflow:hidden; }
.boot-bar i{ display:block; height:100%; width:0; border-radius:4px; background:#EFEDED; transition:width .45s ease; }
#boot.done{ opacity:0; pointer-events:none; }

/* ============================================================
   MENU BAR
   ============================================================ */
#menubar{
  position:fixed; top:0; left:0; right:0; height:30px; z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 10px;
  font-size:13px;
  background:rgba(246,244,240,.6);
  backdrop-filter:blur(20px) saturate(1.6);
  -webkit-backdrop-filter:blur(20px) saturate(1.6);
  border-bottom:.5px solid rgba(56,57,56,.12);
  user-select:none;
}
.mb-left,.mb-right{ display:flex; align-items:center; gap:2px; min-width:0; }
.mb-name{ display:flex; align-items:center; gap:7px; padding:3px 8px; }
.mb-logo{ height:15px; flex:0 0 auto; display:block; }
.mb-word{ height:19px; flex:0 0 auto; display:block; }
.mb-item{
  border:none; background:none; cursor:pointer;
  font-size:13px; color:var(--ink);
  padding:3px 9px; border-radius:5px;
  white-space:nowrap;
}
.mb-item b{ font-weight:700; }
.mb-item:hover{ background:rgba(56,57,56,.09); }
.mb-glyph{
  display:grid; place-items:center;
  width:26px; height:22px; border-radius:5px;
  color:var(--ink); opacity:.85;
}
.mb-glyph svg{ width:15px; height:15px; }
.mb-batt svg{ width:24px; height:12px; }
a.mb-glyph:hover{ background:rgba(56,57,56,.09); }
#mb-clock{ font-variant-numeric:tabular-nums; font-weight:500; }

.mb-avail{ display:flex; align-items:center; gap:6px; font-weight:600; }
.mb-avail i{
  width:7px; height:7px; border-radius:50%;
  background:#34C759; flex:0 0 auto;
  animation:availPulse 2.2s ease-out infinite;
}
@keyframes availPulse{
  0%  { box-shadow:0 0 0 0 rgba(52,199,89,.45); }
  70% { box-shadow:0 0 0 7px rgba(52,199,89,0); }
  100%{ box-shadow:0 0 0 0 rgba(52,199,89,0); }
}

body.wp-charcoal #menubar{
  background:rgba(28,28,31,.55);
  border-bottom-color:rgba(239,237,237,.12);
}
body.wp-charcoal .mb-item,
body.wp-charcoal .mb-glyph{ color:var(--paper); }
body.wp-charcoal .mb-item:hover,
body.wp-charcoal a.mb-glyph:hover{ background:rgba(239,237,237,.13); }
body.wp-charcoal .mb-logo,
body.wp-charcoal .mb-word{ filter:invert(.92); }

/* ============================================================
   TICKER
   ============================================================ */
#ticker{
  position:fixed; top:30px; left:0; right:0; height:23px; z-index:490;
  background:var(--ink); color:var(--paper);
  overflow:hidden; display:flex; align-items:center;
  user-select:none;
}
.ticker-track{
  display:inline-flex; white-space:nowrap; will-change:transform;
  animation:tickerScroll 46s linear infinite;
  font-size:10.5px; font-weight:600; letter-spacing:.18em;
}
.ticker-track span{ padding-right:2em; }
#ticker:hover .ticker-track{ animation-play-state:paused; }
@keyframes tickerScroll{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
body.wp-charcoal #ticker{ background:var(--paper); color:#232325; }

/* ============================================================
   DESKTOP
   ============================================================ */
#desktop{ position:fixed; inset:0; padding-top:53px; z-index:1; }
.wallpaper-brand{
  position:absolute; inset:53px 0 90px 0;
  display:grid; place-items:center;
  pointer-events:none;
}
.wallpaper-brand img{
  width:min(70vw, 880px);
  opacity:.08;
  mix-blend-mode:multiply;
}
body.wp-charcoal .wallpaper-brand img{ filter:invert(.92); opacity:.1; mix-blend-mode:normal; }
body.wp-sunset .wallpaper-brand img{ opacity:.12; }

/* --- desktop icons --- */
#icons{ position:absolute; inset:53px 0 90px 0; }
.dicon{
  position:absolute;
  width:122px;
  display:flex; flex-direction:column; align-items:center; gap:3px;
  border:none; background:none; padding:8px 4px; cursor:pointer;
  border-radius:12px;
  touch-action:none;
}
.dicon-art{ display:block; width:72px; transition:transform .3s var(--spring); }
.dicon-art svg{ width:100%; display:block; filter:drop-shadow(0 7px 12px rgba(56,45,20,.3)); }
.dicon:hover .dicon-art{ transform:scale(1.07) translateY(-2px); }
.dicon:active .dicon-art{ transform:scale(.98); transition-duration:.1s; }
/* client icons: the work itself as a photo-stack preview */
.dicon-preview{
  position:relative;
  width:94px; aspect-ratio:1;
}
.dicon-preview::before{
  content:"";
  position:absolute; inset:0;
  background:#F6F1E7;
  border-radius:11px;
  transform:rotate(4.5deg);
  box-shadow:0 5px 12px rgba(56,45,20,.2), 0 0 0 .5px rgba(56,57,56,.12);
}
.dicon-preview img{
  position:relative;
  width:100%; height:100%;
  display:block; object-fit:cover;
  border-radius:11px;
  border:3px solid #FFFDF8;
  box-shadow:0 8px 16px rgba(56,45,20,.32);
  transform:rotate(-2deg);
  background:#DDD8CE;
}
body.wp-charcoal .dicon-preview::before{ background:#3A3A3E; box-shadow:0 5px 12px rgba(0,0,0,.4), 0 0 0 .5px rgba(239,237,237,.14); }

.dicon-label{
  font-size:13px; font-weight:600; letter-spacing:.01em;
  color:var(--ink);
  background:rgba(239,237,237,.55);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  padding:2.5px 10px; border-radius:7px;
  max-width:138px;
  box-shadow:0 1px 4px rgba(56,45,20,.08);
}
.dicon.selected .dicon-label,
.dicon:focus-visible .dicon-label{ background:var(--ink); color:var(--paper); }
.dicon.dragging{ z-index:60; }
.dicon.dragging .dicon-art{ transform:scale(1.08); }
body.wp-charcoal .dicon-label{ color:var(--paper); background:rgba(28,28,30,.55); }
body.wp-charcoal .dicon.selected .dicon-label{ background:var(--paper); color:#232325; }

#selrect{
  position:fixed; z-index:5;
  border:1px solid rgba(56,57,56,.55);
  background:rgba(56,57,56,.09);
  border-radius:2px;
  pointer-events:none;
}
body.wp-charcoal #selrect{ border-color:rgba(239,237,237,.6); background:rgba(239,237,237,.1); }

/* --- sticky note --- */
#sticky{
  position:absolute; z-index:8;
  width:200px; padding-bottom:16px;
  background:linear-gradient(#FDF6A3, #F5E678);
  border-radius:2px;
  box-shadow:0 14px 30px rgba(90,70,10,.28), 0 2px 6px rgba(0,0,0,.1);
  transform:rotate(-1.5deg);
  font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive;
  color:#5B4A12;
  cursor:grab;
  touch-action:none;
  transition:box-shadow .3s var(--spring);
}
#sticky:hover{ box-shadow:0 20px 40px rgba(90,70,10,.34), 0 3px 8px rgba(0,0,0,.12); }
#sticky.dragging{ cursor:grabbing; z-index:60; }
#sticky b{
  display:flex; align-items:center;
  height:30px; padding:0 14px;
  background:rgba(196,160,15,.16);
  font-size:12.5px; font-weight:700; letter-spacing:.02em;
  margin-bottom:9px;
}
#sticky-lines p{ padding:0 14px; margin:3px 0; font-size:13px; line-height:1.5; }
.sticky-cta{
  display:inline-block; margin:10px 14px 0;
  border:none; border-radius:9px;
  padding:6px 13px;
  background:var(--ink); color:#F5E678;
  font:inherit; font-size:12.5px; font-weight:700;
  cursor:pointer;
  transition:transform .25s var(--spring);
}
.sticky-cta:hover{ transform:translateY(-1.5px); }
.sticky-cta:active{ transform:scale(.97); }

/* ============================================================
   WINDOWS — shared chrome
   ============================================================ */
#windows-layer{ position:fixed; inset:0; z-index:100; pointer-events:none; }
.window{
  position:absolute;
  pointer-events:auto;
  display:flex; flex-direction:column;
  background:var(--win-bg);
  backdrop-filter:blur(30px) saturate(1.6);
  -webkit-backdrop-filter:blur(30px) saturate(1.6);
  border-radius:var(--win-radius);
  box-shadow:
    0 30px 80px rgba(35,28,18,.4),
    0 4px 18px rgba(0,0,0,.14),
    0 0 0 .5px rgba(56,57,56,.2),
    inset 0 .5px 0 rgba(255,255,255,.6);
  overflow:hidden;
  will-change:transform,opacity;
}
.window.unfocused{
  box-shadow:
    0 14px 40px rgba(35,28,18,.22),
    0 0 0 .5px rgba(56,57,56,.16),
    inset 0 .5px 0 rgba(255,255,255,.5);
}
.window.unfocused .tb-title{ color:rgba(56,57,56,.4); }

.titlebar{
  height:40px; flex:0 0 auto;
  display:flex; align-items:center; gap:10px;
  padding:0 12px;
  position:relative;
  border-bottom:.5px solid rgba(56,57,56,.09);
  user-select:none;
  cursor:grab;
}
.titlebar:active{ cursor:grabbing; }
.tb-title{
  position:absolute; left:50%; transform:translateX(-50%);
  font-size:13px; font-weight:600; color:rgba(56,57,56,.75);
  white-space:nowrap; pointer-events:none;
  max-width:55%; overflow:hidden; text-overflow:ellipsis;
}

/* traffic lights */
.traffic{ display:flex; gap:8px; flex:0 0 auto; }
.tl{
  width:12.5px; height:12.5px; border-radius:50%;
  border:.5px solid rgba(0,0,0,.14);
  padding:0; cursor:pointer;
  display:grid; place-items:center;
  font-size:0;
}
.tl::before{
  font-size:10px; font-weight:800; line-height:1;
  opacity:0; transform:translateY(-.5px);
}
.traffic:hover .tl::before{ opacity:.9; }
.tl-close{ background:#FF5F57; } .tl-close::before{ content:"×"; color:#7E0508; }
.tl-min  { background:#FEBC2E; } .tl-min::before  { content:"–"; color:#9A6003; }
.tl-zoom { background:#28C840; } .tl-zoom::before { content:"+"; color:#0B650D; }
.window.unfocused .tl{ background:#D9D6D0; border-color:rgba(0,0,0,.08); }

.win-body{ flex:1; min-height:0; overflow:auto; }

/* thin scrollbars */
.win-body::-webkit-scrollbar,
.finder-content::-webkit-scrollbar,
.notes-content::-webkit-scrollbar,
.ig-scroll::-webkit-scrollbar,
.finder-side::-webkit-scrollbar{ width:9px; height:9px; }
.win-body::-webkit-scrollbar-thumb,
.finder-content::-webkit-scrollbar-thumb,
.notes-content::-webkit-scrollbar-thumb,
.ig-scroll::-webkit-scrollbar-thumb,
.finder-side::-webkit-scrollbar-thumb{
  background:rgba(56,57,56,.22); border-radius:8px;
  border:2.5px solid transparent; background-clip:content-box;
}

/* ============================================================
   FINDER
   ============================================================ */
.finder-toolbar{ height:48px; }
.finder-nav{ display:flex; gap:2px; margin-left:8px; }
.nav-arrow{
  width:27px; height:27px; border:none; border-radius:7px;
  background:none; color:rgba(56,57,56,.68); cursor:pointer;
  display:grid; place-items:center;
}
.nav-arrow svg{ width:16px; height:16px; }
.nav-arrow:hover:not(:disabled){ background:rgba(56,57,56,.08); }
.nav-arrow:disabled{ opacity:.28; cursor:default; }
.finder-tools{ margin-left:auto; }
.ft-search{
  display:flex; align-items:center; gap:6px;
  height:27px; padding:0 11px; border-radius:8px;
  background:rgba(56,57,56,.07);
  color:rgba(56,57,56,.42); font-size:12.5px;
}
.ft-search svg{ width:13px; height:13px; }
.ft-search i{ font-style:normal; }

.finder-body{ display:flex; overflow:hidden; }
.finder-side{
  width:198px; flex:0 0 auto;
  padding:6px 10px 14px;
  border-right:.5px solid rgba(56,57,56,.1);
  background:rgba(238,234,227,.55);
  overflow-y:auto;
}
.fs-head{
  font-size:11px; font-weight:700; color:rgba(56,57,56,.38);
  margin:14px 8px 4px;
}
.fs-item{
  display:flex; align-items:center; gap:8px;
  width:100%; padding:5.5px 8px;
  border:none; border-radius:7px; background:none;
  font-size:13px; color:var(--ink); text-align:left; cursor:pointer;
}
.fs-item svg{ width:16px; height:16px; flex:0 0 auto; }
.fs-item:hover{ background:rgba(56,57,56,.07); }
.fs-item.active{ background:rgba(56,57,56,.13); font-weight:600; }
.fs-folder{ color:var(--amber); }
.fs-tag{
  display:flex; align-items:center; gap:9px;
  font-size:12.5px; color:rgba(56,57,56,.72);
  padding:4px 9px;
}
.fs-tag i{ width:9px; height:9px; border-radius:50%; flex:0 0 auto; }

.finder-content{ flex:1; overflow-y:auto; padding:24px 28px 34px; }

.finder-mchips{ display:none; gap:6px; margin-bottom:16px; overflow-x:auto; padding-bottom:4px; }
.finder-mchips button{
  border:none; border-radius:16px; padding:5px 13px;
  background:rgba(56,57,56,.08); color:var(--ink);
  font-size:12.5px; font-weight:600; white-space:nowrap; cursor:pointer;
}
.finder-mchips button.active{ background:var(--ink); color:var(--paper); }

.case-kicker{
  font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent); font-weight:800;
}
.case-head h1{
  font-size:clamp(24px, 3.4vw, 32px); font-weight:800; letter-spacing:-.02em;
  margin:3px 0 4px; color:var(--ink);
}
.case-meta{ display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 14px; }
.chip{
  font-size:11.5px; font-weight:600;
  padding:3.5px 11px; border-radius:20px;
  background:rgba(56,57,56,.08); color:rgba(56,57,56,.8);
}
.chip.chip-ind{ background:rgba(232,98,44,.12); color:#B04517; }
.case-sum{
  font-size:14px; line-height:1.65; color:rgba(56,57,56,.85);
  max-width:62ch; margin-bottom:22px;
}

.work-grid{ columns:2; column-gap:16px; }
.work-item{
  break-inside:avoid; margin-bottom:16px;
  position:relative; border-radius:10px; overflow:hidden;
  border:none; padding:0; display:block; width:100%;
  cursor:zoom-in; background:#DDD8CE;
  box-shadow:0 6px 20px rgba(35,28,18,.13);
  transition:transform .35s var(--spring), box-shadow .35s var(--spring);
}
.work-item img{ width:100%; display:block; transition:transform .6s var(--spring); }
.work-item:hover{ transform:translateY(-3px); box-shadow:0 16px 36px rgba(35,28,18,.24); }
.work-item:hover img{ transform:scale(1.03); }
.work-item figcaption{
  position:absolute; inset:auto 0 0 0;
  padding:26px 13px 11px; text-align:left;
  background:linear-gradient(transparent, rgba(20,16,10,.66));
  color:#F5F2EC; font-size:12.5px; font-weight:600;
  opacity:0; transition:opacity .3s;
  pointer-events:none;
}
.work-item:hover figcaption{ opacity:1; }

.all-group{ margin-bottom:30px; }
.all-group > h2{
  font-size:15px; font-weight:800; margin-bottom:10px;
  display:flex; align-items:baseline; gap:8px;
}
.all-group > h2 small{ font-size:12px; font-weight:600; color:rgba(56,57,56,.45); }

.finder-status{
  flex:0 0 auto; height:26px;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:rgba(56,57,56,.45);
  border-top:.5px solid rgba(56,57,56,.08);
  user-select:none;
}

/* ============================================================
   NOTES
   ============================================================ */
.notes-body{ display:flex; overflow:hidden; }
.notes-side{
  width:235px; flex:0 0 auto;
  padding:6px 10px;
  border-right:.5px solid rgba(56,57,56,.1);
  background:rgba(238,234,227,.5);
  overflow-y:auto;
}
.note-item{
  display:block; width:100%; text-align:left;
  padding:10px 11px; margin-bottom:2px;
  border:none; border-radius:9px; background:none; cursor:pointer;
}
.note-item b{ display:block; font-size:13px; color:var(--ink); }
.note-item span{
  display:block; margin-top:2px;
  font-size:12px; color:rgba(56,57,56,.5);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.note-item:hover{ background:rgba(56,57,56,.06); }
.note-item.active{ background:rgba(232,163,61,.4); }

.notes-content{ flex:1; overflow-y:auto; padding:28px 32px; background:rgba(252,251,247,.65); }
.note-pane{ display:none; max-width:58ch; }
.note-pane.active{ display:block; animation:paneIn .35s var(--spring); }
@keyframes paneIn{ from{ opacity:0; transform:translateY(6px);} }
.note-date{ text-align:center; font-size:11px; color:rgba(56,57,56,.4); margin-bottom:16px; }
.note-pane h1{ font-size:24px; font-weight:800; letter-spacing:-.01em; margin-bottom:10px; }
.note-pane p{ font-size:14px; line-height:1.65; color:rgba(56,57,56,.85); margin-bottom:10px; }
.note-muted{ color:rgba(56,57,56,.5); font-size:13px; }

.checklist{ list-style:none; margin-top:16px; }
.checklist li{
  display:flex; align-items:center; gap:12px;
  padding:7.5px 0; font-size:14.5px; font-weight:500;
  border-bottom:1px dashed rgba(56,57,56,.1);
}
.checklist li::before{
  content:"✓";
  flex:0 0 auto; width:21px; height:21px; border-radius:50%;
  background:var(--amber); color:#fff;
  display:grid; place-items:center;
  font-size:12px; font-weight:800;
  box-shadow:inset 0 -1.5px 3px rgba(0,0,0,.18);
}
.checklist li:first-child::before{ background:var(--accent); }
.checklist em{ font-style:normal; font-size:12.5px; color:rgba(56,57,56,.45); }

.process{ list-style:none; margin-top:14px; }
.process li{
  position:relative; padding:9px 0 9px 46px;
  font-size:14px; line-height:1.55; color:rgba(56,57,56,.85);
}
.process li::before{
  counter-increment:step;
  content:counter(step, decimal-leading-zero);
  position:absolute; left:0; top:7px;
  width:33px; height:33px; border-radius:10px;
  background:rgba(232,98,44,.12); color:var(--accent);
  display:grid; place-items:center;
  font-size:14px; font-weight:800;
}
.process{ counter-reset:step; }

/* ============================================================
   INSTAGRAM
   ============================================================ */
.ig{ display:flex; flex-direction:column; height:100%; background:#fff; color:#111; }
.ig-top{
  flex:0 0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 15px; border-bottom:1px solid #EFEFEF;
}
.ig-top b{ font-size:16px; font-weight:800; display:flex; align-items:center; gap:5px; }
.ig-top-icons{ display:flex; gap:17px; }
.ig-top-icons svg{ width:21px; height:21px; }
.ig-scroll{ flex:1; overflow-y:auto; overscroll-behavior:contain; }
.ig-head{ display:flex; align-items:center; gap:20px; padding:16px 16px 10px; }
.ig-ava{
  width:84px; height:84px; flex:0 0 auto;
  border-radius:50%; padding:3px;
  background:linear-gradient(45deg,#FFD873,#FA5B30,#E0316F,#9C33C1);
}
.ig-ava img{
  width:100%; height:100%; border-radius:50%;
  background:var(--paper); border:3px solid #fff;
  object-fit:contain; padding:13px;
}
.ig-stats{ flex:1; display:flex; justify-content:space-around; text-align:center; }
.ig-stats span{ display:flex; flex-direction:column; font-size:12.5px; color:#444; }
.ig-stats b{ font-size:17px; font-weight:800; color:#111; }
.ig-bio{ padding:2px 16px 12px; font-size:13.5px; }
.ig-bio b{ font-size:14px; }
.ig-bio p{ margin:3px 0 5px; line-height:1.45; color:#222; }
.ig-bio-link{ color:#19549C; font-weight:600; text-decoration:none; font-size:13px; }
.ig-actions{ display:flex; gap:6px; padding:0 16px 16px; }
.ig-btn{
  flex:1; height:33px;
  display:grid; place-items:center;
  border:none; border-radius:9px;
  background:#EFEFEF; color:#111;
  font-size:13.5px; font-weight:700;
  cursor:pointer; text-decoration:none;
}
.ig-btn:hover{ background:#E4E4E4; }
.ig-btn-primary{ background:#0095F6; color:#fff; }
.ig-btn-primary:hover{ background:#0085DD; }
.ig-btn-sq{ flex:0 0 36px; }
.ig-btn-sq svg{ width:15px; height:15px; }
.ig-highlights{ display:flex; gap:16px; padding:2px 16px 16px; overflow-x:auto; }
.ig-hl{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  border:none; background:none; cursor:pointer;
  font-size:11.5px; font-weight:500; color:#262626;
}
.ig-hl i{
  width:60px; height:60px; border-radius:50%;
  border:1.5px solid #D6D2CA; padding:3px; display:block; background:#fff;
}
.ig-hl i img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.ig-hl:hover i{ border-color:var(--amber); }
.ig-hl-name{
  display:block; max-width:64px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ig-tabs{ display:flex; border-top:1px solid #EFEFEF; }
.ig-tabs span{
  flex:1; display:grid; place-items:center;
  padding:11px 0; color:#8E8E8E;
  border-top:1.5px solid transparent; margin-top:-1px;
}
.ig-tabs span.active{ color:#111; border-top-color:#111; }
.ig-tabs svg{ width:22px; height:22px; }
.ig-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:2px; }
.ig-grid button{
  aspect-ratio:1; border:none; padding:0; overflow:hidden;
  cursor:pointer; background:#eee;
}
.ig-grid img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .45s var(--spring); }
.ig-grid button:hover img{ transform:scale(1.07); }
.ig-foot{ text-align:center; font-size:11.5px; color:#8E8E8E; padding:15px 12px 20px; }
.ig-foot a{ color:#19549C; font-weight:600; }
.ig-tabbar{
  flex:0 0 auto;
  display:flex; justify-content:space-around; align-items:center;
  padding:10px 10px 12px; border-top:1px solid #EFEFEF; color:#111;
}
.ig-tabbar svg{ width:23px; height:23px; }
.ig-tab-ava{
  width:25px; height:25px; border-radius:50%;
  border:1.5px solid #111; background:var(--paper);
  display:grid; place-items:center; overflow:hidden;
}
.ig-tab-ava img{ width:68%; object-fit:contain; }

/* ============================================================
   MESSAGES (testimonials)
   ============================================================ */
.msg-body{ display:flex; overflow:hidden; }
.msg-side{
  width:225px; flex:0 0 auto;
  padding:8px;
  border-right:.5px solid rgba(56,57,56,.1);
  background:rgba(238,234,227,.5);
  overflow-y:auto;
}
.msg-conv{
  display:flex; align-items:center; gap:10px;
  width:100%; padding:8px 9px; margin-bottom:2px;
  border:none; border-radius:9px; background:none;
  text-align:left; cursor:pointer;
}
.msg-conv:hover{ background:rgba(56,57,56,.06); }
.msg-conv.active{ background:rgba(56,57,56,.12); }
.msg-ava{
  width:34px; height:34px; border-radius:50%; flex:0 0 auto;
  display:grid; place-items:center;
  color:#fff; font-size:12px; font-weight:800; letter-spacing:.02em;
}
.msg-meta{ min-width:0; }
.msg-meta b{ display:block; font-size:13px; color:var(--ink); }
.msg-meta i{
  display:block; font-style:normal; margin-top:1px;
  font-size:11.5px; color:rgba(56,57,56,.5);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.msg-main{ flex:1; display:flex; flex-direction:column; min-width:0; background:rgba(252,251,248,.65); }
.msg-thread{
  flex:1; overflow-y:auto;
  padding:18px 18px 10px;
  display:flex; flex-direction:column; gap:7px;
}
.msg-date{ text-align:center; font-size:11px; color:rgba(56,57,56,.4); margin-bottom:8px; }
.msg-in,.msg-out{
  max-width:78%;
  padding:8px 13px; border-radius:18px;
  font-size:13.5px; line-height:1.45;
}
.msg-in{ background:#E9E9EB; color:#141414; align-self:flex-start; border-bottom-left-radius:5px; }
.msg-out{ background:#0A84FF; color:#fff; align-self:flex-end; border-bottom-right-radius:5px; }
.msg-composer{
  flex:0 0 auto;
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-top:.5px solid rgba(56,57,56,.08);
}
#msg-composer-btn{
  flex:1; height:32px;
  border:1px solid rgba(56,57,56,.18); border-radius:16px;
  background:rgba(255,255,255,.7);
  color:rgba(56,57,56,.45);
  font-size:13px; text-align:left; padding:0 14px;
  cursor:text;
}
#msg-composer-btn:hover{ border-color:rgba(56,57,56,.32); }
.msg-send{
  width:27px; height:27px; border-radius:50%; flex:0 0 auto;
  background:#0A84FF; color:#fff;
  display:grid; place-items:center;
}
.msg-send svg{ width:14px; height:14px; }

/* ============================================================
   MAIL
   ============================================================ */
.mail-send{
  margin-left:auto;
  width:31px; height:31px;
  border:none; border-radius:8px; background:none;
  color:#2E77E6; cursor:pointer;
  display:grid; place-items:center;
}
.mail-send svg{ width:17px; height:17px; }
.mail-send:hover{ background:rgba(46,119,230,.12); }
.mail-send:disabled{ opacity:.4; cursor:default; }
.mail-send.sending svg{ animation:sendPulse .8s ease infinite; }
@keyframes sendPulse{ 50%{ opacity:.35; transform:translateX(3px) translateY(-3px);} }

.mail-body{ display:flex; flex-direction:column; background:rgba(252,251,248,.75); }
.mail-row{
  display:flex; align-items:center; gap:10px;
  padding:9.5px 16px;
  border-bottom:.5px solid rgba(56,57,56,.09);
  font-size:13.5px; flex:0 0 auto;
}
.mail-row label{ color:rgba(56,57,56,.45); min-width:54px; font-size:13px; }
.mail-row input{
  flex:1; border:none; background:none; outline:none;
  font:inherit; color:var(--ink); min-width:0;
}
.mail-row.err{ animation:rowShake .35s ease; }
.mail-row.err input::placeholder{ color:#C0442B; }
@keyframes rowShake{ 20%,60%{ transform:translateX(-5px);} 40%,80%{ transform:translateX(5px);} }
.mail-chip{
  background:rgba(46,119,230,.14); color:#1D5BB8;
  padding:3px 11px; border-radius:14px;
  font-size:12.5px; font-weight:600;
}
#mail-msg{
  flex:1; min-height:0; resize:none; outline:none;
  border:none; background:none;
  padding:14px 16px;
  font:inherit; font-size:14px; line-height:1.6; color:var(--ink);
}
#mail-msg.err{ animation:rowShake .35s ease; }
.mail-foot{
  flex:0 0 auto;
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 16px;
  border-top:.5px solid rgba(56,57,56,.08);
  font-size:11.5px; color:rgba(56,57,56,.45);
}
.mail-foot a{ color:#1D5BB8; text-decoration:none; }
.mail-foot a:hover{ text-decoration:underline; }

/* ============================================================
   ABOUT + TRASH
   ============================================================ */
.about-body{
  padding:26px 32px;
  font-size:14.5px; line-height:1.7; color:rgba(56,57,56,.88);
  background:rgba(252,251,248,.7);
}
.about-logo{ width:230px; max-width:70%; display:block; margin:4px 0 20px; }
.about-body p{ margin-bottom:12px; }
.about-cta{ font-weight:600; }
.linklike{
  border:none; background:none; padding:0;
  font:inherit; font-weight:700; color:var(--accent);
  text-decoration:underline; cursor:pointer;
}
.about-body a{ color:var(--accent); font-weight:700; }

.trash-body{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; padding:20px; text-align:center;
  color:rgba(56,57,56,.85);
}
.trash-ghost svg{ width:92px; }
.trash-body p b{ font-size:15px; }
.trash-line{ font-size:13px; color:rgba(56,57,56,.5); }

/* ============================================================
   DOCK
   ============================================================ */
#dock{
  position:fixed; left:0; right:0; bottom:10px; z-index:600;
  display:flex; justify-content:center;
  pointer-events:none;
}
.dock-plate{
  pointer-events:auto;
  display:flex; align-items:flex-end; gap:8px;
  height:78px; padding:9px 13px;
  border-radius:25px;
  background:rgba(246,244,240,.45);
  backdrop-filter:blur(28px) saturate(1.7);
  -webkit-backdrop-filter:blur(28px) saturate(1.7);
  box-shadow:
    0 18px 44px rgba(35,28,18,.3),
    0 0 0 .5px rgba(56,57,56,.15),
    inset 0 .5px 0 rgba(255,255,255,.55);
  overflow:visible;
}
body.wp-charcoal .dock-plate{
  background:rgba(30,30,33,.5);
  box-shadow:0 18px 44px rgba(0,0,0,.5), 0 0 0 .5px rgba(255,255,255,.14), inset 0 .5px 0 rgba(255,255,255,.12);
}
.dock-icon{
  position:relative;
  width:calc(60px * var(--s,1));
  height:calc(60px * var(--s,1));
  flex:0 0 auto;
  border:none; background:none; padding:0; cursor:pointer;
}
.dock-icon svg{
  width:100%; height:100%; display:block;
  filter:drop-shadow(0 5px 11px rgba(35,28,18,.3));
}
.dock-icon.settle{ transition:width .28s var(--spring), height .28s var(--spring); }
.dock-icon.bounce svg{ animation:dockBounce .55s cubic-bezier(.28,.84,.42,1) 2; }
@keyframes dockBounce{ 0%,100%{ transform:translateY(0);} 42%{ transform:translateY(-24px);} }
.dock-dot{
  position:absolute; left:50%; bottom:-6.5px;
  width:4px; height:4px; border-radius:50%;
  transform:translateX(-50%);
  background:rgba(56,57,56,.6);
  opacity:0; transition:opacity .25s;
}
body.wp-charcoal .dock-dot{ background:rgba(239,237,237,.75); }
.dock-icon.running .dock-dot{ opacity:1; }
.dock-tip{
  position:absolute; bottom:calc(100% + 13px); left:50%;
  transform:translateX(-50%) translateY(3px);
  background:rgba(42,42,44,.88);
  color:#F2EFE9;
  font-size:12px; font-weight:600; letter-spacing:.01em;
  padding:4.5px 11px; border-radius:8px;
  white-space:nowrap;
  opacity:0; pointer-events:none;
  transition:opacity .16s, transform .16s;
  backdrop-filter:blur(8px);
}
.dock-tip::after{
  content:""; position:absolute; top:100%; left:50%;
  transform:translateX(-50%);
  border:5px solid transparent; border-top-color:rgba(42,42,44,.88);
}
.dock-icon:hover .dock-tip{ opacity:1; transform:translateX(-50%) translateY(0); }
.dock-sep{ width:1px; align-self:stretch; margin:5px 3px; background:rgba(56,57,56,.18); }
body.wp-charcoal .dock-sep{ background:rgba(239,237,237,.2); }

/* ============================================================
   QUICK LOOK
   ============================================================ */
#quicklook{ position:fixed; inset:0; z-index:900; display:grid; place-items:center; }
.ql-backdrop{
  position:absolute; inset:0;
  background:rgba(26,24,21,.52);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.ql-window{
  position:relative;
  max-width:min(90vw,1020px); max-height:88vh;
  display:flex; flex-direction:column;
  background:rgba(33,32,30,.74);
  backdrop-filter:blur(30px) saturate(1.4);
  -webkit-backdrop-filter:blur(30px) saturate(1.4);
  border-radius:13px; overflow:hidden;
  box-shadow:0 40px 110px rgba(0,0,0,.55), 0 0 0 .5px rgba(255,255,255,.18);
  animation:qlIn .3s var(--spring);
}
@keyframes qlIn{ from{ transform:scale(.85); opacity:0;} }
.ql-bar{
  display:flex; align-items:center; gap:10px;
  padding:10px 13px;
  color:rgba(245,242,235,.78);
  font-size:12.5px; font-weight:600;
}
.ql-stage{ position:relative; display:grid; place-items:center; padding:0 14px; min-height:0; }
#ql-img{
  max-width:100%; max-height:calc(88vh - 112px);
  border-radius:7px; display:block;
}
.ql-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:39px; height:39px; border-radius:50%;
  border:none; cursor:pointer;
  background:rgba(18,18,18,.5); color:#EFEDEA;
  display:grid; place-items:center;
  backdrop-filter:blur(6px);
  transition:background .2s;
}
.ql-arrow svg{ width:18px; height:18px; }
.ql-arrow:hover{ background:rgba(18,18,18,.78); }
.ql-prev{ left:24px; } .ql-next{ right:24px; }
#ql-caption{
  padding:11px 16px 14px; text-align:center;
  color:rgba(245,242,235,.82); font-size:13px;
}

/* ============================================================
   STORY VIEWER
   ============================================================ */
#storyviewer{ position:fixed; inset:0; z-index:910; display:grid; place-items:center; }
.story-backdrop{
  position:absolute; inset:0;
  background:rgba(15,14,13,.74);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.story-card{
  position:relative; overflow:hidden; margin:0;
  height:min(86vh, 780px); aspect-ratio:9/16;
  border-radius:14px;
  background:#161514;
  box-shadow:0 40px 110px rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.15);
  animation:storyIn .32s var(--spring);
}
@keyframes storyIn{ from{ transform:scale(.88); opacity:0; } }
#story-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.story-shade{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(rgba(0,0,0,.52), transparent 20%, transparent 66%, rgba(0,0,0,.62));
}
.story-bars{ position:absolute; top:10px; left:10px; right:10px; display:flex; gap:4px; z-index:3; }
.story-bars i{
  flex:1; height:2.5px; border-radius:2px;
  background:rgba(255,255,255,.32); overflow:hidden; display:block;
}
.story-bars i span{ display:block; height:100%; width:0; background:#fff; border-radius:2px; }
.story-head{
  position:absolute; top:20px; left:12px; right:8px;
  display:flex; align-items:center; gap:9px; z-index:3; color:#fff;
}
.story-ava{
  width:34px; height:34px; border-radius:50%; flex:0 0 auto;
  background:var(--paper); border:1.5px solid rgba(255,255,255,.85);
  display:grid; place-items:center; overflow:hidden;
}
.story-ava img{ width:72%; object-fit:contain; }
.story-head b{
  font-size:13px; font-weight:700;
  text-shadow:0 1px 4px rgba(0,0,0,.45);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.story-x{
  margin-left:auto; flex:0 0 auto;
  width:32px; height:32px;
  border:none; background:none; color:#fff; cursor:pointer;
  display:grid; place-items:center; opacity:.9;
}
.story-x svg{ width:20px; height:20px; }
.story-x:hover{ opacity:1; }
.story-tap{
  position:absolute; top:64px; bottom:100px; z-index:2;
  border:none; background:none; padding:0; cursor:pointer;
}
.story-tap-prev{ left:0; width:34%; }
.story-tap-next{ right:0; width:66%; }
.story-caption{
  position:absolute; left:14px; right:14px; bottom:64px; z-index:3;
  color:rgba(255,255,255,.94);
  font-size:13px; font-weight:600; line-height:1.4;
  text-shadow:0 1px 6px rgba(0,0,0,.55);
}
.story-cta{
  position:absolute; left:50%; bottom:16px; z-index:3;
  transform:translateX(-50%);
  border:none; border-radius:18px;
  padding:8px 17px;
  background:rgba(255,255,255,.94); color:#141414;
  font-size:12.5px; font-weight:700;
  cursor:pointer;
  transition:transform .25s var(--spring), background .2s;
}
.story-cta:hover{ transform:translateX(-50%) translateY(-2px); background:#fff; }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
#notifications{
  position:fixed; top:64px; right:14px; z-index:800;
  display:flex; flex-direction:column; gap:10px;
  pointer-events:none;
}
.notif{
  pointer-events:auto;
  width:334px; max-width:calc(100vw - 28px);
  display:flex; gap:12px; align-items:flex-start;
  padding:12px 14px;
  border-radius:15px;
  background:rgba(249,247,243,.85);
  backdrop-filter:blur(26px) saturate(1.5);
  -webkit-backdrop-filter:blur(26px) saturate(1.5);
  box-shadow:0 14px 36px rgba(35,28,18,.26), 0 0 0 .5px rgba(56,57,56,.15);
  transform:translateX(30px); opacity:0;
  transition:transform .5s var(--spring), opacity .4s;
  cursor:default;
}
.notif.show{ transform:none; opacity:1; }
.notif-icon{
  width:35px; height:35px; flex:0 0 auto;
  border-radius:9px; overflow:hidden;
  display:grid; place-items:center;
}
.notif-icon svg,.notif-icon img{ width:100%; height:100%; }
.notif-txt{ min-width:0; }
.notif-txt b{ display:block; font-size:13px; color:var(--ink); }
.notif-txt p{ font-size:12.5px; line-height:1.4; color:rgba(56,57,56,.65); margin-top:1px; }

/* ============================================================
   CONTEXT MENU
   ============================================================ */
#ctxmenu{
  position:fixed; z-index:950;
  min-width:196px; padding:5px;
  border-radius:12px;
  background:rgba(249,247,243,.88);
  backdrop-filter:blur(26px) saturate(1.6);
  -webkit-backdrop-filter:blur(26px) saturate(1.6);
  box-shadow:0 16px 46px rgba(35,28,18,.32), 0 0 0 .5px rgba(56,57,56,.17);
  font-size:13px;
  animation:ctxIn .16s var(--spring);
  transform-origin:top left;
}
@keyframes ctxIn{ from{ transform:scale(.92); opacity:0;} }
#ctxmenu button{
  display:block; width:100%; text-align:left;
  padding:5.5px 12px;
  border:none; border-radius:8px; background:none;
  color:var(--ink); font-size:13px; cursor:pointer;
}
#ctxmenu button:hover{ background:var(--accent); color:#fff; }
#ctxmenu hr{ border:none; border-top:.5px solid rgba(56,57,56,.15); margin:5px 9px; }
.ctx-head{ font-size:11px; font-weight:700; color:rgba(56,57,56,.4); padding:4px 12px 2px; }

/* ============================================================
   FOCUS / A11Y
   ============================================================ */
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
.tl:focus-visible{ outline-offset:1px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:760px){
  #menubar{ padding:0 6px; }
  .mb-hide-sm, .mb-batt, .mb-glyph:not(a){ display:none; }
  .mb-item{ padding:3px 7px; font-size:12px; }
  #mb-clock{ display:none; }

  .wallpaper-brand img{ width:92vw; }

  #icons{
    position:absolute; inset:60px 8px 96px;
    display:flex; flex-wrap:wrap; align-content:flex-start; gap:2px;
  }
  .dicon{ position:static !important; width:98px; }
  .dicon-art{ width:66px; }

  .window{
    left:2.5vw !important; top:60px !important;
    width:95vw !important;
    height:calc(100dvh - 60px - 92px) !important;
  }

  .finder-side{ display:none; }
  .finder-mchips{ display:flex; }
  .finder-content{ padding:16px 16px 26px; }
  .work-grid{ columns:1; }
  .ft-search{ display:none; }

  #sticky{
    left:50% !important; top:auto !important; bottom:112px;
    transform:translateX(-50%) rotate(-1.5deg);
    width:212px;
  }

  .msg-body{ flex-direction:column; }
  .msg-side{
    width:100%; display:flex; gap:6px;
    overflow-x:auto; overflow-y:hidden;
    border-right:none; border-bottom:.5px solid rgba(56,57,56,.12);
  }
  .msg-conv{ min-width:160px; }

  .notes-body{ flex-direction:column; }
  .notes-side{
    width:100%; display:flex; gap:6px;
    overflow-x:auto; overflow-y:hidden;
    border-right:none; border-bottom:.5px solid rgba(56,57,56,.12);
    padding:8px;
  }
  .note-item{ min-width:172px; }
  .notes-content{ padding:20px 18px; }

  .dock-plate{ height:66px; gap:6px; padding:8px 10px; border-radius:22px; }
  .dock-icon{ width:50px !important; height:50px !important; }
  .dock-tip{ display:none; }

  .ql-arrow{ width:34px; height:34px; }
  .ql-prev{ left:10px; } .ql-next{ right:10px; }

  .story-card{
    width:100vw; height:100vh; height:100dvh;
    max-height:none; aspect-ratio:auto; border-radius:0;
  }

  #notifications{ top:58px; right:8px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation:none; }
  .mb-avail i{ animation:none; }
  .window, .dicon-art, .work-item, .work-item img, .ig-grid img, .notif{ transition:none !important; }
  .dock-icon.bounce svg{ animation:none; }
  .note-pane.active{ animation:none; }
  .ql-window{ animation:none; }
  .story-card{ animation:none; }
}
