:root{
    --bg:#07040d;
    --bg2:#0c0714;
    --panel:#120d1d;
    --panel2:#181025;
    --panel3:#211432;
    --border:rgba(183,82,255,.27);
    --border-strong:rgba(204,93,255,.5);
    --text:#f2eaff;
    --muted:#a99bb8;
    --muted2:#7d708b;
    --purple:#a855f7;
    --purple2:#d600ff;
    --cyan:#67e8f9;
    --danger:#ff4d6d;
    --warn:#fbbf24;
    --success:#36d399;
    --info:#60a5fa;
    --shadow:0 0 40px rgba(155,37,255,.18);
    --square:2px;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
    margin:0;
    font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(214,0,255,.18), transparent 28%),
        radial-gradient(circle at 85% 5%, rgba(168,85,247,.12), transparent 28%),
        linear-gradient(135deg, #050308 0%, #0b0712 45%, #06030a 100%);
    overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
.bg-noise{
    position:fixed;inset:0;pointer-events:none;opacity:.11;z-index:0;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
    mix-blend-mode:screen;
}
.app-shell{position:relative;z-index:1;display:flex;min-height:100vh}
.sidebar{
    width:292px;flex:0 0 292px;min-height:100vh;position:sticky;top:0;align-self:flex-start;
    background:linear-gradient(180deg, rgba(25,16,37,.94), rgba(10,6,15,.98));
    border-right:1px solid var(--border);
    box-shadow:18px 0 55px rgba(0,0,0,.3);
    padding:22px 16px;display:flex;flex-direction:column;gap:18px;
}
.brand{display:flex;align-items:center;gap:14px;padding:10px 9px 20px;border-bottom:1px solid rgba(168,85,247,.18)}
.brand-logo{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 0 20px rgba(214,0,255,.45))}
.brand-title{font-size:20px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;line-height:1}
.brand-sub{color:var(--muted);font-size:12px;letter-spacing:.18em;text-transform:uppercase;margin-top:6px}
.nav{display:grid;gap:7px}
.nav-link{
    display:flex;align-items:center;gap:12px;padding:12px 12px;
    border:1px solid transparent;color:#d9cdf0;background:rgba(255,255,255,.015);
    transition:.15s ease;position:relative;overflow:hidden;
}
.nav-link::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(214,0,255,.18), transparent);opacity:0;transition:.15s ease}
.nav-link:hover,.nav-link.active{border-color:var(--border);background:rgba(168,85,247,.09);transform:translateX(2px)}
.nav-link:hover::before,.nav-link.active::before{opacity:1}
.nav-link.active{color:#fff;box-shadow:inset 3px 0 0 var(--purple2), 0 0 20px rgba(168,85,247,.08)}
.nav-link span{position:relative;z-index:1}
.nav-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(168,85,247,.22);background:#0c0713;color:#d600ff}
.icon{width:19px;height:19px;display:inline-block;vertical-align:-4px;flex:0 0 auto}
.sidebar-footer{margin-top:auto;border-top:1px solid rgba(168,85,247,.18);padding-top:16px;display:grid;gap:12px}
.mini-profile{display:flex;align-items:center;gap:10px;padding:10px;background:rgba(255,255,255,.025);border:1px solid rgba(168,85,247,.16)}
.mini-profile strong,.top-profile strong{display:block;font-size:13px}.mini-profile span,.top-profile span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.logout-link{
    display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 12px;
    border:1px solid rgba(255,77,109,.42);background:rgba(255,77,109,.08);color:#ffd7df;
    text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:800;
}
.logout-link:hover{background:rgba(255,77,109,.16);border-color:rgba(255,77,109,.8)}
.main{flex:1;padding:28px;min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.topbar h1{margin:3px 0 0;font-size:30px;letter-spacing:.02em;text-transform:uppercase}.page-kicker{color:var(--purple);font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.top-actions{display:flex;align-items:center;gap:12px}.top-profile{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid rgba(168,85,247,.18);background:rgba(255,255,255,.025)}
.hamburger{display:none;background:rgba(168,85,247,.12);border:1px solid var(--border);color:#fff;padding:9px 12px}
.avatar{object-fit:cover;border:1px solid rgba(214,0,255,.45);background:#050308;box-shadow:0 0 18px rgba(214,0,255,.2)}
.avatar-initial,.avatar-empty{display:grid;place-items:center;font-weight:900;color:#fff;background:linear-gradient(135deg,#d600ff,#4c1d95)}
.panel,.card,.stat,.form-card{
    background:linear-gradient(180deg, rgba(26,17,39,.88), rgba(11,7,17,.92));
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    border-radius:var(--square);
}
.panel{padding:20px;margin-bottom:18px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.panel-head h2,.panel h2{margin:0;font-size:20px}.panel-head p,.muted{color:var(--muted);margin:4px 0 0}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.stat{padding:18px;position:relative;overflow:hidden}.stat::after{content:"";position:absolute;right:-40px;top:-40px;width:120px;height:120px;border:1px solid rgba(214,0,255,.14);transform:rotate(35deg)}.stat span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.14em;font-weight:800}.stat strong{display:block;margin-top:8px;font-size:34px}.stat small{color:var(--muted2)}
.card{padding:16px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.card-title h3{margin:0;font-size:16px}.card p{color:var(--muted);line-height:1.5}.meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid rgba(255,255,255,.1);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#ded4ef;background:rgba(255,255,255,.03)}.badge.success{border-color:rgba(54,211,153,.35);color:#9ff5d3;background:rgba(54,211,153,.08)}.badge.danger{border-color:rgba(255,77,109,.42);color:#ffc2cd;background:rgba(255,77,109,.08)}.badge.warn{border-color:rgba(251,191,36,.35);color:#fde68a;background:rgba(251,191,36,.08)}.badge.info{border-color:rgba(96,165,250,.35);color:#bfdbfe;background:rgba(96,165,250,.08)}.badge.muted{border-color:rgba(169,155,184,.2);color:#cfc3df;background:rgba(169,155,184,.06)}
form{margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-row{display:grid;gap:7px}.form-row.full{grid-column:1/-1}label{font-size:12px;color:#d8c7ef;text-transform:uppercase;letter-spacing:.12em;font-weight:800}input,textarea,select{
    width:100%;background:#07040d;border:1px solid rgba(168,85,247,.24);color:var(--text);padding:11px 12px;outline:none;border-radius:0;
}
textarea{min-height:110px;resize:vertical;line-height:1.45}input:focus,textarea:focus,select:focus{border-color:var(--purple2);box-shadow:0 0 0 3px rgba(214,0,255,.1)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px;border:1px solid var(--border-strong);background:linear-gradient(90deg, rgba(168,85,247,.9), rgba(214,0,255,.82));color:#fff;font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:12px;border-radius:0;cursor:pointer;transition:.15s ease}.btn:hover{filter:brightness(1.12);transform:translateY(-1px)}.btn-small{padding:8px 10px;font-size:11px}.btn-ghost{background:rgba(255,255,255,.02);border-color:rgba(168,85,247,.28);color:#e8ddfb}.btn-danger{background:rgba(255,77,109,.12);border-color:rgba(255,77,109,.45);color:#ffd7df}.btn-success{background:rgba(54,211,153,.12);border-color:rgba(54,211,153,.45);color:#a7f3d0}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-wrap{overflow:auto;border:1px solid rgba(168,85,247,.16)}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:13px 12px;border-bottom:1px solid rgba(168,85,247,.12);text-align:left;vertical-align:top}th{color:#d9c9f0;font-size:11px;text-transform:uppercase;letter-spacing:.12em;background:rgba(168,85,247,.08)}td{color:#eadfff}.table-title{font-weight:900}.table-desc{color:var(--muted);font-size:13px;margin-top:3px}.empty{padding:24px;border:1px dashed rgba(168,85,247,.3);background:rgba(255,255,255,.02);display:grid;gap:4px}.empty strong{font-size:16px}.empty span{color:var(--muted)}.flash{padding:12px 14px;border:1px solid rgba(168,85,247,.24);background:rgba(168,85,247,.08);margin-bottom:16px}.flash-success{border-color:rgba(54,211,153,.35);background:rgba(54,211,153,.08)}.flash-error{border-color:rgba(255,77,109,.4);background:rgba(255,77,109,.08)}.flash-info{border-color:rgba(96,165,250,.35);background:rgba(96,165,250,.08)}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-box{width:min(450px,100%);background:linear-gradient(180deg, rgba(25,16,37,.96), rgba(8,4,13,.98));border:1px solid var(--border);box-shadow:0 0 80px rgba(214,0,255,.18);padding:28px}.login-logo{display:block;width:118px;height:118px;object-fit:contain;margin:0 auto 10px;filter:drop-shadow(0 0 28px rgba(214,0,255,.5))}.login-title{text-align:center;margin:0;text-transform:uppercase;letter-spacing:.12em}.login-sub{text-align:center;color:var(--muted);margin:8px 0 24px}.codebox{white-space:pre-wrap;background:#07040d;border:1px solid rgba(168,85,247,.22);padding:14px;color:#e8ddfb;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;overflow:auto}.progress{height:11px;background:#07040d;border:1px solid rgba(168,85,247,.25)}.progress>span{display:block;height:100%;background:linear-gradient(90deg,#7c3aed,#d600ff)}
.wiki-content{line-height:1.7;color:#eee}.wiki-content h1,.wiki-content h2,.wiki-content h3{color:#fff}.split{display:grid;grid-template-columns:340px 1fr;gap:16px}.danger-zone{border-color:rgba(255,77,109,.28);background:rgba(255,77,109,.04)}
@media (max-width:1100px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}.top-profile-text{display:none}}
@media (max-width:820px){.sidebar{position:fixed;z-index:10;transform:translateX(-105%);transition:.2s ease}.sidebar.open{transform:translateX(0)}.main{padding:20px}.hamburger{display:inline-block}.topbar{align-items:flex-start}.top-actions{margin-left:auto}.grid-2,.grid-3,.grid-4,.form-grid{grid-template-columns:1fr}.btn-danger.btn-small{font-size:0}.btn-danger.btn-small .icon{margin:0}.top-profile{display:none}}

/* CloudZero polish update */
html,body{height:100%}
.sidebar{width:286px;flex-basis:286px;padding:12px 14px;gap:12px;overflow:hidden}
.brand{padding:2px 8px 12px;gap:12px}
.brand-logo{width:52px;height:52px}.brand-title{font-size:18px}.brand-sub{font-size:11px;margin-top:5px}
.nav{gap:5px}.nav-link{padding:9px 10px;min-height:50px}.nav-icon{width:30px;height:30px}.icon{width:18px;height:18px}.sidebar-footer{padding-top:12px;gap:10px}.mini-profile{padding:9px}.logout-link{padding:10px 12px}
.main{padding:24px 28px}.topbar{margin-bottom:18px;min-height:48px}.topbar h1{font-size:29px}.top-actions,.top-profile{display:none!important}
.panel{padding:18px}.panel-head.compact{margin-bottom:12px}.panel-head.compact h2{font-size:18px}.panel-head.compact p{font-size:14px}.empty{padding:18px}.btn-full{width:100%}.textarea-small{min-height:128px}.divider{height:1px;background:rgba(168,85,247,.18);margin:20px 0}.mini-hint{display:flex;align-items:center;gap:10px;margin:-4px 0 12px;color:var(--muted);font-size:12px}.checkbox-label{display:flex;align-items:center;gap:8px}.checkbox-label input{width:auto}
.actions.action-row{flex-wrap:nowrap}.action-button{min-width:126px;white-space:nowrap}.btn-icon{min-width:42px;width:42px;padding-left:0;padding-right:0}.btn-small{min-height:34px}.table-fit{overflow-x:auto}.table-fit table{min-width:820px}.member-cell{display:flex;align-items:center;gap:12px}.full-span{grid-column:1/-1}
.workbench{display:grid;grid-template-columns:420px minmax(0,1fr);gap:16px;align-items:start}.workbench-wide{grid-template-columns:430px minmax(0,1fr)}.form-panel{position:sticky;top:16px}.list-panel{min-width:0}.form-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.form-grid-compact input,.form-grid-compact select,.form-grid-compact textarea{padding:10px 11px}.form-grid-compact label{font-size:11px}
.dashboard-stats{gap:14px}.dashboard-grid{margin-top:14px;gap:14px}.dashboard-panel{min-height:186px;margin-bottom:0}.page-dashboard .main{padding:20px 28px 16px}.page-dashboard .topbar{margin-bottom:14px}.page-dashboard .stat{padding:14px 16px}.page-dashboard .stat strong{font-size:30px}.page-dashboard .stat span{font-size:11px}.page-dashboard .panel{padding:16px}.compact-list{display:grid;gap:8px}.row-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:10px 12px;border:1px solid rgba(168,85,247,.18);background:rgba(255,255,255,.025)}.row-card:hover{border-color:var(--border-strong);background:rgba(168,85,247,.08)}.row-card strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-card small{grid-column:1/-1;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress.slim{height:7px}.log-list{display:grid;gap:8px}.log-row{display:grid;grid-template-columns:120px 130px minmax(0,1fr);gap:8px;align-items:center;padding:9px 10px;border:1px solid rgba(168,85,247,.16);background:rgba(255,255,255,.02);font-size:13px}.log-row span{color:var(--muted)}.log-row strong{font-size:13px}.log-row em{font-style:normal;color:#e8ddfb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.changelog-layout .panel{margin-bottom:0}.preview-panel{position:sticky;top:16px}.codebox-tall{min-height:420px;max-height:calc(100vh - 180px)}.settings-layout .panel{margin-bottom:0}.auto-status{border:1px solid rgba(168,85,247,.16);background:rgba(255,255,255,.02);padding:14px}.team-stats{margin-bottom:16px}.team-stats .stat.small{padding:14px 16px}.team-stats .stat.small strong{font-size:28px}.team-workbench{grid-template-columns:430px minmax(0,1fr)}
.wiki-shell{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px;align-items:start}.wiki-nav-panel{position:sticky;top:16px}.wiki-search-note{font-size:12px;color:var(--muted);border:1px solid rgba(168,85,247,.16);padding:10px;margin-bottom:12px;background:rgba(255,255,255,.02)}.wiki-category{margin-top:14px}.wiki-category h3{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:#c9b6e6}.wiki-links{display:grid;gap:7px}.wiki-link{display:grid;gap:3px;padding:10px 12px;border:1px solid rgba(168,85,247,.15);background:rgba(255,255,255,.02)}.wiki-link.active,.wiki-link:hover{border-color:var(--border-strong);background:rgba(168,85,247,.08)}.wiki-link strong{font-size:14px}.wiki-link span{font-size:11px;color:var(--muted)}.wiki-main-panel{min-height:600px}.wiki-editor{min-height:420px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.wiki-content{max-width:980px}.wiki-content p{margin:0 0 13px;color:#d9cfe9}.wiki-content ul{margin:4px 0 16px 20px;color:#d9cfe9}.wiki-content li{margin:6px 0}.wiki-content h1{font-size:30px;margin:0 0 18px;text-transform:uppercase;letter-spacing:.04em}.wiki-content h2{font-size:20px;margin:22px 0 10px;color:#fff}.wiki-content h3{font-size:16px;margin:18px 0 8px;color:#eadfff}
@media (min-width:1500px){.page-dashboard .dashboard-panel{min-height:176px}.page-dashboard .main{padding-top:18px}.page-dashboard .topbar h1{font-size:28px}}
@media (max-width:1250px){.workbench,.workbench-wide,.team-workbench,.wiki-shell{grid-template-columns:1fr}.form-panel,.wiki-nav-panel,.preview-panel{position:static}.topbar{align-items:flex-start}.table-fit table{min-width:760px}}
@media (max-width:820px){.sidebar{overflow:auto}.nav-link{min-height:48px}.log-row{grid-template-columns:1fr}.action-row{flex-wrap:wrap!important}.action-button{min-width:110px}.wiki-main-panel{min-height:auto}}

/* Targeted polish: compact rows, cleaner forms, custom confirm dialog */
.form-panel{
    background:
        linear-gradient(180deg, rgba(31,18,48,.96), rgba(11,6,16,.98)),
        radial-gradient(circle at 15% 0%, rgba(214,0,255,.16), transparent 34%);
    box-shadow:0 0 36px rgba(214,0,255,.10), inset 0 0 0 1px rgba(255,255,255,.015);
}
.form-panel .panel-head.compact{
    padding:10px 12px 12px;
    border:1px solid rgba(168,85,247,.18);
    background:rgba(255,255,255,.025);
    margin-bottom:14px;
}
.form-panel .panel-head.compact h2{letter-spacing:.01em}
.form-panel .form-row{position:relative}
.form-panel input,.form-panel select,.form-panel textarea{
    border-color:rgba(168,85,247,.30);
    background:rgba(2,0,7,.68);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.018);
}
.form-panel input:focus,.form-panel select:focus,.form-panel textarea:focus{
    outline:none;
    border-color:rgba(214,0,255,.72);
    box-shadow:0 0 0 2px rgba(214,0,255,.12), inset 0 0 0 1px rgba(255,255,255,.025);
}
.form-panel .btn-full{min-height:46px}

.list-panel .table-wrap{
    overflow:visible;
    background:rgba(6,2,10,.42);
}
.list-panel table{
    min-width:0;
    table-layout:auto;
}
.list-panel th,.list-panel td{
    vertical-align:middle;
    padding:12px 12px;
}
.list-panel th:not(:first-child),.list-panel td:not(:first-child){white-space:nowrap}
.list-panel td:first-child{min-width:220px;width:34%}
.list-panel .table-title{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:420px;
}
.list-panel .table-desc{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:420px;
}
.list-panel .meta{margin-top:8px}
.list-panel .actions.action-row{
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:8px;
}
.list-panel .actions.action-row form{display:inline-flex}
.list-panel .btn-icon{
    width:42px;
    min-width:42px;
    height:36px;
    padding:0;
}
.list-panel .action-button{
    min-width:112px;
    height:36px;
    padding-left:12px;
    padding-right:12px;
}
.list-panel .progress.slim{min-width:130px;width:150px;margin-bottom:4px}

.log-details{
    max-width:none!important;
    max-height:none!important;
    white-space:pre-wrap;
    word-break:break-word;
    overflow:visible;
}

.cz-confirm-backdrop{
    position:fixed;
    inset:0;
    z-index:9999;
    display:grid;
    place-items:center;
    padding:24px;
    background:rgba(3,0,8,.74);
    backdrop-filter:blur(8px);
}
.cz-confirm{
    width:min(430px,100%);
    border:1px solid rgba(255,77,109,.52);
    background:
        linear-gradient(180deg, rgba(31,18,48,.98), rgba(9,4,14,.98)),
        radial-gradient(circle at 20% 0%, rgba(255,77,109,.18), transparent 34%);
    box-shadow:0 0 80px rgba(214,0,255,.22), 0 0 34px rgba(255,77,109,.10);
    padding:20px;
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    gap:14px;
}
.cz-confirm-mark{
    width:42px;height:42px;
    display:grid;place-items:center;
    border:1px solid rgba(255,77,109,.55);
    background:rgba(255,77,109,.12);
    color:#ffd7df;
    font-weight:900;
    font-size:22px;
}
.cz-confirm-body h3{
    margin:0;
    text-transform:uppercase;
    letter-spacing:.1em;
    font-size:18px;
}
.cz-confirm-body p{margin:8px 0 0;color:var(--muted);line-height:1.45}
.cz-confirm-actions{
    grid-column:1/-1;
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:8px;
}
.cz-confirm-actions .btn{min-width:118px}

@media (max-width:1450px){
    .workbench-wide{grid-template-columns:390px minmax(0,1fr)}
    .list-panel .table-title,.list-panel .table-desc{max-width:320px}
    .list-panel .progress.slim{width:120px;min-width:110px}
}
@media (max-width:1250px){
    .list-panel .table-wrap{overflow-x:auto}
    .list-panel table{min-width:760px}
}


/* Row alignment fix: keep title, category and description in one clean row */
.list-panel td:first-child{
    min-width:260px;
    width:auto;
}
.list-panel .entity-line{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    width:100%;
    white-space:nowrap;
}
.list-panel .entity-line .table-title{
    flex:0 1 auto;
    min-width:0;
    max-width:260px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.list-panel .entity-line .badge{
    flex:0 0 auto;
    margin:0;
}
.list-panel .entity-line .inline-desc{
    flex:1 1 auto;
    min-width:0;
    max-width:320px;
    margin:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.list-panel .meta{margin-top:0}
.list-panel tbody tr{height:58px}
.list-panel th,.list-panel td{vertical-align:middle}
.list-panel .actions.action-row{width:max-content}

/* Scroll nur in den Inhaltsbereichen, nicht über die ganze Seite */
.workbench-wide{
    height:calc(100vh - 116px);
    min-height:0;
}
.workbench-wide .form-panel,
.workbench-wide .list-panel{
    max-height:100%;
    margin-bottom:0;
}
.workbench-wide .form-panel{
    overflow-y:auto;
    scrollbar-width:thin;
}
.workbench-wide .list-panel{
    display:flex;
    flex-direction:column;
    overflow:hidden;
}
.workbench-wide .list-panel .table-wrap{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    border-color:rgba(168,85,247,.22);
}
.workbench-wide .list-panel thead th{
    position:sticky;
    top:0;
    z-index:3;
    box-shadow:0 1px 0 rgba(168,85,247,.22);
}
.workbench-wide .list-panel tbody tr{
    height:54px;
}
.workbench-wide .list-panel td{
    white-space:nowrap;
}
.workbench-wide .list-panel td:first-child{
    width:36%;
    min-width:320px;
}
.workbench-wide .list-panel .entity-line .table-title{
    max-width:260px;
}
.workbench-wide .list-panel .entity-line .inline-desc{
    max-width:260px;
}

.page-dashboard .dashboard-panel{
    display:flex;
    flex-direction:column;
    overflow:hidden;
}
.page-dashboard .dashboard-panel .empty{
    flex:1;
}
.page-dashboard .scroll-area,
.page-dashboard .log-list{
    overflow-y:auto;
    overflow-x:hidden;
    max-height:150px;
    padding-right:4px;
    scrollbar-width:thin;
}
.page-dashboard .row-card{
    min-height:48px;
}
.page-logs .panel{
    height:calc(100vh - 116px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
}
.page-logs .table-wrap{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
}
.table-wrap::-webkit-scrollbar,
.form-panel::-webkit-scrollbar,
.scroll-area::-webkit-scrollbar,
.log-list::-webkit-scrollbar{width:8px;height:8px}
.table-wrap::-webkit-scrollbar-thumb,
.form-panel::-webkit-scrollbar-thumb,
.scroll-area::-webkit-scrollbar-thumb,
.log-list::-webkit-scrollbar-thumb{background:rgba(214,0,255,.42);border:1px solid rgba(255,255,255,.08)}
.table-wrap::-webkit-scrollbar-track,
.form-panel::-webkit-scrollbar-track,
.scroll-area::-webkit-scrollbar-track,
.log-list::-webkit-scrollbar-track{background:rgba(5,2,10,.65)}

.edit-mode-note{
    border:1px solid rgba(214,0,255,.36);
    background:rgba(214,0,255,.08);
    padding:9px 10px;
    margin:-2px 0 12px;
    color:#eadfff;
    font-size:13px;
}
.edit-mode-note strong{color:#fff}

@media (max-width:1250px){
    .workbench-wide{height:auto}
    .workbench-wide .form-panel,.workbench-wide .list-panel{max-height:none;overflow:visible}
    .workbench-wide .list-panel .table-wrap{max-height:65vh;overflow:auto}
    .page-logs .panel{height:auto;max-height:none;overflow:visible}
    .page-logs .table-wrap{max-height:70vh;overflow:auto}
}

/* CloudZero final layout lock: keine ganze Seite scrollen, nur Panels */
html, body{height:100%;}
body.page-dashboard,
body.page-todos,
body.page-bugs,
body.page-suggestions,
body.page-roadmap,
body.page-team,
body.page-logs{overflow:hidden;}
body.page-dashboard .app-shell,
body.page-todos .app-shell,
body.page-bugs .app-shell,
body.page-suggestions .app-shell,
body.page-roadmap .app-shell,
body.page-team .app-shell,
body.page-logs .app-shell{height:100vh;min-height:0;overflow:hidden;}
body.page-dashboard .main,
body.page-todos .main,
body.page-bugs .main,
body.page-suggestions .main,
body.page-roadmap .main,
body.page-team .main,
body.page-logs .main{height:100vh;min-height:0;overflow:hidden;display:flex;flex-direction:column;}
body.page-dashboard .topbar,
body.page-todos .topbar,
body.page-bugs .topbar,
body.page-suggestions .topbar,
body.page-roadmap .topbar,
body.page-team .topbar,
body.page-logs .topbar,
body.page-dashboard .flash,
body.page-todos .flash,
body.page-bugs .flash,
body.page-suggestions .flash,
body.page-roadmap .flash,
body.page-team .flash,
body.page-logs .flash{flex:0 0 auto;}

body.page-todos .workbench-wide,
body.page-bugs .workbench-wide,
body.page-suggestions .workbench-wide,
body.page-roadmap .workbench-wide{flex:1 1 auto;height:auto;min-height:0;align-items:stretch;grid-template-columns:410px minmax(0,1fr);}
body.page-team .team-stats{flex:0 0 auto;margin-bottom:12px;}
body.page-team .team-workbench{flex:1 1 auto;height:auto;min-height:0;align-items:stretch;grid-template-columns:410px minmax(0,1fr);}
body.page-logs .panel{flex:1 1 auto;height:auto;min-height:0;margin-bottom:0;}

.workbench-wide .form-panel,
.team-workbench .form-panel{position:relative;top:auto;max-height:100%;overflow-y:auto;overflow-x:hidden;}
.workbench-wide .list-panel,
.team-workbench .list-panel{display:flex;flex-direction:column;min-height:0;max-height:100%;overflow:hidden;margin-bottom:0;}
.workbench-wide .list-panel .panel-head,
.team-workbench .list-panel .panel-head{flex:0 0 auto;}
.workbench-wide .list-panel .table-wrap,
.team-workbench .list-panel .table-wrap,
.page-logs .table-wrap{flex:1 1 auto;min-height:0;height:100%;overflow:auto;background:#08030d;border-color:rgba(168,85,247,.24);}

/* Tabellen sauber ausrichten */
.list-panel table{width:100%;min-width:980px;table-layout:fixed;border-collapse:separate;border-spacing:0;}
.list-panel th,.list-panel td{height:56px;padding:11px 12px;vertical-align:middle;}
.list-panel thead th{position:sticky;top:0;z-index:20;background:#1a0d27!important;border-bottom:1px solid rgba(183,82,255,.38);box-shadow:0 3px 0 rgba(7,3,12,.96);}
.list-panel tbody tr{height:56px;}
.list-panel tbody td{background:#08030d;}
.list-panel tbody tr:nth-child(even) td{background:#0b0511;}
.list-panel th:nth-child(1),.list-panel td:nth-child(1){width:36%;min-width:0;}
.list-panel th:nth-child(2),.list-panel td:nth-child(2){width:118px;}
.list-panel th:nth-child(3),.list-panel td:nth-child(3){width:118px;}
.list-panel th:nth-child(4),.list-panel td:nth-child(4){width:122px;}
.list-panel th:nth-child(5),.list-panel td:nth-child(5){width:126px;}
.list-panel th:nth-child(6),.list-panel td:nth-child(6){width:220px;}
.list-panel .entity-line{display:flex;align-items:center;gap:9px;width:100%;min-width:0;overflow:hidden;white-space:nowrap;}
.list-panel .entity-line .table-title{flex:0 1 auto;min-width:0;max-width:clamp(145px,18vw,315px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.list-panel .entity-line .badge{flex:0 0 auto;}
.list-panel .entity-line .inline-desc{flex:1 1 auto;min-width:0;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;}
.list-panel .actions.action-row{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:nowrap;width:max-content;}
.list-panel .actions.action-row form{display:inline-flex;margin:0;}
.list-panel .action-button{width:118px;min-width:118px;height:36px;}
.list-panel .btn-icon{width:42px;min-width:42px;height:36px;}

/* Tickets haben Quelle statt Deadline */
.page-bugs .list-panel th:nth-child(5),.page-bugs .list-panel td:nth-child(5),
.page-suggestions .list-panel th:nth-child(5),.page-suggestions .list-panel td:nth-child(5){width:136px;}
.page-bugs .list-panel th:nth-child(6),.page-bugs .list-panel td:nth-child(6),
.page-suggestions .list-panel th:nth-child(6),.page-suggestions .list-panel td:nth-child(6){width:110px;}
.page-roadmap .list-panel th:nth-child(4),.page-roadmap .list-panel td:nth-child(4){width:170px;}
.page-roadmap .list-panel .progress.slim{width:130px;min-width:120px;margin:0 0 3px;}

/* Dashboard ohne Seitenscroll, größere interne Listen */
.page-dashboard .dashboard-stats{flex:0 0 auto;}
.page-dashboard .dashboard-grid{flex:1 1 0;min-height:0;}
.page-dashboard .dashboard-panel{min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden;}
.page-dashboard .dashboard-panel .panel-head{flex:0 0 auto;}
.page-dashboard .compact-list,.page-dashboard .log-list{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;max-height:none;padding-right:6px;}
.page-dashboard .row-card{min-height:44px;}
.page-dashboard .log-row{grid-template-columns:130px 130px minmax(0,1fr);}

/* Teamseite intern scrollbar */
.page-team .team-stats .stat.small{padding:12px 14px;}
.team-workbench .list-panel table{min-width:860px;}
.team-workbench .list-panel th:nth-child(1),.team-workbench .list-panel td:nth-child(1){width:34%;}
.team-workbench .list-panel th:nth-child(2),.team-workbench .list-panel td:nth-child(2){width:190px;}
.team-workbench .list-panel th:nth-child(3),.team-workbench .list-panel td:nth-child(3){width:110px;}
.team-workbench .list-panel th:nth-child(4),.team-workbench .list-panel td:nth-child(4){width:200px;}
.team-workbench .list-panel th:nth-child(5),.team-workbench .list-panel td:nth-child(5){width:190px;}

/* Custom Scrollbar */
.table-wrap,.form-panel,.scroll-area,.compact-list,.log-list{scrollbar-width:thin;scrollbar-color:rgba(214,0,255,.78) rgba(8,3,13,.9);}
.table-wrap::-webkit-scrollbar,
.form-panel::-webkit-scrollbar,
.scroll-area::-webkit-scrollbar,
.compact-list::-webkit-scrollbar,
.log-list::-webkit-scrollbar{width:10px;height:10px;}
.table-wrap::-webkit-scrollbar-track,
.form-panel::-webkit-scrollbar-track,
.scroll-area::-webkit-scrollbar-track,
.compact-list::-webkit-scrollbar-track,
.log-list::-webkit-scrollbar-track{background:rgba(8,3,13,.9);border-left:1px solid rgba(168,85,247,.12);}
.table-wrap::-webkit-scrollbar-thumb,
.form-panel::-webkit-scrollbar-thumb,
.scroll-area::-webkit-scrollbar-thumb,
.compact-list::-webkit-scrollbar-thumb,
.log-list::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#d600ff,#7c1dff);border:2px solid rgba(8,3,13,.9);}
.table-wrap::-webkit-scrollbar-corner{background:#08030d;}

@media (max-width:1250px){
    body.page-dashboard,body.page-todos,body.page-bugs,body.page-suggestions,body.page-roadmap,body.page-team,body.page-logs{overflow:auto;}
    body.page-dashboard .main,body.page-todos .main,body.page-bugs .main,body.page-suggestions .main,body.page-roadmap .main,body.page-team .main,body.page-logs .main{height:auto;overflow:visible;display:block;}
    body.page-todos .workbench-wide,body.page-bugs .workbench-wide,body.page-suggestions .workbench-wide,body.page-roadmap .workbench-wide,body.page-team .team-workbench{height:auto;display:grid;grid-template-columns:1fr;}
    .workbench-wide .list-panel .table-wrap,.team-workbench .list-panel .table-wrap{max-height:70vh;}
}

/* ToDo search + filter toolbar */
.todo-list-panel .filter-bar{
    flex:0 0 auto;
    display:grid;
    grid-template-columns:minmax(220px,1.35fr) repeat(4,minmax(120px,.75fr)) auto;
    gap:10px;
    align-items:end;
    padding:10px 12px;
    margin:0 0 10px;
    border:1px solid rgba(168,85,247,.22);
    background:
        linear-gradient(180deg, rgba(22,12,34,.88), rgba(8,3,13,.92)),
        radial-gradient(circle at 0 0, rgba(214,0,255,.14), transparent 36%);
}
.todo-list-panel .filter-bar label{
    display:block;
    margin:0 0 6px;
    color:#d9c9f0;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:10px;
    font-weight:900;
}
.todo-list-panel .filter-bar input,
.todo-list-panel .filter-bar select{
    width:100%;
    min-height:38px;
    padding:9px 10px;
    border:1px solid rgba(168,85,247,.30);
    background:rgba(2,0,7,.78);
    color:#fff;
    border-radius:0;
    outline:none;
}
.todo-list-panel .filter-bar input:focus,
.todo-list-panel .filter-bar select:focus{
    border-color:rgba(214,0,255,.78);
    box-shadow:0 0 0 2px rgba(214,0,255,.12);
}
.todo-list-panel .filter-search{min-width:0;}
.todo-list-panel .filter-actions{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:flex-end;
    white-space:nowrap;
}
.todo-list-panel .filter-actions .btn{height:38px;}
.todo-list-panel .filter-actions .btn-ghost{min-width:108px;}

@media (max-width:1600px){
    .todo-list-panel .filter-bar{
        grid-template-columns:minmax(220px,1fr) repeat(2,minmax(120px,.6fr)) auto;
    }
    .todo-list-panel .filter-control:nth-of-type(4),
    .todo-list-panel .filter-control:nth-of-type(5){grid-column:auto;}
}
@media (max-width:1250px){
    .todo-list-panel .filter-bar{grid-template-columns:1fr 1fr;}
    .todo-list-panel .filter-search,.todo-list-panel .filter-actions{grid-column:1/-1;}
    .todo-list-panel .filter-actions{justify-content:flex-start;}
}

/* CloudZero no-horizontal-scroll table fit patch */
html, body { overflow-x: hidden !important; }
body.page-dashboard,
body.page-todos,
body.page-bugs,
body.page-suggestions,
body.page-roadmap,
body.page-team,
body.page-logs { overflow: hidden !important; }
body.page-dashboard .main,
body.page-todos .main,
body.page-bugs .main,
body.page-suggestions .main,
body.page-roadmap .main,
body.page-team .main,
body.page-logs .main { overflow: hidden !important; }

body.page-todos .workbench-wide,
body.page-bugs .workbench-wide,
body.page-suggestions .workbench-wide,
body.page-roadmap .workbench-wide,
body.page-team .team-workbench {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
body.page-todos .workbench-wide,
body.page-bugs .workbench-wide,
body.page-suggestions .workbench-wide,
body.page-roadmap .workbench-wide {
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr) !important;
}
body.page-team .team-workbench {
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr) !important;
}

.workbench-wide .list-panel,
.team-workbench .list-panel,
.todo-list-panel {
    min-width: 0 !important;
    overflow: hidden !important;
}
.workbench-wide .list-panel .table-wrap,
.team-workbench .list-panel .table-wrap,
.page-logs .table-wrap {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

.list-panel table,
.team-workbench .list-panel table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}
.list-panel th,
.list-panel td {
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 10px 10px !important;
}
.list-panel thead th {
    background: #1a0d27 !important;
    z-index: 40 !important;
}

/* ToDos/Bugs/Vorschläge: alle Spalten bleiben sichtbar ohne seitliches Scrollen */
body.page-todos .list-panel th:nth-child(1), body.page-todos .list-panel td:nth-child(1),
body.page-bugs .list-panel th:nth-child(1), body.page-bugs .list-panel td:nth-child(1),
body.page-suggestions .list-panel th:nth-child(1), body.page-suggestions .list-panel td:nth-child(1) { width: 36% !important; }
body.page-todos .list-panel th:nth-child(2), body.page-todos .list-panel td:nth-child(2),
body.page-bugs .list-panel th:nth-child(2), body.page-bugs .list-panel td:nth-child(2),
body.page-suggestions .list-panel th:nth-child(2), body.page-suggestions .list-panel td:nth-child(2) { width: 10% !important; }
body.page-todos .list-panel th:nth-child(3), body.page-todos .list-panel td:nth-child(3),
body.page-bugs .list-panel th:nth-child(3), body.page-bugs .list-panel td:nth-child(3),
body.page-suggestions .list-panel th:nth-child(3), body.page-suggestions .list-panel td:nth-child(3) { width: 10% !important; }
body.page-todos .list-panel th:nth-child(4), body.page-todos .list-panel td:nth-child(4),
body.page-bugs .list-panel th:nth-child(4), body.page-bugs .list-panel td:nth-child(4),
body.page-suggestions .list-panel th:nth-child(4), body.page-suggestions .list-panel td:nth-child(4) { width: 12% !important; }
body.page-todos .list-panel th:nth-child(5), body.page-todos .list-panel td:nth-child(5),
body.page-bugs .list-panel th:nth-child(5), body.page-bugs .list-panel td:nth-child(5),
body.page-suggestions .list-panel th:nth-child(5), body.page-suggestions .list-panel td:nth-child(5) { width: 12% !important; }
body.page-todos .list-panel th:nth-child(6), body.page-todos .list-panel td:nth-child(6),
body.page-bugs .list-panel th:nth-child(6), body.page-bugs .list-panel td:nth-child(6),
body.page-suggestions .list-panel th:nth-child(6), body.page-suggestions .list-panel td:nth-child(6) { width: 20% !important; }

.list-panel .entity-line {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    gap: 8px !important;
}
.list-panel .entity-line .table-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.list-panel .entity-line .badge {
    flex: 0 1 auto !important;
    max-width: 116px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.list-panel .entity-line .inline-desc { display: none !important; }
.list-panel .actions.action-row {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    gap: 7px !important;
}
.list-panel .actions.action-row form { flex: 0 0 auto !important; }
.list-panel .action-button {
    width: clamp(82px, 7.4vw, 106px) !important;
    min-width: 0 !important;
    height: 36px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 11px !important;
}
.list-panel .btn-icon {
    width: 38px !important;
    min-width: 38px !important;
    height: 36px !important;
}

/* Roadmap passt ebenfalls ohne horizontales Scrollen */
body.page-roadmap .list-panel th:nth-child(1), body.page-roadmap .list-panel td:nth-child(1) { width: 34% !important; }
body.page-roadmap .list-panel th:nth-child(2), body.page-roadmap .list-panel td:nth-child(2) { width: 11% !important; }
body.page-roadmap .list-panel th:nth-child(3), body.page-roadmap .list-panel td:nth-child(3) { width: 12% !important; }
body.page-roadmap .list-panel th:nth-child(4), body.page-roadmap .list-panel td:nth-child(4) { width: 15% !important; }
body.page-roadmap .list-panel th:nth-child(5), body.page-roadmap .list-panel td:nth-child(5) { width: 11% !important; }
body.page-roadmap .list-panel th:nth-child(6), body.page-roadmap .list-panel td:nth-child(6) { width: 17% !important; }
body.page-roadmap .list-panel .progress.slim { width: 100% !important; min-width: 0 !important; }

/* Team passt ebenfalls ohne horizontales Scrollen */
body.page-team .list-panel th:nth-child(1), body.page-team .list-panel td:nth-child(1) { width: 34% !important; }
body.page-team .list-panel th:nth-child(2), body.page-team .list-panel td:nth-child(2) { width: 20% !important; }
body.page-team .list-panel th:nth-child(3), body.page-team .list-panel td:nth-child(3) { width: 12% !important; }
body.page-team .list-panel th:nth-child(4), body.page-team .list-panel td:nth-child(4) { width: 16% !important; }
body.page-team .list-panel th:nth-child(5), body.page-team .list-panel td:nth-child(5) { width: 18% !important; }
body.page-team .member-cell { min-width: 0 !important; }
body.page-team .member-cell > div { min-width: 0 !important; overflow: hidden !important; }
body.page-team .actions.action-row { flex-wrap: nowrap !important; }
body.page-team .action-button { width: clamp(92px, 8vw, 118px) !important; }

/* Filterleiste darf keine Breite mehr nach außen drücken */
.todo-list-panel .filter-bar {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(92px, .62fr)) minmax(90px, auto) !important;
    gap: 8px !important;
}
.todo-list-panel .filter-search,
.todo-list-panel .filter-control,
.todo-list-panel .filter-actions { min-width: 0 !important; }
.todo-list-panel .filter-actions .btn { min-width: 92px !important; padding-left: 10px !important; padding-right: 10px !important; }

@media (max-width: 1500px) {
    body.page-todos .workbench-wide,
    body.page-bugs .workbench-wide,
    body.page-suggestions .workbench-wide,
    body.page-roadmap .workbench-wide,
    body.page-team .team-workbench { grid-template-columns: minmax(310px, 360px) minmax(0, 1fr) !important; }
    .list-panel th, .list-panel td { padding-left: 8px !important; padding-right: 8px !important; }
    .list-panel .badge { font-size: 10px !important; padding-left: 7px !important; padding-right: 7px !important; }
    .list-panel .btn-icon { width: 36px !important; min-width: 36px !important; }
    .list-panel .action-button { width: 92px !important; font-size: 10px !important; }
}
@media (max-width: 1250px) {
    body.page-dashboard,
    body.page-todos,
    body.page-bugs,
    body.page-suggestions,
    body.page-roadmap,
    body.page-team,
    body.page-logs { overflow: hidden !important; }
    body.page-dashboard .main,
    body.page-todos .main,
    body.page-bugs .main,
    body.page-suggestions .main,
    body.page-roadmap .main,
    body.page-team .main,
    body.page-logs .main { height: 100vh !important; overflow: hidden !important; display: flex !important; }
    body.page-todos .workbench-wide,
    body.page-bugs .workbench-wide,
    body.page-suggestions .workbench-wide,
    body.page-roadmap .workbench-wide,
    body.page-team .team-workbench { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) !important; }
    .todo-list-panel .filter-bar { grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(80px, .55fr)) minmax(84px, auto) !important; }
    .todo-list-panel .filter-control:nth-of-type(4),
    .todo-list-panel .filter-control:nth-of-type(5) { display: none !important; }
}
