/* Work extends Ava's existing blue-gray visual system. */
.work-layout{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:28px;align-items:start}
.work-list-pane{min-width:0}.work-filter-form{margin:0 0 20px}.work-filter-form label{font-size:1rem}
#work-detail{background:var(--surface);border:1px solid var(--field);border-radius:12px;min-width:0;min-height:480px;padding:28px;overflow-wrap:anywhere}
.work-connection-summary{display:flex;gap:20px;justify-content:space-between;flex-wrap:wrap;margin:0 0 24px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:1rem;color:var(--muted)}
.work-connection-summary a{font-weight:600}.work-row{display:block;width:100%;text-align:left;background:var(--surface);color:var(--ink);border:1px solid var(--field);border-radius:10px;padding:18px;margin-bottom:12px;min-width:0}
.work-row:hover{background:#edf4fd;filter:none}.work-row.selected{outline:2px solid var(--blue);outline-offset:1px;background:#e9f2fe}
.work-row-heading{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.work-row strong{font-size:1.1875rem;line-height:1.35;overflow-wrap:anywhere}.work-row .muted{display:block;font-size:1rem;line-height:1.45}.work-excerpt{margin:12px 0;font-weight:400;font-size:1.0625rem;line-height:1.5}
.work-state{font-size:1rem;line-height:1.4;font-weight:600;padding:4px 9px;background:#e9f0f8;color:#294561;border:1px solid #9cacc1;border-radius:4px;white-space:normal}
.state-waiting,.state-ready{background:#dbeaff;color:#00456a;border-color:#537fac}.state-failed{background:#fff0f1;color:#8e2834;border-color:#b88188}.state-completed{background:#e5eaf2;color:#334d6b}.state-canceled{background:#f0f1f4;color:#526076}
.work-detail-head{margin-bottom:24px}.work-detail-head h1{font-size:1.75rem;line-height:1.25;margin:10px 0 18px;max-width:32ch;overflow-wrap:anywhere}.work-meta{display:flex;gap:10px 18px;align-items:center;flex-wrap:wrap;font-size:1rem;color:var(--muted)}
.work-answer{background:#e9f2fd;border:1px solid #7c9abd;border-radius:10px;padding:24px;margin:20px 0 28px}.work-answer h2{font-size:1.375rem;margin:0 0 20px}.work-answer .work-form{margin:0}.work-answer textarea{background:#fff}
.work-form{max-width:760px;display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:20px}.work-form>label{margin:16px 0 8px;font-weight:600}.work-form>label:first-child{margin-top:0}.work-form input,.work-form select,.work-form textarea{margin:0 0 8px;width:100%;max-width:100%;font-size:1.125rem;min-height:48px;box-sizing:border-box}.work-form textarea{resize:vertical;line-height:1.55;min-height:110px}.work-form>button{align-self:flex-start;margin-top:16px}.work-form p{max-width:65ch}.work-form-columns{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;margin:8px 0}.work-form-columns>label{grid-row:1;font-size:1rem;margin-bottom:8px}
.work-actions{margin:24px 0;align-items:center}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border:1px solid var(--field);border-radius:8px;font-size:1rem;font-weight:600;line-height:1.4;text-decoration:none;background:var(--surface);color:var(--ink);box-sizing:border-box}.button-link:hover{background:#eaf1fa}.work-tabs{padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px}.work-tabs button{min-height:48px}
.work-content{min-width:0}.work-content h2{font-size:1.375rem;line-height:1.4;margin:20px 0 12px}.work-content h3{font-size:1.1875rem}.work-empty{padding:24px 0}.work-empty h2{font-size:1.375rem;line-height:1.4;max-width:30ch;margin-top:0}.work-empty p{max-width:48ch;line-height:1.6}
.work-deliverable{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.work-deliverable:last-child{margin-bottom:0}.work-deliverable summary{cursor:pointer;min-height:48px;display:list-item;font-size:1.125rem;font-weight:600;padding:10px 0}.work-deliverable>.secondary{margin-top:16px}.work-document{max-width:70ch;line-height:1.65}.work-document p{margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}.work-document h3{margin:28px 0 12px}.work-sources{padding-left:24px}.work-sources li{margin:10px 0}.work-sources a{overflow-wrap:anywhere}
.work-timeline{list-style:none;padding:0;margin:0}.work-timeline li{border-bottom:1px solid var(--line);padding:18px 0}.work-timeline strong{display:block;font-size:1.125rem;text-transform:none}.work-timeline span{display:block;font-size:1rem;margin-top:6px}.work-timeline p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.work-notice{padding:16px;background:#e9f0f8;border:1px solid #9cacc1;border-radius:8px;font-size:1rem;line-height:1.55}.work-progress{padding:16px 0;border-bottom:1px solid var(--line)}.work-progress p{margin:0 0 12px}.work-progress progress{display:block;width:100%;height:8px;accent-color:var(--blue);margin-bottom:10px}.work-progress span{font-size:1rem;color:var(--muted)}
.work-context{font-family:inherit;font-size:1rem;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;max-height:540px;overflow:auto;background:#edf2f8;padding:16px;border:1px solid #9cacc1;line-height:1.5}
.work-attention{margin-bottom:24px;padding:18px;background:#e6f0ff;border:1px solid #6582a6;border-radius:10px}.work-attention p{font-size:1rem;margin:8px 0 12px}.priority-text{display:block;font-size:1rem;color:#803849;margin-top:8px}
.dot-account{padding:28px 0;border-top:1px solid var(--line)}.dot-account h2,.dot-setup h2{margin:0 0 12px;font-size:1.4375rem}.dot-account p{line-height:1.6}.dot-setup>label{display:block;margin:24px 0 8px;font-size:1rem;font-weight:600}.dot-setup input{width:100%;margin-bottom:12px;font-size:1rem}.dot-steps{padding-left:24px}.dot-steps li{padding-left:4px;margin:18px 0;line-height:1.6}.scope-choices{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:8px}.scope-choices legend{padding:0 8px;font-size:1rem;font-weight:600}.scope-choices label{display:flex;align-items:center;gap:12px;min-height:48px;font-size:1.0625rem}.scope-choices input[type=checkbox]{width:22px;height:22px;min-height:22px;margin:0;flex-shrink:0;accent-color:var(--blue)}
#dot-connect{max-width:780px;margin:0 auto}.danger{color:#9e2633!important}.work-revision{margin-top:32px;padding-top:20px;border-top:1px solid var(--line)}
@media(min-width:1200px){#work-detail>.back-button,.work-detail-head>.back-button{display:none}}
@media(max-width:1199px){.work-layout{grid-template-columns:1fr;max-width:820px}#work-detail{display:none;min-height:0}.work-open #work-detail{display:block}.work-open .work-list-pane{display:none}.work-open>.page-head{display:none}.work-open .work-connection-summary{display:none}}
@media(max-width:759px){.primary-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.primary-nav button{padding:6px 1px}.primary-nav button span{font-size:1rem;line-height:1.25;overflow-wrap:normal;hyphens:manual}.primary-nav [data-tab=followups] span{max-width:4.5rem}.work-layout{gap:20px}#work-detail{padding:20px 16px}.work-answer{padding:18px 16px;margin-inline:-4px}.work-detail-head h1{font-size:1.6875rem}.work-form-columns{grid-template-columns:1fr}.work-form-columns>label{grid-row:auto}.work-form-columns>label:nth-of-type(2){margin-top:12px}.work-actions{gap:12px}.work-actions>*{flex:1 1 100%}.work-tabs{display:flex;gap:8px}.work-tabs button{flex:1;padding:10px 8px}.work-row{padding:18px 16px}.dot-steps{padding-left:22px}.work-connection-summary{gap:8px}.work-attention{padding:16px}}
@media(max-width:359px){.primary-nav{padding-inline:2px}.primary-nav button span{overflow-wrap:anywhere}.work-form>button{width:100%}.work-tabs button{padding-inline:4px}}
@media(prefers-reduced-motion:no-preference){.work-answer{animation:work-arrive .2s ease-out}@keyframes work-arrive{from{transform:translateY(4px);opacity:.7}to{transform:translateY(0);opacity:1}}}
