@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css");

:root{
  --bg:#f4f7fb;
  --surface:#fff;
  --surface2:#f8fafc;
  --text:#162033;
  --muted:#758095;
  --line:#e4e9f1;
  --primary:#2563eb;
  --primary2:#eaf1ff;
  --open:#2563eb;
  --confirm:#e58a00;
  --done:#159765;
  --danger:#dc3545;
  --shadow:0 8px 24px rgba(23,32,51,.055);

  --radius-sm:8px;
  --radius-md:11px;
  --radius-lg:15px;

  --content-max:1240px;
  --sidebar-width:190px;
}

*{
  box-sizing:border-box;
}

html{
  font-size:15px;
  -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility;
}

html,body,#app{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight:400;
  letter-spacing:-.015em;
}

body{
  line-height:1.5;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

button,
input,
select,
textarea{
  font:inherit;
  letter-spacing:inherit;
}

button{
  cursor:pointer;
}

button:disabled{
  cursor:not-allowed;
  opacity:.48;
}

.shell{
  min-height:100vh;
}

/* ============================================================
   CSS MASK ICON SYSTEM
   ============================================================ */

.ico{
  display:inline-block;
  width:18px;
  height:18px;
  flex:0 0 18px;
  background:currentColor;
  -webkit-mask:var(--ico) center/contain no-repeat;
  mask:var(--ico) center/contain no-repeat;
}

.ico-sm{
  width:16px;
  height:16px;
  flex-basis:16px;
}

.ico-home{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3.1 3 10v11h6v-6h6v6h6V10z'/%3E%3C/svg%3E");
}

.ico-list{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h3v3H4zm5 0h11v3H9zM4 10.5h3v3H4zm5 0h11v3H9zM4 16h3v3H4zm5 0h11v3H9z'/%3E%3C/svg%3E");
}

.ico-draft{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h11l3 3v15H5zm2 2v14h10V7h-3V5zm2 5h6v2H9zm0 4h6v2H9z'/%3E%3C/svg%3E");
}

.ico-dashboard{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 3h8v8H3zm10 0h8v5h-8zM3 13h8v8H3zm10-3h8v11h-8z'/%3E%3C/svg%3E");
}

.ico-users{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8m6.5 1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7M2 21v-3c0-3 3-5 7-5s7 2 7 5v3zm15 0v-3c0-1.5-.6-2.8-1.7-3.8 4.1.2 6.7 1.9 6.7 4.8v2z'/%3E%3C/svg%3E");
}

.ico-system{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m20.1 13.5 1.7 1.3-2 3.5-2-.8a8 8 0 0 1-2.3 1.3l-.3 2.2h-4l-.3-2.2a8 8 0 0 1-2.3-1.3l-2 .8-2-3.5 1.7-1.3a8 8 0 0 1 0-2.6L4.6 9.6l2-3.5 2 .8a8 8 0 0 1 2.3-1.3l.3-2.2h4l.3 2.2a8 8 0 0 1 2.3 1.3l2-.8 2 3.5-1.7 1.3a8 8 0 0 1 0 2.6M13.2 9A3.2 3.2 0 1 0 13.2 15.4 3.2 3.2 0 0 0 13.2 9'/%3E%3C/svg%3E");
}

.ico-settings{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 15.5A3.5 3.5 0 1 0 12 8a3.5 3.5 0 0 0 0 7.5m8.4-3.5c0-.5-.1-1-.2-1.5l2-1.6-2-3.5-2.4 1a8 8 0 0 0-2.6-1.5L14.9 2h-4l-.4 2.9A8 8 0 0 0 8 6.4l-2.4-1-2 3.5 2 1.6a8 8 0 0 0 0 3l-2 1.6 2 3.5 2.4-1a8 8 0 0 0 2.6 1.5l.4 2.9h4l.4-2.9a8 8 0 0 0 2.6-1.5l2.4 1 2-3.5-2-1.6c.1-.5.2-1 .2-1.5'/%3E%3C/svg%3E");
}

.ico-help{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 17h2v2h-2zm1-15C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16m.1-5h1.8c0-2.7 3.1-2.9 3.1-6 0-2.2-1.8-3.8-4.2-3.8-2.1 0-3.5 1.1-4.3 2.6l1.6.9c.6-1 1.4-1.7 2.7-1.7 1.3 0 2.2.8 2.2 2 0 2-2.9 2.2-2.9 5z'/%3E%3C/svg%3E");
}

.ico-logout{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h9v2H6v14h7v2H4zm11.6 4.6L20 12l-4.4 4.4-1.4-1.4 2-2H9v-2h7.2l-2-2z'/%3E%3C/svg%3E");
}

.ico-plus{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E");
}

.ico-chevron-left{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m15.4 5.4-1.4-1.4L6 12l8 8 1.4-1.4L8.8 12z'/%3E%3C/svg%3E");
}

.ico-refresh{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17.7 6.3A8 8 0 1 0 20 12h-2a6 6 0 1 1-1.8-4.3L13 11h8V3z'/%3E%3C/svg%3E");
}

/* ============================================================
   APP SHELL
   ============================================================ */

.top{
  height:62px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:
    0 max(
      22px,
      calc((100vw - var(--content-max))/2)
    );
  position:sticky;
  top:0;
  z-index:20;
}

.brand{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}

.mark{
  width:36px;
  height:36px;
  border-radius:9px;
  background:#fff;
  border:1px solid rgba(17,24,39,.16);
  display:grid;
  place-items:center;
  padding:3px;
  overflow:hidden;
  flex:0 0 36px;
  box-shadow:0 1px 2px rgba(0,0,0,.10);
}
.mark img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand>div:last-child{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.brand b{
  display:block;
  font-size:15px!important;
  font-weight:780;
  line-height:1.05;
}
.brand small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10px!important;
  font-weight:700;
  line-height:1;
  letter-spacing:.09em;
}

.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
}

.userbox>b{
  font-weight:700;
}

.role{
  font-size:10px;
  line-height:1;
  color:var(--primary);
  background:var(--primary2);
  padding:6px 8px;
  border-radius:7px;
  font-weight:750;
}

.layout{
  width:100%;
  max-width:var(--content-max);
  margin:0 auto;
  display:grid;
  grid-template-columns:var(--sidebar-width) minmax(0,1fr);
  gap:26px;
  padding:28px 22px 110px;
}

.side{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:10px;
  height:max-content;
  position:sticky;
  top:90px;
  box-shadow:0 5px 18px rgba(20,20,40,.025);
  display:flex;
  flex-direction:column;
  gap:14px;
}

.navgroup{
  display:flex;
  flex-direction:column;
  gap:1px;
}

.navgroup-title{
  padding:5px 11px 6px;
  color:var(--muted);
  font-size:10px;
  line-height:1.2;
  font-weight:750;
  letter-spacing:.06em;
}

.navlogout{
  padding-top:9px;
  border-top:1px solid var(--line);
}

.navbtn{
  width:100%;
  min-height:42px;
  border:0;
  background:transparent;
  color:var(--muted);
  padding:0 11px;
  text-align:left;
  border-radius:9px;
  margin:1px 0;
  font-size:13px;
  font-weight:650;
  display:flex;
  align-items:center;
  gap:10px;
  transition:
    background .07s linear,
    color .07s linear;
}

.navbtn .ico{
  opacity:.82;
}

.navbtn.active,
.navbtn:hover{
  background:var(--primary2);
  color:var(--primary);
}

.navbtn.active{
  font-weight:720;
}

.main{
  min-width:0;
}

.main h1{
  font-size:28px;
  line-height:1.25;
  font-weight:760;
  letter-spacing:-.035em;
  margin:0;
}

.sub{
  color:var(--muted);
  margin:6px 0 22px;
  font-size:13px;
  line-height:1.55;
}

/* ============================================================
   BASIC COMPONENT SCALE
   ============================================================ */

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.metric,
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}

.metric{
  min-height:98px;
  padding:16px 18px;
}

.metric small{
  color:var(--muted);
  font-size:12px;
  font-weight:550;
}

.metric strong{
  display:block;
  margin-top:7px;
  font-size:29px;
  line-height:1;
  font-weight:720;
  letter-spacing:-.035em;
}

.card{
  padding:18px;
  margin-top:13px;
}

.sectionhead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:24px 0 9px;
}

.sectionhead h2{
  font-size:16px;
  line-height:1.3;
  font-weight:720;
  margin:0;
}

.sectionhead h3{
  margin:0;
}

.link{
  min-height:34px;
  border:0;
  background:transparent;
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.request{
  display:grid;
  grid-template-columns:74px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:72px;
  padding:12px 2px;
  border-bottom:1px solid var(--line);
}

.request:last-child{
  border-bottom:0;
}

.request b{
  display:block;
  font-size:14px;
  line-height:1.35;
  font-weight:690;
  color:var(--text);
}

.request small,
.meta{
  color:var(--muted);
  font-size:11.5px;
  line-height:1.45;
}

.badge{
  width:max-content;
  padding:5px 7px;
  border-radius:7px;
  font-size:10px;
  line-height:1;
  font-weight:750;
}

.b-open{
  color:var(--open);
  background:var(--primary2);
}

.b-confirm{
  color:var(--confirm);
  background:
    color-mix(
      in srgb,
      var(--confirm) 12%,
      transparent
    );
}

.b-done{
  color:var(--done);
  background:
    color-mix(
      in srgb,
      var(--done) 12%,
      transparent
    );
}

.tabs{
  display:flex;
  gap:6px;
  margin-bottom:14px;
}

.tab{
  min-height:38px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--muted);
  padding:0 13px;
  border-radius:9px;
  font-size:12.5px;
  font-weight:620;
}

.tab.active{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
  font-weight:700;
}

.toolbar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.input,
.select,
.textarea{
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  border-radius:10px;
  outline:0;
  font-size:13px;
  transition:
    border-color .07s linear,
    box-shadow .07s linear;
}

.input,
.select{
  min-height:40px;
  padding:0 12px;
}

.textarea{
  width:100%;
  min-height:140px;
  padding:12px;
  resize:vertical;
  line-height:1.6;
}

.input{
  min-width:260px;
}

.select{
  min-width:120px;
}

.input:focus,
.select:focus,
.textarea:focus{
  border-color:
    color-mix(
      in srgb,
      var(--primary) 62%,
      var(--line)
    );
  box-shadow:
    0 0 0 3px
    color-mix(
      in srgb,
      var(--primary) 10%,
      transparent
    );
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  text-align:left;
  padding:11px 10px;
  border-bottom:1px solid var(--line);
  font-size:12.5px;
}

.table th{
  color:var(--muted);
  font-size:10.5px;
  font-weight:700;
}

.typegrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.typecard{
  min-height:108px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  border-radius:13px;
  padding:17px;
  text-align:left;
}

.typecard:hover{
  border-color:var(--primary);
  background:var(--surface2);
  box-shadow:none;
  transform:none;
}

.typecard b{
  display:block;
  font-size:15px;
  font-weight:700;
  margin-bottom:5px;
}

.typecard small{
  color:var(--muted);
  font-size:11.5px;
}

.formrow{
  margin:14px 0;
}

.formrow label{
  display:block;
  margin-bottom:6px;
  font-size:11.5px;
  line-height:1.35;
  font-weight:700;
}

.full{
  width:100%;
}

.actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:7px;
  margin-top:16px;
}

.primary,
.secondary,
.danger{
  min-height:40px;
  border-radius:10px;
  padding:0 15px;
  font-size:12.5px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.primary{
  border:1px solid var(--primary);
  background:var(--primary);
  color:#fff;
}

.secondary{
  border:1px solid var(--line);
  background:var(--surface2);
  color:var(--text);
}

.danger{
  border:1px solid transparent;
  background:
    color-mix(
      in srgb,
      var(--danger) 11%,
      transparent
    );
  color:var(--danger);
}

.fab{
  position:fixed;
  right:26px;
  bottom:24px;
  z-index:18;

  min-height:46px;
  border:0;
  border-radius:24px;

  background:var(--primary);
  color:#fff;

  padding:0 18px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;

  font-size:13px;
  font-weight:720;

  box-shadow:
    0 10px 24px
    color-mix(
      in srgb,
      var(--primary) 27%,
      transparent
    );
}

.timeline{
  border-left:1px solid var(--line);
  margin:13px 0 0 5px;
  padding-left:17px;
}

.event{
  position:relative;
  margin:0 0 16px;
}

.event:before{
  content:"";
  position:absolute;
  left:-21px;
  top:5px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--primary);
}

.event b{
  font-size:12.5px;
  font-weight:680;
}

.event small{
  color:var(--muted);
  font-size:10.5px;
}

.setting{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:52px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.setting:last-child{
  border:0;
}

.loginwrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}

.login{
  width:min(430px,100%);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
  box-shadow:var(--shadow);
}

.login .brand{
  margin-bottom:26px;
}

.login h1{
  margin:0 0 5px;
  font-size:28px;
}

.mobileNav{
  display:none;
}

@media(max-width:899px){
  html{
    font-size:14px;
  }

  .top{
    height:58px;
    padding:0 14px;
  }

  .mark{
    width:32px;
    height:32px;
  }

  .brand b{
    font-size:13px;
  }

  .userbox .role{
    display:none;
  }

  .layout{
    display:block;
    padding:18px 13px 106px;
  }

  .side{
    display:none;
  }

  .main h1{
    font-size:23px;
  }

  .sub{
    margin-bottom:18px;
    font-size:12.5px;
  }

  .grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
  }

  .grid .metric:last-child{
    grid-column:auto;
  }

  .metric{
    min-height:86px;
    padding:13px 12px;
  }

  .metric strong{
    font-size:25px;
  }

  .request{
    grid-template-columns:64px minmax(0,1fr);
    min-height:68px;
    padding:11px 0;
  }

  .request>small{
    display:none;
  }

  .typegrid{
    grid-template-columns:1fr;
  }

  .input{
    min-width:0;
    width:100%;
  }

  .toolbar .select{
    flex:1;
    min-width:105px;
  }

  .tablewrap{
    overflow:auto;
  }

  .table{
    min-width:700px;
  }

  .fab{
    right:14px;
    transform:none;
    bottom:calc(64px + env(safe-area-inset-bottom));
    min-height:44px;
    white-space:nowrap;
  }

  .mobileNav{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:var(--surface);
    border-top:1px solid var(--line);
    z-index:19;
    padding-bottom:env(safe-area-inset-bottom);
  }

  .mobileNav button{
    min-height:54px;
    border:0;
    background:transparent;
    color:var(--muted);
    padding:7px 3px 6px;
    font-size:10px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
  }

  .mobileNav button .ico{
    width:19px;
    height:19px;
  }

  .mobileNav button.active{
    color:var(--primary);
    font-weight:700;
  }
}


