:root{
  color-scheme:light;
  --page:#f7f6f8;
  --surface:#fcfbfd;
  --card:#fff;
  --panel:#eeebf1;
  --soft:#eee5f5;
  --text:#342c3c;
  --muted:#6b5875;
  --accent:#6d4b83;
  --accent-hover:#59376f;
  --on-accent:#fff;
  --border:#dcd3e3;
  --decor:#dacbe6;
  --focus:#9267b0;
  --drag:#e5d7ef;
  --drag-border:#9773af;
  --danger:#a03550;
  --danger-border:#dbadba;
  --danger-bg:#fbeaf0;
  --success:#386d53;
  --success-bg:#e4f0e9;
  --warning:#805b20;
  --warning-bg:#fbf0da;
  --overlay:#2b203b66;
  --shadow:#25172b30;
  --shadow-soft:#3524480c;
  --count-bg:#ffffff99;

  font-family:Inter,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--page);
  font-synthesis:none;
  --sidebar:230px
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --page:#19161c;
  --surface:#211c25;
  --card:#2b2530;
  --panel:#241f29;
  --soft:#382c42;
  --text:#eee6f3;
  --muted:#b9a9c3;
  --accent:#ccacdf;
  --accent-hover:#dfc0f0;
  --on-accent:#2a1c32;
  --border:#4b3d55;
  --decor:#51405e;
  --focus:#d9b5ef;
  --drag:#42334e;
  --drag-border:#c4a0da;
  --danger:#f0a5ba;
  --danger-border:#8d5264;
  --danger-bg:#432630;
  --success:#a5d0b6;
  --success-bg:#253b30;
  --warning:#e4c07d;
  --warning-bg:#403422;
  --overlay:#09070cb3;
  --shadow:#00000070;
  --shadow-soft:#00000030;
  --count-bg:#342b3d;
}

