:root{color-scheme:light; --ink:#2d3142; --muted:#4f5d75; --subtle:#626c7d; --canvas:#fff; --surface:#fff; --sidebar:#f7f7f9; --soft:#f2f3f5; --border:#e4e5e9; --accent:#ef8354; --selected:#fcece5; --shadow:0 16px 60px #2d31421f; --danger:#a52b35; font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:16px; line-height:1.5; color:var(--ink); background:var(--canvas); --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-6:24px; --space-8:32px; --control-height:40px; --sidebar-width:256px}
:root[data-theme=dark]{color-scheme:dark; --ink:#f4f4f5; --muted:#bfc0c0; --subtle:#a0a4af; --canvas:#252838; --surface:#2d3142; --sidebar:#272b3b; --soft:#34394d; --border:#434a60; --selected:#493a39; --shadow:0 16px 60px #0005; --danger:#ffa4a8}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit; color:inherit}
button{cursor:pointer}
button:disabled{opacity:.45; cursor:not-allowed}
a{color:inherit; text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
h1,h2,h3,p{margin:0}
h1{font-size:28px; line-height:1.3; letter-spacing:-.5px; font-weight:600}
h2{font-size:20px; line-height:1.4; font-weight:600}
h3{font-size:16px; line-height:1.5; font-weight:600}
button{border:0; background:transparent}
input,select,textarea{border:0; border-bottom:1px solid var(--subtle); border-radius:2px; background:var(--soft); padding:10px 12px; min-height:var(--control-height); max-width:100%}
input::placeholder,textarea::placeholder{color:var(--subtle)}
textarea{resize:vertical}
label{display:block; font-size:14px; font-weight:400; margin:24px 0 0}
label>input,label>textarea,label>select{display:block; width:100%; margin-top:8px; font-size:16px}
input[type=color]{width:55px; height:38px; padding:3px}
fieldset{border:0; padding:0; margin:0; min-width:0}
fieldset:disabled .dialog-actions{display:none}
fieldset:disabled input,fieldset:disabled textarea,fieldset:disabled select{opacity:1; color:var(--muted)}
.app-shell{min-height:100vh}
.brand{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:650;letter-spacing:-.6px;line-height:1.2}
.brand .ui-icon{width:24px;height:24px;color:var(--accent)}

.sidebar{position:fixed; inset:0 auto 0 0; width:var(--sidebar-width); background:var(--sidebar); border-right:1px solid var(--border); padding:24px 16px 16px; display:flex; flex-direction:column; z-index:3}
.sidebar>.brand{padding:0 8px 24px; font-size:24px}
.workspace-picker{position:relative; margin-bottom:16px; border:1px solid var(--border); background:var(--surface); border-radius:4px}
.workspace-picker summary,.profile-menu summary{display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none; padding:12px 8px; font-size:14px; font-weight:500; min-height:48px}
.workspace-picker summary>span:nth-child(2),.profile-menu summary>span:nth-child(2){overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0}
.workspace-monogram{display:grid; place-items:center; border-radius:5px; width:25px; height:25px; background:var(--selected); color:var(--ink); flex-shrink:0}
.workspace-options{position:absolute; top:calc(100% + 4px); left:0; right:0; background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:4px; box-shadow:var(--shadow); z-index:8}
.workspace-options a{display:flex; align-items:center; gap:8px; min-height:40px; padding:8px; font-size:14px; border-radius:2px}
.workspace-options a:hover{background:var(--soft)}
.nav-item,.board-link{display:flex; align-items:center; gap:12px; min-height:40px; padding:8px 12px; border-radius:2px; color:var(--muted); font-size:14px; line-height:1.5}
.nav-item:hover,.board-link:hover{background:var(--soft)}
.nav-title{display:flex; align-items:center; justify-content:space-between; padding:8px 12px; color:var(--muted); font-size:12px; font-weight:600; letter-spacing:.4px}
.board-link{margin-bottom:3px}
.board-link>span:last-child{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.board-link.selected{color:var(--ink); background:var(--selected); font-weight:600; box-shadow:inset 3px 0 var(--accent)}
.board-dot{width:9px; height:9px; border-radius:3px; background:var(--board-color); flex-shrink:0}
.project-nav{overflow:auto; min-height:0}
.sidebar-bottom{margin-top:auto; padding-top:24px}
.profile-menu{position:relative; border-top:1px solid var(--border); margin-top:16px; padding-top:8px}
.profile-menu>div{position:absolute; bottom:calc(100% + 8px); left:0; right:0; background:var(--surface); border:1px solid var(--border); border-radius:4px; padding:4px; box-shadow:var(--shadow)}
.profile-menu>div>button,.profile-menu form button{display:flex; align-items:center; gap:12px; width:100%; min-height:40px; font-size:14px; padding:8px 12px; text-align:left}
.profile-menu label{margin:7px 0 10px}
.avatar,.mini-avatar{display:inline-grid; place-items:center; background:var(--soft); border:1px solid var(--border); border-radius:50%; color:var(--muted); width:27px; height:27px; font-size:14px; flex-shrink:0}
.mini-avatar{width:23px; height:23px; font-size:12px}
.main{margin-left:var(--sidebar-width); width:calc(100% - var(--sidebar-width)); min-width:0}
.topbar{height:48px; border-bottom:1px solid var(--border); padding:0 32px; display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--muted); font-size:14px}
.topbar b{color:var(--ink); font-weight:500}
.topbar-actions{display:flex; align-items:center; gap:15px}
.slash{margin:0 10px; color:var(--subtle)}
.language select{border:0; background:transparent; font-size:14px; padding:5px; color:var(--muted)}
.project-heading{padding:24px 32px; display:flex; align-items:center; justify-content:space-between; gap:24px}
.project-heading p{font-size:14px; color:var(--muted); line-height:1.5; margin-top:8px; max-width:640px}
.board-actions{display:flex; gap:8px; align-items:center; flex-shrink:0}
.button{display:inline-flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid var(--border); border-radius:3px; background:var(--surface); padding:8px 16px; min-height:var(--control-height); font-size:14px; font-weight:500; line-height:1.4; white-space:nowrap}
.button.primary{background:var(--accent); border-color:var(--accent); color:#2d3142; font-weight:650}
.button:hover{filter:brightness(.96)}
.icon-button{display:inline-grid; place-items:center; width:32px; height:32px; flex-shrink:0; font-size:24px; color:var(--muted); border-radius:3px; line-height:1}
.role-badge{display:inline-block; background:var(--soft); color:var(--muted); border:1px solid var(--border); font-size:12px; padding:4px 7px; border-radius:5px; white-space:nowrap}
.project-tabs{display:flex; gap:0; align-items:center; border-bottom:1px solid var(--border); padding:0 32px}
.project-tabs a{display:flex; align-items:center; gap:8px; min-height:48px; padding:12px 16px; font-size:14px; color:var(--muted); border-bottom:2px solid transparent}
.project-tabs a.active{color:var(--ink); border-color:var(--accent); font-weight:650}
.shortcut-hint{margin-left:auto; color:var(--subtle); font-size:12px; padding-bottom:13px}
.board-content{padding:16px 24px}
.board-toolbar{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px}
.filters{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.filters input,.filters select{font-size:14px; padding:6px 10px; min-height:32px; max-width:192px; background:var(--surface); border:1px solid var(--border); border-radius:3px}
.filters input{width:192px}
.filters .link{font-size:14px; min-height:32px; padding:4px 8px}
.board-toolbar>span{font-size:12px; color:var(--muted); white-space:nowrap}
.kanban{display:grid; grid-template-columns:repeat(4,minmax(264px,320px)); gap:16px; overflow-x:auto; min-height:calc(100dvh - 304px); align-items:start; padding-bottom:24px}
.column{background:var(--sidebar); border:1px solid var(--border); border-radius:4px; padding:8px; min-height:144px}
.column-heading{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 4px 8px; min-height:40px}
.column-heading h3{display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600}
.column-dot{width:8px; height:8px; border:2px solid var(--subtle); border-radius:50%}
.column-dot.progress{background:var(--accent); border-color:var(--accent)}
.column-dot.review{background:#4f5d75; border-color:#4f5d75}
.column-dot.done{background:#bfc0c0; border-color:#bfc0c0}
.count{font-size:12px; color:var(--subtle); font-weight:400; margin-left:3px}
.column-cards{min-height:30px}
.ticket-card{position:relative; border:1px solid var(--border); border-radius:4px; background:var(--surface); padding:12px; margin-bottom:8px; cursor:pointer}
.ticket-card:hover{border-color:var(--subtle)}
.ticket-card.dragging{opacity:.4}
.ticket-card.drop-before{border-top:3px solid var(--accent)}
.column.dragover{border-color:var(--accent)}
.card-top{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:4px}
.ticket-id{font-size:12px; line-height:1.5; color:var(--muted); font-weight:400}
.priority{font-size:12px; line-height:16px; padding:2px 6px; border-radius:2px; background:var(--soft); color:var(--muted)}
.priority.high{background:var(--selected); color:var(--ink)}
.card-title{display:block; text-align:left; font-size:16px; font-weight:500; line-height:1.5; padding:0; color:var(--ink); overflow-wrap:anywhere}
.card-meta{margin-top:8px; display:flex; align-items:center; gap:8px; font-size:12px; line-height:20px; color:var(--muted)}
.overdue{color:var(--danger)}
.release-tag{display:inline-flex; align-items:center; gap:4px; max-width:100%; color:var(--muted); background:var(--soft); font-size:12px; line-height:20px; padding:0 6px; border-radius:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.quick-add{display:flex; align-items:center; border:1px solid transparent; border-radius:6px; margin-top:5px}
.quick-add:focus-within{border-color:var(--accent); background:var(--surface)}
.quick-add input{width:100%; min-width:0; min-height:32px; border:0; background:transparent; padding:4px; font-size:14px}
.quick-add input:focus{outline:none}
.quick-add button{color:var(--muted); font-size:17px; padding:0 6px}
.table-wrap{overflow:auto; border:1px solid var(--border); border-radius:7px}
.work-table{border-collapse:collapse; width:100%; text-align:left; font-size:14px}
.work-table th{font-weight:600; background:var(--sidebar); color:var(--muted); font-size:14px; padding:12px 16px; white-space:nowrap}
.work-table td{padding:12px 16px; border-top:1px solid var(--border); vertical-align:middle}
.work-table small{display:block; color:var(--muted); font-size:14px; margin-top:5px; max-width:280px; white-space:pre-line}
.work-table .card-title{display:inline}
.work-table td .button{margin:3px; font-size:14px}
.work-table tbody tr:hover{background:var(--sidebar)}
.empty-table{color:var(--muted); text-align:center; padding:50px!important}
.release-heading{display:flex; align-items:center; justify-content:space-between; margin:10px 0 25px; gap:15px}
.release-heading p{margin-top:7px}
progress{height:6px; accent-color:var(--accent); width:120px}
.live-status{font-size:12px; color:var(--subtle); white-space:nowrap}
.live-status:before{content:'●'; margin-right:6px; color:var(--subtle)}
.live-status.connected:before{color:var(--accent)}
.active-timer{display:flex; align-items:center; gap:10px; padding:10px 14px; background:var(--selected); border:1px solid var(--border); border-radius:6px; margin-bottom:16px; font-size:12px}
.active-timer strong{margin-left:auto; font-variant-numeric:tabular-nums}
.pulse{width:7px; height:7px; border-radius:50%; background:var(--accent)}
dialog{width:min(544px,calc(100vw - 32px)); border:1px solid var(--border); border-radius:4px; background:var(--surface); color:var(--ink); padding:24px; box-shadow:var(--shadow); max-height:90dvh; overflow:auto}
dialog::backdrop{background:#16182770; backdrop-filter:blur(2px)}
.dialog-heading{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px}
.dialog-actions{display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:24px; padding-top:16px; border-top:1px solid var(--border)}
.form-row{display:flex; gap:12px; align-items:end}
.form-row label{flex:1; min-width:0}
.form-row>.button{margin-bottom:1px}
.ticket-drawer{position:fixed; inset:0 0 0 auto; margin:0; width:min(640px,100vw); height:100dvh; max-height:100dvh; border-radius:0; padding:24px 32px}
.ticket-title-input{font-size:21px; font-weight:600}
.ticket-properties{display:grid; grid-template-columns:1fr 1fr; gap:0 24px}
.ticket-time{display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:18px 0; margin:25px 0; font-size:12px}
.form-error,#action-error{color:var(--danger); background:var(--selected); padding:12px; border-radius:6px; font-size:12px; line-height:1.6}
.wide-dialog{width:min(650px,calc(100vw - 30px))}
.invite-form{padding:0 0 24px; margin-bottom:24px; border-bottom:1px solid var(--border)}
.invite-form .muted{margin-top:12px; font-size:14px; line-height:1.6; color:var(--muted)}
.person-results{display:grid; gap:3px}
.person-results button{display:block; text-align:left; padding:9px; border:1px solid var(--border); border-radius:4px; background:var(--surface); font-size:12px}
.person-results button:hover{background:var(--selected)}
.member-row{display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--border); padding:16px 0; flex-wrap:wrap; font-size:14px}
.member-row small{display:block; color:var(--subtle); font-size:12px; margin-top:4px}
.member-row form{display:flex; gap:7px; align-items:center}
.member-row form:first-of-type,.member-row>.role-badge{margin-left:auto}
.member-row select{font-size:14px; padding:8px}
.section-label{margin-top:28px}
.muted{font-size:14px; line-height:1.6; color:var(--muted)}
.link{font-size:12px; padding:0; color:var(--muted); text-decoration:underline; text-underline-offset:3px}
.danger{color:var(--danger)}
.remote-update{display:flex; justify-content:space-between; align-items:center; padding:12px; gap:12px; background:var(--selected); border:1px solid var(--border); border-radius:6px; font-size:12px; margin-bottom:18px}
.management-page{width:min(1200px,100%); margin:auto; padding:24px 32px 64px}
.management-header{display:flex; justify-content:space-between; align-items:center; gap:15px; padding-bottom:25px; border-bottom:1px solid var(--border)}
.management-header>div{display:flex; align-items:center; gap:14px}
.management-intro{display:flex; justify-content:space-between; align-items:center; gap:24px; margin:32px 0}
.management-intro h1{font-size:29px; margin:9px 0}
.management-intro p{color:var(--muted); font-size:16px; max-width:600px; line-height:1.7}
.eyebrow{font-size:12px; color:var(--subtle); text-transform:uppercase; letter-spacing:1px}
.company-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px}
.company-card{padding:24px; border:1px solid var(--border); border-radius:4px; background:var(--surface)}
.company-icon{display:grid; place-items:center; width:42px; height:42px; background:var(--selected); border-radius:8px; font-size:19px; font-weight:600; margin-bottom:20px}
.company-card p{color:var(--subtle); font-size:12px; margin:10px 0 25px}
.company-card>div{display:flex; gap:8px}
.settings-grid{display:grid; grid-template-columns:190px 1fr; gap:40px}
.settings-nav{display:flex; flex-direction:column; gap:5px; align-self:start; position:sticky; top:20px}
.settings-nav a{font-size:14px; padding:10px 12px; border-radius:2px; min-height:40px}
.settings-nav a:hover{background:var(--soft)}
.settings-section{border:1px solid var(--border); padding:24px; border-radius:4px; margin-bottom:24px}
.settings-section form>.button{margin-top:20px}
.settings-section h3{margin-top:25px}
.settings-section h2+.muted{margin-top:9px}
.check-label{display:flex; align-items:center; gap:10px}
.check-label input[type=checkbox]{width:auto; margin:0; accent-color:var(--accent)}
.empty-state{text-align:center; padding:90px 25px}
.empty-state p{color:var(--muted); margin:14px auto 25px; max-width:460px; line-height:1.8}
.toast-area{position:fixed; bottom:25px; right:25px; z-index:50; max-width:480px}
.toast{padding:15px 20px; background:var(--surface); box-shadow:var(--shadow); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:7px; font-size:12px}
.toast.error{color:var(--danger)}
.invitation-page{margin:60px auto; padding:30px; max-width:600px}
.invitation-page h1{margin:40px 0 20px}
.invitation-page p{margin-bottom:20px}
.auth-page{min-height:100dvh;background:var(--sidebar)}
.auth-header{height:72px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:var(--surface);gap:16px}

.auth-preferences{display:flex;align-items:center;gap:8px}.auth-preferences>.select-control .select-trigger{height:32px;font-size:12px;background:transparent;border:0}
.auth-form{min-height:calc(100dvh - 72px);display:grid;place-items:center;padding:48px 24px}
.auth-box{width:100%;max-width:432px;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:32px;box-shadow:0 4px 24px #00000008}
.auth-intro h1{font-size:28px;margin:8px 0 16px;line-height:1.3}.auth-intro p{font-size:16px;line-height:1.6;color:var(--muted)}
.wide{width:100%;margin-top:24px;min-height:48px}
.auth-switch{display:flex;justify-content:center;align-items:center;gap:8px;font-size:14px;color:var(--muted);margin-top:24px;flex-wrap:wrap}
.auth-switch .link{color:var(--ink)}
.secure-note{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:var(--muted);margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}
.inline-error{color:var(--danger);font-size:14px;line-height:1.6}.inline-error:not(:empty){margin-top:16px}
#register-fields small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:8px}
.sr-only{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0)}
[hidden]{display:none!important}

.ui-icon{width:16px; height:16px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}

summary::-webkit-details-marker{display:none}

summary:hover,.profile-menu>div>button:hover,.profile-menu form button:hover,.icon-button:hover{background:var(--soft)}

.workspace-options a:last-child{border-top:1px solid var(--border); margin-top:4px}

.profile-identity{padding:8px 12px 12px; border-bottom:1px solid var(--border); margin-bottom:4px}

.profile-identity strong,.profile-identity small{display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

.profile-identity strong{font-size:14px; font-weight:600}

.profile-identity small{font-size:12px; color:var(--muted)}

.theme-options{border:0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:12px; margin:4px 0; min-width:0}

.theme-options legend{float:left; width:100%; font-size:12px; color:var(--muted); margin-bottom:8px}

.theme-options>div{clear:both; display:flex; gap:2px; background:var(--soft); padding:2px; border-radius:3px}

.theme-options button{flex:1; min-width:0; padding:6px 4px; font-size:12px; border-radius:2px; min-height:32px}

.theme-options button[aria-pressed=true]{background:var(--surface); box-shadow:0 1px 3px #0002; color:var(--ink)}

.button-count{display:inline-grid; place-items:center; min-width:20px; height:20px; background:var(--soft); border-radius:3px; font-size:12px}

.ticket-card:focus-visible{outline:2px solid var(--accent); outline-offset:2px}

.card-meta .mini-avatar{margin-left:auto}

.ticket-card .card-title::after{content:''; position:absolute; inset:0}

.card-title:hover{color:var(--ink)}

.ticket-card:has(.card-title:focus-visible){outline:2px solid var(--accent); outline-offset:2px}

.ticket-card .card-title:focus-visible{outline:none}

.ticket-card:active{cursor:grabbing}

label>.ticket-title-input{font-size:24px; line-height:1.4; font-weight:500}

.ticket-properties label{min-width:0}

.member-row>div{min-width:0; overflow-wrap:anywhere}

.member-row select{min-height:32px}

.person-results:empty{display:none}

.person-results{margin-top:8px}

.person-results button{font-size:14px; padding:12px; min-height:40px}

.link{font-size:14px}

.check-label input[type=checkbox]{width:18px; height:18px; min-height:18px; flex-shrink:0}

.form-error,#action-error,.toast,.remote-update,.ticket-time,.active-timer{font-size:14px}


@media(max-width:1100px){
.topbar,.project-heading{padding-left:24px; padding-right:24px}

.board-toolbar{align-items:flex-start}

.filters{gap:8px}

.live-status{max-width:160px; overflow:hidden; text-overflow:ellipsis}

.auth-story{padding:32px}
.auth-story h1{font-size:38px}

}

@media(max-width:760px){
.sidebar{position:relative; width:100%; padding:12px 16px; flex-direction:row; align-items:center; flex-wrap:wrap; gap:12px; border-right:0; border-bottom:1px solid var(--border)}

.sidebar>.brand{padding:0; font-size:20px}
.workspace-picker{margin:0; flex:1; min-width:0; max-width:260px}
.workspace-picker summary{min-height:40px; padding:8px}

.nav-title{display:none}
.sidebar-bottom{margin:0 0 0 auto; padding:0}
.sidebar-bottom>.nav-item{display:none}

.profile-menu{margin:0; padding:0; border:0}
.profile-menu summary{padding:4px; min-height:40px}
.profile-menu summary>span:not(:first-child),.profile-menu summary>.ui-icon{display:none}

.profile-menu>div{bottom:auto; top:calc(100% + 8px); left:auto; right:0; width:240px}

.project-nav{width:100%; display:flex; gap:4px; order:5}
.board-link{white-space:nowrap; margin:0; flex-shrink:0}

.main{margin:0; width:100%}
.topbar{padding:0 16px; font-size:12px}
.topbar>span{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.topbar-actions{gap:4px}
.live-status{display:none}

.project-heading{padding:24px 16px; flex-wrap:wrap; gap:16px}
.project-heading h1{font-size:24px}
.board-actions{width:100%}
.board-actions>.primary{margin-left:auto}

.project-tabs{padding:0 8px}
.project-tabs a{padding:12px}
.board-content{padding:16px}
.board-toolbar{flex-direction:column; gap:8px}
.filters{width:100%}
.filters input{width:100%; max-width:100%}
.filters select{max-width:calc(50% - 4px); flex:1; min-width:112px}

.kanban{grid-template-columns:repeat(4,minmax(264px,280px)); min-height:450px; gap:12px}

.ticket-drawer{padding:24px}
.ticket-properties{gap:0 16px}
.management-page{padding:16px 16px 40px}
.management-intro{align-items:flex-start; flex-direction:column; margin:24px 0}
.management-header{flex-wrap:wrap}
.management-header>div{gap:8px}

.settings-grid{grid-template-columns:1fr; gap:16px}
.settings-nav{position:static; flex-direction:row; flex-wrap:wrap}
.settings-section{padding:16px}
.member-row form:first-of-type{margin-left:0}
.remote-update{align-items:flex-start; flex-direction:column}

.auth-page{grid-template-columns:1fr}
.auth-story{display:none}
.auth-form{min-height:100dvh; padding:32px 24px}
.toast-area{left:16px; right:16px; bottom:16px}
.active-timer{flex-wrap:wrap}

}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important; transition:none!important}
}

body:has(dialog[open]){overflow:hidden}
.ticket-drawer .dialog-actions{position:sticky; bottom:-24px; background:var(--surface); padding-bottom:16px; z-index:2}
/* Shared select: native form value, accessible themed popover. */
input:not([type=checkbox]):not([type=hidden]):not([type=color]),select{height:40px}
.select-control{display:inline-block;min-width:0;vertical-align:middle}
.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;height:40px;padding:0 12px;background:var(--soft);border-bottom:1px solid var(--subtle);border-radius:2px;color:var(--ink);font-size:16px;text-align:left;line-height:20px}
.select-trigger:hover{background:var(--border)}
.select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.select-chevron{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px;flex-shrink:0}
.select-trigger[aria-expanded=true] .select-chevron{transform:rotate(225deg);margin-top:6px}
label>.select-control{display:block;width:100%;margin-top:8px}
.select-menu{position:fixed;inset:auto;margin:0;padding:4px;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow);overflow:auto;overscroll-behavior:contain;font-size:14px}
.select-option{position:relative;display:flex;align-items:center;min-height:40px;line-height:20px;padding:8px 32px 8px 12px;border-radius:2px;cursor:pointer;overflow-wrap:anywhere}
.select-option:hover,.select-option.is-active{background:var(--soft)}
.select-option[aria-selected=true]{background:var(--selected);font-weight:500}
.select-option[aria-selected=true]::after{content:'✓';position:absolute;right:12px;color:var(--ink)}
.select-option[aria-disabled=true]{opacity:.45;cursor:not-allowed}
.filters .select-control{max-width:192px;min-width:140px}
.filters input,.filters .select-trigger{height:40px;min-height:40px;font-size:14px;line-height:20px;padding:0 12px;background:var(--surface);border:1px solid var(--border);border-radius:3px}
.filters .select-control:last-of-type{min-width:168px}
.language .select-trigger{height:32px;min-height:32px;font-size:12px;border:0;background:transparent;padding:0 8px}
.member-row .select-trigger{height:40px;font-size:14px}
@media(max-width:760px){.filters .select-control{flex:1;min-width:128px;max-width:calc(50% - 4px)}.filters .select-control:last-of-type{min-width:144px}.filters input{flex:none}.form-row{flex-wrap:wrap}}

@media(max-width:760px){.auth-header{padding:0 16px;height:64px}.auth-header .brand{font-size:20px}.auth-form{min-height:calc(100dvh - 64px);padding:24px 16px}.auth-box{padding:24px}.auth-preferences{gap:0}}

.person-search{position:relative}
.person-search .person-results{position:absolute;top:100%;left:0;right:0;z-index:5;max-height:240px;overflow:auto;margin:4px 0 0;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow)}
.person-search .person-results button{border:0;margin:0;border-radius:2px;min-height:40px}
.person-search .person-results p{margin:0;padding:8px 12px;font-size:14px;line-height:1.5}

#person-help{display:grid}#person-help>span{grid-area:1 / 1}

.board-settings-button{padding:0;justify-content:center;width:40px}
.project-key-input{text-transform:uppercase}
.priority-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--muted);border-radius:3px}
.priority-icon.high{color:var(--accent)}
.priority-icon.medium{color:var(--muted)}
.priority-icon.low{color:var(--muted)}
.ticket-card .priority-icon{position:relative;z-index:1;pointer-events:auto}

.release-ticket-results{height:300px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:3px}
.release-ticket-option{display:flex;align-items:center;gap:12px;margin:0;padding:12px;border-bottom:1px solid var(--border);cursor:pointer}
.release-ticket-option:hover,.release-ticket-option:has(:checked){background:var(--selected)}
.release-ticket-option input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;flex-shrink:0;accent-color:var(--accent)}
.release-ticket-details{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}
.release-ticket-details b{color:var(--muted);font-size:12px;margin-right:8px}
.release-ticket-results>p{padding:16px}
.release-selection-count{margin-right:auto;font-size:12px}
@media(max-width:480px){[data-release-tickets-form] .dialog-actions{flex-wrap:wrap}.release-selection-count{width:100%}}

.priority-bars{width:16px;height:16px;fill:currentColor}
.priority-bars .inactive{fill:none;stroke:currentColor;stroke-width:1;opacity:.35}

.release-table{table-layout:fixed;min-width:1120px}
.release-table .release-status-column{width:128px}
.release-table .release-progress-column{width:160px}
.release-table .release-date-column{width:176px}
.release-table .release-actions-column{width:496px}
.release-table td:first-child{overflow-wrap:anywhere}
.release-table progress{max-width:100%}
.release-row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:center}
.release-table .release-row-actions .button{margin:0;white-space:nowrap;padding-left:8px;padding-right:8px;justify-content:center}
.release-link-action{grid-column:2}
.release-edit-action{grid-column:3}

.toast-area{position:fixed;inset:72px 16px auto;margin:0 auto;width:min(520px,calc(100vw - 32px));max-width:520px;padding:0;border:0;background:transparent;color:var(--ink);overflow:visible;z-index:1000;pointer-events:none}
.toast{display:flex;align-items:center;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--accent);border-left:4px solid var(--accent);border-radius:4px;font-size:15px;box-shadow:var(--shadow);pointer-events:auto}
.toast>span:nth-child(2){flex:1}.toast.error{border-color:var(--danger)}
.notice-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--selected);font-weight:700;flex-shrink:0}
.inline-success{padding:12px;background:var(--selected);border-left:3px solid var(--accent);font-size:14px}
.ticket-time:has(.form-error:not([hidden])){flex-wrap:wrap}.ticket-time .form-error{flex-basis:100%}
.settings-content{padding:24px 32px 64px;max-width:1200px;width:100%}
.setup-step{padding:20px 0;border-bottom:1px solid var(--border)}.setup-step h3{margin:0 0 8px}.setup-step>p{margin-bottom:16px}
.setup-preview{display:block;padding:12px;background:var(--soft);border:1px solid var(--border);overflow-wrap:anywhere;font-size:14px;margin:12px 0}
@media(max-width:760px){.settings-content{padding:20px 16px}.toast-area{inset:16px 16px auto}}