/* V2 block editor */
.editorhint{margin:-2px 0 10px}.blockeditor{display:flex;flex-direction:column;gap:10px}.editorblock{border:1px solid var(--line);border-radius:14px;background:var(--surface2);padding:10px}.textblock .textarea{min-height:110px;background:var(--surface);border:0}.blocktext:focus{box-shadow:0 0 0 2px var(--primary2)}.attachblock{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.preview{grid-column:1/-1;width:100%;max-height:360px;object-fit:contain;border-radius:10px;background:var(--surface)}.attachname{display:flex;gap:9px;align-items:center;min-width:0}.attachname span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.blocktools{display:flex;gap:5px;justify-content:flex-end;margin-top:7px}.attachblock .blocktools{margin:0}.blocktools button{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:8px;padding:6px 9px}.editoradd{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.filelabel{cursor:pointer;display:inline-block}.filelabel input{display:none}.slackpreview{margin-top:18px;border:1px dashed var(--line);background:var(--surface2);border-radius:13px;padding:14px;display:grid;gap:5px}.slackpreview small{color:var(--muted);font-weight:900}.slackpreview span,.slackpreview div{font-size:12px;color:var(--muted)}.camera{display:none}
@media(max-width:760px){.editoradd{display:grid;grid-template-columns:1fr 1fr}.editoradd .secondary:first-child{grid-column:1/-1}.filelabel{text-align:center}.camera{display:block}.attachblock{grid-template-columns:1fr}.attachblock .blocktools{justify-content:stretch}.blocktools button{flex:1;padding:9px}.preview{max-height:300px}.editorhint{font-size:11px}}


/* ============================================================
   SMARTDOCTOR THEME SYSTEM
   Source-aligned theme palette
   ============================================================ */

:root,
html[data-theme="light"] {
  color-scheme:light;

  --theme-page:#f8f7fc;
  --theme-page-top:#fbfaff;
  --theme-page-bottom:#f7f5fb;
  --theme-glow:#ddd2ff;

  --theme-surface:#fff;
  --theme-surface-soft:#faf8fd;
  --theme-surface-strong:#fff;
  --theme-surface-hover:#f6f3ff;

  --theme-text:#171524;
  --theme-text-2:#4f4a5d;
  --theme-muted:#777286;

  --theme-line:#ebe7f2;
  --theme-line-strong:#ded8e9;

  --theme-accent:#7146ef;
  --theme-accent-2:#8a67f5;
  --theme-accent-3:#bba9fa;
  --theme-accent-soft:#f1edff;

  --theme-success:#21a67a;
  --theme-success-soft:#e8f7f1;
  --theme-danger:#ef625b;
  --theme-danger-soft:#fff0ef;
  --theme-warning:#f2994a;
  --theme-warning-soft:#fff4e9;

  --theme-shadow:0 14px 40px rgba(48,31,91,.07);
}

html[data-theme="dark"] {
  color-scheme:dark;
  --theme-page:#121217;
  --theme-page-top:#15151c;
  --theme-page-bottom:#101015;
  --theme-glow:#332859;
  --theme-surface:#1c1c24;
  --theme-surface-soft:#252530;
  --theme-surface-strong:#22222c;
  --theme-surface-hover:#292936;
  --theme-text:#f3f1f7;
  --theme-text-2:#d0ccd9;
  --theme-muted:#9e99aa;
  --theme-line:#33323e;
  --theme-line-strong:#44424f;
  --theme-accent:#9b7bff;
  --theme-accent-2:#b29aff;
  --theme-accent-3:#cabaff;
  --theme-accent-soft:#30284c;
  --theme-success:#4cc89e;
  --theme-success-soft:#203b34;
  --theme-danger:#ff7770;
  --theme-danger-soft:#412729;
  --theme-warning:#f5a65d;
  --theme-warning-soft:#402f21;
  --theme-shadow:0 16px 42px rgba(0,0,0,.26);
}

html[data-theme="midnight"] {
  color-scheme:dark;
  --theme-page:#0d1624;
  --theme-page-top:#101c2d;
  --theme-page-bottom:#0b1320;
  --theme-glow:#173e67;
  --theme-surface:#142235;
  --theme-surface-soft:#1b2e46;
  --theme-surface-strong:#182a40;
  --theme-surface-hover:#203651;
  --theme-text:#eef5ff;
  --theme-text-2:#cfdaea;
  --theme-muted:#8fa1b7;
  --theme-line:#293d55;
  --theme-line-strong:#39516d;
  --theme-accent:#62a4ff;
  --theme-accent-2:#80b6ff;
  --theme-accent-3:#a5ccff;
  --theme-accent-soft:#1b3656;
  --theme-success:#4ed0a2;
  --theme-success-soft:#183d38;
  --theme-danger:#ff7d7d;
  --theme-danger-soft:#492a31;
  --theme-warning:#f5ab63;
  --theme-warning-soft:#453426;
  --theme-shadow:0 16px 42px rgba(0,8,20,.30);
}

html[data-theme="emerald"] {
  color-scheme:light;
  --theme-page:#f3f8f5;
  --theme-page-top:#f8fcfa;
  --theme-page-bottom:#eef6f1;
  --theme-glow:#cceadd;
  --theme-surface:#fff;
  --theme-surface-soft:#f2f8f4;
  --theme-surface-strong:#fff;
  --theme-surface-hover:#edf7f1;
  --theme-text:#17241e;
  --theme-text-2:#45594f;
  --theme-muted:#708178;
  --theme-line:#dce9e2;
  --theme-line-strong:#cdded5;
  --theme-accent:#168a63;
  --theme-accent-2:#29a87c;
  --theme-accent-3:#81ccb0;
  --theme-accent-soft:#e4f5ee;
  --theme-success:#269b63;
  --theme-success-soft:#e4f5ec;
  --theme-danger:#d95757;
  --theme-danger-soft:#fcebea;
  --theme-warning:#d88932;
  --theme-warning-soft:#fbf0df;
  --theme-shadow:0 14px 40px rgba(20,82,58,.07);
}

html[data-theme="slate"] {
  color-scheme:light;
  --theme-page:#eef1f5;
  --theme-page-top:#f6f8fa;
  --theme-page-bottom:#e9edf2;
  --theme-glow:#d7e0eb;
  --theme-surface:#fff;
  --theme-surface-soft:#f4f6f8;
  --theme-surface-strong:#fff;
  --theme-surface-hover:#eef2f6;
  --theme-text:#202832;
  --theme-text-2:#4b5867;
  --theme-muted:#74808e;
  --theme-line:#dce2e8;
  --theme-line-strong:#ccd4dd;
  --theme-accent:#506b8a;
  --theme-accent-2:#6682a2;
  --theme-accent-3:#a2b4c8;
  --theme-accent-soft:#e7edf4;
  --theme-success:#318765;
  --theme-success-soft:#e5f2ed;
  --theme-danger:#d85f5f;
  --theme-danger-soft:#faecec;
  --theme-warning:#cf8538;
  --theme-warning-soft:#f8efe3;
  --theme-shadow:0 14px 38px rgba(46,61,78,.08);
}

html[data-theme="warm"] {
  color-scheme:light;
  --theme-page:#faf6f0;
  --theme-page-top:#fdfaf6;
  --theme-page-bottom:#f7f0e7;
  --theme-glow:#f2dcc4;
  --theme-surface:#fffdf9;
  --theme-surface-soft:#faf2e8;
  --theme-surface-strong:#fffefa;
  --theme-surface-hover:#f8ede0;
  --theme-text:#30261f;
  --theme-text-2:#62544a;
  --theme-muted:#88786c;
  --theme-line:#eadfd4;
  --theme-line-strong:#ddd0c4;
  --theme-accent:#b56b42;
  --theme-accent-2:#ca8055;
  --theme-accent-3:#ddb092;
  --theme-accent-soft:#f7e8dc;
  --theme-success:#368763;
  --theme-success-soft:#e9f3ed;
  --theme-danger:#c95c55;
  --theme-danger-soft:#f9eae7;
  --theme-warning:#c57b2d;
  --theme-warning-soft:#f8eddd;
  --theme-shadow:0 14px 38px rgba(90,57,35,.08);
}

html[data-theme="valentine"] {
  color-scheme:light;
  --theme-page:#fff6f9;
  --theme-page-top:#fff9fb;
  --theme-page-bottom:#fff3f7;
  --theme-glow:#f6b8cc;
  --theme-surface:#fffafb;
  --theme-surface-soft:#fff1f5;
  --theme-surface-strong:#fff;
  --theme-surface-hover:#fdeaf1;
  --theme-text:#351a26;
  --theme-text-2:#684453;
  --theme-muted:#8b6575;
  --theme-line:#f1d0dc;
  --theme-line-strong:#e8b5c7;
  --theme-accent:#e63e78;
  --theme-accent-2:#ef6796;
  --theme-accent-3:#f4a3bd;
  --theme-accent-soft:#fde6ee;
  --theme-success:#29936c;
  --theme-success-soft:#e6f5ef;
  --theme-danger:#da5264;
  --theme-danger-soft:#fcebed;
  --theme-warning:#d58a32;
  --theme-warning-soft:#fff2df;
  --theme-shadow:0 14px 40px rgba(143,47,84,.08);
}

html[data-theme="summer"] {
  color-scheme:light;
  --theme-page:#f4fbff;
  --theme-page-top:#f9fdff;
  --theme-page-bottom:#eef9ff;
  --theme-glow:#b9e4fa;
  --theme-surface:#fbfdff;
  --theme-surface-soft:#edf8ff;
  --theme-surface-strong:#fff;
  --theme-surface-hover:#e4f4ff;
  --theme-text:#17324b;
  --theme-text-2:#3f617a;
  --theme-muted:#66849b;
  --theme-line:#cce8f7;
  --theme-line-strong:#afd9ef;
  --theme-accent:#238fe4;
  --theme-accent-2:#4cabe8;
  --theme-accent-3:#8dcef3;
  --theme-accent-soft:#e1f3ff;
  --theme-success:#29a47d;
  --theme-success-soft:#e3f6ef;
  --theme-danger:#de6670;
  --theme-danger-soft:#fbecef;
  --theme-warning:#dfaa31;
  --theme-warning-soft:#fff6d9;
  --theme-shadow:0 14px 40px rgba(35,143,228,.08);
}

/* Request Portal semantic token bridge */
:root {
  --bg:var(--theme-page);
  --surface:var(--theme-surface);
  --surface2:var(--theme-surface-soft);
  --card:var(--theme-surface);
  --text:var(--theme-text);
  --muted:var(--theme-muted);
  --line:var(--theme-line);
  --primary:var(--theme-accent);
  --primary2:var(--theme-accent-soft);
  --accent:var(--theme-accent);
  --accent-text:var(--theme-accent);
  --purple:var(--theme-accent);
  --purpleSoft:var(--theme-accent-soft);
  --open:var(--theme-accent);
  --confirm:var(--theme-warning);
  --done:var(--theme-success);
  --danger:var(--theme-danger);
  --shadow:var(--theme-shadow);
}

body {
  color:var(--theme-text);
  background:
    radial-gradient(
      circle at 77% -8%,
      var(--theme-glow),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      var(--theme-page-top),
      var(--theme-page-bottom)
    );
}

.card,
.login,
.top,
.side {
  background:var(--theme-surface);
  border-color:var(--theme-line);
  color:var(--theme-text);
}

.input,
.select,
textarea {
  background:var(--theme-surface-strong);
  border-color:var(--theme-line);
  color:var(--theme-text);
}

.secondary,
.link {
  color:var(--theme-accent);
}

.primary {
  background:var(--theme-accent);
}

.theme-palette-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}

.theme-palette {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:12px;
  text-align:left;
  border:1px solid var(--theme-line);
  border-radius:13px;
  background:var(--theme-surface-soft);
  color:var(--theme-text);
  cursor:pointer;
}

.theme-palette:hover,
.theme-palette.active {
  border-color:var(--theme-accent);
}

.theme-palette.active {
  box-shadow:0 0 0 2px
    color-mix(in srgb,var(--theme-accent) 20%,transparent);
}

.theme-palette b {
  display:block;
}

.theme-palette small {
  display:block;
  margin-top:3px;
  color:var(--theme-muted);
}

.theme-preview {
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:9px;
  border:1px solid var(--theme-line);
}

.theme-preview-light {
  background:linear-gradient(135deg,#7146ef,#f1edff);
}
.theme-preview-dark {
  background:linear-gradient(135deg,#1c1c24,#9b7bff);
}
.theme-preview-midnight {
  background:linear-gradient(135deg,#142235,#62a4ff);
}
.theme-preview-emerald {
  background:linear-gradient(135deg,#168a63,#e4f5ee);
}
.theme-preview-slate {
  background:linear-gradient(135deg,#506b8a,#e7edf4);
}
.theme-preview-warm {
  background:linear-gradient(135deg,#b56b42,#f7e8dc);
}
.theme-preview-valentine {
  background:linear-gradient(135deg,#e63e78,#fde6ee);
}
.theme-preview-summer {
  background:linear-gradient(135deg,#238fe4,#e1f3ff);
}

@media(max-width:760px) {
  .theme-palette-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:390px) {
  .theme-palette-grid {
    grid-template-columns:1fr;
  }
}


/* Request customer autocomplete */
.customer-autocomplete {
  position:relative;
}

.customer-suggestions {
  display:none;
  position:absolute;
  z-index:80;
  left:0;
  right:0;
  top:calc(100% + 6px);

  max-height:280px;
  overflow:auto;

  padding:6px;

  border:1px solid var(--line);
  border-radius:12px;

  background:var(--surface);
  box-shadow:var(--shadow);
}

.customer-suggestions.show {
  display:block;
}

.customer-suggestions button {
  width:100%;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:11px 12px;

  border:0;
  border-radius:9px;

  text-align:left;

  background:transparent;
  color:var(--text);
}

.customer-suggestions button:hover {
  background:var(--primary2);
}

.customer-suggestions button b {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.customer-suggestions button span {
  flex:0 0 auto;
  color:var(--muted);
  font-size:11px;
}

/* Customer code + name pair */
.customer-pair {
  display:grid;
  grid-template-columns:minmax(160px,.42fr) minmax(240px,1fr);
  gap:12px;
}

.customer-pair .formrow {
  min-width:0;
}

.customer-option {
  cursor:pointer;
}

.customer-option-main {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.customer-option-main b {
  flex:0 0 auto;
  min-width:72px;
  font-variant-numeric:tabular-nums;
  color:var(--primary);
}

.customer-option-main strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:600;
  color:var(--text);
}

.customer-option-usage {
  flex:0 0 auto;
  color:var(--muted);
  font-size:11px;
}

.customer-suggestions button.active,
.customer-suggestions button:hover {
  background:var(--primary2);
  outline:1px solid
    color-mix(in srgb,var(--primary) 30%,transparent);
}

@media(max-width:650px) {
  .customer-pair {
    grid-template-columns:1fr;
    gap:4px;
  }
}

/* Storage management */

.storage-summary {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:18px;
}

.storage-summary > div {
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface2);
}

.storage-summary small {
  display:block;
  color:var(--muted);
  font-size:11px;
}

.storage-summary strong {
  display:block;
  margin-top:5px;
  font-size:18px;
}

.storage-bar {
  width:100%;
  height:10px;
  margin-top:16px;
  overflow:hidden;
  border-radius:999px;
  background:var(--surface2);
  border:1px solid var(--line);
}

.storage-bar span {
  display:block;
  height:100%;
  border-radius:999px;
  background:var(--done);
  transition:width .25s ease;
}

.storage-bar span.warning {
  background:var(--confirm);
}

.storage-bar span.danger {
  background:var(--danger);
}

.storage-detail {
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:13px;
  color:var(--muted);
  font-size:12px;
}

.storage-detail b {
  color:var(--text);
}

.storage-disk {
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}

.storage-disk b {
  color:var(--text);
}

.storage-alert {
  margin-top:14px;
  padding:12px 14px;
  border-radius:10px;
  background:
    color-mix(
      in srgb,
      var(--confirm) 13%,
      transparent
    );
  color:var(--confirm);
  font-size:12px;
  font-weight:700;
}

@media(max-width:650px) {
  .storage-summary {
    grid-template-columns:1fr;
  }
}

/* Real request list */

.request-list-card {
  padding:0;
  overflow:hidden;
}

.real-request {
  cursor:pointer;
}

.real-request:hover {
  background:var(--surface2);
}

.request-main {
  min-width:0;
}

.request-main b,
.request-main small {
  display:block;
}

.request-main b {
  overflow:hidden;
  text-overflow:ellipsis;
}

.request-age {
  white-space:nowrap;
}

.request-toolbar {
  grid-template-columns:minmax(240px,1fr) auto auto;
}

.empty-state {
  padding:34px 18px;
  text-align:center;
  color:var(--muted);
}

.empty-state.error {
  color:var(--danger);
}

/* Request detail */
.detail-topbar{
  position:sticky;
  top:70px;
  z-index:12;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 0 10px;
  background:linear-gradient(var(--bg) 72%,transparent);
}
.detail-back{padding-left:0}
.detail-slack-btn{min-height:38px}
.detail-hero{padding:8px 0 6px}
.detail-hero-main{min-width:0}
.detail-kickers{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:8px;color:var(--muted);font-size:11.5px}
.detail-kickers>span:not(.badge){padding:4px 7px;border-radius:7px;background:var(--surface2);border:1px solid var(--line)}
.detail-project-pill{color:var(--primary)!important;background:var(--primary2)!important;border-color:color-mix(in srgb,var(--primary) 18%,var(--line))!important;font-weight:720}
.detail-hero h1{margin:0;font-size:28px;line-height:1.22;letter-spacing:-.035em}
.detail-customer{margin-top:6px;color:var(--muted);font-size:13px;font-weight:620}
.detail-summary-compact{padding:4px 18px;margin-top:10px}
.detail-meta-row{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:20px;min-height:46px;border-bottom:1px solid var(--line)}
.detail-meta-row:last-child{border-bottom:0}
.detail-meta-row>span{color:var(--muted);font-size:12px}
.detail-meta-row>b{text-align:right;font-size:13px;font-weight:680;overflow-wrap:anywhere}
.detail-content-card{padding:18px 20px}
.detail-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.detail-section-title h3{margin:0}
.detail-blocks{display:flex;flex-direction:column;gap:16px;margin-top:14px}
.detail-text-block{line-height:1.72;white-space:normal;overflow-wrap:anywhere}
.detail-attachment-block{max-width:900px}
.detail-image{display:block;width:auto;max-width:100%;max-height:720px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.detail-file-meta{display:flex;justify-content:space-between;gap:10px;margin-top:7px;color:var(--muted);font-size:11px}
.detail-file-meta b{color:var(--text)}
.detail-file-block{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:var(--surface2);color:var(--text);text-decoration:none}
.detail-file-block:hover{border-color:var(--primary)}
.detail-file-block span:last-child{min-width:0}
.detail-file-block b,.detail-file-block small{display:block}
.detail-file-block b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detail-file-block small{margin-top:3px;color:var(--muted)}
.detail-history{padding:0;overflow:hidden}
.detail-history>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;font-weight:720}
.detail-history>summary::-webkit-details-marker{display:none}
.detail-history>summary:after{content:"+";color:var(--muted);font-size:18px;font-weight:500}
.detail-history[open]>summary{border-bottom:1px solid var(--line)}
.detail-history[open]>summary:after{content:"−"}
.detail-history .timeline{margin:16px 18px 18px 23px}
.detail-admin-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px}
.detail-admin-bar p{margin:3px 0 0}
.detail-admin-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}

@media(max-width:760px){
  .request-toolbar{display:grid;grid-template-columns:1fr}
  .detail-topbar{top:58px;padding-top:4px}
  .detail-slack-btn{position:fixed;left:14px;right:14px;bottom:66px;z-index:25;width:calc(100% - 28px);box-shadow:0 10px 28px rgba(0,0,0,.22)}
  .detail-hero{padding-top:4px}
  .detail-hero h1{font-size:23px}
  .detail-meta-row{grid-template-columns:96px minmax(0,1fr);min-height:44px;gap:12px}
  .detail-summary-compact{padding:3px 14px}
  .detail-content-card{padding:16px 14px}
  .detail-admin-bar{align-items:flex-start;flex-direction:column}
  .detail-admin-actions{width:100%;justify-content:stretch}
  .detail-admin-actions button{flex:1}
  .real-request{align-items:flex-start}
  .request-age{font-size:10px}
  .detail-image{width:100%;max-height:none}
}

/* Real dashboard */

.dashboard-metric {
  cursor:pointer;
  transition:
    transform .12s ease,
    border-color .12s ease;
}

.dashboard-metric:hover {
  transform:translateY(-1px);
  border-color:var(--primary);
}

.admin-dashboard-filter {
  display:grid;
  grid-template-columns:
    minmax(150px,.7fr)
    minmax(190px,1fr)
    minmax(130px,.55fr);
}

@media(max-width:760px) {
  .admin-dashboard-filter {
    grid-template-columns:1fr;
  }
}


/* v0.6.1 Request Worklist density */
.request-filter-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:14px;margin-bottom:12px}.request-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) 150px 180px;gap:8px;margin:0}.request-search{width:100%;min-width:0}.date-filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px;padding-top:11px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.filter-label{font-weight:720;color:var(--text);margin-right:2px}.filter-chip,.bulk-actions button{min-height:32px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface2);color:var(--text);font-size:12.5px;font-weight:680}.date-input{height:34px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:0 9px;font:inherit;font-size:12.5px}.request-result-bar{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.bulk-actions{display:flex;align-items:center;gap:6px}.bulk-actions strong{color:var(--primary);margin-right:4px}.bulk-actions .primary-mini{background:var(--primary);border-color:var(--primary);color:#fff}.request-list-card{padding:0;overflow:hidden;margin-top:0}.request-table-wrap{overflow:visible}.request-work-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13.5px}.request-work-table th{position:sticky;top:0;z-index:2;background:var(--surface2);color:var(--muted);font-size:12.5px;font-weight:720;text-align:left;white-space:nowrap;padding:11px 8px;border-bottom:1px solid var(--line);cursor:default;overflow:hidden;text-overflow:ellipsis}.request-work-table th:not(.check-col):hover{color:var(--primary)}.request-work-table td{padding:11px 8px;border-bottom:1px solid var(--line);vertical-align:middle;overflow:hidden;text-overflow:ellipsis}.request-work-table tbody tr{cursor:pointer;background:var(--surface)}.request-work-table tbody tr:hover{background:var(--surface2)}.request-work-table tbody tr:last-child td{border-bottom:0}.request-work-table th:nth-child(1),.request-work-table td:nth-child(1){width:38px}.request-work-table th:nth-child(2),.request-work-table td:nth-child(2){width:105px}.request-work-table th:nth-child(3),.request-work-table td:nth-child(3){width:116px}.request-work-table th:nth-child(4),.request-work-table td:nth-child(4){width:90px}.request-work-table th:nth-child(5),.request-work-table td:nth-child(5){width:100px}.request-work-table th:nth-child(6),.request-work-table td:nth-child(6){width:auto}.request-work-table th:nth-child(7),.request-work-table td:nth-child(7){width:125px}.request-work-table th:nth-child(8),.request-work-table td:nth-child(8){width:82px}.request-work-table th:nth-child(9),.request-work-table td:nth-child(9){width:48px}.check-col{text-align:center!important}.nowrap{white-space:nowrap}.num-cell{text-align:center}.customer-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.title-cell{min-width:0}.title-cell b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:720}.title-cell small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}.request-status-select{width:90px;height:32px;border:1px solid var(--line);border-radius:8px;padding:0 22px 0 9px;font:inherit;font-size:12px;font-weight:750;outline:0}.request-status-select.status-open{color:var(--open);background:var(--primary2)}.request-status-select.status-confirm{color:var(--confirm);background:color-mix(in srgb,var(--confirm) 10%,var(--surface))}.request-status-select.status-done{color:var(--done);background:color-mix(in srgb,var(--done) 10%,var(--surface))}.request-filter-panel .input,.request-filter-panel .select{font-size:13.5px}.request-filter-panel .input::placeholder{font-size:13px}.tabs .tab{font-size:13.5px}.request-result-bar>b{font-size:13px}
@media(max-width:1050px){.request-table-wrap{overflow-x:auto;overflow-y:hidden}.request-work-table{min-width:940px;table-layout:fixed}}
@media(max-width:760px){.request-filter-panel{padding:11px}.request-toolbar{display:grid;grid-template-columns:1fr 1fr}.request-toolbar .request-search{grid-column:1/-1}.date-filter-row{gap:6px;font-size:12.5px}.date-filter-row .date-input{width:calc(50% - 18px)}.request-result-bar{align-items:flex-start;flex-direction:column;padding:4px 0 8px}.bulk-actions{width:100%;overflow:auto;padding-bottom:2px}.request-work-table{min-width:940px;font-size:13px}.request-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}}


/* v0.6.2 Worklist controls */
.request-status-control{position:relative;display:inline-flex;overflow:visible}.request-status-pill{height:30px;display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:0 10px;font-size:12.5px;font-weight:750;line-height:1;white-space:nowrap;border:1px solid transparent}.request-status-button{cursor:pointer;font-family:inherit}.request-status-pill.status-open,.status-menu-item.status-open{color:var(--open)}.request-status-pill.status-confirm,.status-menu-item.status-confirm{color:var(--confirm)}.request-status-pill.status-done,.status-menu-item.status-done{color:var(--done)}.request-status-pill.status-open{background:color-mix(in srgb,var(--open) 13%,var(--surface));border-color:color-mix(in srgb,var(--open) 20%,var(--line))}.request-status-pill.status-confirm{background:color-mix(in srgb,var(--confirm) 12%,var(--surface));border-color:color-mix(in srgb,var(--confirm) 20%,var(--line))}.request-status-pill.status-done{background:color-mix(in srgb,var(--done) 12%,var(--surface));border-color:color-mix(in srgb,var(--done) 20%,var(--line))}.status-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 7px}.status-caret{font-size:13px;margin-left:1px;transform:translateY(-1px);opacity:.75}.request-status-menu{position:fixed;z-index:120;width:142px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 12px 32px rgba(0,0,0,.22)}.status-menu-item{width:100%;height:36px;border:0;background:transparent;border-radius:7px;padding:0 9px;display:grid;grid-template-columns:10px 1fr 18px;align-items:center;gap:7px;text-align:left;font-family:inherit;font-size:12.5px;font-weight:700}.status-menu-item:hover,.status-menu-item.current{background:var(--surface2)}.status-check{text-align:right;color:var(--primary);font-weight:800}.request-work-table td:nth-child(2){overflow:hidden}.date-input{width:116px;min-width:116px;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:.01em}.date-input::placeholder{color:var(--muted);opacity:.72}.date-range-sep{color:var(--muted);padding:0 1px}.request-work-table th:nth-child(2),.request-work-table td:nth-child(2){width:112px}
@media(max-width:760px){.date-filter-row .date-input{width:116px;min-width:116px}.request-status-menu{width:min(280px,calc(100vw - 32px));padding:8px}.status-menu-item{height:44px;font-size:14px}}

/* v0.6.3 Worklist interaction fixes */
.request-search:focus{position:relative;z-index:1}.request-status-menu{max-height:calc(100vh - 16px);overflow:auto}.request-table-wrap{scrollbar-gutter:auto}

/* v0.6.4 checked filter combos */
.request-toolbar{overflow:visible}
.check-combo{position:relative;min-width:170px}
.check-combo summary{list-style:none;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:650;cursor:pointer;user-select:none}
.check-combo summary::-webkit-details-marker{display:none}
.check-combo[open] summary{border-color:color-mix(in srgb,var(--primary) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 9%,transparent)}
.combo-chevron{color:var(--muted);font-size:14px}
.check-combo-menu{position:absolute;z-index:80;right:0;top:calc(100% + 6px);min-width:220px;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 36px rgba(0,0,0,.18)}
.check-combo-item{display:flex;align-items:center;gap:9px;min-height:38px;padding:0 9px;border-radius:8px;font-size:13px;cursor:pointer}
.check-combo-item:hover{background:var(--surface2)}
.check-combo-item input{width:15px;height:15px;accent-color:var(--primary)}
.combo-all{font-weight:700}.combo-divider{height:1px;background:var(--line);margin:5px 3px}
.dashboard-request-row{cursor:pointer}
@media(max-width:760px){.check-combo{min-width:0;flex:1}.check-combo-menu{left:0;right:auto;min-width:210px}}

/* ============================================================
   v0.7.0 Worklist controls / modal / persistent drafts
   ============================================================ */

/* Worklist status pills and filter triggers intentionally have no chevrons. */
.status-caret,.combo-chevron{display:none!important}

.check-combo{position:relative;min-width:0}
.check-combo-trigger{
  width:100%;
  min-height:40px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  text-align:left;
  font-size:13px;
  font-weight:650;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.check-combo-trigger:hover,
.check-combo-trigger:focus{
  border-color:color-mix(in srgb,var(--primary) 55%,var(--line));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 8%,transparent);
  outline:0;
}
.check-combo-menu{
  position:fixed;
  z-index:130;
  width:230px;
  min-width:0;
  padding:7px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:11px;
  box-shadow:0 14px 36px rgba(0,0,0,.22);
}
.check-combo-all{
  width:100%;
  min-height:38px;
  padding:0 9px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font:inherit;
  font-size:13px;
  font-weight:700;
  text-align:left;
}
.check-combo-all:hover,.check-combo-all.current{background:var(--surface2)}

.request-toolbar{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(150px,185px) minmax(150px,185px);
  gap:8px;
  align-items:stretch;
}

@media(max-width:1120px){
  .request-toolbar{grid-template-columns:1fr 1fr}
  .request-toolbar .request-search{grid-column:1/-1}
}
@media(max-width:680px){
  .request-toolbar{grid-template-columns:1fr}
  .request-toolbar .request-search{grid-column:auto}
  .date-filter-row{align-items:stretch}
  .date-filter-row .filter-label{width:100%}
}

.bulk-actions button{background:var(--surface2);border-color:var(--line);color:var(--text)}
.bulk-actions .bulk-status{display:inline-flex;align-items:center;gap:7px}
.bulk-actions .bulk-status.status-open{color:var(--open)}
.bulk-actions .bulk-status.status-confirm{color:var(--confirm)}
.bulk-actions .bulk-status.status-done{color:var(--done)}
.bulk-actions .bulk-clear{margin-left:4px;color:var(--muted)}
.bulk-actions .status-dot{width:6px;height:6px;flex-basis:6px}

/* In-app confirmation instead of browser confirm() for bulk/draft actions. */
.app-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:500;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(3,10,22,.56);
  backdrop-filter:blur(2px);
}
.app-modal{
  width:min(430px,100%);
  padding:20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  color:var(--text);
  box-shadow:0 24px 70px rgba(0,0,0,.32);
}
.app-modal-title{font-size:17px;font-weight:760;letter-spacing:-.02em}
.app-modal-message{margin-top:10px;color:var(--muted);font-size:13.5px;line-height:1.65;white-space:pre-line}
.app-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}

/* Draft worklist */
.draft-filter-panel{
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(160px,200px);
  gap:8px;
  padding:14px;
  margin-bottom:10px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
}
.draft-filter-panel .input{width:100%;min-width:0}
.draft-list-card{padding:0;overflow:hidden;margin-top:0}
.draft-row{
  display:grid;
  grid-template-columns:110px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  min-height:78px;
  padding:13px 16px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
  cursor:pointer;
}
.draft-row:last-child{border-bottom:0}
.draft-row:hover{background:var(--surface2)}
.draft-main{min-width:0}
.draft-main small,.draft-main b{display:block}
.draft-main b{margin:2px 0;font-size:14px;font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.draft-main small{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.draft-delete{min-height:34px;padding:0 11px}

@media(max-width:680px){
  .draft-filter-panel{grid-template-columns:1fr}
  .draft-row{grid-template-columns:82px minmax(0,1fr) auto;gap:9px;padding:12px}
  .draft-delete{padding:0 9px}
}
\n\n/* v0.8.0 dashboard tables / request composer / system projects */\n.dashboard-table-wrap,.draft-table-wrap,.system-project-table{overflow:auto;border:1px solid var(--line);border-radius:12px}.dashboard-table,.draft-table,.system-project-table table{width:100%;border-collapse:collapse;min-width:820px}.dashboard-table th,.dashboard-table td,.draft-table th,.draft-table td,.system-project-table th,.system-project-table td{padding:10px 11px;border-bottom:1px solid var(--line);text-align:left;font-size:12.5px;vertical-align:middle}.dashboard-table th,.draft-table th,.system-project-table th{color:var(--muted);background:var(--surface2);font-size:11.5px;font-weight:720}.dashboard-table tr:last-child td,.draft-table tr:last-child td,.system-project-table tr:last-child td{border-bottom:0}.dashboard-table tbody tr,.draft-table tbody tr{cursor:pointer}.dashboard-table tbody tr:hover,.draft-table tbody tr:hover{background:var(--surface2)}.draft-table-card{padding:0;overflow:hidden}.draft-delete{min-height:32px}.request-composer-backdrop{position:fixed;inset:0;z-index:70;background:rgba(5,10,20,.66);backdrop-filter:none;display:flex;align-items:center;justify-content:center;padding:22px}.request-composer{width:min(980px,100%);max-height:calc(100vh - 44px);background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 34px rgba(0,0,0,.24);display:flex;flex-direction:column;overflow:hidden}.composer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 14px;border-bottom:1px solid var(--line)}.composer-head h2{margin:0;font-size:22px}.composer-head p{margin:5px 0 0;color:var(--muted);font-size:12.5px}.composer-close{width:36px;height:36px;border:0;border-radius:9px;background:var(--surface2);color:var(--muted);font-size:24px;line-height:1}.request-composer>.typegrid,.request-composer>.project-groups{padding:20px 22px;overflow:auto}.project-groups{display:grid;gap:18px}.project-group h3{margin:0 0 9px;font-size:13px;color:var(--muted)}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.project-card{min-height:72px;text-align:left;border:1px solid var(--line);border-radius:11px;background:var(--surface2);color:var(--text);padding:12px}.project-card:hover{border-color:var(--primary);background:var(--primary2);box-shadow:none;transform:none}.project-card b,.project-card small{display:block}.project-card b{font-size:14px}.project-card small{margin-top:4px;color:var(--muted);font-size:10.5px}.composer-scroll{padding:16px 22px;overflow:auto}.composer-project-summary{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);margin-bottom:10px}.composer-project-summary span{font-size:11px;color:var(--muted)}.composer-project-summary b{font-size:13px}.composer-footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 22px;border-top:1px solid var(--line);background:var(--surface)}.autosave{margin-top:10px;color:var(--muted);font-size:11.5px}.system-project-table .group-id-input{min-width:150px;width:100%}.system-project-actions{white-space:nowrap}.template-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.template-setting{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--surface2)}.template-setting-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.template-setting .textarea{min-height:120px;background:var(--surface)}\n@media(max-width:760px){.request-composer-backdrop{padding:0;align-items:flex-end}.request-composer{width:100%;max-height:94vh;border-radius:18px 18px 0 0}.project-grid{grid-template-columns:1fr 1fr}.template-settings{grid-template-columns:1fr}.composer-head{padding:16px}.composer-scroll,.request-composer>.typegrid,.request-composer>.project-groups{padding:14px}.composer-footer{padding:11px 14px}.dashboard-table,.draft-table{min-width:760px}}\n
/* v0.8.0 request worklist project column */
.request-work-table th:nth-child(1),.request-work-table td:nth-child(1){width:36px}
.request-work-table th:nth-child(2),.request-work-table td:nth-child(2){width:100px}
.request-work-table th:nth-child(3),.request-work-table td:nth-child(3){width:112px}
.request-work-table th:nth-child(4),.request-work-table td:nth-child(4){width:88px}
.request-work-table th:nth-child(5),.request-work-table td:nth-child(5){width:98px}
.request-work-table th:nth-child(6),.request-work-table td:nth-child(6){width:auto}
.request-work-table th:nth-child(7),.request-work-table td:nth-child(7){width:118px}
.request-work-table th:nth-child(8),.request-work-table td:nth-child(8){width:120px}
.request-work-table th:nth-child(9),.request-work-table td:nth-child(9){width:76px}
.request-work-table th:nth-child(10),.request-work-table td:nth-child(10){width:46px}
@media(max-width:1150px){.request-work-table{min-width:1060px}.request-table-wrap{overflow-x:auto}}


/* v0.8.4 project category / draft selection */
.project-admin-card{overflow:visible}
.project-category-add{display:grid;grid-template-columns:minmax(220px,420px) auto;gap:8px;align-items:center;margin:14px 0 18px;padding:14px;border:1px dashed var(--line);border-radius:12px;background:var(--surface2)}
.project-category-stack{display:grid;gap:18px}
.project-category-section{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;box-shadow:0 5px 16px rgba(0,0,0,.025)}
.project-category-head{display:grid;grid-template-columns:72px minmax(190px,340px) 1fr auto;gap:9px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--primary) 4%,var(--surface2))}
.project-category-actions,.project-order-controls{display:flex;align-items:center;gap:5px}
.icon-order{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-weight:800;display:grid;place-items:center;padding:0}
.icon-order:hover:not(:disabled){border-color:var(--primary);color:var(--primary);background:var(--primary2)}
.icon-order:disabled{opacity:.28;cursor:default}
.category-name-wrap{position:relative;min-width:0}
.category-name-input{width:100%;padding-right:72px;font-weight:720}
.category-save-state{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10.5px;color:var(--muted);pointer-events:none}
.category-save-state.saving{color:var(--primary)}
.category-save-state.ok{color:var(--done)}
.category-save-state.error{color:var(--danger)}
.project-category-body{min-height:52px;padding:8px 10px}
.project-admin-row{display:grid;grid-template-columns:38px minmax(180px,1fr) minmax(180px,1fr) 72px auto;gap:8px;align-items:center;padding:8px;border-radius:9px;transition:background .12s ease,box-shadow .12s ease,opacity .12s ease}
.project-admin-row+.project-admin-row{border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent)}
.project-admin-row:hover{background:var(--surface2)}
.project-admin-row.dragging{opacity:.42}
.project-admin-row.drag-target{box-shadow:inset 0 2px 0 var(--primary);background:var(--primary2)}
.project-drag-handle{width:32px;height:34px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:grab;display:grid;place-items:center;padding:0}
.project-drag-handle:hover{background:var(--primary2);color:var(--primary)}
.project-drag-handle:active{cursor:grabbing}
.project-name-input,.group-id-input{width:100%;min-width:0}
.project-state{font-size:11.5px;font-weight:700;white-space:nowrap}
.project-state.active{color:var(--done)}
.project-state.inactive{color:var(--muted)}
.system-project-actions{display:flex;gap:6px;white-space:nowrap}
.project-empty{padding:18px;text-align:center;color:var(--muted);font-size:12px}
.project-inline-add{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--line);background:var(--surface2)}
.composer-close{position:relative;z-index:2;cursor:pointer}
.composer-close:hover{color:var(--text);background:var(--primary2)}
.draft-selection-bar{display:flex;align-items:center;gap:8px;min-height:46px;padding:7px 10px;margin:8px 0 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface2)}
.draft-selection-bar b{margin-right:auto}
.draft-table .select-col{width:42px;text-align:center}
.draft-table .select-col input{width:15px;height:15px}

@media(max-width:980px){
  .project-category-head{grid-template-columns:72px minmax(160px,1fr) auto}
  .project-category-head>.meta{display:none}
  .project-category-actions{grid-column:3}
  .project-admin-row{grid-template-columns:38px minmax(160px,1fr) minmax(160px,1fr)}
  .project-admin-row>.project-state,.project-admin-row>.system-project-actions{grid-column:2/-1}
}
@media(max-width:680px){
  .project-category-add{grid-template-columns:1fr}
  .project-category-head{grid-template-columns:72px minmax(0,1fr);padding:10px}
  .project-category-actions{grid-column:2;justify-self:start}
  .project-admin-row{grid-template-columns:38px minmax(0,1fr);gap:7px}
  .project-admin-row .group-id-input,.project-admin-row .system-project-actions,.project-admin-row .project-state{grid-column:2}
  .project-inline-add{grid-template-columns:1fr}
  .draft-selection-bar{flex-wrap:wrap}
  .draft-selection-bar b{width:100%}
}


