/* Research Output Tracker */
.ot-wrap { max-width: 860px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.ot-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.ot-header-left { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 700; color: #e6edf3; }
.ot-header-actions { display: flex; gap: .4rem; }

/* Buttons */
.ot-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 7px; font-size: .8rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.ot-btn-primary { background: #238636; border-color: #3fb950; color: #fff; }
.ot-btn-primary:hover { background: #2ea043; }
.ot-btn-ghost { background: #21262d; border-color: #30363d; color: #c9d1d9; }
.ot-btn-ghost:hover { background: #2d333b; }

/* Filters */
.ot-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.ot-filter-row { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.ot-filter-btn { background: #0d1117; border: 1px solid #21262d; border-radius: 5px; padding: .25rem .6rem; font-size: .72rem; color: #8b949e; cursor: pointer; }
.ot-filter-btn:hover { border-color: #30363d; color: #e6edf3; }
.ot-filter-active { border-color: #3fb950 !important; color: #3fb950 !important; background: rgba(63,185,80,.08) !important; }
.ot-year-sel { background: #0d1117; border: 1px solid #21262d; border-radius: 6px; padding: .28rem .55rem; font-size: .78rem; color: #c9d1d9; outline: none; }
.ot-export-btns { display: flex; gap: .25rem; }

/* Summary chips */
.ot-summary-row { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .85rem; }
.ot-summary-chip { display: inline-flex; align-items: center; gap: .2rem; background: #0d1117; border: 1px solid; border-radius: 6px; padding: .2rem .55rem; font-size: .72rem; font-weight: 600; }

/* List */
.ot-list { display: flex; flex-direction: column; gap: .5rem; }
.ot-item { display: flex; align-items: flex-start; gap: .6rem; background: #161b22; border: 1px solid #21262d; border-radius: 9px; padding: .7rem .85rem; }
.ot-item:hover { border-color: #30363d; }
.ot-item-type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: .45rem; }
.ot-item-body { flex: 1; min-width: 0; }
.ot-item-title { font-size: .85rem; font-weight: 600; color: #e6edf3; margin-bottom: .3rem; line-height: 1.35; }
.ot-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .73rem; margin-bottom: .25rem; }
.ot-item-type-badge { display: inline-flex; align-items: center; gap: .2rem; padding: .12rem .42rem; border-radius: 5px; font-size: .68rem; font-weight: 700; }
.ot-item-journal { color: #8b949e; }
.ot-item-year { color: #484f58; font-family: monospace; }
.ot-item-doi { color: #58a6ff; text-decoration: none; font-family: monospace; font-size: .68rem; }
.ot-item-doi:hover { text-decoration: underline; }
.ot-item-tags { display: flex; flex-wrap: wrap; gap: .2rem; }
.ot-tag { background: #21262d; border-radius: 4px; padding: .1rem .38rem; font-size: .65rem; color: #8b949e; }
.ot-item-actions { display: flex; gap: .2rem; flex-shrink: 0; }
.ot-item-btn { background: none; border: 1px solid transparent; border-radius: 5px; padding: .25rem; color: #484f58; cursor: pointer; display: flex; align-items: center; }
.ot-item-btn:hover { background: #21262d; border-color: #30363d; color: #c9d1d9; }
.ot-item-btn-del:hover { border-color: rgba(255,107,107,.3); color: #ff6b6b; background: rgba(255,107,107,.08); }
.ot-empty { text-align: center; padding: 2.5rem 1rem; font-size: .82rem; color: #484f58; }

/* Form */
.ot-form { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 1.1rem 1.25rem; }
.ot-form-header { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.ot-form-title { font-size: .9rem; font-weight: 700; color: #e6edf3; }
.ot-form-body { display: flex; flex-direction: column; gap: .65rem; }
.ot-form-row { display: flex; flex-direction: column; gap: .2rem; }
.ot-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.ot-label { font-size: .72rem; font-weight: 700; color: #8b949e; }
.ot-hint { font-weight: 400; }
.ot-input { background: #0d1117; border: 1px solid #30363d; border-radius: 7px; padding: .42rem .65rem; font-size: .83rem; color: #e6edf3; outline: none; width: 100%; box-sizing: border-box; font-family: inherit; }
.ot-input:focus { border-color: #58a6ff; }
.ot-textarea { min-height: 64px; resize: vertical; }
.ot-form-actions { display: flex; gap: .4rem; padding-top: .35rem; }

/* Stats */
.ot-stats { }
.ot-back-btn { margin-bottom: .75rem; }
.ot-stats-title { font-size: .95rem; font-weight: 700; color: #e6edf3; margin-bottom: .85rem; }
.ot-kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.ot-kpi { background: #161b22; border: 1px solid #21262d; border-radius: 9px; padding: .75rem .9rem; text-align: center; }
.ot-kpi-num { font-size: 1.6rem; font-weight: 800; color: #e6edf3; }
.ot-kpi-label { font-size: .72rem; color: #8b949e; margin-top: .15rem; }
.ot-stats-section-title { font-size: .75rem; font-weight: 700; color: #484f58; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .55rem; }
.ot-type-bars { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.ot-type-bar-row { display: flex; align-items: center; gap: .55rem; }
.ot-type-bar-label { font-size: .75rem; font-weight: 600; display: flex; align-items: center; width: 110px; flex-shrink: 0; }
.ot-type-bar-track { flex: 1; height: 8px; background: #21262d; border-radius: 4px; overflow: hidden; }
.ot-type-bar-fill { height: 100%; border-radius: 4px; }
.ot-type-bar-num { font-size: .78rem; font-weight: 700; color: #e6edf3; width: 28px; text-align: right; }
.ot-year-chart { display: flex; align-items: flex-end; gap: .5rem; padding-bottom: .5rem; }
.ot-year-col { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.ot-year-bar-wrap { height: 90px; display: flex; align-items: flex-end; }
.ot-year-bar { width: 32px; background: #3fb950; border-radius: 4px 4px 0 0; min-height: 10px; }
.ot-year-label { font-size: .65rem; color: #8b949e; }
.ot-year-val { font-size: .72rem; font-weight: 700; color: #e6edf3; }
