/* Native Phoenix administration: a compact, neutral workspace. Public styles stay independent. */
.admin-shell{--paper:#fff;--ink:#18181b;--muted:#71717a;--line:#e4e4e7;--orange:#52525b;--serif:var(--sans);display:flex;min-height:100vh;background:#fff;color:var(--ink);font-size:13px;line-height:1.5;--admin-accent:#16634b}
.admin-sidebar{width:236px;flex:none;position:sticky;top:0;height:100vh;background:#fafafa;border-right:1px solid var(--line);padding:24px 16px 16px;display:flex;flex-direction:column;overflow:auto}
.admin-brand{display:flex;align-items:center;gap:10px;margin:0 10px 27px;font-size:16px;font-weight:650;letter-spacing:-.4px;line-height:1.4}.admin-brand:hover{text-decoration:none}.admin-brand-mark{display:grid;place-items:center;background:#18181b;color:#fff;width:33px;height:33px;border-radius:8px;font-size:27px;font-weight:400}.admin-brand small{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}
.admin-menu{display:grid;gap:23px}.admin-menu-group>p{font-size:10px;font-weight:600;color:var(--muted);margin:0 12px 7px;letter-spacing:.3px}.admin-menu a{display:flex;gap:10px;align-items:center;padding:8px 11px;border-radius:6px;margin:2px 0;font-weight:500;color:#52525b;white-space:nowrap}.admin-menu a:hover{background:#f0f0f2;color:#18181b;text-decoration:none}.admin-menu a.is-active{background:#eaeaec;color:#18181b;font-weight:600}.admin-shell svg{width:16px;height:16px;flex:none}.admin-menu svg{color:#71717a}.admin-menu .is-active svg{color:#18181b}
.admin-account{margin-top:auto;padding:20px 7px 0;display:flex;align-items:center;gap:9px;min-width:0}.admin-avatar{width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--line);background:white;border-radius:7px;font-size:12px;font-weight:600;flex:none}.admin-account>div{min-width:0;flex:1}.admin-account strong{display:block;font-size:11px;font-weight:600}.admin-account div>span{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.admin-account button{border:0;background:transparent;color:var(--muted);padding:6px;display:flex;border-radius:5px}.admin-account button:hover{background:#eaeaec;color:var(--ink)}
.admin-main{flex:1;min-width:0;display:flex;flex-direction:column}.admin-topbar{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 32px;gap:20px}.admin-breadcrumb{display:flex;align-items:center;gap:13px;font-size:12px;white-space:nowrap}.admin-breadcrumb>span{color:var(--muted)}.admin-breadcrumb strong{font-weight:500}.admin-topbar-actions{display:flex;align-items:center;gap:20px;font-size:11px}.admin-search-link{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:6px 12px;color:#71717a;background:#fafafa}.admin-public-link{color:#52525b;white-space:nowrap}.admin-content{width:100%;max-width:1600px;margin:0 auto;flex:1;padding:32px}.admin-footer{display:flex;justify-content:space-between;padding:18px 32px;border-top:1px solid var(--line);font-size:10px;color:#71717a;margin-top:32px}
.admin-shell .section-wrap{max-width:none;padding:0;margin:0;width:100%}.admin-shell .edit-panel{max-width:1000px}.admin-shell h1,.admin-shell h2,.admin-shell h3{font-family:var(--sans);letter-spacing:-.6px;color:var(--ink);font-weight:600;line-height:1.25}.admin-shell h1{font-size:27px;margin:0 0 8px}.admin-shell h2{font-size:16px;letter-spacing:-.25px;margin-bottom:8px}.admin-shell h3{font-size:14px;letter-spacing:-.1px}.admin-shell p{font-size:12px}.admin-shell .eyebrow{display:none}.admin-shell .small-muted{color:var(--muted);font-size:11px}.admin-shell .section-heading{gap:16px;align-items:center;margin-bottom:20px}.admin-shell .section-heading p{margin-bottom:0}.admin-shell .back-link,.admin-shell .activity-shortcut{display:none}.admin-shell a:focus-visible,.admin-shell button:focus-visible,.admin-shell input:focus-visible,.admin-shell select:focus-visible,.admin-shell textarea:focus-visible{outline:2px solid #71717a;outline-offset:3px}.admin-shell input,.admin-shell select,.admin-shell textarea{background:white;border:1px solid #dcdce0;border-radius:6px;padding:8px 10px;font-size:12px;box-shadow:0 1px 2px #18181b04;line-height:1.5}.admin-shell input,.admin-shell select{min-height:36px}.admin-shell input[type=checkbox],.admin-shell input[type=radio]{min-height:0;accent-color:#18181b}.admin-shell input::placeholder{color:#a1a1aa}.admin-shell label{font-size:11px;color:#52525b;font-weight:500}.admin-shell label input,.admin-shell label select,.admin-shell label textarea{margin-top:5px}.admin-shell .button{padding:7px 12px;min-height:34px;border-radius:6px;border:1px solid #dedee3;background:white;font-size:11px;font-weight:500;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 1px 2px #18181b05}.admin-shell .button:hover{background:#f4f4f5;text-decoration:none}.admin-shell .button.dark{background:#18181b;border-color:#18181b;color:white}.admin-shell .button.dark:hover{background:#303036}.admin-shell .text-button{font-size:11px;color:#52525b;font-weight:500}.admin-shell .browse-tabs{display:flex;border-bottom:1px solid var(--line);gap:22px;margin:22px 0 18px}.admin-shell .browse-tabs a{padding:9px 0;font-size:12px;color:var(--muted);border-bottom:2px solid transparent}.admin-shell .browse-tabs .selected{color:var(--ink);border-color:var(--ink)}.admin-shell .table-scroll{border:1px solid var(--line);border-radius:7px;background:#fff;overflow:auto}.admin-shell .directory-table{border:0;border-radius:0;background:white;margin:0;width:100%}.admin-shell .directory-table th{background:#fafafa;font-size:10px;font-weight:500;color:var(--muted);letter-spacing:0;text-transform:none;padding:10px 14px;border-bottom:1px solid var(--line)}.admin-shell .directory-table td{font-size:12px;padding:11px 14px;border-bottom:1px solid #f0f0f2;vertical-align:middle}.admin-shell .directory-table tr:last-child td{border-bottom:0}.admin-shell .directory-table tbody tr:hover{background:#fafafa}.admin-shell .directory-table td:first-child{font-weight:500}.admin-shell .directory-table code{font-size:10px;color:var(--muted)}.admin-shell .source-name{font-size:12px;font-weight:500}.admin-shell .source-status{font-size:10px}.admin-shell .source-genres{font-size:10px}.admin-shell .source-actions{font-size:11px;gap:12px}.admin-shell .management-box,.admin-shell .comparison-card,.admin-shell .proposal-field{background:white;border:1px solid var(--line);border-radius:8px;padding:20px;box-shadow:0 1px 3px #18181b03}.admin-shell .management-box{margin:22px 0}.admin-shell .management-box h2,.admin-shell .token-list-heading{font-size:17px;letter-spacing:-.3px}.admin-shell .research-editor{background:#fafafa}.admin-shell .research-filters,.admin-shell .workspace-search,.admin-shell .activity-filters{margin:20px 0}.admin-shell .research-row h2{font-size:18px}.admin-shell .token-feedback{background:#eef6f1;color:#23533a;border:1px solid #d7e9dc;font-size:12px;padding:10px 12px}.admin-shell .flash{font-size:12px;margin-bottom:20px}.admin-shell .empty-state{padding:36px 20px;text-align:center;background:#fafafa;border:1px dashed var(--line);border-radius:7px;color:var(--muted);margin-top:14px}.admin-shell .empty-state strong{color:#52525b;font-size:13px}.admin-shell .empty-state p{margin:7px auto 0;max-width:400px}.admin-shell .pagination{font-size:11px;color:var(--muted);padding:16px 0;margin:0}.admin-shell .pagination>div{display:flex;gap:8px}.admin-shell .editor-form{max-width:100%}.admin-shell .editor-form .button{justify-self:start}.admin-shell .token-card{padding:16px 0}.admin-shell .token-card h3{font-size:14px}.admin-shell .token-reveal{background:#f5faf7;border:1px solid #d5e6db;border-radius:8px}.admin-shell .token-reveal input{background:white}.admin-shell .token-revoke{color:#b42318;border-color:#f2c9c4}.admin-shell .activity-diff pre{background:#f4f4f5;font-size:12px}.admin-shell .activity-detail h2{font-size:19px}.admin-shell .activity-change h3{font-size:13px}.admin-shell .activity-table td:first-child{font-size:11px;min-width:140px}.admin-shell .activity-fields{font-size:11px}.admin-shell .comparison-card h3{font-family:var(--sans);font-size:20px}.admin-shell .form-error{color:#b42318}.admin-shell .live-connection{background:#fff3e4;color:#884d0d;border:1px solid #f0d4ab}
.dashboard-heading{margin-bottom:26px!important}.dashboard-heading h1{font-size:28px}.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:32px}.dashboard-stat{border:1px solid var(--line);border-radius:8px;padding:18px 20px;box-shadow:0 1px 3px #18181b04;display:block}.dashboard-stat:hover{text-decoration:none;border-color:#b4b4bf;background:#fdfdfd}.dashboard-stat>span{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:500;color:#52525b}.dashboard-stat>strong{font-size:29px;display:block;letter-spacing:-1px;font-weight:600;line-height:1.4;margin:7px 0 4px;font-variant-numeric:tabular-nums}.dashboard-stat>small{font-size:10px;color:var(--muted)}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b58b42}.dashboard-filter{display:flex;gap:10px;align-items:center;margin:0 0 16px}.dashboard-search{flex:1;max-width:420px}.dashboard-filter input,.dashboard-filter select{margin:0!important}.dashboard-rows{width:100px}.dashboard-filter>span{margin-left:auto;white-space:nowrap}.dashboard-catalog>.section-heading{margin-bottom:0}.dashboard-catalog h2{font-size:17px}.dashboard-table small{display:block;font-size:10px;color:var(--muted);margin-top:3px;font-weight:400}.dashboard-table td:nth-child(1){width:38%}.dashboard-record-name{font-weight:500}.dashboard-record-id{background:#f4f4f5;padding:3px 5px;border-radius:4px}.dashboard-row-actions{white-space:nowrap;text-align:right}.dashboard-row-actions a{font-size:11px;margin-left:18px;color:#52525b}.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:20px;margin-top:24px}.dashboard-card{border:1px solid var(--line);border-radius:8px;padding:22px;min-width:0}.dashboard-card>.section-heading{margin-bottom:12px}.dashboard-activity{list-style:none;padding:0;margin:0}.dashboard-activity li{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid #f0f0f2;min-width:0}.dashboard-activity li:last-child{border:0;padding-bottom:0}.activity-marker{width:7px;height:7px;background:#d4d4d8;box-shadow:0 0 0 4px #fafafa;flex:none;border-radius:50%;margin-top:6px}.dashboard-activity li>div{min-width:0;flex:1}.dashboard-activity a{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-activity p{font-size:10px;color:var(--muted);margin:3px 0 0;overflow-wrap:anywhere}.dashboard-activity time{font-size:10px;color:var(--muted);white-space:nowrap;margin-top:2px}.dashboard-next{background:#fafafa;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.admin-badge{display:inline-flex;border:1px solid #dcdce0;border-radius:5px;padding:3px 7px;font-size:10px;font-weight:500;background:white;color:#52525b;margin-bottom:17px}.dashboard-next h2{font-size:21px;letter-spacing:-.5px}.dashboard-next p{font-size:12px;color:var(--muted);line-height:1.7;max-width:330px;margin-bottom:20px}.dashboard-next .text-button{margin-top:15px}
@media(min-width:1700px){.admin-content{padding:40px 48px}}@media(max-width:1100px){.admin-sidebar{width:205px;padding-left:12px;padding-right:12px}.admin-content{padding:26px 24px}.admin-topbar{padding:0 24px}.dashboard-stats{gap:10px}.dashboard-stat{padding:14px}.dashboard-stat>small{font-size:9px}.dashboard-bottom{grid-template-columns:1fr}.dashboard-next{display:none}}@media(max-width:760px){.admin-shell{display:block}.admin-sidebar{width:100%;height:auto;position:static;overflow:visible;border-right:0;border-bottom:1px solid var(--line);padding:14px 16px 0}.admin-brand{margin:0 0 12px;font-size:14px}.admin-brand-mark{width:28px;height:28px;font-size:24px}.admin-brand small{font-size:10px}.admin-menu{display:flex;gap:0;overflow-x:auto;padding-bottom:7px;scrollbar-width:thin}.admin-menu-group{display:contents}.admin-menu-group>p{display:none}.admin-menu a{margin:0 3px 0 0;padding:7px 9px;font-size:11px}.admin-menu svg{width:14px;height:14px}.admin-account{display:none}.admin-topbar{height:50px;padding:0 18px;gap:10px}.admin-breadcrumb{font-size:11px;gap:8px}.admin-topbar-actions{gap:10px}.admin-search-link{padding:5px;font-size:0;gap:0}.admin-public-link{font-size:10px}.admin-content{padding:24px 18px}.admin-shell h1{font-size:24px}.admin-shell .section-heading{align-items:flex-start}.dashboard-heading{flex-wrap:wrap}.dashboard-stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:26px}.dashboard-stat{padding:14px}.dashboard-stat>strong{font-size:26px}.dashboard-stat>small{font-size:10px}.dashboard-heading .button{min-height:34px}.dashboard-filter{flex-wrap:wrap}.dashboard-search{max-width:none;flex:1;min-width:170px}.dashboard-filter>span{width:100%;margin-left:0;font-size:10px}.dashboard-rows{width:90px}.dashboard-table{min-width:650px}.admin-shell .directory-table td,.admin-shell .directory-table th{padding:10px 12px}.dashboard-card{padding:16px}.dashboard-activity time{font-size:9px}.dashboard-activity li{gap:9px}.admin-shell .workspace-search,.admin-shell .research-filters{gap:10px}.admin-footer{padding:16px 18px}.admin-shell .activity-filters{gap:10px}.admin-shell .button{white-space:nowrap}.admin-shell .token-card{gap:10px}.admin-shell .management-box{padding:16px}}@media(prefers-reduced-motion:reduce){.admin-shell *{scroll-behavior:auto}}
@media(max-width:760px){.admin-sidebar{position:relative}.admin-account{position:absolute;top:14px;right:16px;display:flex;margin:0;padding:0}.admin-account .admin-avatar,.admin-account>div{display:none}.admin-account button{padding:7px}}
@media(min-width:761px){.admin-sidebar{overflow:hidden}.admin-menu{min-height:0;overflow-y:auto;flex:1;align-content:start;gap:18px}.admin-menu a{padding-top:7px;padding-bottom:7px}.admin-account{padding-top:14px}}
/* Anchor visually hidden labels inside their own scroll regions. */
.admin-shell .table-scroll,.admin-shell .admin-menu{position:relative}
.admin-brand-logo{width:58px;height:38px;object-fit:contain;flex:none}.admin-brand{gap:8px;margin-left:3px;margin-right:3px}@media(max-width:760px){.admin-brand-logo{width:49px;height:32px}.admin-brand{margin-left:0}}
.admin-shell .search-box:focus-within{border-color:#71717a;box-shadow:0 0 0 2px #18181b14}.admin-shell .search-box input:focus-visible{outline:none}
.coverage-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.coverage-detail{margin-top:0!important}.coverage-detail h3{margin-top:24px}.coverage-children{list-style:none;padding:0}.coverage-children li{display:flex;justify-content:space-between;gap:15px;padding:7px 0}.coverage-detail code{overflow-wrap:anywhere}.coverage-detail form{margin:15px 0}.coverage-detail label{margin-bottom:12px}@media(max-width:1050px){.coverage-layout{grid-template-columns:1fr}}

.tasks-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:24px;margin-top:28px;align-items:start}.tasks-layout .management-box{margin-top:24px}.tasks-layout .task-detail{margin-top:0}.tasks-layout .directory-table td{padding:12px}.tasks-layout .directory-table .small-muted{display:block;margin-top:5px}.task-instructions{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.task-controls{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.task-item{padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.task-item p{margin:8px 0}.task-detail details{border-top:1px solid var(--line);padding:16px 0}.task-detail summary{cursor:pointer}.tasks-layout #task-filter{margin-bottom:16px}@media(max-width:1100px){.tasks-layout{grid-template-columns:1fr}.tasks-layout .task-detail{grid-row:1}}

.admin-shell .monitoring-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}.admin-shell .monitoring-stats{display:flex;flex-wrap:wrap;gap:12px 28px;margin:20px 0}.admin-shell .monitoring-stats strong{display:block;font-size:24px}.admin-shell .monitoring-stats span{font-size:12px;color:var(--admin-muted,#666)}.admin-shell .monitoring-assignment{padding:12px;background:#f5f5f5;border-radius:6px;margin-bottom:16px}@media(max-width:720px){.admin-shell .monitoring-heading{display:block}.admin-shell .monitoring-group{padding:18px}}

.admin-shell .task-group-nav{display:flex;gap:24px;flex-wrap:wrap;border-bottom:1px solid #e5e5e5;margin:22px 0}.admin-shell .task-group-nav a{display:block;padding:10px 0;color:#666}.admin-shell .task-group-nav a[aria-current=page]{color:#171717;border-bottom:2px solid #171717;font-weight:600}