/* v0.9.0 detail workspace / project autosave / caret image paste */
.request-detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:28px;
  align-items:start;
}
.detail-workspace{min-width:0;max-width:900px}
.detail-back{margin-bottom:18px}
.detail-title-area{padding:0 2px 22px;border-bottom:1px solid var(--line)}
.detail-request-no{font-size:11.5px;color:var(--muted);font-weight:650;letter-spacing:.01em;margin-bottom:8px}
.detail-title-area h1{margin:0;font-size:30px;line-height:1.25;letter-spacing:-.035em;word-break:break-word}
.detail-body-section{padding:24px 2px 28px;border-bottom:1px solid var(--line)}
.detail-section-heading{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:14px}
.detail-blocks-flat{display:flex;flex-direction:column;gap:18px;font-size:14px;line-height:1.72}
.detail-blocks-flat .detail-text-block{font-size:14px;line-height:1.72}
.detail-blocks-flat .detail-image{max-width:100%;border-radius:12px}
.detail-history-panel{margin-top:20px;padding:0;border:0;background:transparent;box-shadow:none}
.detail-history-panel summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px;font-weight:720}
.detail-history-panel summary::-webkit-details-marker{display:none}
.detail-history-panel .timeline{margin-top:14px}
.detail-info-panel{min-width:0}
.detail-info-sticky{position:sticky;top:90px;border-left:1px solid var(--line);padding-left:22px}
.detail-info-heading{font-size:13px;font-weight:760;margin-bottom:16px}
.detail-status-box{padding:0 0 16px;border-bottom:1px solid var(--line)}
.detail-status-box>small,.detail-info-item>small{display:block;font-size:10.5px;color:var(--muted);font-weight:650;margin-bottom:5px}
.detail-status-current{margin-bottom:9px}
.detail-status-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.detail-status-actions button{min-height:32px;border:1px solid var(--line);border-radius:8px;background:var(--surface2);color:var(--muted);font-size:11px;font-weight:700}
.detail-status-actions button:hover,.detail-status-actions button.active{border-color:var(--primary);color:var(--primary);background:var(--primary2)}
.detail-info-list{display:grid}
.detail-info-item{padding:13px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent)}
.detail-info-item strong{display:block;font-size:14px;line-height:1.35;font-weight:720;word-break:break-word}
.detail-info-sub{display:block;margin-top:3px;font-size:11px;color:var(--muted);font-weight:550}
.detail-slack-action{width:100%;margin-top:16px}
.project-field-wrap{position:relative;min-width:0}
.project-field-wrap .project-name-input{padding-right:62px}
.project-save-state{position:absolute;right:9px;top:50%;transform:translateY(-50%);font-size:10px;color:var(--muted);pointer-events:none}
.project-save-state.saving{color:var(--primary)}
.project-save-state.ok{color:var(--done)}
.project-save-state.error{color:var(--danger)}
.project-admin-row[draggable="true"]{user-select:none}
.project-admin-row input{user-select:text}
.project-admin-row.dragging{opacity:.38;outline:1px dashed var(--primary)}
.project-admin-row.drag-target{box-shadow:inset 0 2px 0 var(--primary)}

@media(max-width:980px){
  .request-detail-layout{grid-template-columns:minmax(0,1fr) 250px;gap:20px}
  .detail-info-sticky{padding-left:16px}
}
@media(max-width:760px){
  .request-detail-layout{display:block}
  .detail-workspace{max-width:none}
  .detail-title-area h1{font-size:24px}
  .detail-info-panel{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
  .detail-info-sticky{position:static;border-left:0;padding-left:0}
  .detail-info-list{grid-template-columns:1fr 1fr;column-gap:14px}
  .detail-history-panel:not([open]) .timeline{display:none}
  .detail-slack-action{position:fixed;left:12px;right:142px;bottom:64px;z-index:18;width:auto;box-shadow:0 10px 24px rgba(0,0,0,.18)}
  .fab{right:12px;transform:none}
}

/* v0.9.1 fast status sync / image viewer */
.request-detail-layout{
  grid-template-columns:minmax(0,1fr) 240px;
  gap:24px;
}
.detail-workspace{max-width:none}
.detail-info-sticky{padding-left:18px}
.detail-status-box{
  padding:14px;
  margin-left:-14px;
  margin-bottom:4px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  box-shadow:0 5px 18px rgba(20,32,54,.04);
}
.detail-status-box>small{font-size:11px;margin-bottom:8px}
.detail-status-current{margin-bottom:12px}
.detail-status-current .badge{
  min-height:31px;
  display:inline-flex;
  align-items:center;
  padding:0 11px;
  font-size:12.5px;
  border-radius:999px;
}
.detail-status-actions{gap:6px}
.detail-status-actions button{
  min-height:36px;
  font-size:11.5px;
  border-radius:9px;
}
.detail-image-interactive{
  cursor:zoom-in;
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease;
}
.detail-image-interactive:hover{
  border-color:color-mix(in srgb,var(--primary) 40%,var(--line));
  box-shadow:0 6px 20px rgba(0,0,0,.07);
}
.image-viewer-backdrop{
  position:fixed;
  inset:0;
  z-index:320;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(8,12,20,.78);
  backdrop-filter:blur(3px);
}
.image-viewer{
  width:min(1180px,calc(100vw - 48px));
  height:min(88vh,900px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--line) 65%,transparent);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 26px 80px rgba(0,0,0,.38);
}
.image-viewer-head{
  min-height:50px;
  padding:0 12px 0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
}
.image-viewer-head b{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:13px;
}
.image-viewer-head button{
  width:34px;
  height:34px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font-size:25px;
  line-height:1;
}
.image-viewer-head button:hover{background:var(--surface2);color:var(--text)}
.image-viewer-stage{
  min-height:0;
  overflow:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:color-mix(in srgb,var(--bg) 72%,#000 28%);
}
.image-viewer-stage img{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  cursor:context-menu;
  user-select:none;
}
.image-viewer-hint{
  padding:9px 16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
  text-align:center;
}
.image-context-shield{
  position:fixed;
  inset:0;
  z-index:340;
}
.image-context-menu{
  position:fixed;
  z-index:341;
  width:180px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  box-shadow:0 14px 38px rgba(0,0,0,.24);
}
.image-context-menu button{
  width:100%;
  height:39px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--text);
  text-align:left;
  padding:0 11px;
  font-size:12.5px;
  font-weight:650;
}
.image-context-menu button:hover{background:var(--surface2);color:var(--primary)}

@media(max-width:980px){
  .request-detail-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}
  .detail-info-sticky{padding-left:14px}
}
@media(max-width:760px){
  .request-detail-layout{display:block}
  .detail-status-box{margin-left:0}
  .image-viewer-backdrop{padding:10px}
  .image-viewer{width:calc(100vw - 20px);height:86vh;border-radius:13px}
  .image-viewer-stage{padding:8px}
}


/* v0.10.0 customer master / detail sticky / composer action alignment */
.detail-info-panel{
  min-width:0;
  align-self:stretch;
  position:relative;
}
.detail-info-sticky{
  position:sticky;
  top:76px;
  max-height:calc(100vh - 92px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.editoradd{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.editoradd>.secondary,
.editoradd>.filelabel{
  min-height:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  line-height:1;
}
.filelabel{vertical-align:middle}
.customer-master-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:8px;
  margin:12px 0;
}
.customer-master-table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
}
.customer-master-table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  background:var(--surface);
}
.customer-master-table th,
.customer-master-table td{
  padding:9px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:12.5px;
}
.customer-master-table th{
  color:var(--muted);
  font-size:11.5px;
  font-weight:720;
  background:var(--surface2);
}
.customer-master-table tbody tr:last-child td{border-bottom:0}
.customer-master-input{width:100%;min-width:0}
.customer-master-save-state{font-size:11px;color:var(--muted);white-space:nowrap}
.customer-master-save-state.saving{color:var(--primary)}
.customer-master-save-state.ok{color:var(--done)}
.customer-master-save-state.error{color:var(--danger)}
.customer-active-toggle{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);white-space:nowrap}
.customer-active-toggle input{accent-color:var(--primary)}
@media(max-width:760px){
  .detail-info-sticky{position:static;max-height:none;overflow:visible}
  .editoradd{display:grid;grid-template-columns:1fr 1fr}
  .editoradd>.secondary:first-child{grid-column:1/-1}
  .customer-master-toolbar{grid-template-columns:1fr}
}


/* v0.10.1 system create controls */
.project-create-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin:14px 0 18px}
.project-create-panel{border:1px solid var(--line);background:var(--surface2);border-radius:12px;padding:14px}
.project-create-panel>b{display:block;margin-bottom:10px;font-size:13px}
.project-global-add{display:grid;grid-template-columns:150px minmax(140px,1fr) minmax(160px,1fr) auto;gap:8px;align-items:center}
.customer-master-create{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(220px,1fr) auto;gap:8px;margin:12px 0}
@media(max-width:900px){.project-create-grid{grid-template-columns:1fr}.project-global-add,.customer-master-create{grid-template-columns:1fr}}


/* v0.10.2 project management usability */
.project-create-grid{display:none!important}
.project-category-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.project-category-toolbar>div:first-child{display:flex;align-items:baseline;gap:8px}
.project-category-add.compact{display:grid;grid-template-columns:minmax(180px,280px) auto;gap:8px;margin:0;padding:0;border:0;background:transparent}
.project-category-head{grid-template-columns:72px minmax(190px,340px) 1fr auto}
.project-category-actions{display:flex;gap:7px;align-items:center}
.project-add-toggle{min-height:34px;padding:0 11px}
.project-inline-create{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--primary) 4%,var(--surface))}
.project-inline-create .primary{min-width:72px}
.project-drag-handle[draggable="true"]{touch-action:none;cursor:grab}
.project-drag-handle[draggable="true"]:active{cursor:grabbing}
@media(max-width:760px){
 .project-category-toolbar{align-items:stretch;flex-direction:column}
 .project-category-add.compact,.project-inline-create{grid-template-columns:1fr}
}
/* v0.10.4 project/request type administration */
.project-inline-create.always{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.project-admin-row[draggable="true"]{cursor:default}.project-admin-row.dragging{opacity:.55}.project-drag-handle{cursor:grab;touch-action:none}.project-drag-handle:active{cursor:grabbing}.project-row-order{display:flex;gap:4px}.request-type-create{display:flex;gap:10px;margin:14px 0}.request-type-create .input{max-width:420px}.request-type-admin-list{display:grid;gap:8px}.request-type-admin-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
@media(max-width:800px){.project-inline-create.always{grid-template-columns:1fr}.request-type-create{display:grid}.request-type-admin-row{grid-template-columns:1fr auto}.request-type-admin-row .meta{display:none}.project-row-order{display:none}}

/* v0.10.5 project/request type administration fixes */
.project-admin-row{grid-template-columns:38px minmax(180px,1fr) minmax(180px,1fr) 72px auto}
.project-admin-row.dragging{opacity:.46;outline:1px dashed var(--primary);background:var(--primary2)}
.project-drag-handle[draggable="true"]{-webkit-user-drag:element;user-select:none;cursor:grab}
.project-drag-handle[draggable="true"]:active{cursor:grabbing}
.request-type-admin-row{grid-template-columns:72px minmax(220px,1fr) auto auto}
@media(max-width:800px){
  .request-type-admin-row{grid-template-columns:72px minmax(0,1fr) auto}
  .request-type-admin-row .meta{display:none}
}

/* v0.11.0 classification + Slack routing */
.request-classification-create{display:flex;gap:10px;margin:14px 0 18px}.request-classification-create .input{max-width:360px}
.request-classification-stack{display:grid;gap:14px}.request-classification-section{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.request-classification-head{display:grid;grid-template-columns:72px minmax(180px,320px) 1fr auto;gap:10px;align-items:center;padding:12px 14px;background:var(--surface2);border-bottom:1px solid var(--line)}
.request-type-create.routed{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1fr) auto;padding:12px 14px;margin:0;border-bottom:1px solid var(--line)}
.request-classification-section .request-type-admin-list{padding:0 14px}.request-classification-section .request-type-admin-row{grid-template-columns:72px minmax(180px,1fr) minmax(220px,1fr) 72px auto}
.type-classification-stack{display:grid;gap:18px}.type-classification-group{display:grid;gap:9px}.type-classification-title{font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.02em}
@media(max-width:800px){.request-classification-create,.request-type-create.routed{display:grid;grid-template-columns:1fr}.request-classification-head{grid-template-columns:72px 1fr auto}.request-classification-head .meta{display:none}.request-classification-section .request-type-admin-row{grid-template-columns:72px minmax(0,1fr);padding:10px 0}.request-classification-section .request-type-admin-row .danger{grid-column:2}.request-classification-section .request-type-admin-row .meta{display:block}}

/* v0.12.0 template Slack mention picker */
.template-setting-actions{display:flex;gap:7px;align-items:center}.template-mention-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-height:28px;align-items:center}.mention-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:var(--primary2);color:var(--primary);font-size:11.5px;font-weight:700}.mention-chip button{border:0;background:transparent;color:inherit;padding:0;font-size:15px;line-height:1;cursor:pointer}.mention-picker-backdrop{position:fixed;inset:0;z-index:120;background:rgba(4,10,20,.62);display:grid;place-items:center;padding:20px}.mention-picker{width:min(460px,100%);max-height:min(650px,86vh);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.35);overflow:hidden}.mention-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.mention-picker-head b,.mention-picker-head small{display:block}.mention-picker-head small{margin-top:3px;color:var(--muted);font-size:11px}.mention-picker-search{padding:12px 14px;border-bottom:1px solid var(--line)}.mention-picker-list{overflow:auto;padding:6px}.mention-user{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);text-align:left;padding:9px 10px;border-radius:10px}.mention-user:hover{background:var(--surface2)}.mention-user img,.mention-avatar{width:32px;height:32px;border-radius:8px;flex:0 0 32px}.mention-avatar{display:grid;place-items:center;background:var(--primary2);color:var(--primary);font-weight:800}.mention-user span span,.mention-user b,.mention-user small{display:block}.mention-user b{font-size:13px}.mention-user small{margin-top:2px;color:var(--muted);font-size:10.5px}@media(max-width:760px){.template-setting-actions{width:100%;justify-content:flex-end}.template-setting-head{flex-wrap:wrap}.mention-picker-backdrop{padding:0;align-items:end}.mention-picker{width:100%;max-height:80vh;border-radius:16px 16px 0 0}}


/* v0.12.1 inline Slack mention editor */
.rich-template-wrap{position:relative}.rich-template-editor,.rich-text-editor{white-space:pre-wrap;overflow-wrap:anywhere;min-height:130px;cursor:text}.rich-template-editor:empty:before,.rich-text-editor:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}.inline-mention-chip{display:inline-flex;align-items:center;gap:5px;vertical-align:baseline;padding:2px 7px;margin:0 2px;border-radius:999px;background:var(--primary2);color:var(--primary);font-weight:750;white-space:nowrap;user-select:all}.inline-mention-chip small{font-size:9px;opacity:.65;font-weight:650}.inline-mention-menu{position:absolute;z-index:80;left:0;top:calc(100% + 5px);width:min(440px,100%);max-height:310px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 18px 45px rgba(0,0,0,.28)}.inline-mention-menu[hidden]{display:none}.inline-mention-option{width:100%;display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--text);text-align:left;padding:8px;border-radius:8px}.inline-mention-option:hover,.inline-mention-option.active{background:var(--primary2);color:var(--primary)}.inline-mention-option img,.inline-mention-option .mention-avatar{width:30px;height:30px;border-radius:8px;flex:0 0 30px}.inline-mention-option span span,.inline-mention-option b,.inline-mention-option small{display:block}.inline-mention-option b{font-size:12.5px}.inline-mention-option small{margin-top:1px;color:var(--muted);font-size:10px}.inline-mention-empty{padding:12px;color:var(--muted);font-size:12px}.template-mention-help{margin-top:7px}.template-setting-actions .secondary{display:none}


/* v0.13.0 template blocks + rich title/user mentions */
.rich-request-wrap,.rich-template-wrap{position:relative}
.rich-title-editor{min-height:40px;height:auto;padding:9px 12px;white-space:nowrap;overflow-x:auto;overflow-y:hidden;display:block}
.rich-title-editor:empty:before,.rich-template-editor:empty:before,.rich-text-editor:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.rich-title-editor .inline-mention-chip{vertical-align:middle}
.template-block-setting{padding:18px}
.template-title-section{margin-top:14px}
.template-title-section>label,.template-blocks-head>label{display:block;font-size:12px;font-weight:750;margin-bottom:7px;color:var(--text)}
.template-blocks-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;margin-bottom:8px}
.template-block-list{display:grid;gap:10px}
.template-block-item{border:1px solid var(--line);border-radius:12px;padding:11px;background:var(--surface2)}
.template-block-order{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.template-block-order>b{font-size:12px}
.template-block-order>div{display:flex;gap:5px}
button.mini{min-height:28px;padding:0 9px;border-radius:8px;font-size:11px}
.template-block-item .rich-template-editor{background:var(--surface);min-height:92px}
.inline-mention-menu{z-index:80}
.rich-request-wrap .inline-mention-menu{top:calc(100% + 4px);left:0;right:auto;min-width:320px;max-width:min(430px,90vw)}
@media(max-width:760px){.rich-request-wrap .inline-mention-menu{min-width:0;width:min(92vw,380px)}.template-block-order{align-items:flex-start}.template-block-order>div{flex-wrap:wrap;justify-content:flex-end}}


/* v0.13.1 system tabs + rich template newline fidelity */
.system-tabs{
  position:sticky;
  top:62px;
  z-index:12;
  display:flex;
  gap:4px;
  margin:0 0 18px;
  padding:6px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  backdrop-filter:blur(10px);
  box-shadow:0 5px 18px rgba(20,32,54,.035);
}
.system-tab{
  flex:0 0 auto;
  min-height:38px;
  padding:0 14px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-size:12.5px;
  font-weight:700;
  white-space:nowrap;
}
.system-tab:hover{background:var(--surface2);color:var(--text)}
.system-tab.active{background:var(--primary2);color:var(--primary)}
.system-tab-panel{min-width:0}
.system-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:4px 2px 12px}
.system-panel-head h2{margin:0 0 3px;font-size:20px;letter-spacing:-.025em}
.system-panel-head .meta{margin:0}
.system-tab-panel>.card:first-of-type{margin-top:0}
.rich-template-editor{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){
  .system-tabs{top:58px;margin-left:-2px;margin-right:-2px;border-radius:10px}
  .system-tab{min-height:36px;padding:0 12px;font-size:12px}
  .system-panel-head h2{font-size:18px}
}

/* v0.14.0 Slack root preview */
.slack-root-preview-card{margin:12px 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.slack-root-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.slack-root-preview-head b{font-size:12.5px}.slack-root-preview-head span{font-size:10.5px;color:var(--muted)}
.slack-root-preview-text{padding:10px 12px;border-radius:9px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:750;line-height:1.5;word-break:break-word}


/* v0.14.0 Slack user-group mentions */
.inline-mention-chip.usergroup{background:color-mix(in srgb,var(--confirm) 13%,var(--surface));border-color:color-mix(in srgb,var(--confirm) 28%,var(--line));color:var(--text)}
.inline-mention-chip.usergroup small{color:var(--confirm)}
.mention-avatar.group{background:color-mix(in srgb,var(--confirm) 16%,var(--surface));color:var(--confirm);font-weight:800}
.slack-auto-group-preview{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.group-id-input{min-width:230px;max-width:320px}

/* v0.15.0 Request Composer UX */
.request-composer{width:min(1080px,calc(100vw - 36px));max-height:calc(100vh - 36px)}
.composer-head{padding:16px 20px 12px;flex:0 0 auto}.composer-head h2{font-size:20px}.composer-head p{margin-top:4px}
.composer-step{display:flex;align-items:center;gap:6px;margin-top:7px;color:var(--muted);font-size:10.5px;white-space:nowrap}.composer-step b{display:grid;place-items:center;width:19px;height:19px;border-radius:999px;background:var(--primary2);color:var(--primary);font-size:10px}.composer-step b.done{background:var(--primary);color:#fff}.composer-step i{display:block;width:18px;height:1px;background:var(--line)}
.type-classification-stack{padding:14px 20px 18px!important;overflow:auto;gap:13px!important}.type-classification-group{gap:7px!important}.type-classification-title{font-size:11px!important}.typegrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.typecard{min-height:72px;padding:12px 14px;border-radius:11px;background:var(--surface2)}.typecard b{font-size:13.5px;margin-bottom:7px}.typecard small{font-size:10px}.type-route-state{display:flex!important;align-items:center;gap:5px}.type-route-state i{width:6px;height:6px;border-radius:50%;background:var(--muted)}.type-route-state.connected i{background:#3fb950}.type-route-state.missing i{background:#d29922}
.request-composer>.project-groups{padding:14px 20px 18px}.project-groups{gap:13px}.project-group h3{margin-bottom:7px;font-size:11px}.project-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.project-card{min-height:58px;padding:11px 12px}.project-card b{font-size:13px}
.composer-scroll{padding:12px 20px 16px}.composer-project-summary{padding:7px 10px;margin-bottom:8px;border-radius:9px}.composer-project-summary span{font-size:10px}.composer-project-summary b{font-size:12px}.composer-change-project{margin-left:auto;border:0;background:transparent;color:var(--primary);font-size:11px;cursor:pointer}.composer-scroll>.formrow{margin:10px 0}.customer-pair .formrow{margin:7px 0}.rich-title-editor{min-height:40px!important;padding:9px 11px!important}
.slack-root-preview-card.compact{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;margin:8px 0 12px;padding:8px 10px;border-radius:10px}.slack-root-preview-card.compact .slack-root-preview-head{display:flex;gap:6px;margin:0;white-space:nowrap}.slack-root-preview-card.compact .slack-root-preview-head b{font-size:11px}.slack-root-preview-card.compact .slack-root-preview-head span{font-size:10px}.slack-root-preview-card.compact .slack-root-preview-text{padding:7px 9px;font-size:11.5px;line-height:1.35}.slack-root-preview-card.compact .slack-auto-group-preview{grid-column:2;margin-top:-4px;font-size:10px}
.editorblock{position:relative;padding:8px;border-radius:11px}.textblock .textarea{min-height:88px;padding:10px 12px}.textblock .blocktools{position:absolute;right:14px;top:12px;margin:0;opacity:.72}.textblock .blocktools button{padding:4px 7px;font-size:11px;background:var(--surface2)}.textblock .blocktools:hover{opacity:1}.editoradd{margin-top:7px}.composer-footer{padding:10px 20px;flex:0 0 auto}
@media(max-width:900px){.typegrid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.request-composer{width:100%;max-height:96vh}.composer-step span{display:none}.type-classification-stack{padding:12px 14px 16px!important}.typegrid{grid-template-columns:1fr 1fr}.typecard{min-height:66px}.request-composer>.project-groups{padding:12px 14px 16px}.project-grid{grid-template-columns:1fr 1fr}.composer-scroll{padding:10px 14px 14px}.slack-root-preview-card.compact{grid-template-columns:1fr}.slack-root-preview-card.compact .slack-root-preview-head,.slack-root-preview-card.compact .slack-auto-group-preview{grid-column:1}.textblock .blocktools{position:static;margin-top:6px;opacity:1}}

/* v0.16.2 multi-customer + fixed composer frame */
@media(min-width:761px){
  .request-composer{width:min(1080px,calc(100vw - 36px));height:min(860px,calc(100vh - 36px));max-height:none}
  .request-composer>.type-classification-stack,.request-composer>.project-groups,.request-composer>.composer-scroll{flex:1;min-height:0;overflow:auto}
}
.selected-customer-chips{display:flex;flex-wrap:wrap;gap:7px;margin:6px 0 8px}
.selected-customer-chips:empty{display:none}
.customer-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 8px 6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface2);font-size:11.5px}
.customer-chip b{color:var(--primary);font-size:10.5px}.customer-chip button{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:16px;line-height:1;padding:0 2px}.customer-chip button:hover{color:var(--text)}
.type-route-state.connected{color:var(--muted)}


/* v0.16.2 composer performance / compact type cards / detail mention chips */
@media(min-width:901px){
  .typegrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
}
.typecard{min-height:54px!important;padding:10px 12px!important;align-content:center;transition:background-color .06s linear,border-color .06s linear,color .06s linear,box-shadow .06s linear}
.typecard b{font-size:13px!important;margin-bottom:4px!important}
.typecard small{font-size:9.5px!important}
.type-route-state.connected{color:var(--muted)}
.detail-rich-text .inline-mention-chip{vertical-align:middle;margin:1px 2px}
@media(max-width:900px) and (min-width:761px){.typegrid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v0.16.2 request type density / mention hover */
.type-classification-stack{align-content:start!important;grid-auto-rows:max-content!important;gap:12px!important}
.type-classification-group{align-content:start!important;grid-auto-rows:max-content!important;gap:4px!important}
.type-classification-title{margin:0!important;line-height:1.2}
@media(min-width:901px){
  .typegrid{grid-template-columns:repeat(auto-fill,220px)!important;grid-auto-rows:64px;justify-content:start;align-content:start;gap:8px!important}
  .typecard{width:220px!important;height:64px!important;min-height:64px!important;max-height:64px!important;padding:9px 12px!important}
}
.inline-mention-chip{position:relative}
.inline-mention-chip[data-tooltip]::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%) translateY(3px);z-index:120;min-width:max-content;max-width:320px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 10px 28px rgba(0,0,0,.28);color:var(--text);font-size:11px;font-weight:500;line-height:1.35;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .06s linear,transform .06s linear}
.inline-mention-chip[data-tooltip]:hover::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}

/* v0.16.3 Typography & Composer Scroll Lock */
html{font-size:16px!important}
body{font-size:16px!important}
body.composer-scroll-locked{position:fixed!important;left:0;right:0;width:100%;overflow:hidden!important}
.request-composer-backdrop{overscroll-behavior:contain}
.request-composer>.type-classification-stack,
.request-composer>.project-groups,
.request-composer>.composer-scroll{overscroll-behavior:contain}

