:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --ink:#172033;
  --muted:#697386;
  --line:#e5e8f0;
  --brand:#3b5bfd;
  --brand-soft:#eef1ff;
  --danger:#d93025;
  --good:#0b8043;
  --warn:#b06000;
  --shadow:0 12px 30px rgba(23,32,51,.08);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.45}
a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}
.layout{min-height:100vh;display:flex}
.sidebar{width:250px;background:#11182a;color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh;overflow:auto}
.logo{font-weight:800;font-size:22px;letter-spacing:.02em;margin:0 0 4px}.sublogo{color:#b8c1d8;font-size:12px;margin-bottom:22px}
.nav a{display:block;color:#dce3ff;padding:10px 12px;border-radius:10px;margin:3px 0}.nav a.active,.nav a:hover{background:#232d49;color:#fff;text-decoration:none}
.main{flex:1;min-width:0}.topbar{background:#fff;border-bottom:1px solid var(--line);padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:3}.topbar h1{margin:0;font-size:20px}.userbox{color:var(--muted);font-size:13px;text-align:right}
.content{padding:24px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:18px;box-shadow:var(--shadow)}.card h2{margin:0 0 12px;font-size:18px}.card h3{margin:12px 0 10px;font-size:15px}.muted{color:var(--muted)}.small{font-size:12px;color:var(--muted)}
.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.grid{display:grid;gap:14px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:900px){.layout{display:block}.sidebar{width:auto;height:auto;position:relative}.grid-2,.grid-3{grid-template-columns:1fr}.topbar{position:relative}.content{padding:14px}}
label{display:block;font-weight:650;margin:10px 0 5px}input,select,textarea{width:100%;padding:10px 11px;border:1px solid #cfd5e3;border-radius:10px;background:#fff;color:var(--ink);font:inherit}textarea{min-height:90px;resize:vertical}.field-inline{display:flex;gap:8px}.check{display:flex;align-items:center;gap:8px;font-weight:500;margin:6px 0}.check input{width:auto}.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px 12px;margin:8px 0}.button,button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:10px;padding:10px 14px;background:var(--brand);color:#fff;font-weight:750;cursor:pointer;text-decoration:none}.button:hover,button:hover{text-decoration:none;filter:brightness(.96)}.button-light{background:#eef1f6;color:#172033}.button-danger{background:var(--danger)}.button-small{padding:7px 10px;font-size:12px}.inline-form{display:inline}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.filters input,.filters select{width:auto;min-width:150px}.notice{padding:12px 14px;border-radius:12px;border:1px solid #b9e4c9;background:#effbf3;color:#14532d;margin-bottom:15px}.notice.error{border-color:#ffcbc7;background:#fff4f3;color:#8a1c14}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}.task-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1300px;background:#fff}.task-table th,.task-table td{border-bottom:1px solid var(--line);padding:12px;vertical-align:top;text-align:left}.task-table th{background:#f0f3fb;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#526078;position:sticky;top:0;z-index:1}.task-table tr:last-child td{border-bottom:0}.task-desc{white-space:pre-wrap;min-width:320px;max-width:460px}.task-meta{font-size:11px;color:var(--muted);margin-top:6px}.pill,.priority,.status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;margin:2px 3px 2px 0;background:#edf0f7;color:#3f4b63}.priority-low{background:#e8f5e9;color:#176b2c}.priority-medium{background:#fff4d8;color:#7a4a00}.priority-high{background:#ffe7e5;color:#a32118}.status-open{background:#edf0f7;color:#3f4b63}.status-in_progress{background:#e5efff;color:#164a9b}.status-blocked{background:#fff0db;color:#8a4b00}.status-done{background:#e4f7ee;color:#0b6b3d}.link-list,.attach-list{display:flex;flex-direction:column;gap:5px;min-width:180px}.link-list a,.attach-list a{word-break:break-word}.avatar{display:inline-flex;width:22px;height:22px;border-radius:50%;background:#e7eaff;color:#2536a8;align-items:center;justify-content:center;font-weight:900;font-size:11px;margin-right:4px}.empty{border:1px dashed #cfd5e3;border-radius:14px;padding:30px;text-align:center;color:var(--muted);background:#fbfcff}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#11182a;color:#eaf0ff;padding:12px;border-radius:12px;overflow:auto;white-space:pre-wrap}.login-wrap{max-width:440px;margin:8vh auto;padding:0 16px}.login-logo{text-align:center;margin-bottom:18px}.login-logo h1{margin:0;font-size:30px}.preview-frame{width:100%;height:75vh;border:1px solid var(--line);border-radius:12px;background:#fff}.thumb{max-width:100%;max-height:500px;border-radius:12px;border:1px solid var(--line)}.danger-text{color:var(--danger)}.nowrap{white-space:nowrap}.install-wrap{max-width:980px;margin:30px auto;padding:0 16px}.install-title{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.wizard-badge{background:#11182a;color:#fff;padding:8px 12px;border-radius:999px;font-weight:800}


/* v1.4.1: cache-busted assets, reliable icon sidebar and single-row board filters */
.sidebar{transition:width .18s ease,padding .18s ease;padding-top:14px}.brand{margin-top:6px}.sidebar-toggle{width:100%;background:#232d49;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:8px 10px;margin-bottom:14px}.nav a{display:flex;align-items:center;gap:10px}.nav-icon{display:inline-flex;width:22px;min-width:22px;justify-content:center;font-weight:900}.nav-label{white-space:nowrap}.sidebar-collapsed .sidebar{width:76px;min-width:76px;padding-left:10px;padding-right:10px}.sidebar-collapsed .sublogo,.sidebar-collapsed .nav-label{display:none}.sidebar-collapsed .logo{text-align:center;font-size:18px}.sidebar-collapsed .nav a{justify-content:center;padding:12px 8px}.sidebar-collapsed .sidebar-toggle{padding:8px}.sidebar-collapsed .main{width:calc(100vw - 76px)}
.filters-wide{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px;align-items:flex-end;margin:10px 0 16px;padding:10px 2px 12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.filters-wide>div{flex:0 0 158px;min-width:158px}.filters-wide>div:first-of-type,.filters-wide>div:nth-of-type(2){flex-basis:190px}.filters-wide label{display:block;margin:0;font-size:12px;color:var(--muted);font-weight:750;white-space:nowrap}.filters-wide input,.filters-wide select{width:100%;min-width:0;margin-top:5px;height:40px}.filter-check{align-self:center;margin-top:20px;color:var(--ink)!important}.filter-check input{width:auto;margin-top:0}.filter-actions{flex:0 0 170px!important;min-width:170px!important;display:flex;gap:6px;align-items:flex-end}.filter-actions .button,.filter-actions button{height:40px;white-space:nowrap}.inline-form{display:inline-flex;margin:0 0 0 6px;vertical-align:middle}.strong-link{font-weight:900}.nowrap form.inline-form{white-space:normal}.button-danger{background:var(--danger)}
@media(max-width:900px){.layout{display:flex}.sidebar{position:sticky;width:76px;min-width:76px;height:100vh}.sidebar .sublogo,.sidebar .nav-label{display:none}.sidebar .logo{text-align:center;font-size:18px}.sidebar .nav a{justify-content:center;padding:12px 8px}.sidebar-toggle{width:100%}.sidebar-collapsed .sidebar{width:76px}.sidebar-collapsed .main,.main{width:calc(100vw - 76px)}.content{padding:14px}.filters-wide{margin-left:-2px;margin-right:-2px}}
.action-stack{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.action-stack form{margin:0}.action-stack .button,.action-stack button{width:100%}

/* v1.6: photo-first compact task board, in-page previews, whiteboards and encrypted task vault */
body.modal-open{overflow:hidden}.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:22px}.modal-backdrop{position:absolute;inset:0;background:rgba(17,24,42,.62)}.modal-panel{position:relative;background:#fff;border-radius:18px;border:1px solid var(--line);box-shadow:0 24px 80px rgba(0,0,0,.22);width:min(1180px,96vw);height:min(860px,92vh);display:flex;flex-direction:column;overflow:hidden}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line);background:#f8faff}.modal-head h2{margin:0;font-size:18px}.modal-body{flex:1;min-height:0;padding:12px;background:#eef1f6;display:flex;align-items:center;justify-content:center;overflow:auto}.modal-preview-frame{width:100%;height:100%;border:0;background:#fff;border-radius:12px}.modal-preview-image{max-width:100%;max-height:100%;border-radius:12px;background:#fff}.modal-preview-media{max-width:100%;max-height:100%;border-radius:12px;background:#000}.modal-preview-audio{width:min(720px,95%)}.link-button{border:0;background:transparent;color:var(--brand);font:inherit;font-size:12px;font-weight:750;padding:0;cursor:pointer;text-decoration:none}.link-button:hover{text-decoration:underline;filter:none}.attach-list-compact{min-width:220px;max-width:270px}.attachment-row{display:grid;grid-template-columns:minmax(90px,1fr) auto auto;gap:7px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:7px;background:#fbfcff}.attachment-row .file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-detail{grid-template-columns:minmax(0,1fr) auto;align-items:center}.attach-list-detail{gap:9px}.avatar-photo{display:inline-flex;width:38px;height:38px;border-radius:50%;object-fit:cover;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);background:#e7eaff;color:#2536a8;font-size:12px;font-weight:900;vertical-align:middle}.avatar-fallback{line-height:38px;text-align:center}.topbar-avatar{width:34px;height:34px}.profile-preview{width:86px;height:86px;font-size:24px}.profile-photo-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.userbox-photo{display:flex;gap:10px;align-items:center;text-align:left}.avatar-cell{min-width:58px;text-align:center}.avatar-stack{display:flex;gap:0;align-items:center;justify-content:center}.avatar-stack .avatar-photo{margin-left:-8px}.avatar-stack .avatar-photo:first-child{margin-left:0}.task-row-mine td{background:#e9f8ec!important}.task-table-compact{min-width:1180px}.task-table-compact th:nth-child(1),.task-table-compact td:nth-child(1){width:72px}.task-table-compact th:nth-child(2),.task-table-compact td:nth-child(2){width:120px}.task-table-compact th:nth-child(3),.task-table-compact td:nth-child(3),.task-table-compact th:nth-child(4),.task-table-compact td:nth-child(4){width:74px}.task-id-cell{font-weight:900;white-space:nowrap}.date-two-line{white-space:normal;line-height:1.25;font-size:12px;min-width:115px}.task-desc-compact{min-width:280px;max-width:380px}.desc-line{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}.task-meta-line{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-button{font-size:13px}.vault-textarea{min-height:52vh;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.45}.whiteboard-card{padding:14px}.whiteboard-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px;padding:10px;border:1px solid var(--line);background:#fbfcff;border-radius:14px}.whiteboard-tools .active{background:var(--brand);color:#fff}.wb-inline{display:inline-flex;align-items:center;gap:7px;margin:0;font-size:12px;color:var(--muted);font-weight:800}.wb-inline input[type=color]{width:44px;height:34px;padding:3px}.wb-inline input[type=range]{width:110px}.wb-file-label{position:relative;overflow:hidden;margin:0}.wb-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer}.whiteboard-stage{position:relative;width:100%;height:72vh;min-height:540px;overflow:auto;border:1px solid var(--line);border-radius:16px;background:#dfe4ee;background-image:linear-gradient(#cfd5e3 1px,transparent 1px),linear-gradient(90deg,#cfd5e3 1px,transparent 1px);background-size:40px 40px;touch-action:none}.whiteboard-stage canvas{position:absolute;left:0;top:0;width:2200px;height:1400px;background:#fff;box-shadow:0 8px 30px rgba(23,32,51,.12);touch-action:none}.whiteboard-stage #whiteboard-note-layer{position:absolute;left:0;top:0;width:2200px;height:1400px;pointer-events:none}.wb-note{position:absolute;background:#fff8bd;border:1px solid #e4ca54;border-radius:10px;box-shadow:0 8px 20px rgba(23,32,51,.15);display:flex;flex-direction:column;overflow:hidden;pointer-events:auto}.wb-note-handle{height:28px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:space-between;padding:0 8px;font-size:12px;font-weight:900;cursor:move}.wb-note textarea{border:0;border-radius:0;background:transparent;min-height:0;resize:none;flex:1;padding:8px;font-size:13px}.wb-note textarea:focus{outline:0}.wb-note-delete{background:transparent;color:#172033;padding:0;border:0;width:22px;height:22px;line-height:22px;font-size:17px}.wb-note-delete:hover{filter:none;color:var(--danger)}
@media(max-width:900px){.modal{padding:8px}.modal-panel{width:98vw;height:94vh}.attachment-row{grid-template-columns:1fr;align-items:start}.whiteboard-stage{height:68vh}.whiteboard-tools{align-items:flex-start}.task-desc-compact{min-width:220px}.desc-line{max-width:240px}}

/* v1.7: task billing close gate */
.billing-cell{min-width:105px;white-space:normal;font-size:12px;font-weight:750;line-height:1.25;color:#334155}.task-table-compact{min-width:1280px}.billing-required-note{border:1px solid #ffe0a3;background:#fff9ed;color:#7a4a00;border-radius:12px;padding:10px 12px;margin:10px 0;font-size:12px;font-weight:700}

/* v1.8 task comments */
.comment-textarea{min-height:90px}
.comment-list{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.comment-item{display:flex;gap:12px;border:1px solid var(--line);background:#fbfcff;border-radius:14px;padding:12px}
.comment-avatar{flex:0 0 auto}
.comment-body{min-width:0;flex:1}
.comment-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.comment-text{white-space:pre-wrap;line-height:1.45;color:var(--ink)}
@media (max-width:720px){.comment-head{display:block}.comment-item{align-items:flex-start}}

/* v1.9: compact board typography, simplified attachment controls, separate billing page */
.task-table-compact th,
.task-table-compact td{font-size:12px;line-height:1.35}
.task-table-compact .button,
.task-table-compact button,
.task-table-compact .button-small,
.task-table-compact .link-button,
.task-table-compact .priority,
.task-table-compact .status{font-size:12px}
.task-table-compact{min-width:1180px}
.task-table-compact th:nth-child(5),
.task-table-compact td:nth-child(5){min-width:330px;max-width:430px}
.desc-line{font-weight:400;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:410px;line-height:1.35}
.task-desc-compact{min-width:330px;max-width:430px}
.task-meta-line{font-size:11px;margin-top:2px}
.attachment-row{grid-template-columns:minmax(95px,1fr) auto}
.attachment-row .file-name,
.file-name-link{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px;font-weight:650}
.attachment-detail .file-name-link{max-width:520px}
.billing-table{min-width:1120px}
.billing-table th,.billing-table td{font-size:12px;line-height:1.35}
.billing-table input{font-size:12px;padding:7px 8px;min-width:90px}
.billing-desc{min-width:300px;max-width:560px;white-space:pre-line;line-height:1.4}
.billing-actions{margin:0 0 12px}
.invoice-draft .task-table{min-width:900px}
@media print{.sidebar,.topbar,.filters-wide,.billing-actions,.invoice-draft .toolbar .row{display:none!important}.layout,.main{display:block;width:100%!important}.content{padding:0}.card{box-shadow:none;border:0}}
@media(max-width:900px){.task-table-compact th:nth-child(5),.task-table-compact td:nth-child(5),.task-desc-compact{min-width:260px}.desc-line{max-width:260px}.attachment-detail .file-name-link{max-width:260px}}


/* v1.9.1 attachment filename preview refinement */
.task-table-compact,
.task-table-compact th,
.task-table-compact td,
.task-table-compact a,
.task-table-compact button,
.task-table-compact .priority,
.task-table-compact .status{font-size:12px}
.attachment-row{grid-template-columns:minmax(0,1fr)!important}
.attachment-compact-row{padding:6px 7px}
.file-name-link{display:block;color:var(--brand);font-weight:650;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.file-name-link:hover{text-decoration:underline}
.attachment-detail .file-name-link{max-width:min(520px,70vw)}

/* v1.9.2 final task-board refinements */
.task-table-compact,
.task-table-compact *{font-size:12px!important}
.task-table-compact th,
.task-table-compact td{font-size:12px!important;line-height:1.35;padding:9px 10px}
.task-desc-compact{min-width:330px;max-width:460px}
.desc-text,
.desc-line{font-weight:400!important;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:430px;line-height:1.35}
.task-meta-line{font-size:11px!important;font-weight:400;color:var(--muted);margin-top:3px}
.attachment-row{grid-template-columns:minmax(95px,1fr) auto!important;gap:7px;align-items:center}
.attachment-compact-row{grid-template-columns:minmax(95px,1fr) auto!important}
.attachment-file-link{display:block;color:var(--brand);font-weight:650;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:185px}
.attachment-file-link:hover{text-decoration:underline}
.attachment-detail .attachment-file-link{max-width:min(560px,70vw)}
.attachment-preview-button{white-space:nowrap}
.billing-table{min-width:1120px}
.billing-table th,.billing-table td{font-size:12px;line-height:1.35}
.billing-desc{min-width:300px;max-width:560px;white-space:pre-line;line-height:1.4}
@media(max-width:900px){.task-desc-compact{min-width:260px}.desc-text,.desc-line{max-width:260px}.attachment-detail .attachment-file-link{max-width:260px}}

/* v1.10.0 billing description, longer board descriptions, instant filters */
.task-table-compact th,.task-table-compact td{font-size:12px!important}
.task-desc-compact{min-width:390px;max-width:540px!important;vertical-align:top}
.desc-line,.desc-text{font-weight:400!important;white-space:pre-line!important;display:-webkit-box!important;-webkit-line-clamp:6!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:520px!important;line-height:1.35!important}
.auto-filter-note{display:inline-flex;align-items:center;height:40px;color:var(--muted);font-weight:800;white-space:nowrap}
.billing-table{min-width:1320px}.billing-work{min-width:320px}.billing-work textarea{min-height:90px;font-size:12px;line-height:1.35}.pill-warn{background:#fff4cc;color:#7a4a00;border-color:#f4d776}.recaptcha-wrap{margin-top:14px}.login-wrap .g-recaptcha{transform-origin:left top;max-width:100%;overflow:hidden}
@media(max-width:900px){.task-desc-compact{min-width:300px}.desc-line,.desc-text{max-width:300px!important}.billing-work{min-width:260px}}

/* v1.11.0: My Work landing page, Project Board, compact auto-collapsing sidebar and commented status changes */
.sidebar{
  width:218px;
  min-width:218px;
  padding:12px 10px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.sidebar .brand{padding:0 7px 8px;margin-top:2px}
.sidebar .sublogo{margin-bottom:8px}
.sidebar-toggle{margin-bottom:8px;flex:0 0 auto}
.nav-main{overflow-y:auto;overflow-x:hidden;min-height:0}
.nav a{padding:8px 9px;margin:2px 0;border-radius:9px;font-size:13px}
.nav-icon{width:20px;min-width:20px}
.sidebar-spacer{flex:1;min-height:12px}
.manage-panel{background:#1d2a48;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:8px;flex:0 0 auto}
.nav-section-title{font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.12em;color:#aebbd9;font-weight:850;padding:2px 7px 7px}
.nav-manage a{padding:7px 8px;font-size:12px}
.sidebar-collapsed .sidebar{width:62px;min-width:62px;padding-left:7px;padding-right:7px}
.sidebar-collapsed .main{width:calc(100vw - 62px)}
.sidebar-collapsed .nav-section-title,.sidebar-collapsed .brand .sublogo{display:none}
.sidebar-collapsed .manage-panel{padding:5px}
.sidebar-collapsed .logo{font-size:15px}
.topbar{padding:11px 16px;min-height:58px}
.content{padding:14px 16px}
.userbox-profile-link{color:var(--muted);padding:5px 8px;border-radius:12px}
.userbox-profile-link:hover{background:var(--brand-soft);text-decoration:none;color:var(--ink)}
.userbox-profile-link strong{color:var(--ink)}
.readonly-status{min-height:42px;display:flex;align-items:center;padding:7px 0}
.status-change-button{white-space:nowrap}
.status-modal-panel{width:min(560px,96vw);height:auto;max-height:90vh}
.status-modal-body{padding:18px;overflow:auto;background:#fff}
.status-modal-body textarea{min-height:140px}
.my-work-table{min-width:880px}
.my-work-table th,.my-work-table td{font-size:12px}
.my-work-description{min-width:340px;max-width:620px;white-space:pre-line;line-height:1.4}
.my-work-card{margin-bottom:0}
.project-table{min-width:1280px}
.project-table th,.project-table td{font-size:12px!important}
.project-title-line{font-weight:800;margin-bottom:4px;line-height:1.3}
.project-parent-row td{border-top:2px solid #cfd7ee}
.project-subtask-row td{background:#f8faff}
.project-subtask-row.task-row-mine td{background:#e9f8ec!important}
.project-subtask-row .task-id-cell{padding-left:16px}
.subtask-indent{display:inline-block;margin-right:5px;color:var(--muted)}
.button-add-subtask{font-size:12px;font-weight:900}
.project-detail-subtasks{min-width:900px}
.project-detail-subtasks th,.project-detail-subtasks td{font-size:12px}
.project-filters>div:first-of-type{flex-basis:240px}
.onboarding-wrap{max-width:1040px;margin:5vh auto;padding:0 18px}
.onboarding-card{padding:24px}
.onboarding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.onboarding-step{position:relative;border:1px solid var(--line);border-radius:16px;padding:20px;background:#fbfcff;min-height:270px}
.onboarding-step.complete{border-color:#9dd6b3;background:#f2fbf5}
.step-number{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--brand);color:#fff;font-weight:900;margin-bottom:10px}
.onboarding-step.complete .step-number{background:var(--good)}
.onboarding-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}
.onboarding-step .code{font-size:11px;word-break:break-all}
@media(max-width:900px){
  .sidebar{width:62px;min-width:62px;padding-left:7px;padding-right:7px}
  .sidebar .nav-section-title{display:none}
  .sidebar .manage-panel{padding:5px}
  .main,.sidebar-collapsed .main{width:calc(100vw - 62px)}
  .content{padding:10px}
  .topbar{padding:9px 10px}
  .topbar h1{font-size:17px}
  .userbox-profile-link div{display:none}
  .onboarding-grid{grid-template-columns:1fr}
  .onboarding-wrap{margin:2vh auto;padding:0 10px}
  .project-table{min-width:1160px}
}

/* v1.11.1: preserve table-cell sizing for avatar and action stacks.
   These classes are applied directly to <td> elements on the task board.
   A flex display on the cell itself breaks normal table-row height and borders. */
.task-table td.avatar-stack,
.task-table td.action-stack{
  display:table-cell;
  vertical-align:top;
}
.task-table td.avatar-stack{
  text-align:center;
  white-space:nowrap;
}
.task-table td.action-stack{
  min-width:118px;
  white-space:normal;
}
.task-table td.action-stack > .button,
.task-table td.action-stack > button,
.task-table td.action-stack > form{
  display:flex;
  width:100%;
  margin:0 0 6px;
}
.task-table td.action-stack > :last-child{
  margin-bottom:0;
}
.task-table td.action-stack > form > button{
  width:100%;
}

/* v1.12.0: table-cell alignment, compact actions, staff timers and billing-aware status modal */
.task-table td.avatar-cell,
.task-table td.actions-cell{
  display:table-cell!important;
  vertical-align:top!important;
  height:100%;
}
.task-table td.avatar-cell{min-width:64px;text-align:center;white-space:nowrap}
.task-table td.avatar-cell>.avatar-stack{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:0;
  width:100%;
  min-height:38px;
  margin:0;
  padding:0;
}
.task-table td.avatar-cell>.avatar-stack .avatar-photo{flex:0 0 auto}
.task-table td.actions-cell{width:108px;min-width:108px;white-space:normal!important}
.task-table td>.action-stack,
.action-stack{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:6px;
  width:96px;
  min-width:96px;
  margin:0;
  padding:0;
}
.task-table td>.action-stack>.button,
.task-table td>.action-stack>button,
.task-table td>.action-stack>form,
.action-stack>.button,
.action-stack>button,
.action-stack>form{
  width:96px;
  min-width:96px;
  max-width:96px;
  margin:0;
}
.action-stack>form{display:block}
.action-stack>form>button{width:96px;min-width:96px;max-width:96px;margin:0}
.action-stack .button-small,.action-stack button{min-height:30px;padding:6px 7px;font-size:11px;line-height:1.15;white-space:normal;text-align:center}
.status-change-button{white-space:nowrap!important}

.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.topbar-timer{display:flex;align-items:center;justify-content:flex-start;gap:9px;max-width:310px;min-height:42px;padding:6px 10px;border:1px solid var(--line);background:#f8faff;color:var(--ink);border-radius:12px;text-align:left;box-shadow:none}
.topbar-timer:hover{background:var(--brand-soft);filter:none}
.topbar-timer.is-running{border-color:#8fd6ad;background:#effaf3}
.timer-dot{width:10px;height:10px;border-radius:50%;background:#9aa4b5;box-shadow:0 0 0 4px rgba(154,164,181,.16);flex:0 0 auto}
.topbar-timer.is-running .timer-dot{background:var(--good);box-shadow:0 0 0 4px rgba(11,128,67,.14)}
.topbar-timer-copy{display:flex;min-width:0;flex-direction:column;line-height:1.18}
.topbar-timer-copy strong{display:block;max-width:245px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--ink)}
.topbar-timer-copy span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}

.work-timer-panel{width:min(760px,96vw);height:auto;max-height:94vh}
.work-timer-body{padding:18px;overflow:auto;background:#fff}
.work-timer-current{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;margin-bottom:14px;border:1px solid #b9e4c9;border-radius:14px;background:#effbf3}
.work-timer-current h3{margin:2px 0 0;font-size:15px;max-width:510px}
.work-timer-clock{font-size:28px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.03em;white-space:nowrap;color:var(--good)}
.work-timer-checkin-form,.work-timer-finish-form{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fbfcff;margin:0 0 14px}
.work-timer-finish-form[hidden]{display:none!important}
.timer-snooze-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.timer-snooze-grid button{padding:9px 8px;font-size:12px}
.timer-close-check{margin:14px 0;font-weight:750}
.status-billing-fields{margin:14px 0;padding:14px;border:1px solid #f0cc78;border-radius:14px;background:#fffaf0}
.status-billing-fields[hidden]{display:none!important}
.status-billing-fields .notice{margin-bottom:12px}
.status-modal-panel{width:min(650px,96vw)}
.status-modal-body{max-height:78vh}

.team-work-status{border-color:#cbd7ff}
.team-timer-table{min-width:1080px}
.team-timer-table th,.team-timer-table td{font-size:12px}
.team-member-cell{display:flex;align-items:center;gap:10px;min-width:170px}
.team-member-cell .avatar-photo{flex:0 0 auto}
.team-elapsed{font-size:14px;font-variant-numeric:tabular-nums;color:var(--good);white-space:nowrap}
.task-time-table{min-width:1080px}
.task-time-table th,.task-time-table td{font-size:12px}
.time-entry-note{min-width:320px;max-width:620px;white-space:normal;line-height:1.4}

@media(max-width:900px){
  .topbar-actions{gap:6px}
  .topbar-timer{max-width:150px;padding:6px 8px}
  .topbar-timer-copy strong{max-width:105px}
  .userbox-profile-link div{display:none}
  .timer-snooze-grid{grid-template-columns:1fr 1fr}
  .work-timer-current{align-items:flex-start;flex-direction:column}
  .work-timer-clock{font-size:24px}
}

/* v1.12.0 timer state safety */
.work-timer-checkin-form[hidden],
.timer-closed-notice[hidden]{display:none!important}

/* v1.13.0: resizable/hideable work-board columns and dual horizontal navigation */
.column-picker{position:relative;z-index:12}
.column-picker>summary{list-style:none;white-space:nowrap}
.column-picker>summary::-webkit-details-marker{display:none}
.column-picker[open]>summary{background:var(--brand);color:#fff}
.column-picker-menu{position:absolute;right:0;top:calc(100% + 7px);width:255px;max-height:min(520px,70vh);overflow:auto;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 18px 46px rgba(23,32,51,.2);color:var(--ink)}
.column-picker-menu>strong{display:block;margin-bottom:8px}
.column-picker-menu .check{font-size:12px;margin:4px 0;padding:3px 2px}
.column-picker-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.column-picker-actions button{flex:1;min-width:95px}
.board-closed-note{margin:2px 0 0;font-size:12px}
.urgent-project-check{display:inline-flex;margin:11px 0 4px;padding:8px 10px;border:1px solid #ffc8c2;border-radius:10px;background:#fff4f3;color:#8a1c14;font-weight:800}
.priority-urgent{background:#ff3b30;color:#fff}

.table-scroll-shell{position:relative;min-width:0}
.table-scroll-top{height:19px;overflow-x:auto;overflow-y:hidden;margin:0 0 5px;border:1px solid var(--line);border-radius:8px;background:#f3f5fa;scrollbar-width:auto}
.table-scroll-spacer{height:1px;min-width:100%}
.table-scroll-shell>.table-wrap{border-radius:12px}
.table-scroll-floating{position:sticky;top:70px;z-index:9;height:0;display:flex;align-items:center;justify-content:space-between;padding:0 7px;pointer-events:none;transform:translateY(18px)}
.table-scroll-floating[hidden]{display:none!important}
.table-scroll-arrow{pointer-events:auto;width:38px;height:38px;min-width:38px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--brand);color:#fff;font-size:20px;font-weight:900;line-height:1;box-shadow:0 7px 20px rgba(23,32,51,.28);opacity:.94}
.table-scroll-arrow:hover{filter:brightness(.94);transform:scale(1.03)}
.table-scroll-arrow:disabled{opacity:.22;cursor:default;transform:none;filter:none}

.resizable-table{table-layout:fixed!important;width:auto}
.resizable-table th,.resizable-table td{min-width:0!important;max-width:none!important;overflow:hidden}
.resizable-table th[hidden],.resizable-table td[hidden]{display:none!important}
.resizable-table .task-desc-compact,.resizable-table .link-list,.resizable-table .attach-list,.resizable-table .attach-list-compact{min-width:0!important;max-width:none!important}
.resizable-table .desc-line{max-width:none!important}
.resizable-table .avatar-cell{min-width:0!important}
.resizable-table .actions-cell{width:auto!important;min-width:0!important}
.resizable-column-heading{position:sticky!important;overflow:visible!important;padding-right:16px!important}
.column-resizer{position:absolute;right:-3px;top:0;width:8px;height:100%;cursor:col-resize;touch-action:none;z-index:4}
.column-resizer::after{content:"";position:absolute;left:3px;top:18%;width:2px;height:64%;border-radius:2px;background:#aeb8cc;opacity:.55}
.resizable-column-heading:hover .column-resizer::after,.column-resizer:hover::after{background:var(--brand);opacity:1}
body.column-resizing,body.column-resizing *{cursor:col-resize!important;user-select:none!important}
.resizable-table .date-two-line{white-space:nowrap;line-height:1.25;font-size:12px;min-width:0!important}

@media(max-width:900px){
  .column-picker-menu{position:fixed;right:10px;top:72px;width:min(300px,calc(100vw - 84px))}
  .table-scroll-floating{top:62px}
  .table-scroll-arrow{width:34px;height:34px;min-width:34px;font-size:18px}
}