.account-details{display:grid;grid-template-columns:100px 1fr;gap:12px;margin-bottom:24px;font-size:14px}.account-details dt{color:var(--muted)}.account-details dd{margin:0;overflow-wrap:anywhere}

.release-heading,.release-table-wrap{max-width:1280px}.release-table td{padding-top:8px;padding-bottom:8px}

.company-member{border-top:1px solid var(--border);padding:12px 0}.company-member summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;font-size:14px}.company-member small{display:block;color:var(--muted)}.company-member form{margin-top:16px}.company-board-access{display:grid;grid-template-columns:1fr 180px;align-items:center;gap:12px}

.settings-tabs{padding:0;margin:0 0 24px;overflow-x:auto;white-space:nowrap}.settings-panels{max-width:960px}.settings-panels>.settings-section{margin:0}.settings-tabs a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

.clockify-connection-status{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);margin:16px 0}
.clockify-connection-status>span{display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--border);border-radius:50%;color:var(--ink);flex-shrink:0}
.clockify-connection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.clockify-feedback{margin:12px 0 0;max-width:640px;font-size:14px;line-height:1.5}
.clockify-feedback:empty{display:none}
[data-token-editor]{max-width:640px;margin:16px 0;padding:16px;border:1px solid var(--border);border-radius:3px;background:var(--soft)}
[data-token-editor] .button{margin-right:8px;margin-top:8px}
@media(max-width:480px){.clockify-connection-actions{align-items:stretch;flex-direction:column}.clockify-connection-actions .button{justify-content:center}}