/* Base readable typography: keep all routine UI text at 16px or larger. */
.userbox,.userbox>b,
.navgroup-title,.navbtn,.navlogout,
.meta,.badge,.input,.select,textarea,label,
.table,.table th,.table td,
.dashboard-table,.dashboard-table th,.dashboard-table td,
.draft-table,.draft-table th,.draft-table td,
.request-filter-panel,.request-filter-panel .input,.request-filter-panel .select,
.request-filter-panel .input::placeholder,.tabs .tab,
.date-filter-row,.filter-chip,.date-input,.request-result-bar,.request-result-bar>b,.bulk-actions button,
.request-work-table,.request-work-table th,.request-work-table td,.title-cell b,.title-cell small,
.request-status-pill,.status-menu-item,.check-combo summary,.check-combo-item,
.app-modal-message,.draft-main b,.draft-main small,
.system-tab,.system-panel-head .meta,
.formrow label,.editorhint,.autosave,.slackpreview small,.slackpreview span,.slackpreview div,
.composer-head p,.composer-step,.composer-step b,
.type-classification-title,.typecard b,.typecard small,.type-route-state,
.project-group h3,.project-card b,.project-card small,
.composer-project-summary span,.composer-project-summary b,.composer-change-project,
.slack-root-preview-head b,.slack-root-preview-head span,.slack-root-preview-text,.slack-auto-group-preview,
.customer-chip,.customer-chip b,
.inline-mention-chip,.inline-mention-chip small,.inline-mention-option b,.inline-mention-option small,.inline-mention-empty,
.detail-kickers,.detail-customer,.detail-meta-row>span,.detail-meta-row>b,
.detail-section-heading,.detail-blocks-flat,.detail-blocks-flat .detail-text-block,
.detail-history-panel summary,.detail-info-heading,.detail-status-box>small,.detail-info-item>small,
.detail-status-actions button,.detail-info-item strong,.detail-info-sub,.detail-file-meta,
.project-save-state,.category-save-state,.project-state,.project-empty,.customer-master-save-state,.customer-active-toggle,
.template-title-section>label,.template-blocks-head>label,.template-block-order>b,button.mini,
.project-create-panel>b,.request-type-admin-row,.request-classification-section,.type-classification-stack{
  font-size:16px!important;
}

/* Preserve visual hierarchy above the 16px floor. */
.pagehead h1,.pagehead h2,.composer-head h2{font-size:24px!important}
.detail-title-area h1,.detail-hero h1{font-size:30px!important}
.system-panel-head h2{font-size:22px!important}
.app-modal-title{font-size:18px!important}

/* Composer controls need a little more room at the larger type scale. */
@media(min-width:901px){
  .typegrid{grid-template-columns:repeat(auto-fill,240px)!important;grid-auto-rows:78px!important}
  .typecard{width:240px!important;height:78px!important;min-height:78px!important;max-height:78px!important;padding:12px 14px!important}
}
.typecard b{line-height:1.25!important}
.typecard small{line-height:1.25!important}
.project-card{min-height:72px!important}
.composer-step b{width:24px!important;height:24px!important}
.request-status-pill{min-height:36px!important}
.status-menu-item{min-height:42px!important}

@media(max-width:760px){
  html,body{font-size:16px!important}
  .composer-head h2{font-size:22px!important}
  .detail-title-area h1,.detail-hero h1{font-size:26px!important}
}

/* v0.16.4 Responsive Typography & Layout Polish */
/* 16px is the reading baseline. Dense metadata is allowed at 14px so layouts do not break. */
.navgroup-title,.meta,.badge,.role,
.dashboard-table th,.draft-table th,.system-project-table th,
.title-cell small,.request-work-table th,
.request-status-pill,.status-menu-item,
.detail-kickers,.detail-file-meta,
.type-classification-title,.type-route-state,
.project-group h3,.project-card small,
.composer-project-summary span,
.slack-root-preview-head span,.slack-auto-group-preview,
.inline-mention-chip small,.inline-mention-option small,
.customer-chip b,.autosave{font-size:14px!important}

/* Sidebar: keep labels readable without making the navigation bulky. */
.side{gap:9px;padding:9px}
.navgroup-title{padding:4px 10px 5px;line-height:1.25}
.navbtn{font-size:16px!important;min-height:40px;padding:0 10px;gap:9px}
.navlogout{padding-top:7px}

/* Dashboard / list tables: never break Korean words vertically. */
.dashboard-table-wrap,.request-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.dashboard-table{table-layout:fixed;min-width:920px;font-size:16px!important}
.dashboard-table th,.dashboard-table td{padding:11px 10px;font-size:16px!important;line-height:1.45;word-break:keep-all;overflow-wrap:normal}
.dashboard-table th{font-size:14px!important;white-space:nowrap}
.dashboard-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-table td b,.dashboard-table td strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-table td small{font-size:14px!important;line-height:1.35}
.request-work-table{min-width:1040px;font-size:16px!important}
.request-work-table th{font-size:14px!important;white-space:nowrap;word-break:keep-all}
.request-work-table td{font-size:16px!important;white-space:nowrap;word-break:keep-all}
.request-work-table .title-cell b{font-size:16px!important;white-space:nowrap}
.request-work-table .title-cell small{font-size:14px!important;white-space:nowrap}
.request-work-table th:nth-child(2),.request-work-table td:nth-child(2){width:118px}
.request-work-table th:nth-child(3),.request-work-table td:nth-child(3){width:128px}
.request-work-table th:nth-child(4),.request-work-table td:nth-child(4){width:105px}
.request-work-table th:nth-child(5),.request-work-table td:nth-child(5){width:150px}
.request-work-table th:nth-child(7),.request-work-table td:nth-child(7){width:150px}
.request-work-table th:nth-child(8),.request-work-table td:nth-child(8){width:96px}
.request-work-table th:nth-child(9),.request-work-table td:nth-child(9){width:58px}
.request-status-pill{min-height:32px!important;padding:0 9px}

/* Composer frame: fixed outer dimensions, compact vertical rhythm. */
.composer-head{padding:14px 20px 11px}
.composer-head h2{font-size:24px!important;line-height:1.25}
.composer-head p{font-size:16px!important;margin-top:4px}
.composer-step{font-size:14px!important;margin-top:6px;gap:7px}
.composer-step b{font-size:14px!important;width:22px!important;height:22px!important}

