.owner-task-board { --ot-ink:#163d35; --ot-muted:#617a74; color:var(--ot-ink); min-width:0; }
.owner-task-board [hidden],.ot-dialog [hidden] { display:none!important; }
.ot-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; }
.ot-kicker { color:#846329; letter-spacing:.12em; font-size:11px; font-weight:800; margin:0 0 8px; }
.ot-heading h2 { margin:0 0 8px; font-size:24px; }
.ot-heading p:not(.ot-kicker),.ot-message { color:#617a74; font-size:13px; line-height:1.5; }
.owner-task-board button,.ot-dialog button { background:white; border:1px solid #ccdcd5; border-radius:10px; color:#194c40; padding:11px 15px; min-height:44px; font:inherit; font-size:13px; cursor:pointer; }
.owner-task-board .ot-primary,.ot-dialog .ot-primary { color:white; background:#216b56; border-color:#216b56; font-weight:700; }
.owner-task-board button:disabled,.ot-dialog button:disabled { opacity:.5; cursor:default; }
.owner-task-board :is(button,input,select,summary):focus-visible,.ot-dialog :is(button,input,select,textarea):focus-visible { outline:3px solid #f5aa62; outline-offset:2px; }
.ot-counts { display:flex; gap:26px; flex-wrap:wrap; padding:16px 0; border-top:1px solid #e4ebe7; border-bottom:1px solid #e4ebe7; }
.ot-counts span { display:flex; align-items:baseline; gap:8px; color:#617a74; font-size:13px; }
.ot-counts strong { font-size:24px; color:#1b493b; }
.ot-counts span:nth-child(2) strong { color:#b34a30; }
.ot-counts span:nth-child(3) strong { color:#936319; }
.ot-filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin:18px 0 0; }
.owner-task-board label,.ot-dialog label { display:grid; gap:7px; font-size:12px; font-weight:700; color:#45655d; min-width:0; }
.owner-task-board :is(input,select),.ot-dialog :is(input,select,textarea) { box-sizing:border-box; width:100%; background:#fff; border:1px solid #ccdbd4; border-radius:9px; min-height:44px; padding:10px 12px; font:inherit; font-size:14px; color:#153e35; }
.ot-filters label { flex:1; min-width:150px; }
@media (max-width:650px) {
  .owner-task-board .ot-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-task-board .ot-filters label { min-width: 0; }
}
@media (max-width:360px) {
  .owner-task-board .ot-filters { grid-template-columns: minmax(0, 1fr); }
}
.ot-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ot-card { border:1px solid #e1e4d9; border-radius:16px; background:#fffcf5; padding:20px; min-width:0; overflow-wrap:anywhere; display:flex; flex-direction:column; }
.ot-card.ot-overdue { border-left:4px solid #c35f46; }
.ot-card header,.ot-card footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:9px; align-items:center; }
.ot-card h3 { margin:16px 0 8px; font-size:17px; line-height:1.4; }
.ot-card p { margin:0 0 15px; white-space:pre-wrap; font-size:13px; color:#617168; line-height:1.5; }
.ot-card dl { font-size:12px; display:grid; gap:10px; margin:0 0 18px; }
.ot-card dt { color:#728078; margin-bottom:3px; }
.ot-card dd { margin:0; font-weight:600; }
.ot-card footer { margin-top:auto; padding-top:12px; border-top:1px solid #e7e8dc; }
.ot-department { color:#846329; font-size:12px; font-weight:800; }
.ot-chip { display:inline-flex; font-size:11px; border-radius:20px; padding:6px 9px; background:#e7eee9; font-weight:700; }
.ot-chip.ot-blocked,.ot-chip.ot-cancelled { background:#fae8df; color:#a0472b; }
.ot-chip.ot-in_progress { background:#e3eff9; color:#2c6096; }
.ot-chip.ot-done { background:#ddf1e6; color:#216e50; }
.ot-priority { font-size:11px; text-transform:capitalize; color:#667266; }
.ot-priority.urgent,.ot-danger { color:#ad4227; }
.ot-priority.high { color:#88611a; }
.ot-pages { display:flex; justify-content:space-between; align-items:center; gap:14px; font-size:12px; margin:18px 0 0; }
.ot-empty { grid-column:1/-1; text-align:center; background:#f7f9f5; border:1px dashed #ccd9cb; padding:32px 20px; border-radius:14px; }
.ot-empty p { font-size:13px; color:#617a74; }
.owner-task-department { margin:16px 0 22px; background:#fff; border:1px solid #dcded0; border-radius:14px; overflow:hidden; }
.owner-task-department>summary { padding:14px 20px; color:#765926; background:#faf6e8; font-weight:700; cursor:pointer; min-height:44px; }
.owner-task-department .owner-task-board { padding:22px; }
.ot-dialog { width:min(740px,calc(100vw - 28px)); max-height:90dvh; border:0; border-radius:20px; padding:0; color:#173e34; box-shadow:0 24px 90px #0b332740; }
.ot-dialog::backdrop { background:#103d35aa; backdrop-filter:blur(4px); }
.ot-dialog>header { display:flex; justify-content:space-between; gap:16px; padding:22px 26px; border-bottom:1px solid #e0e8e2; position:sticky; top:0; background:#fff; z-index:1; }
.ot-dialog h2 { margin:0; font-size:22px; }
.ot-dialog-body { padding:22px 26px; }
.ot-dialog [data-task-form-message] { font-size:13px; background:#f2f6ef; color:#3c6051; padding:12px; border-radius:9px; line-height:1.5; }
.ot-dialog fieldset { border:0; padding:0; display:grid; gap:16px; min-width:0; margin:20px 0; }
.ot-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ot-dialog textarea { min-height:95px; resize:vertical; }
.ot-form-actions { display:flex; flex-wrap:wrap; gap:10px; }
.ot-dialog small { font-size:11px; color:#6b8177; font-weight:400; }
.ot-detail { padding:16px 0; overflow-wrap:anywhere; }
.ot-detail p { line-height:1.55; white-space:pre-wrap; }
.ot-history { margin-top:26px; border-top:1px solid #dce5dc; padding-top:12px; }
.ot-history article { border-left:2px solid #cddcc7; padding:8px 14px; margin:16px 0; font-size:13px; }
.ot-history small { display:block; margin-top:5px; }
@media(max-width:1100px){.ot-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.ot-grid,.ot-form-grid{grid-template-columns:1fr;}.ot-heading{align-items:start;flex-direction:column}.ot-heading h2{font-size:21px}.ot-dialog>header,.ot-dialog-body{padding:18px}.ot-filters{display:grid;grid-template-columns:1fr 1fr}.ot-filters label:last-of-type{grid-column:1/-1}.ot-counts{gap:14px}.ot-counts strong{font-size:21px}.owner-task-department .owner-task-board{padding:16px}.ot-pages{gap:6px;}.ot-pages button{padding:10px;}}