*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input,select,textarea{
  font:inherit
}
button{
  cursor:pointer
}
button:disabled{
  cursor:default;
  opacity:.45
}
button,input,select,textarea,a{
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px
}
input:focus,select:focus,textarea:focus{
  outline:2px solid var(--focus);
  outline-offset:1px
}
button{
  border:0;
  background:none;
  color:inherit
}
a{
  color:inherit
}
.icon{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
.brand{
  display:flex;
  gap:11px;
  align-items:center;
  font-weight:750;
  font-size:25px;
  letter-spacing:-.9px
}
.brand-mark{
  display:block;
  flex-shrink:0;
  width:39px;
  height:39px
}
.brand em{
  font-size:10px;
  font-style:normal;
  letter-spacing:2px;
  color:var(--muted);
  display:block;
  margin-top:2px;
  font-weight:500
}
.sidebar{
  width:var(--sidebar);
  position:fixed;
  inset:0 auto 0 0;
  background:var(--surface);
  border-right:1px solid var(--border);
  padding:32px 22px;
  display:flex;
  flex-direction:column;
  z-index:5
}
.sidebar .brand{
  margin:0 12px 52px
}
.nav-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:1.7px;
  color:var(--muted);
  margin:0 15px 14px
}
.nav-button{
  width:100%;
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 15px;
  border-radius:10px;
  color:var(--muted);
  font-size:13px;
  font-weight:550;
  margin-bottom:6px;
  text-align:left
}
.nav-button.active{
  background:var(--soft);
  color:var(--accent)
}
.nav-button:hover{
  background:var(--soft)
}
.nav-count{
  margin-left:auto;
  background:var(--decor);
  min-width:23px;
  padding:3px 6px;
  text-align:center;
  border-radius:6px;
  font-size:10px
}
.side-divider{
  height:1px;
  background:var(--border);
  margin:24px 14px
}
.sidebar-bottom{
  margin-top:auto;
  padding:18px 12px 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.8
}
.sidebar-bottom .side-flower{
  font-size:36px;
  color:var(--decor);
  display:block;
  margin-bottom:12px
}
.sidebar-bottom strong{
  display:block;
  font-size:12px;
  color:var(--text);
  font-weight:550
}
.main{
  margin-left:var(--sidebar);
  min-height:100vh
}
.topbar{
  height:83px;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 42px;
  gap:15px
}
.breadcrumb{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  color:var(--muted)
}
.breadcrumb strong{
  color:var(--text);
  font-weight:500
}
.profile{
  display:flex;
  align-items:center;
  gap:12px
}
.profile-text{
  font-size:11px;
  line-height:1.5;
  text-align:right;
  color:var(--muted)
}
.profile-text strong{
  font-size:12px;
  display:block;
  color:var(--text);
  font-weight:550
}
.avatar{
  height:35px;
  width:35px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--soft);
  color:var(--accent);
  font-size:12px;
  font-weight:650
}
.icon-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:7px;
  color:var(--muted)
}
.icon-button:hover{
  background:var(--soft);
  color:var(--accent)
}
.content{
  padding:34px 42px 35px;
  max-width:1800px;
  margin:0 auto
}
.eyebrow{
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:2px;
  font-weight:700;
  color:var(--muted);
  margin:0 0 12px
}
.page-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:27px
}
h1{
  font-size:30px;
  letter-spacing:-1.1px;
  line-height:1.2;
  margin:0 0 9px;
  font-weight:650
}
h2{
  font-size:20px;
  letter-spacing:-.5px;
  margin:0;
  font-weight:650
}
h3{
  margin:0;
  font-size:15px
}
.subtitle{
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  margin:0
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  min-height:39px;
  padding:10px 15px;
  white-space:nowrap
}
.button:hover{
  background:var(--soft)
}
.button.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--on-accent);
  box-shadow:0 3px 9px var(--shadow-soft)
}
.button.primary:hover{
  background:var(--accent-hover)
}
.button.danger{
  color:var(--danger);
  border-color:var(--danger-border);
  background:var(--danger-bg)
}
.button.small{
  min-height:30px;
  padding:6px 10px;
  font-size:11px
}
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:28px
}
.stat{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px
}
.stat-label{
  font-size:11px;
  color:var(--muted);
  margin:0 0 8px
}
.stat-value{
  font-size:25px;
  font-weight:650;
  letter-spacing:-.8px
}
.stat-icon{
  display:grid;
  place-items:center;
  width:41px;
  height:41px;
  border-radius:11px;
  background:var(--soft);
  color:var(--accent)
}
.stat:nth-child(2) .stat-icon{
  background:var(--warning-bg);
  color:var(--warning)
}
.stat:nth-child(3) .stat-icon{
  background:var(--success-bg);
  color:var(--success)
}
.stat:nth-child(4) .stat-icon{
  background:var(--danger-bg);
  color:var(--danger)
}
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:23px
}
.toolbar-left{
  display:flex;
  gap:11px;
  align-items:center
}
.search-field{
  position:relative;
  display:flex;
  align-items:center;
  min-width:200px
}
.search-field>.icon{
  position:absolute;
  left:13px;
  color:var(--muted);
  width:16px;
  pointer-events:none
}
.search-field input{
  width:100%;
  padding:11px 14px 11px 38px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card);
  font-size:11px;
  color:var(--text)
}
.toolbar select{
  width:150px;
  background:var(--card);
  font-size:11px
}
.toolbar-hint{
  font-size:10px;
  color:var(--muted);
  display:flex;
  gap:7px;
  align-items:center
}
.toolbar-hint .icon{
  width:14px
}
.board{
  display:flex;
  align-items:stretch;
  gap:19px;
  overflow-x:auto;
  padding:2px 2px 18px;
  min-height:410px
}
.column{
  flex:1 0 270px;
  min-width:270px;
  max-width:450px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  display:flex;
  flex-direction:column;
  transition:background .15s
}
.column.drag-over{
  background:var(--drag);
  box-shadow:inset 0 0 0 2px var(--drag-border)
}
.column-header{
  padding:17px 15px;
  display:flex;
  align-items:center;
  gap:9px;
  border-top:3px solid var(--status-color);
  border-radius:12px 12px 0 0
}
.status-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--status-color);
  flex-shrink:0
}
.column-title{
  font-size:12px;
  font-weight:650;
  flex:1
}
.column-count{
  font-size:10px;
  background:var(--count-bg);
  color:var(--muted);
  padding:3px 7px;
  border-radius:5px
}
.column-header .icon-button{
  height:24px;
  width:24px
}
.column-header .icon{
  width:15px
}
.cards{
  padding:0 10px;
  min-height:160px;
  flex:1
}
.card{
  position:relative;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:9px;
  margin-bottom:10px;
  padding:16px 15px 13px;
  box-shadow:0 2px 3px var(--shadow-soft);
  cursor:grab;
  transition:box-shadow .18s,transform .18s
}
.card:hover{
  box-shadow:0 5px 18px var(--shadow-soft);
  transform:translateY(-1px)
}
.card.dragging{
  opacity:.35;
  transform:scale(.98)
}
.card.drop-before{
  border-top:3px solid var(--accent)
}
.card-top{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
  margin-bottom:10px
}
.client-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:700;
  color:var(--accent);
  background:var(--soft);
  min-width:0;
  flex:0 1 auto;
  padding:5px 8px;
  border-radius:4px;
  text-align:left;
  overflow:hidden
}
.client-link span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.card-top .client-link .icon{
  width:14px;
  height:14px
}
.no-client{
  font-size:10px;
  color:var(--muted);
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.card-top .icon-button{
  width:23px;
  height:23px;
  flex-shrink:0
}
.time-controls{
  display:flex;
  align-items:center;
  flex-shrink:0;
  gap:1px;
  margin-left:auto
}
.job-time{
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}
.time-controls .job-time{
  font-size:11px;
  font-weight:600;
  color:var(--text)
}
.time-controls .icon-button:focus-visible{
  outline-offset:-3px
}
.card-top .icon{
  width:15px;
  height:15px
}
.card-title{
  font-size:13px;
  line-height:1.6;
  font-weight:600;
  display:block;
  text-align:left;
  padding:0;
  width:100%;
  overflow-wrap:anywhere
}
.card-note{
  color:var(--muted);
  font-size:10px;
  line-height:1.7;
  margin:7px 0 13px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  white-space:pre-line;
  overflow-wrap:anywhere
}
.card-note-count{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:7px
}
.job-notes{
  padding:24px 28px;
  border-top:1px solid var(--border)
}
.job-notes h3{
  font-size:14px;
  margin:0 0 18px
}
.note-form-actions,.note-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px
}
.note-search{
  margin:24px 0 10px
}
.note-history{
  max-height:420px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding-right:5px
}
.note-entry{
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px;
  margin-bottom:10px;
  background:var(--card)
}
.note-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:10px;
  color:var(--muted);
  margin-bottom:8px
}
.note-text{
  font-size:13px;
  line-height:1.7;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:5;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.note-text.expanded{
  display:block
}
.note-actions .button{
  font-size:10px;
  padding:6px 8px
}
.note-entry textarea,#new-note-form textarea{
  font-size:13px
}
#load-notes{
  margin-top:12px
}
[hidden]{
  display:none!important
}
.card-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:7px;
  border-top:1px solid var(--border);
  margin-top:13px;
  padding-top:10px
}
.due{
  font-size:9px;
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--muted)
}
.due .icon{
  width:12px;
  height:12px
}
.due.overdue{
  color:var(--danger);
  background:var(--danger-bg);
  padding:4px 6px;
  border-radius:4px
}
.due.soon{
  color:var(--warning)
}
.card-actions{
  display:flex;
  gap:2px
}
.card-actions .icon-button{
  width:25px;
  height:24px
}
.card-actions .icon{
  width:13px;
  height:13px
}
.add-card{
  margin:4px 10px 11px;
  padding:11px;
  border:1px dashed var(--border);
  border-radius:7px;
  color:var(--muted);
  font-size:10px;
  display:flex;
  gap:7px;
  align-items:center;
  justify-content:center
}
.add-card:hover{
  background:var(--count-bg);
  color:var(--accent)
}
.add-card .icon{
  width:13px;
  height:13px
}
.column-empty{
  color:var(--muted);
  font-size:11px;
  text-align:center;
  margin:29px 12px;
  line-height:1.8
}
.column-empty .empty-icon{
  background:var(--decor);
  border-radius:50%;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  margin:0 auto 12px;
  color:var(--muted)
}
.board-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:10px;
  color:var(--muted);
  gap:15px;
  margin-top:10px
}
.saved{
  display:flex;
  align-items:center;
  gap:6px
}
.saved .icon{
  width:13px;
  height:13px;
  color:var(--success)
}
dialog{
  border:1px solid var(--border);
  border-radius:16px;
  padding:0;
  width:min(620px,calc(100% - 28px));
  max-height:88vh;
  box-shadow:0 25px 100px var(--shadow);
  color:var(--text);
  background:var(--surface)
}
dialog::backdrop{
  background:var(--overlay);
  backdrop-filter:blur(3px)
}
.dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  padding:25px 28px 20px;
  border-bottom:1px solid var(--border)
}
.dialog-head .subtitle{
  margin-top:7px
}
.dialog-body{
  padding:24px 28px
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px
}
.field{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:11px;
  font-weight:600;
  min-width:0
}
.field.full{
  grid-column:1/-1
}
input,select,textarea{
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  border-radius:7px;
  padding:11px 12px;
  min-width:0;
  width:100%;
  font-size:12px
}
input::placeholder,textarea::placeholder{
  color:var(--muted)
}
textarea{
  resize:vertical;
  min-height:112px;
  line-height:1.7
}
.field-hint{
  font-size:10px;
  color:var(--muted);
  font-weight:400;
  line-height:1.7
}
.dialog-foot{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  padding:18px 28px;
  border-top:1px solid var(--border);
  background:var(--soft)
}
.dialog-foot .danger{
  margin-right:auto
}
.form-error{
  font-size:11px;
  color:var(--danger);
  background:var(--danger-bg);
  border-radius:7px;
  padding:10px 12px;
  margin-top:16px;
  line-height:1.6
}
.form-error:empty{
  display:none
}
.empty-state{
  text-align:center;
  color:var(--muted);
  padding:40px 15px;
  font-size:12px;
  line-height:1.8
}
.empty-state .icon{
  width:35px;
  height:35px;
  display:block;
  margin:0 auto 14px;
  color:var(--muted)
}
.empty-state strong{
  display:block;
  color:var(--text);
  font-size:14px;
  font-weight:550;
  margin-bottom:6px
}
.list-row{
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:1px solid var(--border);
  padding:15px 0;
  min-width:0
}
.list-row:last-child{
  border:0
}
.list-info{
  flex:1;
  min-width:0
}
.list-info strong{
  font-size:12px;
  font-weight:600;
  display:block;
  overflow-wrap:anywhere
}
.list-info small{
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:5px
}
.client-initial{
  width:35px;
  height:35px;
  background:var(--soft);
  border-radius:10px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  color:var(--accent);
  font-size:12px;
  font-weight:600
}
.inline-form{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}
.inline-form input[type=text]{
  flex:1;
  min-width:120px
}
.client-list{
  margin-top:18px
}
.state-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:14px 0;
  border-bottom:1px solid var(--border)
}
.state-row input[type=text]{
  flex:1;
  min-width:120px
}
.color-input{
  width:37px;
  height:37px;
  padding:4px;
  flex:none;
  cursor:pointer
}
.check-label{
  font-size:10px;
  color:var(--muted);
  display:flex;
  gap:5px;
  align-items:center;
  white-space:nowrap
}
.check-label input{
  width:13px;
  accent-color:var(--accent)
}
.state-row .check-label{
  flex-basis:100%;
  padding-left:47px
}
.state-add{
  margin-top:21px
}
.section-label{
  font-size:10px;
  font-weight:650;
  letter-spacing:1px;
  color:var(--muted);
  margin:0 0 10px;
  text-transform:uppercase
}
.confirm{
  width:min(420px,calc(100% - 28px))
}
.confirm .dialog-body p{
  font-size:12px;
  color:var(--muted);
  line-height:1.9;
  margin:0
}
.drawer{
  margin:0 0 0 auto;
  height:100dvh;
  max-height:100dvh;
  width:min(440px,100%);
  border-radius:18px 0 0 18px;
  border-right:0
}
.drawer .dialog-head{
  padding:29px 27px
}
.drawer .dialog-body{
  padding:25px 27px
}
.drawer-profile{
  display:flex;
  align-items:center;
  gap:14px
}
.drawer-profile .client-initial{
  width:46px;
  height:46px;
  font-size:17px
}
.drawer-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  margin-bottom:29px
}
.drawer-stat{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:8px;
  padding:12px 5px;
  text-align:center
}
.drawer-stat strong{
  font-size:20px;
  display:block;
  margin-bottom:5px
}
.drawer-stat span{
  font-size:8px;
  color:var(--muted)
}
.history-row{
  border:1px solid var(--border);
  border-radius:10px;
  margin-bottom:10px;
  padding:15px;
  background:var(--card)
}
.history-title{
  font-size:12px;
  font-weight:550;
  text-align:left;
  padding:0;
  display:block;
  line-height:1.6;
  overflow-wrap:anywhere
}
.history-meta{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:9px;
  font-size:9px;
  color:var(--muted)
}
.history-meta .badge{
  margin-left:auto;
  background:var(--soft);
  border-radius:4px;
  padding:4px 6px
}
.history-row .button{
  margin-top:12px
}
.archived-label{
  color:var(--muted)
}
.loading{
  min-height:100vh;
  display:grid;
  place-items:center;
  font-size:13px;
  color:var(--muted)
}
.auth-shell{
  min-height:100dvh;
  display:grid;
  grid-template-columns:1fr 1fr
}
.auth-story{
  background:var(--soft);
  padding:48px 12%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  overflow:hidden
}
.auth-story .brand{
  color:var(--accent)
}
.story-content{
  padding:50px 0 30px;
  position:relative;
  z-index:1
}
.story-content h1{
  font-size:clamp(35px,4.2vw,64px);
  line-height:1.12;
  letter-spacing:-2px;
  color:var(--accent);
  font-weight:600;
  margin:0 0 22px
}
.story-content>p{
  font-size:13px;
  line-height:1.9;
  color:var(--muted);
  max-width:320px
}
.story-art{
  position:relative;
  width:280px;
  height:180px;
  margin:34px 0 10px;
  transform:rotate(-4deg)
}
.art-card{
  position:absolute;
  width:210px;
  height:94px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:13px;
  box-shadow:0 8px 25px var(--shadow-soft);
  padding:20px;
  left:15px;
  top:45px
}
.art-card:nth-child(2){
  transform:rotate(10deg);
  left:60px;
  top:10px;
  background:var(--soft)
}
.art-card:nth-child(3){
  left:0;
  top:74px;
  transform:rotate(-2deg)
}
.art-line{
  height:6px;
  border-radius:6px;
  background:var(--decor);
  width:75%;
  margin:10px 0
}
.art-line.short{
  width:43%;
  background:var(--decor)
}
.art-check{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--success);
  font-size:9px;
  background:var(--success-bg);
  padding:5px 7px;
  border-radius:5px
}
.auth-story-foot{
  font-size:10px;
  color:var(--muted);
  letter-spacing:.3px
}
.auth-main{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:45px;
  background:var(--surface)
}
.auth-form{
  width:100%;
  max-width:340px
}
.auth-form h2{
  font-size:26px;
  letter-spacing:-.9px;
  line-height:1.35;
  margin:13px 0
}
.auth-form .subtitle{
  margin-bottom:29px
}
.auth-form .field{
  margin-bottom:18px
}
.auth-form .button{
  width:100%;
  margin-top:8px
}
.password-wrap{
  position:relative
}
.password-wrap input{
  padding-right:45px
}
.password-wrap .icon-button{
  position:absolute;
  right:5px;
  top:5px
}
.auth-note{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:var(--muted);
  font-size:10px;
  margin-top:24px
}
.auth-note .icon{
  width:12px;
  height:12px
}
#toast{
  position:fixed;
  bottom:26px;
  left:calc(50% + var(--sidebar)/2);
  transform:translate(-50%,10px);
  background:var(--accent);
  color:var(--on-accent);
  padding:12px 19px;
  border-radius:9px;
  box-shadow:0 8px 30px var(--shadow);
  font-size:12px;
  z-index:100;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  max-width:calc(100% - 30px)
}
#toast.visible{
  opacity:1;
  transform:translate(-50%,0)
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.auth-main>.brand{
  display:none
}
.modal-search{
  margin-bottom:16px
}
.archive-list{
  max-height:50vh;
  overflow-y:auto
}
.logout-label{
  display:none
}
.no-results{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:10px;
  padding:30px;
  margin-bottom:20px;
  text-align:center;
  font-size:12px;
  color:var(--muted)
}
.subtitle,.stat-label,.card-note,.field-hint,.no-client,.toolbar-hint,.board-footer,.column-empty{
  color:var(--muted)
}
.due{
  color:var(--muted)
}
input::placeholder,textarea::placeholder{
  color:var(--muted)
}
.column-empty .empty-icon{
  color:var(--muted)
}
.list-info small,.history-meta,.section-label,.check-label{
  color:var(--muted)
}
.card-actions .icon-button:disabled{
  opacity:.25
}
.art-check .icon{
  width:12px;
  height:12px
}
.state-row .form-error,.inline-form .form-error{
  flex-basis:100%
}
@media(min-width:1500px){
  .column{
    flex-basis:320px
  }
  .content{
    padding-top:43px
  }
  .board{
    min-height:500px
  }
}
@media(max-width:1150px){
  :root{
    --sidebar:190px
  }
  .sidebar{
    padding:30px 12px
  }
  .content{
    padding:30px 25px
  }
  .topbar{
    padding:0 25px
  }
  .stats{
    gap:10px
  }
  .stat{
    padding:15px
  }
  .stat-icon{
    width:32px;
    height:32px
  }
  .toolbar-hint{
    display:none
  }
  .column{
    flex-basis:255px;
    min-width:255px
  }
  .sidebar .brand{
    margin-bottom:43px
  }
  .stat-label{
    font-size:10px
  }
}
@media(max-width:800px){
  :root{
    --sidebar:70px
  }
  .sidebar{
    padding:22px 10px
  }
  .sidebar .brand{
    margin:0 5px 35px
  }
  .sidebar .brand>span{
    display:none
  }
  .brand-mark{
    width:36px;
    height:36px
  }
  .nav-label,.nav-button>span,.sidebar-bottom,.side-divider{
    display:none
  }
  .nav-button{
    padding:15px;
    justify-content:center
  }
  .sidebar nav{
    margin-top:5px
  }
  .content{
    padding:27px 22px
  }
  .topbar{
    height:70px;
    padding:0 22px
  }
  .stats{
    grid-template-columns:repeat(2,1fr)
  }
  .page-heading{
    align-items:flex-start
  }
  h1{
    font-size:26px
  }
  .profile-text{
    display:none
  }
  .auth-story{
    padding:35px 10%
  }
  .story-content h1{
    font-size:40px
  }
  .auth-main{
    padding:30px
  }
  .story-art{
    transform:scale(.85) rotate(-4deg);
    transform-origin:left top;
    height:160px
  }
  .column{
    max-width:340px
  }
  .board-footer>span:last-child{
    display:none
  }
}
@media(max-width:540px){
  :root{
    --sidebar:0px
  }
  .sidebar{
    position:static;
    width:100%;
    height:65px;
    padding:0 18px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--border);
    border-right:0
  }
  .sidebar .brand{
    margin:0;
    font-size:20px
  }
  .sidebar .brand>span{
    display:block
  }
  .sidebar .brand em{
    font-size:8px;
    letter-spacing:1.2px
  }
  .sidebar nav{
    display:flex;
    margin:0;
    gap:2px
  }
  .nav-button{
    width:34px;
    height:36px;
    padding:7px;
    margin:0
  }
  .nav-button .icon{
    width:17px
  }
  .sidebar .brand-mark{
    width:31px;
    height:31px
  }
  .topbar{
    height:53px;
    padding:0 18px
  }
  .breadcrumb{
    font-size:10px;
    gap:8px
  }
  .profile{
    gap:6px
  }
  .avatar{
    width:27px;
    height:27px;
    font-size:10px
  }
  .content{
    padding:25px 17px
  }
  .page-heading{
    margin-bottom:20px;
    gap:10px
  }
  .page-heading .button{
    padding:10px 11px;
    font-size:10px;
    margin-top:10px
  }
  .page-heading .button .icon{
    width:14px
  }
  h1{
    font-size:24px
  }
  .eyebrow{
    font-size:8px
  }
  .subtitle{
    font-size:11px
  }
  .stats{
    gap:9px;
    margin-bottom:21px
  }
  .stat{
    padding:13px
  }
  .stat-value{
    font-size:22px
  }
  .stat-icon{
    width:31px;
    height:31px
  }
  .toolbar{
    margin-bottom:19px
  }
  .toolbar-left{
    width:100%;
    gap:8px
  }
  .search-field{
    min-width:0;
    flex:1
  }
  .toolbar select{
    width:117px
  }
  .toolbar .button{
    display:none
  }
  .column{
    flex-basis:calc(100vw - 60px);
    min-width:calc(100vw - 60px)
  }
  .board{
    gap:14px;
    scroll-snap-type:x proximity
  }
  .column{
    scroll-snap-align:start
  }
  .dialog-head,.dialog-body,.job-notes{
    padding:20px
  }
  .dialog-foot{
    padding:16px 20px
  }
  .form-grid{
    gap:14px
  }
  .form-grid>.field{
    grid-column:1/-1
  }
  .auth-shell{
    display:block
  }
  .auth-story{
    display:none
  }
  .auth-main{
    min-height:100dvh;
    padding:28px;
    flex-direction:column;
    gap:50px
  }
  .auth-main>.brand{
    display:flex;
    width:100%;
    max-width:340px
  }
  .auth-form h2{
    font-size:27px
  }
  #toast{
    left:50%;
    bottom:17px
  }
  .state-row .icon-button{
    width:26px
  }
  .state-row .button{
    padding:6px 7px
  }
  .list-row{
    gap:8px
  }
  .list-row .button{
    padding:6px 8px
  }
  .drawer{
    border-radius:0
  }
  .archive-list{
    max-height:48vh
  }
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    transition:none!important;
    animation:none!important;
    scroll-behavior:auto!important
  }
}

