.delivery-panel{display:block;margin-top:20px;min-width:0}.delivery-banner{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:12px 16px;margin-bottom:20px;background:var(--primary-soft);border:1px solid var(--border);border-radius:8px;color:var(--text-1);font-size:13px;line-height:1.5}.delivery-banner span{color:var(--text-2)}
#tab-tasks [hidden],.delivery-panel[hidden]{display:none!important}
.delivery-card.delivery-card-correction{border:2px solid #b45309;border-left-width:6px}
.delivery-correction{margin:10px 0;padding:10px;border-radius:6px;background:#fff3cd;color:#593700}
.delivery-correction>strong{display:block;font-size:13px}
.delivery-card .delivery-correction p{color:inherit;white-space:pre-wrap}
.delivery-correction small{font-size:11px;line-height:1.5}
.delivery-epoch{display:flex;flex-direction:column}
.delivery-controls{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:16px 0}.delivery-field{display:flex;flex-direction:column;gap:6px;color:var(--text-2);font-size:13px;margin-bottom:12px}.delivery-field input,.delivery-field textarea,.delivery-field select{width:100%;min-height:40px;padding:9px;border:1px solid var(--border);border-radius:6px;background:var(--bg-input);color:var(--text-1);font:inherit}.delivery-controls .delivery-field{min-width:150px;flex:1}
.delivery-board{display:grid;grid-auto-columns:minmax(280px,320px);grid-auto-flow:column;gap:16px;overflow-x:auto;align-items:stretch;padding:8px 0 16px}.delivery-column{min-width:0;min-height:142px;background:var(--bg-2);border:1px solid var(--border);border-radius:10px;padding:16px}.delivery-column h2{font-size:14px;line-height:1.45;display:flex;justify-content:space-between;gap:12px;min-height:42px;margin:0 0 12px}.delivery-column h2 span,.delivery-tag{font-size:11px;background:var(--primary-soft);padding:3px 6px;border-radius:4px}.delivery-column h2 span{align-self:flex-start;display:grid;place-items:center;min-width:24px;height:24px;flex-shrink:0}.delivery-empty{color:var(--text-3);font-size:13px;padding:8px 0;line-height:1.5}
.delivery-card{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:12px;margin:10px 0;overflow-wrap:anywhere}.delivery-card-heading{display:flex;gap:8px;flex-wrap:wrap}.delivery-card p{font-size:12px;line-height:1.6;margin:7px 0;color:var(--text-2)}.delivery-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.delivery-card-actions .btn{white-space:normal;text-align:left}
.delivery-board-expanded{height:max(360px,calc(100dvh - 230px));grid-template-rows:minmax(0,1fr)}.delivery-board-expanded>.delivery-column{min-height:0;overflow-y:auto}.delivery-board-expanded>.delivery-column>.delivery-column-heading{position:sticky;top:0;z-index:1;background:var(--bg-2)}
.delivery-unplanned,.delivery-support{margin-top:24px}.delivery-unplanned h2,.delivery-support h2,.delivery-panel>h2{font-size:18px;margin:20px 0 10px}.delivery-unplanned-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;border-bottom:1px solid var(--border);font-size:13px}
.delivery-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.delivery-kpis>div{padding:16px;background:var(--bg-card);border:1px solid var(--border);border-radius:8px;color:var(--text-2);font-size:12px}.delivery-kpis b{display:block;font-size:25px;color:var(--text-1);margin-bottom:5px}
.delivery-overview-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 10px}.delivery-overview-cards .kpi-card{min-width:0;min-height:126px;font:inherit;text-align:left;color:var(--text-1);cursor:pointer}.delivery-overview-cards .kpi-label{display:block;min-height:28px;color:var(--text-2)}.delivery-overview-cards .kpi-value,.delivery-overview-cards .kpi-hint{display:block}.delivery-overview-cards .kpi-hint{color:var(--text-2)}.delivery-overview-cards .kpi-card:hover{transform:none}.delivery-overview-note{color:var(--text-2);font-size:12px;line-height:1.5;margin:0 0 18px}
@media(max-width:900px){.delivery-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.delivery-overview-cards{grid-template-columns:1fr}}
.delivery-table-scroll{overflow:auto}.delivery-table{width:100%;border-collapse:collapse;font-size:12px;margin:12px 0}.delivery-table th,.delivery-table td{text-align:left;vertical-align:top;border-bottom:1px solid var(--border);padding:11px 9px;overflow-wrap:anywhere}.delivery-table th{background:var(--bg-2);color:var(--text-2)}
.delivery-dialog{width:min(640px,calc(100% - 28px));max-height:90vh;overflow:auto;margin:auto;padding:24px;background:var(--bg-2);color:var(--text-1);border:1px solid var(--border);border-radius:12px}.delivery-dialog::backdrop{background:#0009}.delivery-dialog h2{font-size:21px;margin-bottom:12px}.delivery-dialog p{font-size:13px;margin:8px 0 16px}.delivery-error{color:var(--danger)}
@media(max-width:720px){.delivery-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-unplanned-row{align-items:start;flex-direction:column}.delivery-board{grid-auto-columns:minmax(260px,85vw)}.delivery-controls .delivery-field{min-width:140px}.delivery-table{min-width:680px}}
.delivery-view-navigation{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}
.delivery-view-navigation .btn{min-height:44px;border-radius:8px;background:transparent;color:var(--text-2)}
.delivery-view-navigation .btn[aria-pressed="true"]{background:var(--primary-soft);border-color:var(--primary);color:var(--text-1);font-weight:700}
#app{grid-template-columns:var(--sidebar-width) minmax(0,1fr);grid-template-rows:72px 1fr}
#app-topbar{gap:10px;min-width:0}
#app-topbar .app-topbar-product,#app-topbar .delivery-owner,#app-topbar .delivery-epoch{display:flex;flex:0 1 188px;min-width:0;max-width:188px;height:48px;justify-content:center;gap:2px;padding:5px 10px;border:1px solid var(--border);border-radius:8px;background:var(--bg-input)}
#app-topbar .app-topbar-product label,#app-topbar .delivery-owner>span,#app-topbar .delivery-epoch>span{font-size:10px;line-height:12px;color:var(--text-3);font-weight:600;text-transform:uppercase;letter-spacing:.06em}
#app-topbar .app-topbar-product select,#app-topbar .delivery-owner select,#app-topbar .delivery-epoch select{width:100%;min-width:0;max-width:none;min-height:22px;height:22px;padding:0;border:0;border-radius:0;background:transparent;color:var(--text-1);font:inherit;font-size:13px;line-height:22px;box-shadow:none}
#app-topbar .app-topbar-product:focus-within,#app-topbar .delivery-owner:focus-within,#app-topbar .delivery-epoch:focus-within{outline:2px solid var(--primary);outline-offset:2px}
#app-topbar .timer-pill{height:48px;min-width:136px;flex-shrink:0;border-radius:8px;justify-content:center;padding:8px 12px}
#timer-label{max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#timer-clock{flex-shrink:0}
#app-topbar>.btn,#app-topbar>div>button.btn{min-width:44px;min-height:44px}
@media(max-width:1200px){#app-topbar .app-topbar-user .user-info{display:none}#app-topbar .app-topbar-product,#app-topbar .delivery-owner,#app-topbar .delivery-epoch{flex-basis:155px}#timer-label{max-width:100px}}
@media(max-width:768px){#app{grid-template-columns:1fr;grid-template-rows:auto 1fr}#app-topbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:10px 12px 10px 64px}#app-topbar .app-topbar-product,#app-topbar .delivery-owner,#app-topbar .delivery-epoch{grid-column:span 3;width:100%;max-width:none}#app-topbar .timer-pill{grid-column:span 3;min-width:0;width:100%;height:44px}#app-topbar .topbar-spacer{display:none}#app-topbar .app-topbar-user{grid-column:span 1;justify-content:center}#app-topbar>.btn:last-child{grid-column:span 2}#app-topbar .app-topbar-user .user-info{display:none}#app-topbar>div>button.btn{width:100%}.delivery-view-navigation .btn{flex:1;white-space:normal}}

#app-topbar .delivery-owner{flex-direction:column}
#app-topbar .delivery-owner[hidden]{display:none!important}
@media(min-width:769px) and (max-width:1100px){#app{grid-template-rows:auto 1fr}#app-topbar{flex-wrap:wrap;padding:8px 16px}#app-topbar .app-topbar-product,#app-topbar .delivery-owner,#app-topbar .delivery-epoch{flex:1 1 150px;max-width:none}#app-topbar .topbar-spacer{flex-basis:100%;height:0}}
.delivery-report-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 20px}.delivery-report-tabs .btn{min-height:44px}
.delivery-report-form{margin:18px 0;padding:20px;border:1px solid var(--border);border-radius:10px;background:var(--bg-2)}
.delivery-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.delivery-report-grid .delivery-field{margin:0}
.delivery-report-form .delivery-field>input,.delivery-report-form .delivery-field>select,.delivery-report-form .btn{min-height:44px}
.delivery-report-form [hidden],.delivery-report-tabs[hidden],.delivery-own-report[hidden]{display:none!important}
.delivery-report-source{color:var(--text-2);font-size:13px;margin-bottom:16px}.delivery-report-form [data-report-help]{font-size:13px;line-height:1.6;margin-top:16px;color:var(--text-2)}
.delivery-report-check{display:flex;gap:8px;align-items:center;font-size:13px;margin:16px 0}.delivery-report-check input{width:20px;min-height:20px;height:20px;flex:none}
.delivery-report-dialog{width:min(800px,calc(100% - 28px))}.delivery-own-report{min-height:44px}
@media(max-width:800px){.delivery-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.delivery-report-grid{grid-template-columns:1fr}.delivery-report-form{padding:14px}.delivery-report-tabs .btn{flex:1}}

#delivery-new-demand{min-height:44px}#delivery-new-demand[hidden]{display:none!important}
.delivery-report-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;margin-bottom:16px}.delivery-report-heading .delivery-field,.delivery-report-heading>p{margin:0}.delivery-report-heading>.btn{height:44px;white-space:nowrap}
@media(max-width:480px){.delivery-report-heading{grid-template-columns:1fr}.delivery-report-heading>.btn{width:100%}}

.delivery-overview-cards .kpi-card:focus-visible{outline:2px solid var(--text-1);outline-offset:3px}.delivery-active-filter{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 16px;margin-bottom:16px;border:1px solid var(--border);border-radius:10px;background:var(--bg-2);color:var(--text-1)}.delivery-active-filter p{margin:6px 0 0;color:var(--text-2);font-size:13px}.delivery-active-filter .btn{min-height:44px}
.delivery-card[draggable="true"]{cursor:grab}.delivery-card.delivery-dragging{opacity:.55;cursor:grabbing}.delivery-column.delivery-drop-target{outline:1px dashed var(--primary);outline-offset:-4px}.delivery-column.delivery-drop-over{background:var(--primary-soft);outline-style:solid}

.delivery-board-expanded>.delivery-column{padding:0 12px 12px;scroll-padding-top:76px;isolation:isolate}
.delivery-board-expanded>.delivery-column>.delivery-column-heading{top:0;z-index:3;margin:0 -12px 12px;padding:16px 12px 12px;min-height:64px;border-bottom:1px solid var(--border);background:var(--bg-2);box-shadow:0 -16px 0 16px var(--bg-2)}
.delivery-card-compact{position:relative;padding:0;margin:10px 0}
.delivery-card-open{display:flex;flex-direction:column;gap:8px;width:100%;padding:14px;border:0;border-radius:8px;background:transparent;text-align:left;color:var(--text-1);font:inherit;cursor:pointer}
.delivery-card-open:hover{background:var(--primary-soft)}
.delivery-card-open:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.delivery-card-reference,.delivery-card-owner{font-size:12px;color:var(--text-2)}
.delivery-card-title{font-size:14px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.delivery-card-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:12px}.delivery-card-meta>span{background:var(--bg-input);padding:3px 7px;border-radius:5px}
.delivery-card-prs{font-size:12px;color:var(--primary);font-weight:600}.delivery-card-return{font-size:12px;color:var(--text-2);font-weight:600}
.delivery-card-actions[hidden]{display:none!important}
.delivery-card[draggable="true"] .delivery-card-open{cursor:grab}.delivery-card.delivery-dragging .delivery-card-open{cursor:grabbing}
.delivery-confirm{display:flex;align-items:center;gap:10px;min-height:44px;margin:16px 0;font-size:14px}.delivery-confirm input{width:20px;height:20px;flex-shrink:0}
.automatic-stage-clock #timer-pill,.automatic-stage-clock .kanban-focus{display:none!important}
.stage-clock-history{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px}.stage-clock-history li{border-left:2px solid var(--border);padding:4px 0 4px 12px}.stage-clock-history dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:5px 10px;margin:8px 0 0;font-size:12px}.stage-clock-history dt{color:var(--text-2)}.stage-clock-history dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.stage-clock-table-wrap{overflow-x:auto}.stage-clock-table-wrap caption{text-align:left;font-weight:600;padding:8px 0}#task-stage-clock summary{min-height:44px;display:flex;align-items:center;cursor:pointer}#task-stage-clock summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
#legacy-focus-pause[hidden],#task-stage-clock[hidden]{display:none!important}
.delivery-card-clock{font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;color:var(--primary);display:block}
#task-stage-clock p{font-size:12px;line-height:1.6;color:var(--text-2)}
#task-stage-clock .delivery-table{min-width:0;table-layout:fixed}#task-stage-clock .delivery-table th,#task-stage-clock .delivery-table td{padding:8px 4px;font-size:11px}#task-stage-clock .delivery-card-clock{font-variant-numeric:tabular-nums}
.delivery-card-grip{position:absolute;right:6px;top:4px;padding:6px;color:var(--text-3);cursor:grab}
.task-journey-context{padding:12px 0;border-bottom:1px solid var(--border);margin-bottom:12px}.task-journey-context p{font-size:13px;line-height:1.5;margin:5px 0}.task-journey-actions{display:flex;flex-direction:column;gap:8px}.task-journey-actions .btn{min-height:44px;white-space:normal;text-align:left}
.self-proposals { margin:16px 0; padding:16px; border:1px solid var(--border); border-radius:12px; background:var(--bg-card); }
.self-proposals h2 { font-size:17px; margin:0; }
.self-proposals p { font-size:13px; line-height:1.5; margin:10px 0; }
.self-proposal-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.self-proposal-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:12px; }
.self-proposal-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.self-proposals button,.self-proposal-dialog button,.self-proposals summary { min-height:44px; }
.self-proposals summary { cursor:pointer; display:flex; align-items:center; text-decoration:underline; }
.self-proposal-dialog .delivery-card-actions { flex-wrap:wrap; }
#self-task-propose { min-height:44px; white-space:normal; }
