/* Expertise inherits Lamdas typography, theme, fields, buttons and cards. */
.ex-module{color:var(--text);line-height:1.5;min-width:0}.ex-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.ex-eyebrow{letter-spacing:.08em;font-size:.72rem;font-weight:700;color:var(--primary)}.ex-head h2{font-size:1.6rem;margin:4px 0}.ex-head p{margin:4px 0;color:var(--muted)}.ex-module .field-row{margin-bottom:0;min-width:0}.ex-module input,.ex-module select,.ex-module textarea{box-sizing:border-box;font:inherit;max-width:100%}.ex-module :focus-visible{outline:3px solid var(--primary-soft);outline-offset:2px}.ex-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ex-wide{grid-column:1/-1}.ex-form fieldset{border:0;padding:0;margin:0;min-width:0}.ex-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.ex-tabs .is-active{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-strong)}.ex-tab-count{margin-left:5px;font-size:.75rem}.ex-panel{margin-bottom:18px}.ex-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0;padding:18px 0;border-top:1px solid var(--line)}.ex-actions span,.ex-help{font-size:.82rem;color:var(--muted)}.ex-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:14px;align-items:end}.ex-count{color:var(--muted);font-size:.82rem;margin:18px 0 10px}.ex-table-wrap{overflow-x:auto}.ex-module table{border-collapse:collapse;width:100%;font-size:.9rem}.ex-module th{text-align:left;background:var(--panel-muted);color:var(--muted);font-size:.8rem;padding:14px}.ex-module td{padding:16px 14px;border-bottom:1px solid var(--line)}.ex-module td:first-child span,.ex-module td small{display:block}.ex-module td small{color:var(--muted);font-size:.75rem;margin-top:5px}.ex-badge{display:inline-block;padding:5px 10px;border-radius:20px;background:var(--primary-soft);color:var(--primary-strong);white-space:nowrap;font-size:.78rem}.ex-final,.ex-closed{background:color-mix(in srgb,var(--success) 12%,var(--panel));color:var(--success)}.ex-empty{text-align:center;padding:40px 20px;background:var(--panel-muted);border:1px dashed var(--line);border-radius:var(--radius)}.ex-empty>span{font-size:36px;color:var(--primary)}.ex-empty h3{margin-bottom:6px}.ex-empty p{color:var(--muted)}.ex-success,.ex-error{padding:12px 16px;border-radius:14px}.ex-success{background:color-mix(in srgb,var(--success) 12%,var(--panel));color:var(--success)}.ex-error{background:color-mix(in srgb,var(--danger) 12%,var(--panel));color:var(--danger)}.ex-module button:disabled{opacity:.6;cursor:wait}.ex-section-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.ex-section-toolbar .field-row{flex:1}.ex-entry{border:1px solid var(--line);border-radius:18px;padding:20px;margin:16px 0;background:var(--panel-muted)}.ex-entry .section-head{align-items:center}.ex-entry h3{font-size:1.1rem;overflow-wrap:anywhere}.ex-entry h4{margin:18px 0 8px}.ex-measure{display:grid;grid-template-columns:1fr .6fr .6fr 1.5fr auto;gap:10px;align-items:end;margin:12px 0}.ex-measure .secondary-button{margin-bottom:4px}
@media(max-width:900px){.ex-filters{grid-template-columns:1fr 1fr}.ex-measure{grid-template-columns:1fr 1fr}.ex-head{align-items:start}.ex-head h2{font-size:1.35rem}}
@media(max-width:600px){.ex-head,.ex-section-toolbar{align-items:stretch;flex-direction:column}.ex-grid,.ex-filters,.ex-measure{grid-template-columns:1fr}.ex-module .card{padding:16px}.ex-entry{padding:14px}.ex-tabs{gap:6px}.ex-tabs .tab-pill{padding:9px 11px}.ex-module td{padding:12px}.ex-wide{grid-column:auto}.ex-actions>button{width:100%}}
.ex-photo-import{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.ex-file-button{position:relative;display:inline-flex;align-items:center;cursor:pointer;overflow:hidden}.ex-file-button input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.ex-file-button:focus-within{outline:3px solid var(--primary-soft);outline-offset:2px}.ex-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px;margin:16px 0}.ex-photo{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--panel);min-width:0}.ex-photo>a{display:block;margin-bottom:10px}.ex-photo img{display:block;width:100%;height:180px;object-fit:contain;background:var(--panel-muted);border-radius:8px}.ex-photo-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.ex-photo-actions button{font-size:.78rem;padding:7px 10px}.ex-norm{padding:16px 0;border-top:1px solid var(--line);margin-top:12px}.ex-norm>button{justify-self:start}.ex-photo textarea{width:100%;min-height:90px}@media(max-width:600px){.ex-photos{grid-template-columns:1fr}.ex-photo-import>*{flex:1;justify-content:center}}

/* Compact native choices: global field styles must not stretch checkboxes/radios. */
.ex-module input[type="checkbox"],.ex-module input[type="radio"]{display:inline-block;box-sizing:border-box;width:17px;height:17px;min-width:17px;min-height:17px;max-width:17px;max-height:17px;padding:0;margin:0 7px 0 0;vertical-align:middle;flex:0 0 17px;accent-color:var(--primary,#345a73)}
.ex-module .field-row>span:has(>input[type="checkbox"]),.ex-module .field-row>span:has(>input[type="radio"]){display:flex;align-items:center;gap:2px;min-height:32px;line-height:1.4}
.ex-module .ex-entry label:has(>input[type="checkbox"]),.ex-module .ex-entry label:has(>input[type="radio"]){line-height:1.5;min-height:28px}

.ex-text-toolbar{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.ex-text-toolbar button{font:inherit;font-size:.78rem;line-height:1.2;padding:5px 8px;min-height:28px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text)}.ex-text-preview{border:1px solid var(--line);border-radius:8px;padding:12px;margin:8px 0;background:var(--panel-muted);overflow-wrap:anywhere}.ex-text-preview[hidden]{display:none}