.theme-selector{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);flex-shrink:0}
.theme-selector select{width:auto;padding:7px 9px;font-size:11px}
.auth-content{width:100%;max-width:340px}
.auth-tools{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:28px}
.account-email{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.admin-content{max-width:960px}
.admin-panel{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:22px}
.admin-panel h2{margin-bottom:12px}
.admin-panel .inline-form{margin-top:20px;align-items:flex-end}
.admin-panel .inline-form .field{flex:1;min-width:160px}
.admin-panel .inline-form .form-error{margin-top:0}
.temporary-password{margin-top:24px}
.temporary-password input{font-family:Consolas,monospace;font-size:18px;font-weight:600;letter-spacing:.6px}
.client-link{flex-shrink:1;min-width:0}
.card-top>.icon-button{flex-shrink:0}
.session-warning{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:20;width:max-content;max-width:calc(100vw - 32px);padding:14px 18px;background:var(--card);color:var(--text);border:2px solid var(--accent);border-radius:10px;box-shadow:0 4px 18px #0002;font-size:13px}
.session-warning[hidden]{display:none}
.session-warning-inline{padding:14px 24px;margin:0;background:var(--warning-bg);color:var(--warning);border-bottom:2px solid var(--accent);font-size:13px}
.account-exit{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid var(--border)}
.account-exit h3{width:100%}
#password-form .field{margin-top:16px}
@media(max-width:800px){.topbar .breadcrumb>span{display:none}.topbar .breadcrumb{gap:7px}}
@media(max-width:540px){
  .topbar{gap:8px}
  .topbar .breadcrumb{font-size:9px}
  .topbar .breadcrumb>.icon:first-child{display:none}
  .theme-selector{gap:4px;font-size:10px}
  .theme-selector select{padding:6px;font-size:10px;max-width:85px}
  .admin-shell .topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:14px 17px}
  .admin-shell .topbar .brand{font-size:21px}
  .admin-shell .brand em{font-size:8px;letter-spacing:1.2px}
  .admin-shell .profile{margin-left:auto}
  .admin-panel{padding:18px}
  .admin-panel .list-row{flex-wrap:wrap}
  .admin-panel .list-row .list-info{flex-basis:100%}
  .temporary-password input{font-size:16px}
}
