.tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
.tabs #tab-sources{--tool-accent:#6e4d38;--tool-ground:#eee5d7}
.tool-photo-sources{background-image:url('/office/brand/recursive-hands-v1.webp');background-size:cover;background-position:center}
.source-cover{display:grid;grid-template-columns:1.25fr 1fr;gap:28px;align-items:center;margin:-4px -4px 28px;padding:24px;background:#172627;color:#f7ecda;border-radius:8px;overflow:hidden;box-shadow:inset 0 0 0 1px #fff2,0 12px 24px #17353516}
.source-cover h2{font-family:Georgia,serif;font-size:clamp(1.8rem,3.6vw,3.2rem);font-weight:400;color:#fff4df;margin:6px 0 16px;line-height:1.08}
.source-cover p{color:#e2d7c5;max-width:42ch}.source-cover .eyebrow{color:#e8b18b;font-size:.68rem;letter-spacing:.13em}
.source-cover img{display:block;width:100%;height:220px;object-fit:cover;object-position:48% 70%;border-radius:4px;box-shadow:0 8px 30px #0008;border:1px solid #bc9d7066}
.source-add-grid{display:grid;grid-template-columns:1.5fr 1fr auto;gap:12px;align-items:end}
.sources-panel label{display:block;font-weight:700}.sources-panel input,.sources-panel textarea,.sources-panel select{width:100%;min-width:0;max-width:100%;margin-top:7px}.sources-panel textarea{resize:vertical}
.source-guide,.source-import{border-block:1px solid #c3c6b8;padding:14px 0;margin:20px 0}.source-guide summary,.source-import summary,.source-details summary{min-height:44px;display:list-item;padding:12px 0;cursor:pointer}
.source-library-bar{display:grid;grid-template-columns:1.5fr 1fr;gap:12px;margin:26px 0 16px}.source-library-bar p{grid-column:1/-1;margin:0}
.source-empty{padding:30px;background:linear-gradient(120deg,#eadfcb,#f6f1e7);border-left:3px solid #9b6344}.source-empty h3{font:400 clamp(1.4rem,3vw,2rem)/1.25 Georgia,serif;max-width:28ch;margin:12px 0}
.source-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.source-card{min-width:0;padding:22px;background:#fffdf6;border:1px solid #c5c6b6;border-top:3px solid #a46f4f;border-radius:5px;box-shadow:0 4px 0 #e4dfd0,0 10px 22px #19302a0b;overflow-wrap:anywhere}
.source-card-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.source-card .eyebrow{color:#78452f;font-size:.68rem;margin-top:10px}.source-card h3{font:400 1.5rem/1.2 Georgia,serif;margin:14px 0 8px;color:#193832}
.source-choice,.source-check{display:flex!important;align-items:center;gap:10px;min-height:44px;font-size:.9rem}.source-choice input,.source-check input{flex:none;width:20px!important;height:20px;margin:0!important;accent-color:#294d45}
.source-origin{font-size:.8rem;color:#51645d;margin-top:0}.source-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.source-actions>*{min-height:44px;max-width:100%}.source-link{display:inline-flex;align-items:center;padding:9px 5px;font-weight:700;color:#234d45;text-underline-offset:4px}
.source-preview{margin-block:18px;min-width:0}.source-player{display:block;width:100%;height:auto;aspect-ratio:16/9;min-height:200px;border:0;background:#10191c;border-radius:4px}.source-image{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;background:#e9e3d5}.source-playback-state{font-size:.85rem;line-height:1.5}
.source-details{margin-top:16px;border-top:1px solid #d5d4c7}.source-details label{margin-bottom:14px}.source-address{overflow-wrap:anywhere;font-size:.8rem;line-height:1.6}
.source-handoff{margin-top:32px;padding:26px;border:1px solid #b5bba9;border-radius:6px;background:linear-gradient(140deg,#e3eadd,#f2efe2)}
.source-handoff h3{font:400 clamp(1.5rem,3vw,2.2rem)/1.2 Georgia,serif;margin:10px 0}.source-handoff .eyebrow{color:#78452f;font-size:.7rem}.source-handoff .source-check{margin:12px 0}.source-share-preview{margin-top:22px;padding-top:10px;border-top:1px solid #b5bba9}.source-share-preview pre{max-height:420px;overflow:auto;background:#fffdf6;white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;border:1px solid #c5c6b6}
.source-import ol{padding-left:24px}.source-import li{margin-bottom:20px}.sources-panel :focus-visible{outline:3px solid #9a572f;outline-offset:3px}.sources-panel [hidden]{display:none!important}
@media(max-width:1100px){.tabs .tool-photo{width:52px;height:60px}.tabs button{min-height:90px;padding:8px}.tabs button[aria-selected="true"]{padding:7px}.tabs .tool-tab-arrow{display:none}.source-add-grid{grid-template-columns:1fr 1fr}.source-add-grid button{grid-column:1/-1}.source-cover{gap:20px;padding:20px}}
@media(max-width:760px){.tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.source-cover{grid-template-columns:1fr}.source-cover img{height:170px}.source-list{grid-template-columns:1fr}.source-handoff{padding:18px}.source-card{padding:18px}}
@media(max-width:430px){.tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.tabs #tab-sources{grid-column:1/-1;min-height:58px}.tabs .tool-photo{width:44px;height:48px}.tabs button{min-height:66px}.tabs .tool-tab-copy>span{display:none}.source-add-grid,.source-library-bar{grid-template-columns:1fr}.source-cover{padding:18px}.source-cover img{height:140px}.source-empty{padding:20px}.source-handoff{padding:16px}.source-actions>*{flex:1 1 auto;text-align:center;justify-content:center}.source-choice{white-space:nowrap}.source-card-heading{gap:6px}}
@media(prefers-reduced-motion:reduce){.sources-panel *{scroll-behavior:auto;animation:none!important;transition:none!important}}
