/* DDD adapter for OSH Family Design 1.0. Data/decision colours remain separate. */
.osh-app.ddd-family{--primary-color:var(--osh-primary);--text-color:var(--osh-ink);--text-secondary-color:var(--osh-muted);--border-color:var(--osh-line);background:var(--osh-paper);color:var(--osh-ink)}
.osh-app.ddd-family .main-content{min-width:0;background:var(--osh-paper);padding:28px}
.osh-app.ddd-family .yonsei-header{background:white;color:var(--osh-ink);border-bottom:1px solid var(--osh-line);box-shadow:none}
.osh-app.ddd-family .yonsei-header h1 a{color:var(--osh-primary)}
.osh-app.ddd-family .welcome-text{color:var(--osh-muted)}
.osh-app.ddd-family .sidebar{background:white;border-right:1px solid var(--osh-line);box-shadow:none}
.osh-app.ddd-family .sidebar-header,.osh-app.ddd-family .sidebar-header h1{background:white;color:var(--osh-ink)}
.osh-app.ddd-family .menu-item{color:var(--osh-ink);border-radius:7px;min-height:44px}
.osh-app.ddd-family .menu-item:hover,.osh-app.ddd-family .menu-item.active{color:var(--osh-primary);background:var(--osh-primary-soft)}
.osh-app.ddd-family .sidebar-submenu{border-left-color:var(--osh-line)}
.osh-app.ddd-family .floating-menu-toggle{background:var(--osh-primary);color:white;border-radius:7px}
.osh-app.ddd-family .analysis-nav a,.osh-app.ddd-family .analysis-button,.osh-app.ddd-family .btn-auth,.osh-app.ddd-family .detail-link,.osh-app.ddd-family .btn-filter-dict{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:7px;background:white;border:1px solid var(--osh-input-line);color:var(--osh-primary);font-size:14px;font-weight:600;line-height:1.5;box-shadow:none;white-space:normal}
.osh-app.ddd-family .analysis-button.primary,.osh-app.ddd-family .analysis-nav [aria-current=page],.osh-app.ddd-family .detail-link,.osh-app.ddd-family .btn-login,.osh-app.ddd-family .natural-search-input-row button{background:var(--osh-primary);color:white;border-color:var(--osh-primary)}
.osh-app.ddd-family button:disabled{opacity:.55;cursor:not-allowed}
.osh-app.ddd-family .analysis-card,.osh-app.ddd-family .analysis-panel,.osh-app.ddd-family .record-item,.osh-app.ddd-family .filter-section,.osh-app.ddd-family .natural-search-hero,.osh-app.ddd-family .natural-search-interpretation,.osh-app.ddd-family .agent-composer,.osh-app.ddd-family .agent-evidence{background:white;border:1px solid var(--osh-line);border-radius:12px;box-shadow:none;padding:24px}
.osh-app.ddd-family .analysis-card:hover{border-color:var(--osh-primary)}
.osh-app.ddd-family .analysis-kpi,.osh-app.ddd-family .analysis-panel summary,.osh-app.ddd-family .agent-eyebrow,.osh-app.ddd-family .natural-search-eyebrow{color:var(--osh-primary)}
.osh-app.ddd-family .analysis-lead,.osh-app.ddd-family .analysis-note,.osh-app.ddd-family .agent-followups>span,.osh-app.ddd-family .agent-sessions summary,.osh-app.ddd-family .agent-evidence summary,.osh-app.ddd-family #agent-status,.osh-app.ddd-family .search-result-total{color:var(--osh-muted);font-size:14px;line-height:1.7}
.osh-app.ddd-family .analysis-filters,.osh-app.ddd-family .agent-context,.osh-app.ddd-family .agent-chat-question,.osh-app.ddd-family .natural-search-chips span{background:var(--osh-primary-soft);border-color:var(--osh-line);color:var(--osh-ink);border-radius:12px}
.osh-app.ddd-family .analysis-filters label{font-size:14px}
.osh-app.ddd-family :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:44px;font-size:16px;border:1px solid var(--osh-input-line);border-radius:7px;background:white;color:var(--osh-ink)}
.osh-app.ddd-family .natural-search-input-row button{min-height:44px;border-radius:7px}
.osh-app.ddd-family .analysis-panel table,.osh-app.ddd-family .agent-exposure-table table{font-size:14px}
.osh-app.ddd-family .analysis-panel th,.osh-app.ddd-family .agent-exposure-table th{background:var(--osh-paper);color:var(--osh-ink)}
.osh-app.ddd-family .analysis-panel td,.osh-app.ddd-family .analysis-panel th{border-color:var(--osh-line);padding:10px 12px}
.osh-app.ddd-family .analysis-source{border-left-color:var(--osh-primary);overflow-wrap:anywhere}
.osh-app.ddd-family .analysis-cases a,.osh-app.ddd-family #agent-answer .analysis-source a{color:var(--osh-primary);background:var(--osh-primary-soft);border-radius:4px}
.osh-app.ddd-family .agent-followups button{border-radius:7px;font-size:14px}
.osh-app.ddd-family .agent-sessions ul{list-style:none;padding:0;display:grid;gap:12px}
.osh-app.ddd-family .agent-sessions li button{width:100%;display:block;text-align:left;padding:14px 16px}
.osh-app.ddd-family .agent-sessions li button span{display:block;color:var(--osh-muted);font-weight:400;font-size:14px;margin-top:4px}
.osh-app.ddd-family #agent-answer{border-radius:12px}
.osh-app.ddd-family #agent-answer .analysis-source{background:var(--osh-paper);border-left-color:var(--osh-primary)}
.osh-app.ddd-family :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--osh-focus);outline-offset:4px}
.osh-app.ddd-family .agent-heading{flex-wrap:wrap}
.osh-app.ddd-family .analysis-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.osh-app.ddd-family .analysis-compare{grid-template-columns:repeat(2,minmax(0,1fr))}
.osh-app.ddd-family .agent-workspace{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
@media(max-width:850px){.osh-app.ddd-family .analysis-compare,.osh-app.ddd-family .agent-workspace{grid-template-columns:minmax(0,1fr)}.osh-app.ddd-family .agent-evidence{position:static;max-height:none}}
@media(max-width:640px){.osh-app.ddd-family .main-content{padding:18px}.osh-app.ddd-family .analysis-card,.osh-app.ddd-family .analysis-panel,.osh-app.ddd-family .natural-search-hero,.osh-app.ddd-family .agent-composer,.osh-app.ddd-family .agent-evidence{padding:18px}.osh-app.ddd-family .analysis-filters input,.osh-app.ddd-family .analysis-filters select{max-width:100%;width:100%}.osh-app.ddd-family .analysis-filters label{min-width:0;flex:1 1 130px}.osh-app.ddd-family .agent-heading h1{font-size:28px}.osh-app.ddd-family .yonsei-header{flex-wrap:wrap;gap:12px}}
@media print{.osh-app.ddd-family{background:white}.osh-app.ddd-family .main-content{padding:0}.osh-app.ddd-family .analysis-table-scroll{max-height:none;overflow:visible}.osh-app.ddd-family .agent-evidence{position:static;max-height:none}}