/* Step 1: fixed compact cards; section heading sits directly above cards. */
.type-classification-stack{padding:12px 20px 16px!important;gap:12px!important}
.type-classification-group{gap:6px!important}
.type-classification-title{font-size:14px!important;margin:0!important}
@media(min-width:901px){
  .typegrid{grid-template-columns:repeat(auto-fill,240px)!important;grid-auto-rows:72px!important;gap:8px!important;align-content:start!important}
  .typecard{width:240px!important;height:72px!important;min-height:72px!important;max-height:72px!important;padding:10px 13px!important}
}
.typecard b{font-size:16px!important;line-height:1.25!important;margin:0 0 5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.typecard small,.type-route-state{font-size:14px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* Step 2: readable project names, less oversized empty padding. */
.request-composer>.project-groups{padding:12px 20px 16px}
.project-groups{gap:12px}
.project-group h3{font-size:14px!important;margin:0 0 6px}
.project-grid{gap:8px}
.project-card{min-height:62px!important;padding:10px 12px!important;transition:background-color .06s linear,border-color .06s linear,color .06s linear,box-shadow .06s linear}
.project-card b{font-size:16px!important;line-height:1.3;word-break:keep-all}

/* Step 3: 16px inputs/body with tighter spacing and small utility controls. */
.composer-scroll{padding:11px 20px 14px}
.composer-project-summary{padding:7px 10px;margin-bottom:8px}
.composer-project-summary span{font-size:14px!important}
.composer-project-summary b,.composer-change-project{font-size:16px!important}
.composer-scroll>.formrow{margin:8px 0}
.customer-pair .formrow{margin:6px 0}
.formrow label{font-size:16px!important;margin-bottom:6px}
.input,.select,.rich-title-editor,.rich-text-editor,.textarea{font-size:16px!important;line-height:1.5}
.rich-title-editor{min-height:42px!important;padding:8px 11px!important}
.slack-root-preview-card.compact{margin:7px 0 10px;padding:8px 10px;gap:9px}
.slack-root-preview-card.compact .slack-root-preview-head b{font-size:16px!important}
.slack-root-preview-card.compact .slack-root-preview-head span{font-size:14px!important}
.slack-root-preview-card.compact .slack-root-preview-text{font-size:16px!important;padding:7px 9px;line-height:1.4}
.editorhint{font-size:14px!important;margin:-1px 0 8px}
.editorblock{padding:8px}
.textblock .textarea{min-height:88px;padding:10px 12px}
.textblock .blocktools{right:12px;top:10px;gap:4px}
.textblock .blocktools button{font-size:14px!important;width:30px;height:30px;padding:0!important;display:grid;place-items:center}
.editoradd{gap:7px;margin-top:7px}
.editoradd .secondary,.filelabel{font-size:16px!important;min-height:40px}
.autosave{font-size:14px!important;margin-top:8px}
.composer-footer{padding:10px 20px;min-height:60px}
.composer-footer button{font-size:16px!important;min-height:40px}

/* At narrower desktop widths preserve words and scroll tables instead of crushing columns. */
@media(max-width:1366px){
  .layout{gap:20px;padding-left:18px;padding-right:18px}
  .dashboard-table{min-width:980px}
  .request-work-table{min-width:1040px}
}
@media(max-width:760px){
  .composer-head{padding:13px 14px 10px}
  .composer-scroll,.request-composer>.project-groups,.type-classification-stack{padding-left:14px!important;padding-right:14px!important}
  .typecard{min-height:68px!important}
  .project-card{min-height:58px!important}
  .dashboard-table,.request-work-table{font-size:16px!important}
}

/* v0.17.0 Information Hierarchy */
body{font-size:15px}
.navbtn{font-size:15px!important}.sub,.meta{font-size:14px!important}
.request-work-table{min-width:1000px!important;table-layout:fixed;font-size:15px!important}
.request-work-table th{font-size:13px!important}.request-work-table td{font-size:15px!important;padding:11px 10px}
.request-work-table th:nth-child(1),.request-work-table td:nth-child(1){width:36px}
.request-work-table th:nth-child(2),.request-work-table td:nth-child(2){width:105px}
.request-work-table th:nth-child(3),.request-work-table td:nth-child(3){width:34%}
.request-work-table th:nth-child(4),.request-work-table td:nth-child(4){width:170px}
.request-work-table th:nth-child(5),.request-work-table td:nth-child(5){width:110px}
.request-work-table th:nth-child(6),.request-work-table td:nth-child(6){width:145px}
.request-work-table th:nth-child(7),.request-work-table td:nth-child(7){width:90px}
.request-work-table th:nth-child(8),.request-work-table td:nth-child(8){width:118px}
.request-work-table th:nth-child(9),.request-work-table td:nth-child(9){width:48px}
.request-work-table .title-cell b{display:block;font-size:16px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.request-work-table .title-cell small{display:block;margin-top:3px;font-size:12px!important;color:var(--muted)}
.request-work-table .customer-cell{overflow:hidden;text-overflow:ellipsis}
.request-date-cell{font-size:13px!important;color:var(--muted)}
.dashboard-table{min-width:820px!important;table-layout:fixed;font-size:15px!important}
.dashboard-table th{font-size:13px!important}.dashboard-table td{font-size:15px!important;padding:10px 9px}
.dashboard-table th:nth-child(1){width:82px}.dashboard-table th:nth-child(2){width:32%}.dashboard-table th:nth-child(3){width:170px}.dashboard-table th:nth-child(4){width:100px}.dashboard-table th:last-child{width:112px}
.dashboard-table .title-cell b{display:block;font-size:16px!important}.dashboard-table .title-cell small{display:block;font-size:12px!important;margin-top:2px;color:var(--muted)}
.request-status-pill{font-size:13px!important;min-height:30px!important}
.inline-mention-chip{font-size:14px!important;padding:2px 7px;position:relative;user-select:text}
.inline-mention-chip>small{font-size:11px!important}
.mention-profile-popover{display:none;position:absolute;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%);z-index:140;width:280px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 42px rgba(0,0,0,.34);color:var(--text);text-align:left;align-items:center;gap:11px;white-space:normal;pointer-events:none}
.inline-mention-chip:hover>.mention-profile-popover{display:flex}
.mention-profile-popover img,.mention-profile-fallback{width:46px;height:46px;border-radius:11px;flex:0 0 46px;object-fit:cover}
.mention-profile-fallback{display:grid;place-items:center;background:var(--primary2);color:var(--primary);font-size:20px;font-weight:800}
.mention-profile-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.mention-profile-copy b{font-size:15px}.mention-profile-copy span{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}.mention-profile-copy small{font-size:11px!important;color:var(--muted)}
@media(max-width:1366px){.request-work-table{min-width:980px!important}.dashboard-table{min-width:800px!important}}


/* v0.18.0 Department Mention Routing + scrollbar-free responsive worklist */
.request-table-wrap{overflow-x:hidden!important}
.request-work-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.request-work-table th,.request-work-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.request-work-table th:nth-child(1),.request-work-table td:nth-child(1){width:34px!important}
.request-work-table th:nth-child(2),.request-work-table td:nth-child(2){width:96px!important}
.request-work-table th:nth-child(3),.request-work-table td:nth-child(3){width:auto!important}
.request-work-table th:nth-child(4),.request-work-table td:nth-child(4){width:160px!important}
.request-work-table th:nth-child(5),.request-work-table td:nth-child(5){width:92px!important}
.request-work-table th:nth-child(6),.request-work-table td:nth-child(6){width:132px!important}
.request-work-table th:nth-child(7),.request-work-table td:nth-child(7){width:84px!important}
.request-work-table th:nth-child(8),.request-work-table td:nth-child(8){width:108px!important}
.request-work-table th:nth-child(9),.request-work-table td:nth-child(9){width:46px!important}
@media(max-width:1280px){
  .request-work-table .project-col,.request-work-table .attachment-col{display:none!important}
  .request-work-table th:nth-child(4),.request-work-table td:nth-child(4){width:150px!important}
  .request-work-table th:nth-child(6),.request-work-table td:nth-child(6){width:124px!important}
}
@media(max-width:1080px){
  .request-work-table .requester-col{display:none!important}
  .request-work-table th:nth-child(4),.request-work-table td:nth-child(4){width:145px!important}
}
@media(max-width:900px){
  .request-work-table .date-col{display:none!important}
  .request-work-table th:nth-child(2),.request-work-table td:nth-child(2){width:88px!important}
  .request-work-table th:nth-child(4),.request-work-table td:nth-child(4){width:130px!important}
  .request-work-table .type-col{width:118px!important}
}
.dept-main{min-width:280px;flex:1}.dept-notify{margin-top:10px;position:relative;max-width:520px}.dept-notify>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface2);border-radius:8px;padding:6px 9px;font-size:13px;color:var(--muted)}.dept-notify>summary::-webkit-details-marker{display:none}.dept-notify>summary b{color:var(--primary)}.dept-notify-menu{margin-top:7px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:9px;max-height:280px;overflow:auto}.dept-notify-user{display:flex;align-items:center;padding:7px 5px;gap:8px;border-radius:7px}.dept-notify-user:hover{background:var(--surface2)}.dept-notify-user>span{display:grid;grid-template-columns:30px minmax(100px,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;flex:1}.dept-notify-user img{grid-row:1/3;width:30px;height:30px;border-radius:8px;object-fit:cover}.dept-notify-user b{font-size:14px}.dept-notify-user small{font-size:12px;color:var(--muted)}.dept-notify-selected{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.dept-notify-selected span{font-size:12px;color:var(--primary);background:var(--primary2);border-radius:999px;padding:3px 7px}


/* v0.18.1 Optional project selection */
.project-none-wrap{margin:0 0 14px;}
.project-none-card{width:100%;min-height:64px;border:1px dashed var(--line);border-radius:12px;background:rgba(255,255,255,.025);color:var(--text);display:flex;align-items:center;gap:14px;padding:14px 16px;text-align:left;cursor:pointer;}
.project-none-card:hover{border-color:var(--accent);background:rgba(139,92,246,.08);}
.project-none-card b{font-size:15px;white-space:nowrap;}
.project-none-card span{font-size:13px;color:var(--muted);}
@media(max-width:700px){.project-none-card{align-items:flex-start;flex-direction:column;gap:4px;}}

/* v0.18.2 - Slack root requester visibility */
.slack-root-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.slack-root-preview-head>div{display:flex;align-items:center;gap:8px}
.slack-title-requester-toggle{display:inline-flex;align-items:center;gap:7px;margin:0;font-size:13px;color:var(--muted);cursor:pointer;white-space:nowrap;font-weight:500}
.slack-title-requester-toggle input{width:15px;height:15px;accent-color:var(--primary);cursor:pointer}
@media(max-width:720px){.slack-root-preview-head{align-items:flex-start}.slack-title-requester-toggle{font-size:12px}}


/* v0.20.0 title component ordering */
.slack-title-order-setting{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 7px;color:var(--muted);font-size:13px}
.slack-title-order-setting>span{font-weight:700;white-space:nowrap}
.title-order-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.title-order-chip{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:3px 4px 3px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-size:13px;font-weight:700}
.title-order-buttons{display:inline-flex;gap:2px}
.title-order-buttons button{width:24px;height:24px;border:0;border-radius:999px;background:var(--surface2);color:var(--muted);font:inherit;font-size:16px;line-height:1;cursor:pointer;padding:0}
.title-order-buttons button:hover:not(:disabled){background:var(--primary2);color:var(--primary)}
.title-order-buttons button:disabled{opacity:.25;cursor:default}
.template-title-order-section{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.template-title-order-section>label{display:block;font-weight:800;margin-bottom:4px}.template-title-order-section .title-order-row{margin-top:9px}
@media(max-width:720px){.slack-title-order-setting{align-items:flex-start;flex-direction:column}.title-order-chip{font-size:12px}}

/* v0.21.1 */
.rich-title-editor{min-height:48px;max-height:180px;white-space:pre-wrap;overflow:auto;line-height:1.55}
.detail-info-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mention-group-popover{width:320px}.mention-group-members{display:flex!important;flex-direction:column;gap:5px!important;margin-top:5px}.mention-group-member{display:flex!important;align-items:center;gap:7px!important}.mention-group-member img,.mention-group-member i{width:24px!important;height:24px!important;border-radius:7px!important;object-fit:cover}.mention-group-member i{display:grid;place-items:center;background:var(--primary2);font-style:normal}.mention-group-member em{font-style:normal;font-size:13px;color:var(--text)}

.slack-root-preview-text{white-space:pre-wrap}
.rich-template-title{min-height:48px!important;max-height:180px;white-space:pre-wrap;overflow:auto;line-height:1.55}

/* v0.21.1 title component visibility + rich Slack preview */
.slack-title-visibility-toggles{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.slack-root-preview-text{display:flex;align-items:center;flex-wrap:wrap;gap:0}
.slack-preview-gap{white-space:pre}.slack-preview-bracket{font-weight:750}.slack-preview-requester{margin:0 2px}
.template-title-visibility{display:flex;gap:14px;flex-wrap:wrap;margin:8px 0 10px}.template-title-visibility label{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-size:14px}.template-title-visibility input{width:15px;height:15px;accent-color:var(--primary)}

/* v0.22.0 title configuration + edit log */
.slack-title-config-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(420px,1.2fr);gap:12px;margin:10px 0}.slack-title-config-block{border:1px solid var(--border);border-radius:10px;padding:10px 12px}.slack-title-config-block>b{display:block;margin-bottom:8px}.slack-title-visibility-toggles{display:flex;flex-wrap:wrap;gap:10px 14px}.slack-title-visibility-toggles label{display:inline-flex;align-items:center;gap:6px}.detail-info-actions{display:flex;gap:6px;flex-wrap:wrap}.detail-edit-log-section{margin-top:24px}.edit-log-item{border:1px solid var(--border);border-radius:10px;margin:8px 0;overflow:hidden}.edit-log-item summary{display:flex;justify-content:space-between;gap:16px;padding:12px;cursor:pointer}.edit-log-diff{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 12px 12px}.edit-log-diff pre{white-space:pre-wrap;word-break:break-word;background:rgba(0,0,0,.16);padding:10px;border-radius:8px;max-height:280px;overflow:auto;font-size:12px}@media(max-width:900px){.slack-title-config-grid,.edit-log-diff{grid-template-columns:1fr}}

/* v0.23.0 request type-project mapping */
.request-type-admin-row-wrap{border-bottom:1px solid var(--line,#2d3340);}
.request-type-admin-row-wrap>.request-type-admin-row{border-bottom:0;}
.request-type-project-map{padding:10px 12px 14px 44px;}
.request-type-project-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;margin-top:10px;}
.request-type-project-options label{display:flex;align-items:center;gap:7px;min-width:0;padding:8px 10px;border:1px solid var(--line,#2d3340);border-radius:10px;}
.request-type-project-options span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:900px){.request-type-project-options{grid-template-columns:1fr 1fr;}}

/* v0.23.1 unified Slack title layout */
.slack-title-layout-block{margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface2)}
.slack-title-layout-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}.slack-title-layout-head>b{font-size:14px}.slack-title-layout-head>span{font-size:12px;color:var(--muted)}
.title-layout-row{gap:7px}.title-layout-chip{padding:3px 4px;border-radius:999px;transition:opacity .07s linear,filter .07s linear,transform .07s linear}.title-layout-chip.is-hidden{opacity:.42;filter:grayscale(.85);background:var(--surface2)}
.title-layout-toggle{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer;padding:1px 5px 1px 2px}.title-layout-check{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--primary2);color:var(--primary);font-size:11px}.title-layout-chip.is-hidden .title-layout-check{background:var(--surface);color:var(--muted)}
.title-layout-chip.is-hidden .title-order-buttons button{opacity:.45}.slack-root-preview-text br{line-height:1.7}
.template-title-order-section .title-layout-row{margin-top:10px}
@media(max-width:720px){.slack-title-layout-head{display:block}.slack-title-layout-head>span{display:block;margin-top:3px}.title-layout-row{gap:5px}.title-layout-chip{font-size:12px}}

/* v0.24.0 request classification <-> project mapping */
.classification-project-map-btn{white-space:nowrap}
.classification-project-picker{margin:10px 0 14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2,#151b27)}
.classification-project-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.classification-project-picker-head>div{display:flex;flex-direction:column;gap:4px}
.classification-project-picker-head span{font-size:13px;color:var(--muted)}
.classification-project-picker-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.classification-project-picker-groups section{padding:10px;border:1px solid var(--line);border-radius:10px}
.classification-project-picker-groups h4{margin:0 0 8px;font-size:14px}
.classification-project-picker-groups section>div{display:flex;flex-wrap:wrap;gap:7px}
.classification-project-option{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.classification-project-option input{margin:0}
.classification-project-option span{font-size:14px}
@media(max-width:900px){.classification-project-picker-groups{grid-template-columns:1fr}}
\n/* v0.24.3 mapping picker + template title preview */
.classification-project-picker-groups:empty::before{content:"등록된 프로젝트가 없습니다. 시스템 관리 > 프로젝트에서 먼저 프로젝트를 추가해 주세요.";display:block;color:var(--muted);padding:14px;border:1px dashed var(--line);border-radius:10px}
.classification-project-option{user-select:none}.classification-project-option:has(input:checked){border-color:var(--primary);background:var(--primary2)}
.template-slack-title-preview{margin:10px 0 14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.template-preview-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.template-preview-label b{font-size:14px}.template-slack-title-preview .slack-root-preview-text{min-height:42px;padding:9px 11px;background:var(--surface);border:1px solid var(--line);border-radius:9px;line-height:1.55}.template-requester-chip{vertical-align:middle}
@media(max-width:760px){.template-preview-label{align-items:flex-start;flex-direction:column;gap:3px}}

/* v0.25.0 dynamic request variables */
.inline-variable-chip{display:inline-flex;align-items:center;gap:6px;vertical-align:middle;max-width:100%;padding:2px 7px;border-radius:8px;border:1px solid color-mix(in srgb,var(--accent,#8b5cf6) 45%,transparent);background:color-mix(in srgb,var(--accent,#8b5cf6) 15%,transparent);color:var(--accent-text,#bca7ff);font-weight:700;white-space:nowrap;margin:0 2px;cursor:default}.inline-variable-chip small{font-size:11px;font-weight:600;opacity:.72;max-width:120px;overflow:hidden;text-overflow:ellipsis}.mention-avatar.variable{background:color-mix(in srgb,var(--accent,#8b5cf6) 20%,transparent);color:var(--accent-text,#bca7ff);font-weight:800}.inline-mention-option.variable-option b{color:var(--accent-text,#bca7ff)}.variable-help{margin:4px 0 8px}

/* v0.25.2 - Composer Slack title preview polish */
.slack-root-preview-card.compact.slack-root-preview-v252{
  display:block!important;
  margin:10px 0 14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.012));
}
.slack-preview-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.slack-preview-title{display:flex;align-items:center;gap:8px;min-width:0}
.slack-preview-title>b{font-size:15px;line-height:1.2;white-space:nowrap}
.slack-preview-title>span:last-child{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slack-preview-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 8px;border-radius:7px;background:var(--primary2);color:var(--primary);font-size:12px!important;font-weight:800;letter-spacing:.01em}
.slack-root-preview-v252 .slack-title-layout-block{margin:0 0 12px;padding:0;border:0;background:transparent}
.slack-root-preview-v252 .slack-title-layout-head{margin:0 0 8px;gap:8px}
.slack-root-preview-v252 .slack-title-layout-head>b{font-size:13px}
.slack-root-preview-v252 .slack-title-layout-head>span{font-size:12px}
.slack-root-preview-v252 .title-layout-row{gap:6px}
.slack-root-preview-v252 .title-layout-chip{min-height:30px;background:var(--surface2)}
.slack-root-preview-v252 .title-layout-chip:not(.is-hidden){border-color:color-mix(in srgb,var(--primary) 48%,var(--line));background:color-mix(in srgb,var(--primary) 10%,var(--surface2))}
.slack-preview-canvas{position:relative;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--surface);min-height:54px;display:flex;align-items:flex-start}
.slack-root-preview-v252 .slack-root-preview-text{padding:0!important;border:0!important;background:transparent!important;min-height:0!important;width:100%;font-size:15px!important;line-height:1.55!important;font-weight:700;align-items:flex-start}
.slack-root-preview-v252 .slack-auto-group-preview{margin:9px 0 0;padding:8px 2px 0;border-top:1px solid var(--line);font-size:12px!important;color:var(--muted)}
.template-slack-title-preview{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.018)}
.template-preview-label{margin-bottom:9px}
.template-slack-title-preview .slack-root-preview-text{background:var(--surface);min-height:48px;display:flex;align-items:flex-start;font-size:14px;line-height:1.55}
@media(max-width:720px){
  .slack-root-preview-card.compact.slack-root-preview-v252{padding:12px}
  .slack-preview-title{align-items:flex-start;flex-wrap:wrap}
  .slack-preview-title>span:last-child{width:100%;white-space:normal}
  .slack-preview-canvas{padding:11px 12px}
}

/* v0.25.5 template editor reliability + layout polish */
.template-admin-card{padding:16px!important}
.template-admin-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:2px 2px 14px;border-bottom:1px solid var(--line)}
.template-admin-intro>div>b{font-size:17px}.template-admin-intro p{margin:4px 0 0}.template-admin-intro>span{max-width:380px;text-align:right}
.template-settings{grid-template-columns:1fr!important;gap:14px!important;margin-top:14px!important}
.template-setting{padding:16px!important;background:var(--surface2)}
.template-setting-head{align-items:flex-start!important;margin-bottom:14px!important;padding-bottom:12px;border-bottom:1px solid var(--line)}
.template-setting-head>div{min-width:0}.template-setting-head>div>b{font-size:17px}.template-setting-head .meta{margin-top:4px;font-size:13px}
.template-save-btn{flex:0 0 auto!important;min-width:74px!important;white-space:nowrap!important;padding-inline:16px!important}
.template-title-section{margin-top:14px}.template-title-section>label,.template-blocks-head>label{font-size:15px!important}
.template-blocks-head{margin-top:18px;padding-top:4px}
.template-block-item{padding:12px!important;border-radius:11px!important}
.rich-template-editor{min-height:96px!important}.rich-template-title{min-height:48px!important}
.inline-variable-chip{user-select:none}
@media(max-width:760px){.template-admin-intro{flex-direction:column}.template-admin-intro>span{text-align:left;max-width:none}.template-setting{padding:12px!important}.template-setting-head{align-items:center!important}}

/* v0.26.1 department leader user variable */
.dept-leader-setting{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.dept-setting-label{font-size:13px;font-weight:800;color:var(--accent);min-width:42px}
.dept-leader-select{min-width:250px;max-width:380px;height:36px;font-size:14px}
.dept-leader-current{font-size:12px;border-radius:999px;padding:4px 8px;background:var(--surface-2);color:var(--muted)}
.dept-leader-current.set{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}
@media(max-width:760px){.dept-leader-select{min-width:180px;max-width:100%}}

/* v0.26.5 - explicit title line breaks must start at the left edge in Slack previews.
   Keep normal browser wrapping separate from user-entered <br> line breaks. */
.slack-root-preview-text{display:block!important;align-items:initial!important;flex-wrap:initial!important;text-align:left!important;white-space:pre-wrap!important}
.slack-root-preview-text .slack-preview-part,.slack-root-preview-text .slack-preview-gap,.slack-root-preview-text .slack-preview-bracket,.slack-root-preview-text .inline-mention-chip{display:inline}
.slack-root-preview-text br{display:block;content:"";margin:0}

/* v0.27.0 request type project policy */
.request-type-no-project{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;color:var(--muted);cursor:pointer}
.request-type-no-project input{margin:0}

/* v0.28.0 */
.inline-variable-chip.project-variable-chip{background:color-mix(in srgb,var(--confirm) 13%,var(--surface));border:1px solid color-mix(in srgb,var(--confirm) 32%,var(--line));color:var(--text)}
.inline-variable-chip.project-variable-chip>small{color:var(--confirm);opacity:.9}.inline-variable-chip.project-variable-chip.unresolved{opacity:.78}
.template-blocks-head>div{display:flex;align-items:baseline;gap:10px;min-width:0}.template-blocks-head>div>label{margin:0!important}
.template-block-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:86px;border:1px dashed var(--line);border-radius:11px;background:color-mix(in srgb,var(--surface2) 72%,transparent);color:var(--muted);text-align:center;padding:16px}.template-block-empty b{color:var(--text);font-size:14px}.template-block-empty span{font-size:13px}

/* v0.28.2 request type project policy UX */
.request-classification-section .request-type-admin-row{
  grid-template-columns:72px minmax(210px,1.1fr) minmax(250px,1.35fr) 138px 64px 72px!important;
  gap:10px!important;
  align-items:center!important;
}
.request-type-project-policy{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:132px;
  height:38px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
  user-select:none;
  transition:.15s ease;
}
.request-type-project-policy input{position:absolute;opacity:0;pointer-events:none}
.request-type-project-policy.is-select{color:var(--accent);background:rgba(124,92,255,.08);border-color:rgba(124,92,255,.28)}
.request-type-project-policy.is-none{color:var(--muted);background:var(--surface2)}
.request-type-project-policy:hover{filter:brightness(1.08)}
.request-type-save-state{text-align:center;white-space:nowrap;font-size:12px!important}
@media(max-width:1100px){
  .request-classification-section .request-type-admin-row{
    grid-template-columns:64px minmax(180px,1fr) minmax(210px,1fr) 128px 70px!important;
  }
  .request-classification-section .request-type-admin-row .request-type-save-state{display:none!important}
}
@media(max-width:800px){
  .request-classification-section .request-type-admin-row{
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:8px!important;
    padding:12px 0!important;
  }
  .request-classification-section .request-type-admin-row>input:nth-of-type(2),
  .request-classification-section .request-type-admin-row .request-type-project-policy,
  .request-classification-section .request-type-admin-row .danger{
    grid-column:2;
  }
  .request-type-project-policy{justify-self:start}
}

/* v0.28.4 request detail sidebar button/layout polish */
.request-detail-layout{
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:26px!important;
}
.detail-info-sticky{padding-left:20px!important}
.detail-info-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
  gap:10px!important;
  margin-bottom:14px!important;
  font-size:16px!important;
  line-height:1.25!important;
}
.detail-info-heading>span{white-space:nowrap}
.detail-info-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  width:100%!important;
}
.detail-info-actions .mini{
  width:100%!important;
  min-width:0!important;
  min-height:34px!important;
  padding:6px 9px!important;
  font-size:13px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
}
.detail-status-actions{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
}
.detail-status-actions button{
  min-width:0!important;
  min-height:38px!important;
  padding:0 7px!important;
  font-size:13.5px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.detail-status-box>small,.detail-info-item>small{font-size:12.5px!important}
.detail-info-item strong{font-size:15px!important}
.detail-info-sub{font-size:12.5px!important}
.detail-slack-action{min-height:40px!important;white-space:nowrap!important;font-size:14px!important}
@media(max-width:1180px) and (min-width:761px){
  .request-detail-layout{grid-template-columns:minmax(0,1fr) 280px!important;gap:20px!important}
  .detail-info-sticky{padding-left:16px!important}
  .detail-info-actions .mini{font-size:12.5px!important;padding-inline:7px!important}
  .detail-status-actions button{font-size:13px!important;padding-inline:5px!important}
}
@media(max-width:760px){
  .request-detail-layout{display:block!important}
  .detail-info-heading{grid-template-columns:minmax(0,1fr)!important}
  .detail-info-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .detail-status-actions button{font-size:13.5px!important}
}


/* ============================================================
   v0.29.0 CLASSIC RIBBON THEME PACK
   Inspired by the user-provided classic ribbon / fabric reference.
   Implemented with CSS gradients so no source artwork is redistributed.
   ============================================================ */
html[data-theme="classic_blue"],
html[data-theme="classic_brown"],
html[data-theme="classic_red"],
html[data-theme="classic_green"],
html[data-theme="classic_dark"],
html[data-theme="classic_yellow"]{
  --classic-fabric-light:rgba(255,255,255,.035);
  --classic-fabric-dark:rgba(0,0,0,.035);
  --classic-edge:rgba(255,255,255,.10);
  --accent:var(--theme-accent-2);
  --accent-text:var(--theme-accent-3);
}

html[data-theme="classic_blue"]{
  color-scheme:dark;
  --theme-accent-ink:#fffaf2;
  /* Neutral charcoal foundation. Blue is reserved for ribbon chrome and active states. */
  --theme-page:#15181b; --theme-page-top:#1d2126; --theme-page-bottom:#101214; --theme-glow:#263849;
  --theme-surface:#24282c; --theme-surface-soft:#2c3136; --theme-surface-strong:#1c2023; --theme-surface-hover:#353b41;
  --theme-text:#f6f1e8; --theme-text-2:#ddd8cf; --theme-muted:#aaaeb3;
  --theme-line:#3f464d; --theme-line-strong:#59636d;
  --theme-accent:#4f7fa9; --theme-accent-2:#6b96bb; --theme-accent-3:#9ab7d0; --theme-accent-soft:#263a4c;
  --theme-success:#65a681; --theme-success-soft:#2b4b3b; --theme-danger:#d66c65; --theme-danger-soft:#513335;
  --theme-warning:#d59a52; --theme-warning-soft:#4b3a29; --theme-shadow:0 18px 46px rgba(0,0,0,.38);
}
html[data-theme="classic_brown"]{
  color-scheme:dark;
  --theme-accent-ink:#1b120c;
  /* Neutral charcoal foundation. Bronze is reserved for ribbon chrome and active states. */
  --theme-page:#161514; --theme-page-top:#1e1c1a; --theme-page-bottom:#100f0e; --theme-glow:#33271f;
  --theme-surface:#252321; --theme-surface-soft:#2d2a27; --theme-surface-strong:#1c1a18; --theme-surface-hover:#37322e;
  --theme-text:#f5eee6; --theme-text-2:#d9d2ca; --theme-muted:#aaa29a;
  --theme-line:#433c37; --theme-line-strong:#5e534a;
  --theme-accent:#b97849; --theme-accent-2:#d29160; --theme-accent-3:#e6b48d; --theme-accent-soft:#3d2d23;
  --theme-success:#719f78; --theme-success-soft:#304238; --theme-danger:#c86b5e; --theme-danger-soft:#49302b;
  --theme-warning:#d29a4f; --theme-warning-soft:#493724; --theme-shadow:0 18px 48px rgba(0,0,0,.42);
}
html[data-theme="classic_red"]{
  color-scheme:dark;
  --theme-accent-ink:#fffaf4;
  /* Reference direction: charcoal UI first, burgundy/red only as signature chrome. */
  --theme-page:#171516; --theme-page-top:#201c1d; --theme-page-bottom:#100f10; --theme-glow:#3a2528;
  --theme-surface:#272324; --theme-surface-soft:#302a2b; --theme-surface-strong:#1d1a1b; --theme-surface-hover:#3a3234;
  --theme-text:#fff1e8; --theme-text-2:#dfd5d1; --theme-muted:#aaa0a0;
  --theme-line:#453b3d; --theme-line-strong:#625055;
  --theme-accent:#a94a54; --theme-accent-2:#c3626c; --theme-accent-3:#d99096; --theme-accent-soft:#44282d;
  --theme-success:#72a17c; --theme-success-soft:#35493a; --theme-danger:#e27670; --theme-danger-soft:#552c2d;
  --theme-warning:#d49a55; --theme-warning-soft:#4f3926; --theme-shadow:0 18px 48px rgba(0,0,0,.42);
}
html[data-theme="classic_green"]{
  color-scheme:dark;
  --theme-accent-ink:#111b15;
  /* Neutral charcoal foundation. Green is reserved for ribbon chrome and active states. */
  --theme-page:#151816; --theme-page-top:#1c211e; --theme-page-bottom:#101210; --theme-glow:#24372d;
  --theme-surface:#242824; --theme-surface-soft:#2c312d; --theme-surface-strong:#1c201d; --theme-surface-hover:#353b36;
  --theme-text:#f2f1e5; --theme-text-2:#d7d9d3; --theme-muted:#a6aba7;
  --theme-line:#3e4741; --theme-line-strong:#57635b;
  --theme-accent:#4f8a68; --theme-accent-2:#68a27e; --theme-accent-3:#94bea3; --theme-accent-soft:#293d31;
  --theme-success:#67ad7f; --theme-success-soft:#2f513c; --theme-danger:#d16c65; --theme-danger-soft:#503432;
  --theme-warning:#d1a057; --theme-warning-soft:#4b3c28; --theme-shadow:0 18px 46px rgba(0,0,0,.38);
}
html[data-theme="classic_dark"]{
  color-scheme:dark;
  --theme-accent-ink:#171513;
  --theme-page:#141413; --theme-page-top:#1b1b1a; --theme-page-bottom:#0e0e0d; --theme-glow:#2b2926;
  --theme-surface:#242321; --theme-surface-soft:#2c2a27; --theme-surface-strong:#1b1a19; --theme-surface-hover:#35332f;
  --theme-text:#f4efe5; --theme-text-2:#d7d0c5; --theme-muted:#a7a098;
  --theme-line:#3f3d39; --theme-line-strong:#59554e;
  --theme-accent:#85807a; --theme-accent-2:#9c958d; --theme-accent-3:#bbb1a5; --theme-accent-soft:#373532;
  --theme-success:#739b79; --theme-success-soft:#38473a; --theme-danger:#c56c66; --theme-danger-soft:#4d3331;
  --theme-warning:#c99b59; --theme-warning-soft:#4b3b28; --theme-shadow:0 18px 48px rgba(0,0,0,.44);
}
html[data-theme="classic_yellow"]{
  color-scheme:dark;
  --theme-accent-ink:#1b160b;
  /* Neutral charcoal foundation. Gold is reserved for ribbon chrome and active states. */
  --theme-page:#181714; --theme-page-top:#211f1a; --theme-page-bottom:#11100e; --theme-glow:#39331f;
  --theme-surface:#282621; --theme-surface-soft:#302d27; --theme-surface-strong:#1e1c19; --theme-surface-hover:#3a362d;
  --theme-text:#fff5d8; --theme-text-2:#ddd7c7; --theme-muted:#aaa594;
  --theme-line:#474238; --theme-line-strong:#635b49;
  --theme-accent:#b08b36; --theme-accent-2:#c9a34b; --theme-accent-3:#dfc27a; --theme-accent-soft:#403821;
  --theme-success:#779a71; --theme-success-soft:#394738; --theme-danger:#c76b5e; --theme-danger-soft:#4f332e;
  --theme-warning:#d1a541; --theme-warning-soft:#55431f; --theme-shadow:0 18px 46px rgba(0,0,0,.40);
}

/* Fabric texture, stitched edges and restrained ribbon accents */
html[data-theme^="classic_"] body{
  background-image:
    repeating-linear-gradient(0deg,var(--classic-fabric-light) 0 1px,transparent 1px 4px),
    repeating-linear-gradient(90deg,var(--classic-fabric-dark) 0 1px,transparent 1px 5px),
    radial-gradient(circle at 76% -10%,color-mix(in srgb,var(--theme-glow) 72%,transparent),transparent 30%),
    linear-gradient(180deg,var(--theme-page-top),var(--theme-page-bottom));
  background-attachment:fixed;
}
html[data-theme^="classic_"] .top,
html[data-theme^="classic_"] .side,
html[data-theme^="classic_"] .card,
html[data-theme^="classic_"] .login{
  background-image:
    linear-gradient(180deg,rgba(255,255,255,.018),rgba(0,0,0,.025)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.008) 0 1px,transparent 1px 4px);
  box-shadow:inset 0 1px 0 var(--classic-edge),var(--theme-shadow);
}
html[data-theme^="classic_"] .mark{
  /* Brand tile is intentionally theme-neutral. Keep the corporate mark clean on every theme. */
  background:#fff;
  border:1px solid rgba(17,24,39,.16);
  border-radius:9px;
  box-shadow:0 1px 2px rgba(0,0,0,.10);
}
html[data-theme^="classic_"] .navbtn.active{
  position:relative;
  color:var(--theme-accent-ink);
  background:linear-gradient(180deg,var(--theme-accent-2),var(--theme-accent));
  border-radius:4px 7px 7px 4px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.22);
  text-shadow:0 1px 1px rgba(0,0,0,.35);
}
html[data-theme^="classic_"] .navbtn.active .ico{filter:brightness(0) invert(1);opacity:.9}
html[data-theme^="classic_"] .primary{
  color:var(--theme-accent-ink);
  background:linear-gradient(180deg,var(--theme-accent-2),var(--theme-accent));
  border-color:color-mix(in srgb,var(--theme-accent) 75%,#000);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 3px 7px rgba(0,0,0,.18);
  text-shadow:0 1px 1px rgba(0,0,0,.28);
}
html[data-theme^="classic_"] .tab.active,
html[data-theme^="classic_"] .admin-tab.active{
  background:linear-gradient(180deg,var(--theme-accent-2),var(--theme-accent));
  color:var(--theme-accent-ink);
  border-color:var(--theme-accent-2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 2px 6px rgba(0,0,0,.18);
}
/* Contrast pass: keep controls readable even when palette hue is close to the surface. */
html[data-theme^="classic_"] .secondary{
  background:var(--theme-surface-soft);
  border-color:var(--theme-line-strong);
  color:var(--theme-text);
}
html[data-theme^="classic_"] .secondary:hover:not(:disabled),
html[data-theme^="classic_"] .composer-close:hover:not(:disabled),
html[data-theme^="classic_"] .title-order-buttons button:hover:not(:disabled){
  background:var(--theme-surface-hover);
  border-color:var(--theme-accent-2);
  color:var(--theme-accent-3);
}
html[data-theme^="classic_"] .link{color:var(--theme-accent-3)}
html[data-theme^="classic_"] button:disabled{opacity:.62}
html[data-theme^="classic_"] .composer-close{
  border:1px solid var(--theme-line-strong);
  background:var(--theme-surface-soft);
  color:var(--theme-text-2);
}
html[data-theme^="classic_"] .slack-root-preview-v252 .title-layout-chip:not(.is-hidden){
  border-color:color-mix(in srgb,var(--theme-accent-2) 68%,var(--theme-line));
  background:color-mix(in srgb,var(--theme-accent) 22%,var(--theme-surface-soft));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme^="classic_"] .title-layout-check{
  background:linear-gradient(180deg,var(--theme-accent-2),var(--theme-accent));
  color:var(--theme-accent-ink);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--theme-accent-2) 58%,transparent);
}
html[data-theme^="classic_"] .title-layout-chip.is-hidden{
  opacity:.62;
  filter:saturate(.35);
  background:var(--theme-surface-strong);
  border-color:var(--theme-line-strong);
}
html[data-theme^="classic_"] .title-layout-chip.is-hidden .title-layout-toggle{color:var(--theme-muted)}
html[data-theme^="classic_"] .title-order-buttons button{
  background:var(--theme-surface-strong);
  color:var(--theme-text-2);
  box-shadow:inset 0 0 0 1px var(--theme-line-strong);
}
html[data-theme^="classic_"] .inline-mention-chip{
  background:color-mix(in srgb,var(--theme-accent) 22%,var(--theme-surface-strong));
  border:1px solid color-mix(in srgb,var(--theme-accent-2) 62%,var(--theme-line));
  color:var(--theme-text);
}
html[data-theme^="classic_"] .inline-mention-chip small{
  color:var(--theme-accent-3);
  opacity:1;
}
html[data-theme^="classic_"] .inline-mention-chip.usergroup{
  background:color-mix(in srgb,var(--theme-warning) 21%,var(--theme-surface-strong));
  border-color:color-mix(in srgb,var(--theme-warning) 60%,var(--theme-line));
  color:var(--theme-text);
}
html[data-theme^="classic_"] .inline-mention-chip.usergroup small{
  color:color-mix(in srgb,var(--theme-warning) 72%,#fff 28%);
  opacity:1;
}
html[data-theme^="classic_"] .inline-variable-chip{
  border-color:color-mix(in srgb,var(--theme-accent-2) 66%,var(--theme-line));
  background:color-mix(in srgb,var(--theme-accent) 24%,var(--theme-surface-strong));
  color:var(--theme-accent-3);
}
html[data-theme^="classic_"] .inline-variable-chip small{color:var(--theme-text-2);opacity:.95}
html[data-theme^="classic_"] .inline-variable-chip.project-variable-chip{
  background:color-mix(in srgb,var(--theme-warning) 20%,var(--theme-surface-strong));
  border-color:color-mix(in srgb,var(--theme-warning) 58%,var(--theme-line));
  color:var(--theme-text);
}
html[data-theme^="classic_"] .inline-variable-chip.project-variable-chip>small{
  color:color-mix(in srgb,var(--theme-warning) 72%,#fff 28%);
  opacity:1;
}
html[data-theme^="classic_"] .slack-preview-badge{
  background:color-mix(in srgb,var(--theme-accent) 26%,var(--theme-surface-strong));
  border:1px solid color-mix(in srgb,var(--theme-accent-2) 58%,var(--theme-line));
  color:var(--theme-accent-3);
}
html[data-theme^="classic_"] .filter-chip,
html[data-theme^="classic_"] .bulk-actions button,
html[data-theme^="classic_"] .detail-status-actions button{
  border-color:var(--theme-line-strong);
}
html[data-theme^="classic_"] .filter-chip:hover,
html[data-theme^="classic_"] .bulk-actions button:hover,
html[data-theme^="classic_"] .detail-status-actions button:hover{
  border-color:var(--theme-accent-2);
  color:var(--theme-accent-3);
  background:var(--theme-surface-hover);
}

/* v0.29.2: semantic chips stay distinguishable from the theme chrome. */
html[data-theme^="classic_"] .inline-mention-chip:not(.usergroup):not(.inline-variable-chip){
  background:color-mix(in srgb,#4f8ee8 20%,var(--theme-surface-strong));
  border-color:color-mix(in srgb,#6ca5f2 62%,var(--theme-line));
  color:#dbeaff;
}
html[data-theme^="classic_"] .inline-mention-chip:not(.usergroup):not(.inline-variable-chip)>small{color:#9fc5ff}
html[data-theme^="classic_"] .inline-mention-chip.usergroup:not(.project-variable-chip){
  background:color-mix(in srgb,#d59a52 20%,var(--theme-surface-strong));
  border-color:color-mix(in srgb,#e3ad67 60%,var(--theme-line));
  color:#fff0d8;
}
html[data-theme^="classic_"] .inline-mention-chip.usergroup:not(.project-variable-chip)>small{color:#efbe7c}
html[data-theme^="classic_"] .inline-variable-chip:not(.project-variable-chip){
  background:color-mix(in srgb,#8b5cf6 21%,var(--theme-surface-strong));
  border-color:color-mix(in srgb,#a78bfa 62%,var(--theme-line));
  color:#d8c8ff;
}
html[data-theme^="classic_"] .inline-variable-chip:not(.project-variable-chip)>small{color:#bca7ff}

/* Brown is intentionally neutral in large areas; bronze is reserved for actions and selection. */
html[data-theme="classic_brown"] .request-composer{
  background:var(--theme-surface);
  border-color:var(--theme-line-strong);
  box-shadow:0 14px 38px rgba(0,0,0,.34);
}
html[data-theme="classic_brown"] .composer-head,
html[data-theme="classic_brown"] .composer-footer{background:#211d1a}
html[data-theme="classic_brown"] .composer-scroll{background:var(--theme-surface)}
html[data-theme="classic_brown"] .composer-project-summary,
html[data-theme="classic_brown"] .slack-root-preview-card.compact.slack-root-preview-v252,
html[data-theme="classic_brown"] .editorblock{
  background:var(--theme-surface-soft);
  border-color:var(--theme-line);
}
html[data-theme="classic_brown"] .input,
html[data-theme="classic_brown"] .select,
html[data-theme="classic_brown"] textarea,
html[data-theme="classic_brown"] .rich-text-editor,
html[data-theme="classic_brown"] .rich-template-editor,
html[data-theme="classic_brown"] .slack-preview-canvas{
  background:var(--theme-surface-strong);
  border-color:var(--theme-line);
}
html[data-theme="classic_brown"] .primary{
  background:linear-gradient(180deg,#e09a67,#b96f3f);
  border-color:#e0a174;
  color:#1b1009;
  box-shadow:none;
  text-shadow:none;
}
html[data-theme="classic_brown"] .secondary{
  background:#2a2420;
  border-color:#5a493d;
  color:var(--theme-text-2);
}
html[data-theme="classic_brown"] .secondary:hover:not(:disabled){
  background:#352c26;
  border-color:var(--theme-accent-2);
  color:var(--theme-text);
}
html[data-theme^="classic_"] .badge,
html[data-theme^="classic_"] .role{
  border-radius:4px;
}
html[data-theme^="classic_"] .table thead th{
  background:color-mix(in srgb,var(--theme-surface-soft) 82%,#000 18%);
  box-shadow:inset 0 -1px 0 var(--theme-line-strong);
}
html[data-theme^="classic_"] .theme-palette.active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 0 0 2px color-mix(in srgb,var(--theme-accent) 30%,transparent);
}
.theme-preview-classic_blue{background:linear-gradient(90deg,#6b96bb 0 28%,transparent 28%),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),linear-gradient(135deg,#171717,#2a2927)}
.theme-preview-classic_brown{background:linear-gradient(90deg,#d29160 0 28%,transparent 28%),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),linear-gradient(135deg,#171717,#2a2927)}
.theme-preview-classic_red{background:linear-gradient(90deg,#c3626c 0 28%,transparent 28%),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),linear-gradient(135deg,#171717,#2a2927)}
.theme-preview-classic_green{background:linear-gradient(90deg,#68a27e 0 28%,transparent 28%),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),linear-gradient(135deg,#171717,#2a2927)}
.theme-preview-classic_dark{background:linear-gradient(90deg,#9c958d 0 28%,transparent 28%),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),linear-gradient(135deg,#171717,#2a2927)}
.theme-preview-classic_yellow{background:linear-gradient(90deg,#c9a34b 0 28%,transparent 28%),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 4px),linear-gradient(135deg,#171717,#2a2927)}



/* v0.30.6 - responsive mobile dashboard */
.dashboard-mobile-list{display:none}
@media(max-width:899px){
  html,body,#app,.shell{max-width:100%;overflow-x:hidden}
  .layout{padding-bottom:calc(122px + env(safe-area-inset-bottom))}
  .main{width:100%;max-width:100%;min-width:0}
  .main h1{font-size:23px;line-height:1.22}
  .sectionhead{margin:22px 0 8px}
  .sectionhead h2{font-size:16px}
  .dashboard-desktop-table{display:none!important}
  .dashboard-mobile-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%}
  .request-list-card{padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
  .dashboard-mobile-card{
    width:100%;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);
    color:var(--text);padding:12px;text-align:left;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:7px;
  }
  .dashboard-mobile-card:active{background:var(--surface2)}
  .dashboard-mobile-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
  .dashboard-mobile-card-top .badge{flex:0 0 auto}
  .dashboard-mobile-request-no{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10.5px;font-weight:600}
  .dashboard-mobile-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;line-height:1.3}
  .dashboard-mobile-customer{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
  .dashboard-mobile-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;min-width:0;margin-top:1px}
  .dashboard-mobile-meta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10.5px}
  .dashboard-mobile-footer time{flex:0 0 auto;color:var(--muted);font-size:10px;white-space:nowrap}
  .dashboard-empty-compact{min-height:58px!important;padding:14px 16px!important;border:1px solid var(--line);border-radius:14px;background:var(--surface);display:flex!important;align-items:center;justify-content:center;color:var(--muted)}
  .dashboard-empty-ok{gap:6px;color:var(--muted)}
  .dashboard-empty-ok>span{color:var(--done);font-weight:900}
  .mobileNav{box-shadow:0 -8px 22px rgba(0,0,0,.08)}
}
@media(max-width:599px){
  .dashboard-mobile-list{grid-template-columns:1fr}
  .dashboard-mobile-card{padding:12px 13px}
}
@media(max-width:360px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid .metric:last-child{grid-column:1/-1}
  .metric{min-height:82px}
}

/* v0.29.3: collision-safe mention popovers and composer suggestion menus */
.mention-profile-popover.viewport-positioned{
  position:fixed!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  z-index:260!important;
  max-height:min(70vh,520px);
  overflow:auto;
  box-sizing:border-box;
}
.mention-group-popover.viewport-positioned{width:min(320px,calc(100vw - 24px))}
.mention-profile-popover.viewport-positioned .mention-profile-copy{min-width:0}
.mention-profile-popover.viewport-positioned .mention-profile-copy span,
.mention-profile-popover.viewport-positioned .mention-profile-copy small{overflow-wrap:anywhere}
.rich-request-wrap{isolation:isolate}
.rich-request-wrap .inline-mention-menu{z-index:220}
.rich-request-wrap .inline-mention-menu.flip-up{top:auto!important;bottom:calc(100% + 4px)!important}
@media(max-width:760px){
  .mention-profile-popover.viewport-positioned{width:min(300px,calc(100vw - 24px))!important;max-height:60vh}
  .mention-group-popover.viewport-positioned{width:min(320px,calc(100vw - 24px))!important}
}


/* v0.29.4: faster request-composer interaction feedback */
.request-composer .project-none-card,
.request-composer .composer-close,
.request-composer .composer-change-project,
.request-composer .composer-footer button,
.request-composer .inline-mention-option,
.request-composer .title-order-buttons button{
  transition:background-color .06s linear,border-color .06s linear,color .06s linear,opacity .06s linear,box-shadow .06s linear!important;
}
.request-composer .typecard:active,
.request-composer .project-card:active,
.request-composer .project-none-card:active,
.request-composer button:active{transform:none!important;}
@media (prefers-reduced-motion: reduce){
  .request-composer *,
  .request-composer *::before,
  .request-composer *::after{transition-duration:.01ms!important;animation-duration:.01ms!important;}
}

/* v0.29.5 request worklist pagination */
.request-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 4px 4px;margin-top:8px}
.request-page-summary{font-size:12.5px;color:var(--muted);white-space:nowrap}
.request-page-buttons{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.page-btn{min-width:34px;height:34px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:border-color 70ms ease,background 70ms ease,color 70ms ease,transform 70ms ease}
.page-btn:hover:not(:disabled):not(.active){border-color:color-mix(in srgb,var(--primary) 55%,var(--line));background:var(--surface2);color:var(--primary)}
.page-btn.active{border-color:var(--primary);background:var(--primary);color:#fff;cursor:default}
.page-btn:disabled{opacity:.38;cursor:not-allowed}
.page-btn.page-nav{font-size:20px;line-height:1;padding-bottom:2px}
.page-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:22px;color:var(--muted);font-size:13px}
@media(max-width:760px){.request-pagination{align-items:flex-start;flex-direction:column}.request-page-buttons{width:100%;justify-content:center;overflow-x:auto;padding-bottom:3px}.request-page-summary{width:100%;text-align:center}.page-btn{flex:0 0 auto}}


/* v0.29.6: instant request-composer hover/selection feedback
   Composer interactions are deliberately transition-free so pointer feedback
   is painted on the same frame instead of easing over 60-150ms. */
.request-composer .typecard,
.request-composer .project-card,
.request-composer .project-none-card,
.request-composer .composer-close,
.request-composer .composer-change-project,
.request-composer .composer-footer button,
.request-composer .title-layout-chip,
.request-composer .title-order-buttons button,
.request-composer .inline-mention-chip,
.request-composer .inline-variable-chip,
.request-composer .inline-mention-option,
.request-composer .customer-chip,
.request-composer button {
  transition:none!important;
}
.request-composer .typecard:hover,
.request-composer .project-card:hover,
.request-composer .project-none-card:hover,
.request-composer button:hover {
  transition:none!important;
}
/* Avoid expensive animated paint effects on the two high-frequency selection screens. */
.request-composer>.typegrid .typecard,
.request-composer .type-classification-stack .typecard,
.request-composer>.project-groups .project-card {
  will-change:auto!important;
}

/* v0.30.1 - Request composer drag and drop attachments */
.composer-file-dropzone{
  position:relative;
  border:1px solid transparent;
  border-radius:14px;
  padding:6px;
  margin:-6px;
  transition:border-color .08s ease,background-color .08s ease;
}
.composer-file-drop-hint{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:0;
  max-height:0;
  overflow:hidden;
  opacity:0;
  color:var(--muted);
  font-size:12.5px;
  pointer-events:none;
  transition:max-height .08s ease,opacity .08s ease,margin .08s ease,padding .08s ease;
}
.composer-file-drop-hint b{color:var(--primary);font-size:13px}
.composer-file-dropzone.drag-active{
  border-color:var(--primary);
  background:color-mix(in srgb,var(--primary) 10%,transparent);
}
.composer-file-dropzone.drag-active .composer-file-drop-hint{
  max-height:46px;
  opacity:1;
  margin:0 0 7px;
  padding:8px 10px;
  border:1px dashed color-mix(in srgb,var(--primary) 68%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--primary) 8%,var(--surface));
}
.composer-file-dropzone.drag-active .blockeditor{pointer-events:none}
@media(max-width:760px){
  .composer-file-dropzone{padding:4px;margin:-4px}
}

/* v0.30.7 - adaptive mobile dashboard + mobile worklist */
.request-mobile-list{display:none}
@media (min-width:600px) and (max-width:899px){
  .dashboard-mobile-list.single{grid-template-columns:1fr}
  .dashboard-mobile-list.single .dashboard-mobile-card{min-height:112px}
}
@media(max-width:899px){
  .dashboard-mobile-title,
  .dashboard-mobile-customer{max-width:100%}

  /* Requests/work tab becomes a touch-first card list instead of a wide desktop table. */
  .request-desktop-list{display:none!important}
  .request-mobile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
  .request-mobile-list.single{grid-template-columns:1fr}
  .request-list-card:has(.request-mobile-list){background:transparent;border:0;box-shadow:none;overflow:visible}
  .request-mobile-card{
    min-width:0;display:flex;flex-direction:column;gap:7px;padding:12px 13px;
    border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);
    box-shadow:var(--shadow);cursor:pointer;text-align:left;overflow:visible;
  }
  .request-mobile-card:active{background:var(--surface2)}
  .request-mobile-card.selected{border-color:color-mix(in srgb,var(--primary) 70%,var(--line));box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent)}
  .request-mobile-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
  .request-mobile-card-status{min-width:0}
  .request-mobile-card .request-status-pill{height:28px;padding:0 9px;font-size:11.5px}
  .request-mobile-select{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border:1px solid var(--line);border-radius:9px;background:var(--surface2);cursor:pointer}
  .request-mobile-select input{width:15px;height:15px;margin:0;accent-color:var(--primary)}
  .request-mobile-no{font-size:10.5px;color:var(--muted);font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .request-mobile-title{display:block;min-width:0;max-width:100%;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .request-mobile-customer{min-width:0;max-width:100%;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .request-mobile-meta{min-width:0;max-width:100%;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .request-mobile-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;color:var(--muted);font-size:10.5px}
  .request-mobile-card-foot time,.request-mobile-attach{white-space:nowrap}

  /* Filters wrap naturally up to fold width. */
  .request-filter-panel{padding:11px}
  .request-toolbar{grid-template-columns:1fr 1fr}
  .request-toolbar .request-search{grid-column:1/-1}
  .date-filter-row{gap:6px;font-size:12.5px}
  .date-filter-row .date-input{width:116px;min-width:116px}
  .request-result-bar{align-items:flex-start;flex-direction:column;padding:4px 0 8px}
  .bulk-actions{width:100%;overflow-x:auto;padding-bottom:2px}
  .check-combo{min-width:0;flex:1}
  .check-combo-menu{max-width:calc(100vw - 16px)}
  .request-pagination{align-items:flex-start;flex-direction:column}
  .request-page-buttons{width:100%;justify-content:center;overflow-x:auto;padding-bottom:3px}
  .request-page-summary{width:100%;text-align:center}
  .page-btn{flex:0 0 auto}
}
@media(max-width:599px){
  .request-mobile-list{grid-template-columns:1fr}
  .request-toolbar{grid-template-columns:1fr}
  .request-toolbar .request-search{grid-column:auto}
  .date-filter-row{display:grid;grid-template-columns:auto repeat(4,auto);justify-content:start;overflow:visible}
  .date-filter-row .filter-label{grid-column:1/-1}
  .date-filter-row .date-input{width:100%;min-width:0}
  .date-filter-row .date-input:first-of-type{grid-column:1/3}
  .date-range-sep{align-self:center;text-align:center}
  .date-filter-row .date-input:last-of-type{grid-column:4/6}
  .date-filter-row .link{grid-column:1/-1;justify-self:start}
}


/* v0.30.9 - mobile request control alignment + compact filter polish */
.request-mobile-filter-toggle{display:none}
.request-filter-combo{min-width:0}
.request-filter-combo>.check-combo{width:100%}
.request-period-presets{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.request-custom-dates{display:flex;align-items:center;gap:8px}
.check-col input{display:block;margin:auto}

@media(max-width:899px){
  /* Five equal bottom-nav destinations. New request is a first-class centre action. */
  .layout{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .fab{display:none!important}
  .mobileNav{grid-template-columns:repeat(5,minmax(0,1fr));min-height:58px}
  .mobileNav button{width:100%;min-width:0}
  .mobileNav .mobile-create-nav{color:var(--primary);font-weight:800;gap:2px}
  .mobile-create-icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;border:1px solid color-mix(in srgb,var(--primary) 76%,#fff);box-shadow:0 5px 14px color-mix(in srgb,var(--primary) 24%,transparent)}
  .mobile-create-icon .ico{width:17px!important;height:17px!important}

  /* Same-level scope buttons always share the available width equally. */
  .request-scope-tabs{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:7px;width:100%}
  .request-scope-tabs .tab{width:100%;min-width:0;justify-content:center;text-align:center;margin:0}

  /* Compact request heading and refresh control. */
  .request-sectionhead{align-items:flex-start}
  .request-sectionhead>.secondary:has(.ico-refresh){width:40px;min-width:40px;height:40px;padding:0;font-size:0;display:grid;place-items:center;border-radius:10px}
  .request-sectionhead>.secondary:has(.ico-refresh) .ico{width:18px;height:18px;margin:0;place-self:center}

  /* Search stays visible. Advanced controls stay folded until requested. */
  .request-filter-panel{padding:10px}
  .request-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto!important;gap:8px}
  .request-toolbar .request-search{grid-column:auto!important;min-width:0}
  .request-mobile-filter-toggle{display:flex;align-items:center;justify-content:center;gap:6px;min-width:78px;height:42px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--text);font:inherit;font-size:12.5px;font-weight:750}
  .request-mobile-filter-toggle.active{border-color:color-mix(in srgb,var(--primary) 65%,var(--line));color:var(--primary);background:var(--primary2)}
  .request-mobile-filter-caret{font-size:9px;opacity:.8}
  .request-filter-combo{display:none}
  .request-filter-panel .date-filter-row{display:none}
  .request-filter-panel.mobile-filter-open .request-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .request-filter-panel.mobile-filter-open .request-search{grid-column:1/-1!important}
  .request-filter-panel.mobile-filter-open .request-mobile-filter-toggle{grid-column:1/-1;justify-self:end;width:78px}
  .request-filter-panel.mobile-filter-open .request-filter-combo{display:block;grid-column:auto;min-width:0}
  .request-filter-panel.mobile-filter-open .request-filter-combo:nth-of-type(1){grid-column:1/2}
  .request-filter-panel.mobile-filter-open .request-filter-combo:nth-of-type(2){grid-column:2/3}
  .request-filter-panel.mobile-filter-open .date-filter-row{display:grid}
  .request-filter-combo .check-combo,.request-filter-combo .check-combo-trigger{width:100%;min-width:0}
  .request-filter-combo .check-combo-trigger{justify-content:center;text-align:center}

  /* Checkbox box and native checkbox share the exact centre. */
  .request-mobile-select{width:40px;height:40px;flex:0 0 40px;padding:0;display:grid!important;place-items:center!important;border-radius:10px}
  .request-mobile-select input{
    -webkit-appearance:none!important;appearance:none!important;
    display:grid!important;place-content:center!important;place-self:center!important;
    width:16px!important;height:16px!important;margin:0!important;padding:0!important;
    border:1px solid color-mix(in srgb,var(--text) 34%,var(--line));border-radius:4px;
    background:color-mix(in srgb,var(--surface) 82%,transparent);cursor:pointer;
  }
  .request-mobile-select input::before{
    content:"";width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;
    transform:translateY(-1px) rotate(45deg) scale(0);transform-origin:center;
  }
  .request-mobile-select input:checked{background:var(--primary);border-color:var(--primary)}
  .request-mobile-select input:checked::before{transform:translateY(-1px) rotate(45deg) scale(1)}

  /* Equal-width period preset controls and aligned date controls. */
  .date-filter-row{grid-template-columns:1fr!important;gap:8px!important;align-items:stretch!important}
  .date-filter-row .filter-label{width:auto!important;grid-column:auto!important;margin:0}
  .request-period-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}
  .request-period-presets .filter-chip{width:100%;min-width:0;padding:0 4px}
  .request-custom-dates{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:6px;width:100%}
  .request-custom-dates .date-input{width:100%!important;min-width:0!important;text-align:center}
  .request-custom-dates .date-range-sep{display:grid;place-items:center}
  .request-period-reset{justify-self:start}

}

@media(min-width:600px) and (max-width:899px){
  /* Fold/wide single dashboard card uses the extra width instead of leaving all metadata on the left. */
  .dashboard-mobile-list.single .dashboard-mobile-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,34%);grid-template-areas:"top top" "title footer" "customer footer";column-gap:18px;row-gap:6px;align-items:center}
  .dashboard-mobile-list.single .dashboard-mobile-card-top{grid-area:top}
  .dashboard-mobile-list.single .dashboard-mobile-title{grid-area:title}
  .dashboard-mobile-list.single .dashboard-mobile-customer{grid-area:customer}
  .dashboard-mobile-list.single .dashboard-mobile-footer{grid-area:footer;align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;gap:5px;min-width:0;margin:0;text-align:right}
  .dashboard-mobile-list.single .dashboard-mobile-meta{width:100%;text-align:right}
}

@media(max-width:599px){
  .request-toolbar{grid-template-columns:minmax(0,1fr) 78px!important}
}

@media(max-width:380px){
  .request-custom-dates{grid-template-columns:1fr!important}
  .request-custom-dates .date-range-sep{height:12px}
  .request-custom-dates .date-input{font-size:12px;letter-spacing:0}
}
/* v0.31.0 - mobile request list final control polish */
.request-period-head{display:contents}

@media(max-width:899px){
  /* Period label and reset are one compact heading row. */
  .request-period-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
  .request-period-head .filter-label{margin:0!important;width:auto!important}
  .request-period-reset{justify-self:auto!important;min-height:28px;padding:0 2px}

  /* Normalize the visual centre of the two 40px utility controls. */
  .request-sectionhead>.secondary:has(.ico-refresh) .ico{width:17px;height:17px;transform:translateY(1px)}
  .request-mobile-select input{transform:translateY(0)}
}

@media(max-width:599px){
  /* Phone: give both direct-date fields their full width. */
  .request-custom-dates{grid-template-columns:1fr!important;gap:4px!important}
  .request-custom-dates .date-input{width:100%!important;min-width:0!important;height:38px}
  .request-custom-dates .date-range-sep{height:12px;line-height:12px}
}


/* v0.31.1 - equal mobile date widths + true utility-control centering */
@media(max-width:899px){
  /* Both utility controls use the same square hit target and a single centered visual child. */
  .request-sectionhead>.secondary:has(.ico-refresh),
  .request-mobile-select{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    line-height:0!important;
  }
  .request-sectionhead>.secondary:has(.ico-refresh) .ico-refresh{
    display:block!important;
    width:16px!important;
    height:16px!important;
    margin:0!important;
    transform:translateY(.5px)!important;
    place-self:center!important;
  }
  /* Legacy empty marker created a second grid item and shifted the checkbox off center. */
  .request-mobile-select>span{display:none!important}
  .request-mobile-select input{
    place-self:center!important;
    margin:0!important;
    transform:none!important;
  }
}

@media(min-width:361px) and (max-width:599px){
  /* Phone: start/end are true peers: 1fr | fixed separator | 1fr. */
  .request-custom-dates{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)!important;
    gap:6px!important;
    width:100%!important;
    align-items:center!important;
  }
  .request-custom-dates .date-input{
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    box-sizing:border-box!important;
  }
  .request-custom-dates .date-range-sep{
    width:20px!important;
    height:38px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    padding:0!important;
  }
}

@media(max-width:360px){
  /* Ultra-narrow phones: keep both fields equal by stacking them full-width. */
  .request-custom-dates{grid-template-columns:1fr!important;gap:4px!important}
  .request-custom-dates .date-input{width:100%!important;min-width:0!important;height:38px!important}
  .request-custom-dates .date-range-sep{width:100%!important;height:12px!important;line-height:12px!important}
}


/* v0.31.2 - hard reset of mobile date tracks + utility icon optical centering */
@media(max-width:899px){
  .request-sectionhead>.secondary:has(.ico-refresh),
  .request-mobile-select{
    position:relative!important;
    width:40px!important;min-width:40px!important;max-width:40px!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;
    padding:0!important;display:grid!important;place-items:center!important;
    box-sizing:border-box!important;line-height:0!important;
  }
  .request-sectionhead>.secondary:has(.ico-refresh) .ico-refresh{
    position:absolute!important;left:50%!important;top:50%!important;
    width:16px!important;height:16px!important;margin:0!important;
    transform:translate(-50%,-50%)!important;
  }
  .request-mobile-select input{
    position:absolute!important;width:1px!important;height:1px!important;
    margin:0!important;padding:0!important;opacity:0!important;pointer-events:none!important;
  }
  .request-mobile-select::before{
    content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;box-sizing:border-box;
    border:1px solid color-mix(in srgb,var(--text) 34%,var(--line));border-radius:4px;
    background:color-mix(in srgb,var(--surface) 82%,transparent);transform:translate(-50%,-50%);
  }
  .request-mobile-select:has(input:checked)::before{background:var(--primary);border-color:var(--primary)}
  .request-mobile-select::after{
    content:"";position:absolute;left:50%;top:50%;width:4px;height:8px;border:solid #fff;
    border-width:0 2px 2px 0;opacity:0;transform:translate(-50%,-58%) rotate(45deg);
  }
  .request-mobile-select:has(input:checked)::after{opacity:1}

  .request-custom-dates .date-input,
  .request-custom-dates .date-input:first-of-type,
  .request-custom-dates .date-input:last-of-type{
    grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;
    max-width:none!important;flex:initial!important;box-sizing:border-box!important;
  }
  .request-custom-dates .date-range-sep{
    grid-column:auto!important;grid-row:auto!important;min-width:0!important;max-width:none!important;
  }
}
@media(min-width:361px) and (max-width:599px){
  .request-custom-dates{
    display:grid!important;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)!important;
    grid-auto-columns:unset!important;gap:6px!important;width:100%!important;min-width:0!important;align-items:center!important;
  }
  .request-custom-dates .date-input:first-of-type{grid-column:1!important}
  .request-custom-dates .date-range-sep{grid-column:2!important;width:20px!important;height:38px!important;display:grid!important;place-items:center!important}
  .request-custom-dates .date-input:last-of-type{grid-column:3!important}
}

/* v0.31.3 - mobile request detail layout */
.detail-mobile-title-row,
.detail-mobile-status,
.detail-mobile-meta,
.detail-mobile-actions,
.detail-mobile-status-actions{display:none}

@media(max-width:899px){
  .request-detail-layout{
    display:block!important;
    padding-bottom:12px;
  }
  .detail-workspace{max-width:none!important;min-width:0}
  .detail-back{
    min-height:40px;
    margin:0 0 12px!important;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:13px!important;
  }
  .detail-title-area{
    padding:0 0 16px!important;
    border-bottom:0!important;
  }
  .detail-mobile-title-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:7px;
  }
  .detail-request-no{
    margin:0!important;
    min-width:0;
    font-size:11px!important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .detail-mobile-status{display:block;flex:0 0 auto}
  .detail-mobile-status .badge{min-height:28px!important;padding:0 9px!important;font-size:11.5px!important}
  .detail-title-area h1{
    margin:0!important;
    font-size:22px!important;
    line-height:1.32!important;
    letter-spacing:-.025em!important;
    overflow-wrap:anywhere;
  }
  .detail-mobile-meta{
    display:flex;
    flex-wrap:wrap;
    gap:5px 12px;
    margin-top:9px;
    color:var(--muted);
    font-size:12px;
    line-height:1.35;
  }
  .detail-mobile-meta span{position:relative;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .detail-mobile-meta span+span:before{content:"·";position:absolute;left:-8px;color:var(--muted)}
  .detail-mobile-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:14px;
  }
  .detail-mobile-actions:has(>button:only-child){grid-template-columns:1fr}
  .detail-mobile-actions button{width:100%;min-width:0;min-height:42px;margin:0;font-size:13px!important}
  .detail-mobile-status-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
    padding:10px;
    margin-top:10px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface);
  }
  .detail-mobile-status-actions button{
    min-width:0;
    min-height:38px;
    padding:0 6px;
    border:1px solid var(--line);
    border-radius:9px;
    background:var(--surface2);
    color:var(--muted);
    font-size:12.5px;
    font-weight:750;
  }
  .detail-mobile-status-actions button.active,
  .detail-mobile-status-actions button:hover{
    color:var(--primary);
    border-color:color-mix(in srgb,var(--primary) 65%,var(--line));
    background:var(--primary2);
  }
  .detail-body-section{
    margin-top:4px;
    padding:14px!important;
    border:1px solid var(--line)!important;
    border-radius:14px;
    background:var(--surface);
  }
  .detail-section-heading{margin-bottom:10px!important;font-size:12px!important}
  .detail-blocks-flat{gap:14px!important;font-size:14px!important;line-height:1.65!important}
  .detail-blocks-flat .detail-text-block{font-size:14px!important;line-height:1.65!important;overflow-wrap:anywhere}
  .detail-blocks-flat .detail-image{border-radius:10px!important}
  .detail-history-panel,
  .detail-edit-log-section{
    margin-top:12px!important;
    padding:0 13px 12px;
    border:1px solid var(--line)!important;
    border-radius:13px;
    background:var(--surface);
  }
  .detail-history-panel summary{padding:12px 0!important;border-bottom:0!important;font-size:13px!important}
  .detail-history-panel[open] summary{border-bottom:1px solid var(--line)!important}
  .detail-history-panel .timeline{margin-top:10px!important}
  .detail-edit-log-section>.detail-section-heading{padding-top:12px;margin-bottom:8px!important}
  .edit-log-item{margin:7px 0!important}
  .edit-log-item summary{padding:10px!important;gap:8px!important;align-items:flex-start}
  .edit-log-item summary b{font-size:12.5px;line-height:1.35}
  .edit-log-item summary span{font-size:11px;white-space:nowrap;color:var(--muted)}
  .edit-log-diff{grid-template-columns:1fr!important;padding:0 10px 10px!important}
  .edit-log-diff pre{max-height:180px!important;font-size:11px!important}
  .detail-info-panel{
    margin-top:12px!important;
    padding:0!important;
    border-top:0!important;
  }
  .detail-info-sticky{
    position:static!important;
    max-height:none!important;
    overflow:visible!important;
    padding:14px!important;
    border:1px solid var(--line)!important;
    border-radius:14px;
    background:var(--surface);
  }
  .detail-info-heading{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-bottom:8px!important;
    font-size:15px!important;
  }
  .detail-info-actions{display:flex!important;width:auto!important;grid-template-columns:none!important;gap:6px!important}
  .detail-info-actions .detail-edit-action{display:none!important}
  .detail-info-actions .mini{width:auto!important;min-height:34px!important;padding:0 10px!important;font-size:11.5px!important}
  .detail-status-box{display:none!important}
  .detail-info-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0 14px;
  }
  .detail-info-item{min-width:0;padding:11px 0!important}
  .detail-info-item>small{font-size:11px!important;margin-bottom:4px!important}
  .detail-info-item strong{font-size:13px!important;line-height:1.4!important;overflow-wrap:anywhere}
  .detail-info-sub{font-size:11px!important}
  .detail-slack-action{display:none!important;position:static!important;width:100%!important;margin:12px 0 0!important;box-shadow:none!important}
}

@media(min-width:600px) and (max-width:899px){
  .detail-title-area h1{font-size:24px!important}
  .detail-body-section{padding:16px!important}
  .detail-info-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media(max-width:380px){
  .detail-mobile-actions{grid-template-columns:1fr}
  .detail-info-list{grid-template-columns:1fr!important}
  .detail-mobile-status-actions{gap:5px;padding:8px}
  .detail-mobile-status-actions button{font-size:11.5px}
}

/* v0.31.4 - stable mobile filter toggle position */
.request-filter-top-row,.request-filter-advanced-grid{display:contents}
@media(max-width:899px){
  .request-toolbar{display:block!important}
  .request-filter-top-row{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:8px;align-items:center;width:100%}
  .request-filter-top-row .request-search{grid-column:1!important;width:100%;min-width:0}
  .request-filter-top-row .request-mobile-filter-toggle{grid-column:2!important;width:78px!important;min-width:78px!important;justify-self:stretch!important}
  .request-filter-advanced-grid{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:8px}
  .request-filter-panel.mobile-filter-open .request-toolbar{display:block!important}
  .request-filter-panel.mobile-filter-open .request-filter-top-row{display:grid!important;grid-template-columns:minmax(0,1fr) 78px!important}
  .request-filter-panel.mobile-filter-open .request-search{grid-column:1!important}
  .request-filter-panel.mobile-filter-open .request-mobile-filter-toggle{grid-column:2!important;justify-self:stretch!important;width:78px!important}
  .request-filter-panel.mobile-filter-open .request-filter-advanced-grid{display:grid}
  .request-filter-panel.mobile-filter-open .request-filter-combo{display:block!important;grid-column:auto!important;min-width:0}
}

/* v0.31.5 - mobile request composer full-screen layout */
@media(max-width:899px){
  /* Treat request creation as a true mobile workspace instead of a scaled desktop modal. */
  .request-composer-backdrop{
    padding:0!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    background:var(--bg)!important;
  }
  .request-composer{
    width:100vw!important;
    height:100dvh!important;
    max-width:none!important;
    max-height:100dvh!important;
    min-height:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:var(--surface)!important;
  }
  .composer-head{
    flex:0 0 auto!important;
    padding:calc(12px + env(safe-area-inset-top)) 16px 11px!important;
    gap:12px!important;
    background:var(--surface)!important;
  }
  .composer-head>div{min-width:0}
  .composer-head h2{font-size:20px!important;line-height:1.25!important}
  .composer-head p{font-size:12px!important;line-height:1.4!important;margin-top:4px!important}
  .composer-close{
    width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
    padding:0!important;display:grid!important;place-items:center!important;border-radius:10px!important;
    font-size:22px!important;line-height:1!important;
  }
  .composer-step{margin-top:6px!important;gap:6px!important;font-size:11px!important;overflow:hidden}
  .composer-step b{width:22px!important;height:22px!important;min-width:22px!important;font-size:11px!important}
  .composer-step i{width:14px!important;min-width:14px!important}

  /* Each step owns the remaining viewport; only its content scrolls. */
  .request-composer>.type-classification-stack,
  .request-composer>.project-groups,
  .request-composer>.composer-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    padding:14px 16px 18px!important;
  }
  .type-classification-stack{gap:16px!important}
  .type-classification-group{gap:7px!important}
  .type-classification-title{font-size:12px!important;line-height:1.3!important}
  .typegrid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:auto!important;
    justify-content:stretch!important;
    gap:8px!important;
  }
  .typecard{
    width:100%!important;height:auto!important;min-height:68px!important;max-height:none!important;
    padding:10px 11px!important;border-radius:11px!important;min-width:0!important;
  }
  .typecard b{font-size:13.5px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  .typecard small,.type-route-state{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

  .project-none-wrap{flex:0 0 auto!important;margin:0!important;padding:12px 16px 0!important}
  .project-none-card{min-height:58px!important;padding:11px 13px!important;gap:4px!important;border-radius:11px!important}
  .project-none-card b{font-size:13.5px!important;white-space:normal!important}
  .project-none-card span{font-size:11.5px!important;line-height:1.35!important}
  .project-groups{gap:16px!important}
  .project-group h3{font-size:12px!important;margin-bottom:7px!important}
  .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .project-card{width:100%!important;min-width:0!important;min-height:58px!important;padding:10px 11px!important}
  .project-card b{font-size:13.5px!important;white-space:normal!important;overflow-wrap:anywhere}

  /* Step 3: compact single-column mobile form with equal-level controls. */
  .composer-scroll>.formrow{margin:10px 0!important}
  .composer-project-summary{min-height:44px!important;padding:8px 10px!important;margin-bottom:10px!important;gap:7px!important}
  .composer-project-summary span{font-size:11px!important}
  .composer-project-summary b{font-size:13px!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .composer-change-project{font-size:12px!important;min-width:42px!important;min-height:34px!important;padding:0 6px!important}
  .customer-pair{grid-template-columns:1fr!important;gap:0!important}
  .customer-pair .formrow{margin:6px 0!important}
  .selected-customer-chips{gap:6px!important;margin:5px 0 8px!important}
  .input,.select,.rich-title-editor,.rich-text-editor,.textarea{font-size:16px!important}
  .rich-title-editor{min-height:44px!important;padding:9px 11px!important}
  .rich-request-wrap .inline-mention-menu{width:min(calc(100vw - 32px),430px)!important;max-width:calc(100vw - 32px)!important;min-width:0!important}

  .slack-root-preview-card.compact.slack-root-preview-v252{margin:9px 0 12px!important;padding:11px!important;border-radius:12px!important}
  .slack-preview-title{align-items:center!important;gap:6px!important;flex-wrap:wrap!important}
  .slack-preview-title>b{font-size:14px!important}
  .slack-preview-title>span:last-child{font-size:11px!important}
  .slack-title-layout-head{align-items:flex-start!important;gap:5px!important;flex-direction:column!important}
  .slack-title-layout-head>span{font-size:10.5px!important}
  .slack-root-preview-v252 .title-layout-row{
    flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;
    padding-bottom:3px!important;scrollbar-width:none;
  }
  .slack-root-preview-v252 .title-layout-row::-webkit-scrollbar{display:none}
  .slack-root-preview-v252 .title-layout-chip{flex:0 0 auto!important}
  .slack-root-preview-v252 .slack-root-preview-text{font-size:14px!important;line-height:1.5!important}

  .composer-file-dropzone{margin:0!important;padding:0!important;border-radius:12px!important}
  .composer-file-drop-hint{display:none!important}
  .blockeditor{gap:8px!important}
  .editorblock{padding:9px!important;border-radius:12px!important}
  .textblock .textarea,.rich-text-editor{min-height:110px!important}
  .textblock .blocktools{position:static!important;margin-top:7px!important;opacity:1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .textblock .blocktools button,.attachblock .blocktools button{width:100%!important;min-width:0!important;min-height:36px!important}
  .editoradd{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:8px!important}
  .editoradd>.secondary:first-child{grid-column:1/-1!important}
  .editoradd>.secondary,.editoradd>.filelabel{width:100%!important;min-width:0!important;min-height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
  .camera{display:flex!important}
  .autosave{font-size:11px!important;margin-top:8px!important}

  .composer-footer{
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;
    background:var(--surface)!important;
    box-shadow:0 -8px 20px rgba(0,0,0,.08)!important;
  }
  .composer-footer:has(>button:only-child){grid-template-columns:1fr!important}
  .composer-footer button{width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;font-size:14px!important}
}

@media(min-width:600px) and (max-width:899px){
  .request-composer>.type-classification-stack,
  .request-composer>.project-groups,
  .request-composer>.composer-scroll{padding-left:22px!important;padding-right:22px!important}
  .project-none-wrap{padding-left:22px!important;padding-right:22px!important}
  .typegrid,.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .customer-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .composer-footer{padding-left:22px!important;padding-right:22px!important}
}

@media(max-width:380px){
  .request-composer>.type-classification-stack,
  .request-composer>.project-groups,
  .request-composer>.composer-scroll{padding-left:12px!important;padding-right:12px!important}
  .project-none-wrap{padding-left:12px!important;padding-right:12px!important}
  .composer-head{padding-left:12px!important;padding-right:12px!important}
  .composer-footer{padding-left:12px!important;padding-right:12px!important}
  .typegrid,.project-grid{grid-template-columns:1fr!important}
}


/* v0.31.6 - Mobile Slack title preview disclosure */
.mobile-slack-preview-toggle{display:none}
.mobile-slack-preview-body{display:block}
@media(max-width:899px){
  .mobile-slack-preview .slack-preview-topbar{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
    margin:0!important;
  }
  .mobile-slack-preview .slack-preview-title{
    min-width:0!important;flex:1 1 auto!important;flex-wrap:nowrap!important;overflow:hidden!important;
  }
  .mobile-slack-preview .slack-preview-title>span:last-child{display:none!important}
  .mobile-slack-preview-toggle{
    flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:5px!important;min-width:72px!important;height:36px!important;padding:0 10px!important;
    border:1px solid var(--line)!important;border-radius:9px!important;background:var(--surface)!important;
    color:var(--text)!important;font:inherit!important;font-size:12px!important;font-weight:700!important;cursor:pointer!important;
  }
  .mobile-slack-preview-toggle-chevron{display:inline-block!important;font-size:15px!important;line-height:1!important;transform:translateY(-1px) rotate(0deg)!important}
  .mobile-slack-preview-body{display:none!important;padding-top:10px!important}
  .mobile-slack-preview.mobile-preview-open .mobile-slack-preview-body{display:block!important}
  .mobile-slack-preview.mobile-preview-open .mobile-slack-preview-toggle-chevron{transform:translateY(1px) rotate(180deg)!important}
  .slack-root-preview-card.compact.slack-root-preview-v252.mobile-slack-preview{padding:9px 10px!important}
}


/* v0.31.7 - mobile rich-list controls + current composer step label */
.mobile-rich-list-toolbar{display:none}
@media(max-width:899px){
  /* Keep only the active step label visible on touch layouts. */
  .composer-step span{display:none!important}
  .composer-step b.current + span{
    display:inline!important;
    max-width:132px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:var(--text)!important;
    font-weight:800!important;
    font-size:11.5px!important;
  }
  .composer-step b.current{
    background:var(--primary2)!important;
    color:var(--primary)!important;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 28%,transparent)!important;
  }

  /* Touch keyboards have no Tab key: expose the same list-level operations explicitly. */
  .mobile-rich-list-toolbar{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    margin-top:7px!important;
  }
  .mobile-rich-list-toolbar button{
    min-width:0!important;
    width:100%!important;
    min-height:38px!important;
    padding:0 6px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    border:1px solid var(--line)!important;
    border-radius:9px!important;
    background:var(--surface2)!important;
    color:var(--text)!important;
    font:inherit!important;
    cursor:pointer!important;
    touch-action:manipulation!important;
  }
  .mobile-rich-list-toolbar button:active{
    background:var(--primary2)!important;
    border-color:color-mix(in srgb,var(--primary) 52%,var(--line))!important;
    color:var(--primary)!important;
  }
  .mobile-rich-list-toolbar button>span{
    flex:0 0 auto!important;
    min-width:14px!important;
    font-size:16px!important;
    line-height:1!important;
    text-align:center!important;
  }
  .mobile-rich-list-toolbar button>b{
    min-width:0!important;
    font-size:11.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
}
@media(max-width:360px){
  .mobile-rich-list-toolbar button>b{font-size:10.5px!important}
  .mobile-rich-list-toolbar button{gap:3px!important;padding:0 4px!important}
  .composer-step b.current + span{max-width:96px!important}
}

/* v0.31.8 - mobile draft library */
.draft-mobile-list{display:none}
.draft-selection-actions{display:flex;align-items:center;gap:8px}
@media(max-width:899px){
  .draft-sectionhead{align-items:flex-start}
  .draft-refresh{width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:10px!important}
  .draft-refresh .ico{width:18px!important;height:18px!important;margin:0!important}
  .draft-refresh-label{display:none!important}
  .draft-filter-panel{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(110px,34%)!important;gap:8px!important;padding:10px!important;margin-bottom:8px}
  .draft-filter-panel .input{min-width:0;height:42px}
  .draft-filter-panel .check-combo,.draft-filter-panel .check-combo-trigger{width:100%;min-width:0;height:42px}
  .draft-filter-panel .check-combo-trigger{justify-content:center;text-align:center}
  .draft-result-bar{padding:4px 0 8px!important}
  .draft-table-card{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .draft-desktop-table{display:none!important}
  .draft-mobile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
  .draft-mobile-list.single{grid-template-columns:1fr}
  .draft-mobile-card{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px;display:flex;flex-direction:column;gap:7px;cursor:pointer;box-shadow:var(--shadow)}
  .draft-mobile-card:active{background:var(--surface2)}
  .draft-mobile-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
  .draft-mobile-updated{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10.5px;font-weight:650}
  .draft-mobile-select{width:40px;height:40px;flex:0 0 40px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface2);cursor:pointer}
  .draft-mobile-select input{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin:0;border:1px solid color-mix(in srgb,var(--text) 34%,var(--line));border-radius:4px;background:color-mix(in srgb,var(--surface) 82%,transparent);display:grid;place-content:center;cursor:pointer}
  .draft-mobile-select input::before{content:"";width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg) scale(0);transform-origin:center}
  .draft-mobile-select input:checked{background:var(--primary);border-color:var(--primary)}
  .draft-mobile-select input:checked::before{transform:translateY(-1px) rotate(45deg) scale(1)}
  .draft-mobile-title{display:block;min-width:0;max-width:100%;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .draft-mobile-customer{min-width:0;max-width:100%;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .draft-mobile-meta{min-width:0;max-width:100%;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .draft-mobile-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;color:var(--muted);font-size:10.5px}
  .draft-mobile-delete{min-height:34px;padding:0 12px;flex:0 0 auto}
  .draft-selection-bar{align-items:center!important;gap:8px!important;padding:9px 10px!important}
  .draft-selection-bar>b{width:auto!important;margin-right:auto!important;white-space:nowrap}
  .draft-selection-actions{margin-left:auto;display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:min(240px,66%)}
  .draft-selection-actions button{width:100%;min-width:0}
}
@media(max-width:599px){
  .draft-mobile-list{grid-template-columns:1fr}
  .draft-filter-panel{grid-template-columns:minmax(0,1fr) 112px!important}
  .draft-selection-bar{display:grid!important;grid-template-columns:1fr!important}
  .draft-selection-bar>b{width:100%!important;margin:0!important}
  .draft-selection-actions{width:100%;min-width:0;margin:0;grid-template-columns:1fr 1fr}
}
@media(max-width:360px){
  .draft-filter-panel{grid-template-columns:1fr!important}
}


/* v0.31.9 - mobile draft bulk-selection persistence */
@media(max-width:899px){
  .draft-result-bar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
  .draft-select-all{min-height:36px;padding:0 14px;flex:0 0 auto}
  .draft-selection-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;min-width:min(330px,74%)!important}
  .draft-selection-actions button{min-height:36px!important;padding-left:8px!important;padding-right:8px!important;white-space:nowrap}
}
@media(max-width:599px){
  .draft-selection-actions{width:100%!important;min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:360px){
  .draft-select-all{padding:0 10px}
  .draft-selection-actions button{font-size:11px!important;padding-left:4px!important;padding-right:4px!important}
}
/* v0.32.0 mobile draft selection polish */
@media (max-width:899px){
  .draft-result-bar{min-height:40px!important;margin:6px 0 8px!important;padding:0!important}
  .draft-result-bar>b{margin:0!important}
  .draft-select-all{min-width:86px!important;min-height:36px!important}
  .draft-selection-bar{margin:6px 0 8px!important;padding:8px 10px!important;min-height:0!important}
  .draft-selection-bar.is-all-selected .draft-selection-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (min-width:600px) and (max-width:899px){
  .draft-selection-bar:not(.is-all-selected) .draft-selection-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .draft-selection-bar.is-all-selected .draft-selection-actions{min-width:min(240px,52%)!important}
}
@media (max-width:599px){
  .draft-result-bar{padding:0 2px!important}
  .draft-selection-bar{gap:7px!important}
  .draft-selection-bar.is-all-selected .draft-selection-actions{width:100%!important;min-width:0!important}
}

/* v0.32.1 - mobile settings + draft toolbar alignment */
@media (max-width:899px){
  /* Draft library: keep total + select all on one line before selection mode. */
  .draft-result-bar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:40px!important;
    margin:6px 2px 8px!important;
    padding:0!important;
  }
  .draft-result-bar>b{margin:0!important;white-space:nowrap!important}
  .draft-result-bar .draft-select-all{margin-left:auto!important;min-width:86px!important}

  /* Personal settings is a touch-first card stack on mobile and Fold. */
  .settings-page{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .settings-sectionhead{margin-top:20px!important;margin-bottom:10px!important}
  .settings-sectionhead h1{font-size:24px!important}
  .settings-sectionhead .sub{margin-top:4px!important;line-height:1.45!important}
  .settings-card{padding:14px!important;margin-top:10px!important;border-radius:14px!important}
  .settings-card>h3{margin:0 0 10px!important;font-size:16px!important}

  .settings-account-card{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
  .settings-account-card>h3{grid-column:1/-1;margin-bottom:2px!important}
  .settings-account-card .setting{
    min-height:70px!important;
    padding:10px!important;
    border:1px solid var(--line)!important;
    border-radius:11px!important;
    background:var(--surface2)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:5px!important;
  }
  .settings-account-card .setting span{font-size:10.5px!important;color:var(--muted)!important}
  .settings-account-card .setting b{max-width:100%;font-size:13.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .settings-slack-card .setting{
    min-height:0!important;
    padding:10px 0 12px!important;
    align-items:flex-start!important;
    gap:10px!important;
  }
  .settings-slack-card .setting>span{flex:0 0 auto;font-size:10px!important;font-weight:800!important;white-space:nowrap}
  .settings-slack-card .actions,.settings-emoji-card .actions{margin-top:10px!important}
  .settings-slack-card .actions button,.settings-emoji-card .actions button{width:100%!important;min-height:42px!important}
  .settings-slack-card>p.meta:last-child{margin:9px 0 0!important;line-height:1.45!important}

  .settings-emoji-card>p.meta{margin:0 0 10px!important;line-height:1.45!important}
  .settings-emoji-card .formrow{margin:8px 0!important}
  .settings-emoji-card .input{height:42px!important}

  .settings-theme-card>p.meta{margin:0!important;line-height:1.45!important}
  .settings-theme-card .theme-palette-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:12px!important}
  .settings-theme-card .theme-palette{min-height:58px!important;padding:8px!important;gap:7px!important;border-radius:11px!important}
  .settings-theme-card .theme-preview{width:26px!important;height:26px!important;flex-basis:26px!important;border-radius:7px!important}
  .settings-theme-card .theme-palette b{font-size:12px!important;line-height:1.2!important}
  .settings-theme-card .theme-palette small{font-size:9.5px!important;line-height:1.25!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
@media (max-width:599px){
  .settings-page{padding-left:0!important;padding-right:0!important}
  .settings-theme-card .theme-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .settings-slack-card .setting{flex-direction:column!important}
  .settings-slack-card .setting>span{align-self:flex-start}
}
@media (max-width:360px){
  .settings-account-card{grid-template-columns:1fr!important}
  .settings-theme-card .theme-palette-grid{grid-template-columns:1fr!important}
}

/* v0.32.2 - keep idle draft result toolbar on one row */
@media (max-width:899px){
  .draft-result-bar{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:100%!important;
    min-height:40px!important;
    margin:6px 0 8px!important;
    padding:0 2px!important;
  }
  .draft-result-bar>b{
    flex:1 1 auto!important;
    width:auto!important;
    margin:0!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
  .draft-result-bar .draft-select-all{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:86px!important;
    margin:0 0 0 auto!important;
  }
}

/* v0.32.3 - mobile request detail information hierarchy polish */
.detail-edit-log-integrated{margin-top:14px}
.detail-edit-log-integrated>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-weight:750}
.detail-edit-log-content{margin-top:10px}
@media(max-width:899px){
  .detail-history-panel>summary,
  .detail-edit-log-integrated>summary{min-height:44px;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;cursor:pointer}
  .detail-edit-log-integrated{margin:8px 0 0!important;padding:0!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:transparent!important}
  .detail-edit-log-integrated>summary{padding:11px 0!important;font-size:12.5px!important;list-style:none}
  .detail-edit-log-integrated>summary::-webkit-details-marker{display:none}
  .detail-edit-log-integrated>summary::after{content:"›";font-size:18px;line-height:1;color:var(--muted);transform:rotate(90deg);transition:transform .08s linear}
  .detail-edit-log-integrated[open]>summary::after{transform:rotate(-90deg)}
  .detail-edit-log-integrated>summary .meta{margin-left:auto;font-size:11.5px!important}
  .detail-edit-log-content{margin:0 0 2px!important;padding:0!important}
  .detail-rich-text .inline-mention-chip{font-size:12.5px!important;padding:1px 6px!important;margin:1px!important;gap:4px!important}
  .detail-rich-text .inline-mention-chip>small{font-size:9.5px!important}
  .detail-rich-text .inline-variable-chip{font-size:12.5px!important;padding:1px 6px!important;margin:1px!important;gap:4px!important}
}


/* v0.32.5 - mobile detail status dropdown alignment + SVG icons */
@media(max-width:899px){
  .detail-mobile-title-row{align-items:center}
  .detail-mobile-status{display:flex;align-items:center;justify-content:flex-end;min-height:36px}
  .detail-mobile-status-picker{position:relative;display:block;margin:0}
  .detail-mobile-status-picker>summary{
    box-sizing:border-box;list-style:none;display:flex;align-items:center;justify-content:center;gap:5px;
    height:32px;min-height:32px;padding:0 8px;border:1px solid var(--line);border-radius:9px;
    background:var(--surface2);cursor:pointer;user-select:none;outline:none;line-height:1;
  }
  .detail-mobile-status-picker>summary::-webkit-details-marker{display:none}
  .detail-mobile-status-picker>summary:focus{outline:none}
  .detail-mobile-status-picker>summary:focus-visible{
    outline:2px solid color-mix(in srgb,var(--primary) 72%,transparent);outline-offset:2px;
  }
  .detail-mobile-status-value{display:flex;align-items:center;justify-content:center;height:100%;line-height:1}
  .detail-mobile-status-picker .badge{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    height:22px!important;min-height:22px!important;padding:0 6px!important;margin:0!important;
    border:0!important;background:transparent!important;font-size:11.5px!important;line-height:1!important;box-shadow:none!important;
  }
  .detail-mobile-status-caret{
    width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 14px;
    color:var(--muted);transition:transform .12s ease;transform-origin:center;
  }
  .detail-mobile-status-caret svg{width:14px;height:14px;display:block;overflow:visible}
  .detail-mobile-status-caret path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .detail-mobile-status-picker[open] .detail-mobile-status-caret{transform:rotate(180deg)}
  .detail-mobile-status-menu{
    position:absolute;right:0;top:calc(100% + 7px);z-index:70;width:142px;padding:5px;
    border:1px solid var(--line);border-radius:11px;background:var(--surface);box-shadow:0 12px 28px rgba(0,0,0,.28);
  }
  .detail-mobile-status-menu button{
    box-sizing:border-box;width:100%;height:38px;min-height:38px;display:grid;grid-template-columns:10px minmax(0,1fr) 16px;align-items:center;gap:7px;
    padding:0 8px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:12.5px;font-weight:750;text-align:left;line-height:1;
  }
  .detail-mobile-status-menu button+button{margin-top:2px}
  .detail-mobile-status-menu button:hover,.detail-mobile-status-menu button.current{background:var(--surface2)}
  .detail-mobile-status-menu .status-dot{width:7px;height:7px;border-radius:50%;background:currentColor;justify-self:center}
  .detail-mobile-status-menu .status-label{display:flex;align-items:center;min-width:0;height:100%;color:inherit}
  .detail-mobile-status-menu .status-open{color:var(--warning,#d79255)}
  .detail-mobile-status-menu .status-confirm{color:var(--confirm,#d9a441)}
  .detail-mobile-status-menu .status-done{color:var(--success,#68b082)}
  .detail-mobile-status-menu .status-check{width:16px;height:16px;display:flex;align-items:center;justify-content:center;justify-self:end;color:currentColor}
  .detail-mobile-status-menu .status-check svg{width:14px;height:14px;display:block}
  .detail-mobile-status-menu .status-check path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .detail-mobile-status-menu .status-check-empty{visibility:hidden}
  .detail-mobile-status-actions{display:none!important}

  .detail-mobile-actions{align-items:stretch}
  .detail-mobile-actions button{
    box-sizing:border-box;display:flex!important;align-items:center!important;justify-content:center!important;
    height:44px;min-height:44px!important;padding:0 12px!important;line-height:1!important;vertical-align:middle;
  }
}


/* v0.32.6 - mobile composer keyboard, autocomplete and attachment UX */
.composer-content-help-mobile{display:none}
.composer-icon-svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.composer-upload-status[hidden]{display:none!important}
.composer-upload-status{margin:0 0 8px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--primary) 35%,var(--line));border-radius:9px;background:var(--primary2);color:var(--primary);font-size:11.5px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:899px){
  .request-composer{height:var(--composer-vv-height,100dvh)!important;max-height:var(--composer-vv-height,100dvh)!important}
  body.composer-keyboard-open .composer-head{padding-top:8px!important;padding-bottom:7px!important}
  body.composer-keyboard-open .composer-head h2{font-size:17px!important}
  body.composer-keyboard-open .composer-step{margin-top:3px!important}
  body.composer-keyboard-open .composer-footer{padding-top:7px!important;padding-bottom:calc(7px + env(safe-area-inset-bottom))!important}
  body.composer-keyboard-open .composer-footer button{min-height:40px!important}
  .composer-content-help-desktop{display:none!important}
  .composer-content-help-mobile{display:inline!important}
  .composer-content-help .meta{font-size:11px!important;line-height:1.4!important}
  .inline-mention-menu.mobile-fixed-mention{position:fixed!important;z-index:1000!important;margin:0!important;right:auto!important;bottom:auto!important;overscroll-behavior:contain!important;box-shadow:0 14px 34px rgba(0,0,0,.32)!important}
  .inline-mention-menu.mobile-fixed-mention .inline-mention-option{min-height:46px!important;padding:7px 8px!important;touch-action:manipulation!important}
  .mobile-slack-preview-toggle-chevron{width:16px!important;height:16px!important;display:grid!important;place-items:center!important;transform:none!important}
  .mobile-slack-preview-toggle-chevron svg{width:16px!important;height:16px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;transition:none!important}
  .mobile-slack-preview.mobile-preview-open .mobile-slack-preview-toggle-chevron{transform:none!important}
  .mobile-slack-preview.mobile-preview-open .mobile-slack-preview-toggle-chevron svg{transform:rotate(180deg)!important;transform-origin:50% 50%!important}
  .mobile-rich-list-toolbar .composer-icon-svg{width:16px!important;height:16px!important;flex:0 0 16px!important}
  .mobile-rich-list-toolbar .mobile-list-dot{min-width:16px!important;width:16px!important;font-size:18px!important;line-height:16px!important}
  .textblock .blocktools button:has(.composer-icon-svg),.attachblock .blocktools button:has(.composer-icon-svg){display:flex!important;align-items:center!important;justify-content:center!important}
  .textblock .blocktools .composer-icon-svg,.attachblock .blocktools .composer-icon-svg{width:17px!important;height:17px!important}
  .attachblock{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:9px!important;align-items:center!important}
  .attachblock>.preview{grid-column:1!important;grid-row:1!important;width:72px!important;height:72px!important;max-height:72px!important;object-fit:cover!important;border-radius:9px!important;margin:0!important}
  .attachblock>.attachname{grid-column:2!important;grid-row:1!important;min-width:0!important}
  .attachblock>.attachname span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .attachblock>.blocktools{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-top:0!important}
  .attachblock:not(:has(>.preview)){grid-template-columns:1fr!important}
  .attachblock:not(:has(>.preview))>.attachname{grid-column:1!important}
  .composer-upload-status{position:sticky!important;top:0!important;z-index:15!important}
}
\n\n/* v0.32.7 - mobile composer autocomplete density and toolbar polish */\n@media(max-width:899px){\n  /* Make the mobile helper deterministic even when theme rules change inline spans. */\n  .composer-content-help .meta>.composer-content-help-desktop{display:none!important}\n  .composer-content-help .meta>.composer-content-help-mobile{display:inline!important}\n  .composer-content-help .meta{max-width:100%!important;white-space:normal!important}\n\n  /* Autocomplete: clearly separated floating layer, about 3-4 visible results, then scroll. */\n  .inline-mention-menu.mobile-fixed-mention{\n    max-height:min(196px,var(--mention-mobile-max,196px))!important;\n    overflow-y:auto!important;overflow-x:hidden!important;\n    padding:5px!important;\n    border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line))!important;\n    border-radius:11px!important;\n    background:var(--surface)!important;\n    box-shadow:0 16px 38px rgba(0,0,0,.42),0 0 0 1px color-mix(in srgb,var(--line) 45%,transparent)!important;\n    scrollbar-gutter:stable!important;\n  }\n  .inline-mention-menu.mobile-fixed-mention .inline-mention-option{\n    min-height:44px!important;height:44px!important;\n    padding:5px 7px!important;gap:8px!important;\n    border-radius:8px!important;\n  }\n  .inline-mention-menu.mobile-fixed-mention .inline-mention-option img,\n  .inline-mention-menu.mobile-fixed-mention .inline-mention-option .mention-avatar{\n    width:30px!important;height:30px!important;flex:0 0 30px!important;\n  }\n  .inline-mention-menu.mobile-fixed-mention .inline-mention-option b{font-size:12.5px!important;line-height:1.15!important}\n  .inline-mention-menu.mobile-fixed-mention .inline-mention-option small{font-size:9.5px!important;line-height:1.15!important;margin-top:2px!important}\n\n  /* Keep both editor tool rows compact without sacrificing touch targets. */\n  .mobile-rich-list-toolbar{gap:5px!important;margin-top:5px!important}\n  .mobile-rich-list-toolbar button{min-height:34px!important;height:34px!important;padding:0 5px!important;gap:4px!important}\n  .mobile-rich-list-toolbar button>b{font-size:10.5px!important}\n  .textblock .blocktools{gap:5px!important;margin-top:5px!important}\n  .textblock .blocktools button,.attachblock .blocktools button{min-height:34px!important;height:34px!important;padding:0 6px!important}\n\n  /* Ensure the next block stays visually separate behind a floating autocomplete layer. */\n  .editorblock{isolation:isolate!important}\n  .rich-request-wrap{z-index:2!important}\n  .inline-mention-menu.mobile-fixed-mention{isolation:isolate!important}\n}\n\n\n/* v0.32.8 - mobile autocomplete stays in block flow */\n@media(max-width:899px){\n  /* On touch layouts, autocomplete reserves real vertical space so following blocks never hide behind it. */\n  .rich-request-wrap>.inline-mention-menu.mobile-flow-mention{\n    position:relative!important;\n    inset:auto!important;\n    left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;\n    width:100%!important;max-width:100%!important;min-width:0!important;\n    margin:6px 0 0!important;\n    overflow-y:auto!important;overflow-x:hidden!important;\n    padding:5px!important;\n    border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line))!important;\n    border-radius:11px!important;\n    background:var(--surface)!important;\n    box-shadow:0 10px 24px rgba(0,0,0,.26)!important;\n    scrollbar-gutter:stable!important;\n    z-index:3!important;\n  }\n  .rich-request-wrap>.inline-mention-menu.mobile-flow-mention .inline-mention-option{\n    min-height:44px!important;height:44px!important;padding:5px 7px!important;gap:8px!important;border-radius:8px!important;\n  }\n  .rich-request-wrap>.inline-mention-menu.mobile-flow-mention .inline-mention-option img,\n  .rich-request-wrap>.inline-mention-menu.mobile-flow-mention .inline-mention-option .mention-avatar{\n    width:30px!important;height:30px!important;flex:0 0 30px!important;\n  }\n  .rich-request-wrap>.inline-mention-menu.mobile-flow-mention .inline-mention-option b{font-size:12.5px!important;line-height:1.15!important}\n  .rich-request-wrap>.inline-mention-menu.mobile-flow-mention .inline-mention-option small{font-size:9.5px!important;line-height:1.15!important;margin-top:2px!important}\n  /* Old fixed-mode rule must never win once flow mode is active. */\n  .inline-mention-menu.mobile-flow-mention.mobile-fixed-mention{position:relative!important}\n}\n
/* v0.32.9 - mobile composer autocomplete overlays following blocks */
@media(max-width:899px){
  /* The menu is intentionally a floating layer. It must not reserve layout height. */
  .rich-request-wrap>.inline-mention-menu.mobile-overlay-mention{
    position:absolute!important;
    left:0!important;right:auto!important;
    top:calc(100% + 4px)!important;bottom:auto!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;
    max-height:196px!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    padding:5px!important;
    border:1px solid color-mix(in srgb,var(--primary) 32%,var(--line))!important;
    border-radius:11px!important;
    background:var(--surface)!important;
    background-color:var(--surface)!important;
    opacity:1!important;
    box-shadow:0 18px 42px rgba(0,0,0,.48),0 0 0 1px color-mix(in srgb,var(--line) 55%,transparent)!important;
    isolation:isolate!important;
    z-index:950!important;
    scrollbar-gutter:stable!important;
  }
  .rich-request-wrap>.inline-mention-menu.mobile-overlay-mention .inline-mention-option{
    min-height:44px!important;height:44px!important;
    padding:5px 7px!important;gap:8px!important;border-radius:8px!important;
    background:var(--surface)!important;
  }
  .rich-request-wrap>.inline-mention-menu.mobile-overlay-mention .inline-mention-option:hover,
  .rich-request-wrap>.inline-mention-menu.mobile-overlay-mention .inline-mention-option.active{
    background:var(--primary2)!important;
  }
  .rich-request-wrap>.inline-mention-menu.mobile-overlay-mention .inline-mention-option img,
  .rich-request-wrap>.inline-mention-menu.mobile-overlay-mention .inline-mention-option .mention-avatar{
    width:30px!important;height:30px!important;flex:0 0 30px!important;
  }
  /* v0.32.8 flow mode must not affect the new overlay mode. */
  .inline-mention-menu.mobile-overlay-mention.mobile-flow-mention{position:absolute!important}

  /* Later editor blocks used to paint over the popup because every block is isolated. */
  .editorblock:has(.inline-mention-menu.mobile-overlay-mention:not([hidden])){
    z-index:80!important;
  }
  .editorblock:has(.inline-mention-menu.mobile-overlay-mention:not([hidden])) .rich-request-wrap{
    z-index:90!important;
  }
}


/* v0.32.10 - force active mobile mention block above sibling blocks */
@media(max-width:899px){
  .blockeditor>.editorblock{position:relative!important;z-index:1!important;}
  .blockeditor>.editorblock.mention-overlay-active{z-index:1000!important;isolation:isolate!important;}
  .blockeditor>.editorblock.mention-overlay-active .rich-request-wrap{position:relative!important;z-index:1001!important;}
  .blockeditor>.editorblock.mention-overlay-active .inline-mention-menu.mobile-overlay-mention{z-index:1002!important;}
}

/* v0.32.11 - composer mention stacking context fix for all viewport sizes */
.blockeditor > .editorblock {
  position: relative;
  z-index: 1;
}
.blockeditor > .editorblock.mention-overlay-active {
  z-index: 1000 !important;
  isolation: isolate !important;
}
.blockeditor > .editorblock.mention-overlay-active .rich-request-wrap {
  position: relative !important;
  z-index: 1001 !important;
}
.blockeditor > .editorblock.mention-overlay-active .inline-mention-menu {
  z-index: 1002 !important;
}


/* v0.32.14: Slack title preview collapsible on every viewport */
.mobile-slack-preview .mobile-slack-preview-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important}
.mobile-slack-preview .mobile-slack-preview-body{display:none!important}
.mobile-slack-preview.mobile-preview-open .mobile-slack-preview-body{display:block!important}
.mobile-slack-preview .mobile-slack-preview-toggle-chevron{width:16px!important;height:16px!important;display:grid!important;place-items:center!important}
.mobile-slack-preview .mobile-slack-preview-toggle-chevron svg{width:16px!important;height:16px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.mobile-slack-preview.mobile-preview-open .mobile-slack-preview-toggle-chevron svg{transform:rotate(180deg)!important;transform-origin:50% 50%!important}
.slack-preview-default-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.slack-preview-default-grid button{min-height:62px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:10px 12px}
.slack-preview-default-grid button small{font-size:12px;color:var(--muted)}
.slack-preview-default-grid button.active{border-color:var(--primary)!important;box-shadow:inset 0 0 0 1px var(--primary)}
@media(max-width:380px){.slack-preview-default-grid{grid-template-columns:1fr}}


/* v0.32.15 request type routing column isolation */
.request-classification-section .request-type-admin-row{
  grid-template-columns:64px minmax(0,1.05fr) minmax(0,1.25fr) 138px 64px 72px!important;
  column-gap:12px!important;
}
.request-classification-section .request-type-admin-row>input.input{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
.request-classification-section .request-type-admin-row>.request-type-project-policy,
.request-classification-section .request-type-admin-row>.request-type-save-state,
.request-classification-section .request-type-admin-row>.danger{
  min-width:0;
  box-sizing:border-box;
}
.request-type-create.routed{
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) auto!important;
  column-gap:12px!important;
}
.request-type-create.routed>.input{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
@media(max-width:1100px) and (min-width:801px){
  .request-classification-section .request-type-admin-row{
    grid-template-columns:56px minmax(0,1fr) minmax(0,1.15fr) 128px 72px!important;
  }
}
@media(max-width:800px){
  .request-classification-section .request-type-admin-row{
    grid-template-columns:56px minmax(0,1fr)!important;
  }
  .request-type-create.routed{
    grid-template-columns:1fr!important;
  }
}


/* v0.32.16 request type existing-row hard column isolation */
@media(min-width:1101px){
  .request-classification-section .request-type-admin-row{
    grid-template-columns:64px minmax(0,240px) minmax(0,1fr) 138px 64px 72px!important;
    grid-template-areas:"order name channel policy state delete"!important;
    gap:12px!important;
    align-items:center!important;
    min-width:0!important;
  }
}
.request-classification-section .request-type-admin-row>.project-order-controls{grid-area:order!important;min-width:0!important}
.request-classification-section .request-type-admin-row>.request-type-name-input{grid-area:name!important}
.request-classification-section .request-type-admin-row>.request-type-channel-input{grid-area:channel!important}
.request-classification-section .request-type-admin-row>.request-type-project-policy{grid-area:policy!important}
.request-classification-section .request-type-admin-row>.request-type-save-state{grid-area:state!important}
.request-classification-section .request-type-admin-row>.danger{grid-area:delete!important}
.request-classification-section .request-type-admin-row>.request-type-name-input,
.request-classification-section .request-type-admin-row>.request-type-channel-input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  justify-self:stretch!important;
  align-self:center!important;
}
@media(max-width:1100px) and (min-width:801px){
  .request-classification-section .request-type-admin-row{
    grid-template-columns:56px minmax(0,200px) minmax(0,1fr) 128px 72px!important;
    grid-template-areas:"order name channel policy delete"!important;
    gap:10px!important;
    min-width:0!important;
  }
  .request-classification-section .request-type-admin-row>.request-type-save-state{display:none!important}
}
@media(max-width:800px){
  .request-classification-section .request-type-admin-row{
    grid-template-columns:56px minmax(0,1fr)!important;
    grid-template-areas:
      "order name"
      ". channel"
      ". policy"
      ". delete"!important;
  }
  .request-classification-section .request-type-admin-row>.request-type-save-state{display:none!important}
}

/* v0.32.17 Slack delivery recovery */
.detail-slack-delivery{margin-top:12px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--panel)}
.detail-slack-delivery>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.detail-slack-delivery b{font-size:13px}
.detail-slack-delivery span{font-size:12px;color:var(--muted);word-break:break-word}
.detail-slack-delivery-failed{border-color:color-mix(in srgb,#d96555 45%,var(--line));background:color-mix(in srgb,#d96555 8%,var(--panel))}
.detail-slack-delivery-failed b{color:#d96d5f}
.detail-slack-delivery-pending b{color:var(--accent)}
@media(max-width:599px){.detail-slack-delivery{align-items:stretch;flex-direction:column}.detail-slack-delivery button{width:100%;min-height:38px}}

/* v0.32.19 - portal data quota */
.storage-limit-setting{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.storage-limit-setting>.meta,.storage-limit-setting .meta{margin-top:4px}
.storage-limit-controls{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.storage-limit-controls .input{width:110px;min-width:0;text-align:right}
.storage-limit-controls>span{font-size:12px;font-weight:800;color:var(--muted)}
.storage-data-breakdown{margin-top:12px}
@media(max-width:760px){.storage-limit-setting{align-items:stretch;flex-direction:column}.storage-limit-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(100px,1fr)}.storage-limit-controls .input{width:100%}}


/* Storage growth tracking */
.storage-growth{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.storage-growth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.storage-growth-head .meta{margin-top:4px}
.storage-growth-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.storage-growth-summary>div{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);min-width:0}
.storage-growth-summary small{display:block;color:var(--muted);font-size:10px}
.storage-growth-summary strong{display:block;margin-top:5px;font-size:14px;overflow-wrap:anywhere}
.storage-growth-chart{height:100px;display:flex;align-items:flex-end;gap:6px;margin-top:14px;padding:10px 8px 0;border:1px solid var(--line);border-radius:10px;background:var(--surface2);overflow-x:auto}
.storage-growth-day{height:82px;min-width:34px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}
.storage-growth-bar{display:block;width:18px;min-height:2px;border-radius:4px 4px 1px 1px;background:var(--primary)}
.storage-growth-bar.negative{background:var(--done);opacity:.7}
.storage-growth-day small{font-size:9px;color:var(--muted);white-space:nowrap}
.storage-growth-note{margin-top:10px;color:var(--muted);font-size:11px}
@media(max-width:900px){.storage-growth-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.storage-growth-head{flex-direction:column}.storage-growth-summary{grid-template-columns:1fr}.storage-growth-chart{gap:4px}.storage-growth-day{min-width:30px}}


/* v0.32.21 - in-app help */
.settings-help-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.settings-help-row h3{margin:0 0 6px}
.settings-help-row .meta{margin:0;max-width:680px}
.settings-help-row .secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.help-page{max-width:1040px;margin:0 auto}
.help-head{align-items:flex-start}
.help-site-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.help-quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 18px}
.help-quick-grid button{min-width:0;height:62px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:750;transition:border-color .08s linear,background .08s linear,color .08s linear}
.help-quick-grid button:hover{border-color:color-mix(in srgb,var(--primary) 48%,var(--line));background:var(--primary2);color:var(--primary)}
.help-quick-grid b{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:var(--primary2);color:var(--primary);font-size:12px}
.help-section{scroll-margin-top:82px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:22px;margin:0 0 14px;box-shadow:var(--shadow)}
.help-section h2{font-size:19px;margin:0 0 12px;letter-spacing:-.02em}
.help-copy>p{margin:8px 0;color:var(--text);line-height:1.7}
.help-steps{margin:0;padding-left:22px;display:grid;gap:8px;line-height:1.65}
.help-tip{display:flex;align-items:flex-start;gap:10px;margin:14px 0;padding:12px 14px;border-radius:11px;background:var(--primary2);border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));font-size:13px;line-height:1.55}
.help-tip>b{color:var(--primary);white-space:nowrap}
.help-tip code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:1px 5px;color:var(--primary);font-weight:750}
.help-shot{margin:18px 0 0;padding:12px;background:var(--surface2);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.help-shot img{display:block;width:100%;height:auto;max-height:720px;object-fit:contain;border-radius:9px;background:var(--bg)}
.help-shot figcaption{margin-top:8px;text-align:center;color:var(--muted);font-size:11px}
.help-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.help-faq-grid article{padding:14px;border-radius:11px;background:var(--surface2);border:1px solid var(--line)}
.help-faq-grid article>b{display:block;margin-bottom:5px;font-size:14px}
.help-faq-grid article p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.6}
@media(max-width:899px){
 .settings-help-row{align-items:stretch;flex-direction:column}.settings-help-row .secondary{width:100%;height:42px}
 .help-page{max-width:none}.help-head{gap:10px}.help-site-link{display:none}
 .help-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .help-quick-grid button{height:52px;font-size:12px;gap:6px}.help-quick-grid b{width:22px;height:22px;border-radius:7px;font-size:11px}
 .help-section{padding:15px;margin-bottom:10px}.help-section h2{font-size:17px}.help-shot{padding:7px;margin-top:13px}.help-shot img{max-height:none}
 .help-tip{flex-direction:column;gap:4px}.help-faq-grid{grid-template-columns:1fr}
}
@media(max-width:420px){.help-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.32.22 - PC Slack title preview toggle polish */
@media(min-width:900px){
  .mobile-slack-preview .slack-preview-topbar{
    align-items:center!important;
    min-height:40px;
  }
  .mobile-slack-preview .mobile-slack-preview-toggle{
    -webkit-appearance:none!important;
    appearance:none!important;
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    min-width:96px!important;
    height:40px!important;
    padding:0 14px!important;
    margin:0!important;
    border:1px solid var(--line)!important;
    border-radius:10px!important;
    background:var(--surface2)!important;
    color:var(--text)!important;
    box-shadow:none!important;
    font:inherit!important;
    font-size:13px!important;
    font-weight:750!important;
    line-height:1!important;
    cursor:pointer!important;
    vertical-align:middle!important;
  }
  .mobile-slack-preview .mobile-slack-preview-toggle:hover{
    border-color:color-mix(in srgb,var(--primary) 55%,var(--line))!important;
    background:color-mix(in srgb,var(--primary) 7%,var(--surface2))!important;
  }
  .mobile-slack-preview .mobile-slack-preview-toggle:focus-visible{
    outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent)!important;
    outline-offset:2px!important;
  }
  .mobile-slack-preview .mobile-slack-preview-toggle-label{
    display:inline-flex!important;
    align-items:center!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .mobile-slack-preview .mobile-slack-preview-toggle-chevron{
    flex:0 0 16px!important;
    width:16px!important;
    height:16px!important;
    display:grid!important;
    place-items:center!important;
    line-height:0!important;
  }
  .mobile-slack-preview .mobile-slack-preview-toggle-chevron svg{
    width:16px!important;
    height:16px!important;
    display:block!important;
  }
  .mobile-slack-preview .mobile-slack-preview-body{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding-top:12px!important;
  }
}

/* v0.32.23 - user account administration */
.user-admin-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:240px}
.user-admin-actions .primary,.user-admin-actions .secondary,.user-admin-actions .danger{margin-left:0!important;white-space:nowrap}
.user-admin-actions .select{margin-left:0!important}
@media (max-width:800px){.user-admin-actions{min-width:0;gap:8px}.user-admin-actions .primary,.user-admin-actions .secondary,.user-admin-actions .danger,.user-admin-actions .select{width:100%;margin-left:0!important}}


/* v0.32.24 - screenshot-based in-app user guide */
.help-device-toggle{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line);border-radius:11px;background:var(--surface2)}
.help-device-toggle button{height:34px;min-width:76px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-weight:800;cursor:pointer}
.help-device-toggle button.active{background:var(--primary);color:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--primary) 24%,transparent)}
.help-theme-note{margin:-4px 0 16px;padding:10px 13px;border:1px solid color-mix(in srgb,var(--primary) 16%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--primary2) 70%,var(--surface));color:var(--muted);font-size:12px;line-height:1.55}
.help-page[data-help-device="pc"] .help-device-mobile{display:none!important}.help-page[data-help-device="mobile"] .help-device-pc{display:none!important}
.help-device-panel{margin-top:16px}.help-shared-label{margin:18px 0 8px;color:var(--muted);font-size:11px;font-weight:800;text-align:center}
.help-shot-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}.help-shot-grid.help-two{grid-template-columns:repeat(2,minmax(0,1fr))}.help-shot-grid.help-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.help-shot-grid.help-mobile-two{grid-template-columns:repeat(2,minmax(0,1fr))}.help-shot-grid.help-mobile-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.help-shot-card{margin:0;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--surface2);overflow:hidden;min-width:0}
.help-shot-card img{display:block;width:100%;height:auto;max-height:760px;object-fit:contain;border-radius:8px;background:#f7f6fb}
.help-shot-card figcaption{padding:8px 4px 2px;text-align:center;color:var(--muted);font-size:11px;line-height:1.4}
.help-onboarding-shared .help-shot-card:first-child img{max-height:430px}.help-onboarding-shared .help-shot-card:last-child img{max-height:430px}
.help-device-mobile .help-shot-card img{max-height:680px}
@media(max-width:899px){
 .help-device-toggle{width:100%;margin-top:8px}.help-device-toggle button{flex:1}
 .help-theme-note{margin-top:0}.help-shot-grid.help-two,.help-shot-grid.help-three,.help-shot-grid.help-mobile-two,.help-shot-grid.help-mobile-three{grid-template-columns:1fr}
 .help-shot-card{padding:6px}.help-shot-card img,.help-device-mobile .help-shot-card img{max-height:none}
 .help-shared-label{text-align:left;margin-left:2px}
}


/* v0.32.27 - manual navigation restructure */
.help-page{max-width:1280px;margin:0 auto}
.help-head{align-items:flex-start;margin-bottom:16px}
.help-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:start}
.help-content{min-width:0}
.help-desktop-toc{display:block;align-self:start;position:sticky;top:82px}
.help-toc-card{position:static;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow);max-height:calc(100vh - 100px);overflow:auto}
.help-toc-title{padding:5px 8px 10px;color:var(--muted);font-size:11px;font-weight:900;letter-spacing:.02em}
.help-toc-nav{display:grid;gap:3px}
.help-toc-nav button{width:100%;min-height:38px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:760;text-align:left;cursor:pointer;transition:background .08s linear,color .08s linear}
.help-toc-nav>button:hover,.help-toc-group>button:hover,.help-toc-sub button:hover{background:var(--surface2);color:var(--primary)}
.help-toc-nav button.active{background:var(--primary2);color:var(--primary)}
.help-toc-group{display:grid;gap:2px}
.help-toc-sub{display:grid;gap:1px;margin:1px 0 4px 13px;padding-left:9px;border-left:1px solid var(--line)}
.help-toc-sub button{min-height:30px;padding:0 8px;color:var(--muted);font-size:11.5px;font-weight:700}
.help-toc-sub button.active{background:color-mix(in srgb,var(--primary2) 70%,transparent);color:var(--primary)}
.help-mobile-toc{display:none}
.help-theme-note{margin:0 0 14px}
.help-section{scroll-margin-top:90px}
.help-create-group{scroll-margin-top:90px;margin-top:20px;padding-top:2px}
.help-create-group:first-child{margin-top:12px}
.help-create-group h3{margin:0 0 8px;font-size:15px;letter-spacing:-.015em}
@media(max-width:899px){
 .help-page{max-width:none}
 .help-head{gap:10px;margin-bottom:10px}
 .help-layout{display:block}
 .help-desktop-toc{display:none}
 .help-content{min-width:0}
 .help-mobile-toc{display:block;position:sticky;top:8px;z-index:18;margin:0 0 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 8px 22px rgba(0,0,0,.08);overflow:hidden}
 .help-mobile-toc summary{list-style:none;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;min-height:46px;padding:0 12px;cursor:pointer;color:var(--text);font-size:12px;font-weight:850}
 .help-mobile-toc summary::-webkit-details-marker{display:none}
 .help-mobile-toc-current{justify-self:end;color:var(--primary);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
 .help-mobile-toc-chevron{color:var(--muted);font-size:16px;line-height:1;transition:transform .12s ease}
 .help-mobile-toc[open] .help-mobile-toc-chevron{transform:rotate(180deg)}
 .help-mobile-toc .help-toc-nav{padding:5px 8px 9px;border-top:1px solid var(--line);max-height:54vh;overflow:auto}
 .help-mobile-toc .help-toc-nav button{min-height:40px}
 .help-mobile-toc .help-toc-sub{margin-left:14px}
 .help-device-toggle{width:auto;min-width:168px;margin-top:0}
 .help-device-toggle button{min-width:76px}
 .help-theme-note{margin:0 0 10px}
 .help-section,.help-create-group{scroll-margin-top:68px}
}
@media(max-width:520px){
 .help-head{flex-direction:column;align-items:stretch}
 .help-device-toggle{width:100%}
 .help-device-toggle button{flex:1}
 .help-mobile-toc-current{max-width:120px}
}


/* v0.32.28 - classic ribbon neutral-foundation refinement
   Large surfaces stay charcoal/neutral; theme hue is reserved for ribbon chrome, active navigation, tabs and primary actions. */

/* v0.32.30 - iOS keyboard + mobile autocomplete stability */
@media(max-width:899px){
  /* --composer-vv-height now represents the visual viewport bottom edge
     (offsetTop + height) so iOS keyboard panning cannot leave a blank strip. */
  .request-composer-backdrop{
    height:var(--composer-vv-height,100dvh)!important;
    min-height:0!important;
    bottom:auto!important;
    overflow:hidden!important;
  }
  .request-composer{
    height:100%!important;
    max-height:100%!important;
  }
  body.composer-keyboard-open .request-composer-backdrop{
    padding-bottom:0!important;
  }
  body.composer-keyboard-open .composer-scroll{
    scroll-behavior:auto!important;
  }
  /* Autocomplete is an overlay only. Opening/filtering it must never alter
     document/block height or push later blocks around. */
  .rich-request-wrap>.inline-mention-menu.mobile-overlay-mention{
    contain:layout paint!important;
    overscroll-behavior:contain!important;
    touch-action:pan-y!important;
  }
  .rich-request-wrap>.inline-mention-menu.mobile-overlay-mention.flip-up{
    top:auto!important;
    bottom:calc(100% + 4px)!important;
  }
}


/* v0.32.33 - iOS Chrome visual viewport + composer gesture stability */
@media(max-width:899px){
  .composer-scroll{overflow-anchor:none!important}
  .request-composer input,.request-composer textarea,.request-composer [contenteditable="true"]{scroll-margin-top:14px!important;scroll-margin-bottom:84px!important}
}


/* v0.32.34 - iOS Chrome keyboard focus layout correction
   Keep the dim/backdrop full-screen. Only the composer workspace follows the
   visual viewport, so the page beneath can never be exposed above the keyboard. */
@media(max-width:899px){
  body.composer-scroll-locked{
    position:static!important;
    left:auto!important;right:auto!important;width:auto!important;
    overflow:hidden!important;
  }
  .request-composer-backdrop{
    inset:0!important;
    top:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100vw!important;height:100dvh!important;max-height:none!important;
    padding:0!important;
    align-items:stretch!important;justify-content:stretch!important;
    overflow:hidden!important;
    background:var(--bg)!important;
  }
  .request-composer{
    position:absolute!important;
    left:0!important;right:0!important;
    top:var(--composer-vv-top,0px)!important;
    width:100%!important;
    height:var(--composer-vv-height,100dvh)!important;
    max-height:var(--composer-vv-height,100dvh)!important;
    min-height:0!important;
  }
  body.composer-keyboard-open .request-composer{
    border-radius:0!important;
  }
}

/* v0.32.37 - mobile composer is a real standalone page, not an overlay.
   This lets iOS Chrome/WebKit own keyboard focus panning and removes the
   underlying request/detail page from the DOM while composing. */
@media(max-width:899px){
  .mobile-composer-page{
    width:100%;
    min-height:100dvh;
    background:var(--bg);
  }
  .mobile-composer-page .request-composer.mobile-request-composer{
    position:relative!important;
    inset:auto!important;
    top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    border:0!important;
    border-radius:0!important;
    overflow:visible!important;
    display:block!important;
    background:var(--surface)!important;
  }
  .mobile-composer-page .composer-head{
    position:sticky!important;
    top:0!important;
    z-index:60!important;
    background:var(--surface)!important;
  }
  .mobile-composer-page .request-composer>.type-classification-stack,
  .mobile-composer-page .request-composer>.project-groups,
  .mobile-composer-page .request-composer>.composer-scroll{
    overflow:visible!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
  }
  .mobile-composer-page .composer-scroll{
    display:block!important;
    padding-bottom:18px!important;
  }
  .mobile-composer-page .composer-footer{
    position:sticky!important;
    left:auto!important;right:auto!important;bottom:0!important;
    z-index:70!important;
    width:100%!important;
    background:var(--surface)!important;
  }
  body.composer-keyboard-open .mobile-composer-page .request-composer,
  body.composer-keyboard-open .mobile-composer-page .composer-scroll{
    height:auto!important;
    max-height:none!important;
  }
  body.composer-keyboard-open .mobile-composer-page .composer-footer{
    padding-bottom:8px!important;
  }
}


/* v0.32.39 Mobile logout access */
.mobile-settings-logout{display:none}
@media(max-width:760px){
  .mobile-settings-logout{display:block;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
  .mobile-settings-logout .secondary{min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px}
}

/* Request list header actions */
.request-section-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.request-section-actions .secondary{
  min-height:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 14px;
  white-space:nowrap;
}

.request-section-actions .ico{
  width:16px;
  height:16px;
  flex:0 0 16px;
}

@media(max-width:699px){
  .request-sectionhead{
    align-items:flex-start;
  }

  .request-section-actions{
    width:100%;
    justify-content:flex-start;
    margin-top:8px;
  }

  .request-section-actions .secondary{
    flex:1 1 auto;
  }
}

/* Empty request filter state */
.check-combo-trigger.is-empty {
  border-style: dashed;
  font-weight: 700;
  opacity: .78;
}

.request-filter-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.request-filter-empty b {
  font-size: 14px;
}

.request-filter-empty span {
  font-size: 12px;
  opacity: .72;
}

/* Slack reconnect banner */
.slack-reconnect-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.slack-reconnect-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.slack-reconnect-copy b {
  font-size: 14px;
}

.slack-reconnect-copy span {
  font-size: 13px;
  opacity: .82;
}

.slack-reconnect-copy small {
  font-size: 11px;
  opacity: .58;
}

.slack-reconnect-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .slack-reconnect-banner {
    align-items: stretch;
    flex-direction: column;
    margin: 10px 10px 0;
  }

  .slack-reconnect-button {
    width: 100%;
  }
}

/* Request detail MP4 */
.detail-video-block{
  width:100%;
  min-width:0;
}

.detail-video{
  display:block;
  width:100%;
  max-width:960px;
  max-height:70vh;
  border-radius:10px;
  background:#000;
}

.detail-video-block .detail-file-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

.detail-video-download{
  margin-left:auto;
  font-size:13px;
  text-decoration:none;
}

@media (max-width:700px){
  .detail-video{
    max-height:60vh;
    border-radius:8px;
  }

  .detail-video-download{
    margin-left:0;
  }
}