.workspace-picker summary>span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-picker summary>.ui-icon{flex-shrink:0;margin-left:auto}.profile-menu>div>a{display:flex;align-items:center;gap:12px;min-height:40px;padding:8px 12px;font-size:14px}.account-page .settings-section{margin-bottom:24px}

:root{--control-font-size:14px;--control-line-height:20px;--control-radius:3px;--control-padding-x:12px}
.workspace-picker{border-radius:var(--control-radius)}
.workspace-picker summary{height:40px;min-height:40px;padding:0 var(--control-padding-x);font-size:var(--control-font-size);font-weight:400;line-height:var(--control-line-height)}
.theme-options [data-theme-value]{display:grid;place-items:center}.theme-options .ui-icon{width:18px;height:18px}
.auth-page{background:var(--surface)}.auth-header{border:0;background:transparent}
.auth-box{max-width:384px;padding:24px;border:0;box-shadow:none;background:transparent}
.auth-intro h1{font-size:24px;margin:0 0 8px}.auth-intro p{font-size:14px;line-height:1.5;margin:0 0 24px}
.auth-access-note{font-size:12px;color:var(--muted);margin-top:20px;text-align:center}
.auth-box #auth-submit{height:40px;min-height:40px;font-size:14px}.auth-box #auth-error:empty{display:none}

.workspace-picker{border:0;background:transparent}.workspace-picker summary{border:1px solid var(--border);border-radius:var(--control-radius);background:var(--surface)}
.ui-menu-trigger{font-size:var(--control-font-size);line-height:var(--control-line-height)}
.form-input:not([type=checkbox]):not([type=hidden]):not([type=color]),.form-select,.select-trigger{font-size:var(--control-font-size);line-height:var(--control-line-height);height:var(--control-height);min-height:var(--control-height);border-radius:var(--control-radius)}
.button{height:var(--control-height);min-height:var(--control-height);font-size:var(--control-font-size);line-height:var(--control-line-height)}

.auth-box #auth-form{margin-top:0}.auth-box #auth-submit{margin-top:0}
