/* TuroGuide 0.15: the shared core owns the left navigation and layout.
   Module surfaces reuse the stable 0.12 tokens, panels, compact tables and controls. */
.x-module-tabs{margin-bottom:16px}
.office-v3 h1,.office-v3 h2{text-wrap:balance}
.office-v3 .detail-grid>.stack{align-content:start;min-width:0}
.office-v3 .detail-grid>aside{align-content:start;min-width:0}
.x-section .panel-head{padding:16px 20px;flex-wrap:wrap}
.x-section .panel-head h2{font-size:17px}
.x-section .panel-body{padding:20px}
.x-list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.x-list-row:first-child{padding-top:0}
.x-list-row:last-child{border-bottom:0;padding-bottom:0}
.x-list-row>div{min-width:0}
.x-list-row strong,.x-list-row p{overflow-wrap:anywhere}
.x-list-row p{font-size:13px;margin-top:4px}
.x-list-row>.btn{flex-shrink:0}
.x-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;flex-wrap:wrap;border-top:1px solid var(--line);font-size:13px}
.x-directory{min-width:0}
.x-directory-scroll{max-width:100%;overscroll-behavior-x:contain}
.x-directory-scroll:focus-visible{outline-offset:-3px}
.x-directory-table{min-width:660px}
.x-directory-table td,.x-directory-table th{padding:10px 14px;vertical-align:middle}
.x-directory-table td{font-size:13px;line-height:1.45}
.x-directory-table th{font-size:12px}
.x-directory-table .x-name-cell{min-width:210px;max-width:320px;white-space:normal;overflow-wrap:anywhere}
.x-directory-table .x-contact-cell{min-width:190px;max-width:280px;overflow-wrap:anywhere}
.x-directory-table .x-phone-cell{min-width:135px;white-space:nowrap}
.x-directory-table .row-title{font-size:14px;font-weight:600}
.x-directory .search-box input{padding-left:12px}
.x-record-row{cursor:pointer}
.x-record-row:focus-visible{outline:2px solid var(--ui-primary);outline-offset:-2px}
.x-record-row:hover>td{background:var(--ui-primary-soft)}
.x-back-link{display:inline-flex;align-items:center;min-height:32px;font-size:13px;margin-bottom:12px}
.x-contacts{display:grid;gap:14px}
.x-contact{border-bottom:1px solid var(--line);padding-bottom:14px;min-width:0}
.x-contact:last-child{border-bottom:0;padding-bottom:0}
.x-contact>div{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}
.x-contact strong{overflow-wrap:anywhere}
.x-contact .key-value{gap:8px}
.x-contact .key-value>div{grid-template-columns:100px minmax(0,1fr);gap:12px}
.x-private-note{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.x-private-note h3{margin-bottom:8px}
.x-edit-section>summary,.x-history>summary{cursor:pointer;list-style-position:inside;padding:16px 20px;font-weight:600;font-size:15px}
.x-edit-section[open]>summary,.x-history[open]>summary{border-bottom:1px solid var(--line)}
.x-edit-section>.panel-body{padding:20px}
.x-linked-records,.x-source-list{list-style:none;padding:0;margin:0}
.x-linked-records li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.x-linked-records li:first-child{padding-top:0}
.x-linked-records li:last-child{border-bottom:0;padding-bottom:0}
.x-linked-records a{min-width:0;overflow-wrap:anywhere}
.x-linked-records .small,.x-linked-records .badge{flex-shrink:0}
.x-source-list li{display:grid;gap:5px;margin-bottom:12px}
.x-source-list .btn{justify-self:start;text-align:left}
.x-project-identity{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;margin-top:-10px;margin-bottom:16px;min-width:0}
.x-project-identity>span{overflow-wrap:anywhere;min-width:0}
.x-project-identity .badge{margin-top:0}
.x-workspace-note{padding:12px 16px;border:1px solid var(--line);border-radius:var(--ui-radius-control);background:#fff;color:var(--muted);font-size:13px;line-height:1.5;margin-bottom:20px}
.x-project-workspace{grid-template-columns:minmax(0,1.65fr) minmax(265px,.85fr);align-items:start}
.x-project-workspace .form-grid textarea{min-height:115px}
.x-project-workspace .stack{gap:18px}
.x-timeline{padding-left:20px;margin:0;display:grid;gap:14px;max-height:360px;overflow-y:auto}
.x-timeline li{padding-left:3px;overflow-wrap:anywhere}
.x-timeline li span,.x-timeline li small{display:block}
.x-uncertainties{padding-left:18px;font-size:13px;margin-bottom:0}
.x-uncertainties li{margin-top:7px;overflow-wrap:anywhere}
.x-empty{padding:4px 0;min-width:0}
.x-empty strong{font-size:14px}
.x-empty p{margin-top:5px;max-width:65ch}
.x-open-issue{color:var(--ui-danger)}
.form-grid[data-form^="x-"]>.btn{align-self:start;justify-self:start;grid-column:1/-1}
.form-grid[data-form^="x-"]>.actions{grid-column:1/-1}
.ua-catalog-connection{flex-wrap:wrap;align-items:flex-start}
.ua-catalog-connection>div{min-width:0;flex:1 1 280px}
.ua-catalog-connection>.btn{max-width:100%;flex:0 1 auto}
.ua-catalog-connection .small{overflow-wrap:anywhere}
@media(max-width:1100px){.x-project-workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){
 .x-section .panel-head,.x-section .panel-body,.x-edit-section>.panel-body{padding:16px}
 .x-section .panel-head{gap:10px}
 .x-project-identity{margin-top:-4px;font-size:13px;gap:8px 14px}
 .x-workspace-note{padding:12px;font-size:12px}
 .x-list-row{align-items:flex-start;gap:12px;flex-wrap:wrap}
 .x-list-row>.btn{min-height:40px}
 .x-pager{padding:12px 16px;gap:10px}
 .x-pager .btn{min-height:40px}
 .x-directory .filters{align-items:stretch}
 .x-directory .filters .search-box{min-width:0;max-width:none;flex:1 1 190px}
 .x-directory .filters input{min-height:43px}
 .x-directory-table td,.x-directory-table th{padding:10px 12px}
 .x-linked-records li{flex-wrap:wrap;gap:6px}
 .x-linked-records .small{white-space:normal}
 .x-edit-section>summary,.x-history>summary{padding:16px;font-size:14px}
}


/* 0.16 directory controls share the guide table vocabulary and remain horizontally contained. */
.x-directory-filters{display:block;padding:14px 20px}
.x-filter-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.x-filter-search .search-box{max-width:420px;flex:1;min-width:200px}
.x-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(135px,1fr));gap:12px;margin-top:12px;align-items:end}
.x-filter-fields .form-field{gap:4px}
.x-filter-fields label{font-size:12px}
.x-filter-fields select{width:100%;max-width:none;min-width:0;min-height:39px}
.x-filter-fields>.actions{grid-column:1/-1}
.x-mobile-filters{display:none}
.x-filter-summary{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-bottom:1px solid var(--line);gap:12px;font-size:12px}
.x-selection-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 20px;border-bottom:1px solid var(--line)}
.x-selection-toolbar>p{flex-basis:100%;margin:0;font-size:12px}
.x-selection-toolbar>.actions{gap:6px;flex-wrap:wrap}
.x-provider-table{min-width:1370px}
.x-provider-table .x-selection-cell{min-width:36px;width:36px;padding:8px 10px}
.x-provider-table .x-selection-cell input{width:16px;height:16px;min-height:0}
.x-provider-table .x-name-cell{min-width:210px;max-width:290px}
.x-provider-brand{display:flex;align-items:center;gap:9px}
.x-provider-brand .row-title{min-width:0;line-height:1.4}
.x-provider-logo{position:relative;display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:7px;background:var(--ui-primary-soft);color:var(--ui-primary-pressed);font-size:11px;font-weight:600;overflow:hidden}
.x-provider-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
.x-provider-table .x-person-cell{min-width:145px;max-width:210px;overflow-wrap:anywhere}
.x-provider-table .x-category-cell{min-width:160px;max-width:220px;overflow-wrap:anywhere}
.x-provider-table .x-provider-actions{position:sticky;right:0;min-width:172px;padding:8px;background:#fff;box-shadow:-3px 0 6px #17244208}
.x-provider-table th.x-provider-actions{background:#fafbfe}
.x-provider-actions .actions{gap:4px;flex-wrap:nowrap}
.x-provider-actions .btn{font-size:12px;min-height:32px;padding:5px 9px}
.x-provider-actions .icon-only{width:30px;min-width:30px;padding:5px}
.x-cell-more{border:0;padding:0;margin-top:4px;background:none;font-size:12px}
.x-cell-more>summary{font-size:12px;color:var(--ui-primary);margin:0!important}
.x-cell-more>span{display:block;margin-top:5px}
.x-batch-recipients{margin:12px 0;padding-left:20px;max-height:220px;overflow-y:auto;font-size:13px}
.x-batch-recipients li{padding:5px 0;overflow-wrap:anywhere}
.x-batch-recipients span{display:block}
.x-picker-search{padding:12px 0}
@media(max-width:1100px){.x-filter-fields{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media(max-width:767px){
 .x-directory-filters{padding:12px 16px}
 .x-directory-filters:not(.filter-sheet-form) .x-filter-fields{display:none}
 .x-mobile-filters{display:inline-flex}
 .x-filter-search .search-box{min-width:0;flex:1 1 100%}
 .filter-sheet-form.x-directory-filters{padding:0;border:0}
 .filter-sheet-form .x-filter-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
 .filter-sheet-form .x-filter-fields select{min-height:44px}
 .x-filter-summary,.x-selection-toolbar{padding:10px 16px}
 .x-selection-toolbar>.actions{width:100%}
 .x-selection-toolbar .btn{min-height:38px}
 .x-provider-table .x-provider-actions{min-width:165px}
}

.x-provider-table .x-id-status{font-size:10px;margin-top:2px;color:var(--muted);white-space:nowrap}

.x-selection-controls[hidden],.x-selection-hint[hidden]{display:none!important}
@media(min-width:1101px){.x-filter-fields>.actions{grid-column:span 2;align-self:end;min-height:39px}}

/* Evidence status uses text and colour together. */
.x-source-cell{min-width:195px;max-width:none;white-space:nowrap;font-size:11px;line-height:1.35}.x-source-chip{display:inline-block;margin:2px 4px 2px 0;color:#4a5568;background:#f1f4f8;border:0;border-radius:4px;padding:2px 5px;font:inherit;text-decoration:underline;cursor:pointer}.x-source-badges{display:inline-flex;align-items:center;flex-wrap:nowrap;white-space:nowrap}.x-source-badges .x-source-chip{flex:none}.x-source-profile .x-source-chip{font-size:12px}.x-source-chip:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.x-coverage-chip{display:inline-block;margin:2px 4px 2px 0;font-size:12px;line-height:1.4}.x-coverage-chip.confirmed{color:#167343}.x-coverage-chip.proposed,.x-coverage-chip.unmapped{color:#a65300}.x-coverage-chip summary{cursor:pointer}.x-coverage-chip .x-evidence{color:var(--text);font-size:12px;white-space:normal;min-width:170px}.x-evidence a{overflow-wrap:anywhere}.x-provider-table{min-width:1140px}
.x-workspace-tool{margin:16px 0}.x-workspace-tool textarea{min-height:110px}.x-workspace-tool pre{white-space:pre-wrap;overflow-wrap:anywhere}.x-workspace-tool .x-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media(max-width:767px){.x-workspace-tool .x-tool-grid{grid-template-columns:1fr}}

.x-incoming-history .table-wrap{max-width:100%;overflow-x:auto}.x-incoming-table{min-width:680px}.x-incoming-table th:first-child,.x-incoming-table td:first-child{min-width:250px;max-width:360px}.x-incoming-table small{display:block;line-height:1.45}.x-incoming-history .x-list-row>div{min-width:0}.x-incoming-history strong,.x-incoming-history p{overflow-wrap:anywhere}.x-provider-table{min-width:1440px}.x-provider-table .x-category-cell{min-width:220px}.x-coverage-chip summary{overflow-wrap:normal;word-break:normal}

/* Directory activity words stay in one line. Evidence opens outside table layout. */
.x-provider-table .x-category-cell{min-width:260px;max-width:280px;white-space:nowrap;overflow-wrap:normal}
.x-category-words{display:flex;align-items:center;gap:5px;width:248px;max-width:248px;height:22px;overflow:hidden;white-space:nowrap}
.x-category-word,.x-category-more{display:block;flex:0 0 auto;max-width:76px;height:22px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:12px;font-weight:500;line-height:22px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.x-category-word.confirmed,.x-category-evidence h3.confirmed{color:#167343}
.x-category-word.proposed,.x-category-empty,.x-category-evidence h3.proposed{color:#a65300}
.x-category-empty{font-size:12px;white-space:nowrap}
.x-category-more{max-width:none;color:var(--ui-primary);font-weight:600}
.x-category-word:hover,.x-category-more:hover{text-decoration:underline;background:none}
.x-category-word[hidden],.x-category-more[hidden]{display:none!important}
dialog.x-category-dialog{width:min(480px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.x-category-dialog .dialog-body{max-height:65dvh;overflow:auto}
.x-category-evidence-list{display:grid;gap:16px;margin-top:16px}
.x-category-evidence{border:0;background:none;padding:0;min-width:0;scroll-margin-top:10px}
.x-category-evidence h3{font-size:14px}.x-category-evidence p{margin-top:4px;overflow-wrap:anywhere}

.x-category-words[data-total="1"] .x-category-word{max-width:100%}
.x-category-words[data-total="2"] .x-category-word{max-width:121px}

/* Request workspace: existing tokens, one task surface at a time. */
.x-request-center{min-width:0;max-width:100%;width:100%}
.x-request-center :where(.panel,.panel-body,.stack,.form-grid,form,details,fieldset,textarea,input,select,[data-request-panel]){min-width:0;max-width:100%}
.x-request-center [data-request-panel][hidden]{display:none!important}
.x-request-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 24px;margin:18px 0 12px}
.x-request-header>div{min-width:0}.x-request-header h1{margin:4px 0 8px;overflow-wrap:anywhere}
.x-request-eyebrow{font-size:13px;font-weight:600;margin:0;color:var(--muted)}
.x-request-boundary{font-size:12px;color:var(--muted);max-width:300px;margin:4px 0}
.x-request-nav{display:flex;gap:4px;overflow-x:auto;max-width:100%;padding:6px 0 10px;margin-bottom:20px;border-bottom:1px solid var(--line);overscroll-behavior-inline:contain}
.x-request-view{flex:0 0 auto;background:transparent;border:1px solid transparent;border-radius:8px;color:var(--muted);padding:10px 14px;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}
.x-request-view[aria-current=page]{background:var(--surface,#fff);border-color:var(--line);color:var(--text,#192139);font-weight:600}
.x-request-view:hover{background:var(--surface,#fff)}.x-request-view:focus-visible{outline:2px solid var(--brand,#6759dd);outline-offset:2px}
.x-request-pane-stack>section,.x-request-pane-stack>section>.panel{min-width:0}.x-request-pane-stack>section>.panel+.panel{margin-top:18px}
.x-request-overview-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;margin-bottom:18px}
.x-request-brief{white-space:pre-wrap;overflow-wrap:anywhere;max-height:13em;overflow:auto;padding-right:8px}
.x-request-edit{margin-top:16px;border-top:1px solid var(--line)}.x-request-edit>summary{padding:12px 0}
.x-request-edit>.panel-body{padding:16px 0 0}.x-request-edit form{margin:0}
.x-request-center .x-request-service{align-items:flex-start;padding:16px 0;gap:16px}.x-request-service>div{min-width:0}
.x-request-service p{margin:7px 0}.x-request-service-state{font-weight:500}.x-request-line-notes{margin-top:8px}.x-request-line-notes>summary{font-size:13px;cursor:pointer;color:var(--muted)}
.x-request-open-question{font-size:13px;margin:14px 0 0;overflow-wrap:anywhere}.x-request-providers li{align-items:flex-start}.x-request-providers p{margin:5px 0}
.x-request-center .x-assistant-progress a,.x-request-center .x-history a,.x-request-center .text-block{overflow-wrap:anywhere;word-break:normal}
.x-request-center .x-history{max-width:100%}.x-request-center .x-history .panel-body{min-width:0}
.x-request-center .x-history>summary{overflow-wrap:anywhere}.x-request-secondary{margin-top:18px}
.x-request-dirty-note{padding:12px;border:1px solid var(--line);border-radius:8px;font-size:13px;margin:0 0 14px}.x-request-dirty-note p{margin:0 0 8px}
.x-request-center .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.x-request-center .form-grid label:has(textarea){grid-column:1/-1}
.x-request-center textarea{width:100%;min-height:150px;resize:vertical}.x-request-center fieldset{overflow-wrap:anywhere}
@media(max-width:1000px){.x-request-overview-grid{grid-template-columns:minmax(0,1fr)}.x-request-boundary{max-width:240px}}
@media(max-width:600px){.x-request-header{display:block}.x-request-boundary{max-width:none;margin-top:10px}.x-request-nav{margin-bottom:14px}.x-request-view{padding:10px 12px}.x-request-center .form-grid{grid-template-columns:minmax(0,1fr)}.x-request-center .x-request-service{gap:10px}.x-request-service>.btn{padding:8px}.x-request-center .actions{flex-wrap:wrap}.x-request-center .panel-head{flex-wrap:wrap;gap:10px}}

/* Inline links remain identifiable without relying on colour. */
.x-request-center p a{text-decoration:underline;text-underline-offset:.18em}
