/* Shared portal details; all selectors are scoped to protect the telemetry page. */
:is(.developer-shell,#key-workspace) .panel{margin:18px 0}
:is(.developer-shell,#key-workspace) .toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}
:is(.developer-shell,#key-workspace) .fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}
:is(.developer-shell,#key-workspace) label{display:block;margin:12px 0;color:var(--ink)}
:is(.developer-shell,#key-workspace) input,:is(.developer-shell,#key-workspace) textarea,:is(.developer-shell,#key-workspace) select{font:inherit;width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink)}
:is(.developer-shell,#key-workspace) textarea{min-height:90px;resize:vertical}
:is(.developer-shell,#key-workspace) .check{display:flex;gap:10px;align-items:start}
:is(.developer-shell,#key-workspace) .check input{width:auto;margin-top:8px}
:is(.developer-shell,#key-workspace) .toolbar input{width:230px;max-width:100%}
:is(.developer-shell,#key-workspace) .toolbar select{width:150px;max-width:100%}
:is(.developer-shell,#key-workspace) .primary{background:var(--blue);color:white}
:is(.developer-shell,#key-workspace) .cards{display:grid;gap:14px}
:is(.developer-shell,#key-workspace) .card{border-top:1px solid var(--line);padding:18px 0;overflow-wrap:anywhere}
:is(.developer-shell,#key-workspace) .card:first-child{border-top:0}
:is(.developer-shell,#key-workspace) .card h3{font-weight:650;margin:0 0 8px}
:is(.developer-shell,#key-workspace) .card p{margin:6px 0;white-space:pre-wrap}
:is(.developer-shell,#key-workspace) .card button{margin:6px 8px 0 0}
:is(.developer-shell,#key-workspace) pre{font:13px/1.7 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--page);padding:14px;border-radius:6px}
:is(.developer-shell,#key-workspace) details{margin:16px 0}
:is(.developer-shell,#key-workspace) summary{cursor:pointer;font-weight:600;color:var(--blue)}
:is(.developer-shell,#key-workspace) details p{margin:12px 0}
:is(.developer-shell,#key-workspace) [id$="message"]:not(:empty){background:var(--blue-soft);border:1px solid var(--line);border-radius:6px;padding:12px;margin:16px 0}
:is(.developer-shell,#key-workspace) dialog{max-width:680px;width:90%;border:1px solid var(--line);border-radius:10px;padding:28px;color:var(--ink)}
:is(.developer-shell,#key-workspace) dialog::backdrop{background:#172d4266}
:is(.developer-shell,#key-workspace) textarea[id$="secret"]{min-height:76px;font-family:Consolas,monospace}
:is(.developer-shell,#key-workspace) :is(input,textarea,summary):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
#key-workspace .heading{display:block}
.key-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:24px 0 16px;padding-bottom:10px;flex-wrap:wrap}
.key-tabs [aria-selected="true"]{color:var(--blue);border-color:var(--blue);background:var(--blue-soft)}
@media(max-width:650px){:is(.developer-shell,#key-workspace) .fields{grid-template-columns:1fr}:is(.developer-shell,#key-workspace) .toolbar{gap:8px}}

/* Keep form controls aligned despite the admin toolbar's select margin. */
:is(.developer-shell,#key-workspace) .fields>label{min-width:0;margin:0}
:is(.developer-shell,#key-workspace) form :is(input:not([type="checkbox"]),select,textarea){display:block;box-sizing:border-box;margin:4px 0 0}
:is(.developer-shell,#key-workspace) .fields :is(input,select){height:44px}
:is(.developer-shell,#key-workspace) input:disabled{background:var(--page);color:var(--muted);cursor:not-allowed;opacity:1}
:is(.developer-shell,#key-workspace) .required-marker{color:#c62828;margin-left:3px}

:is(.developer-shell,#key-workspace) fieldset{border:0;padding:0;margin:0;min-width:0}
:is(.developer-shell,#key-workspace) fieldset:disabled :is(input,select,textarea,button){background:var(--page);color:var(--muted);cursor:not-allowed}
:is(.developer-shell,#key-workspace) .markdown-copy{min-width:0;overflow-x:auto}
:is(.developer-shell,#key-workspace) .markdown-copy table{width:100%;border-collapse:collapse;margin:16px 0;white-space:normal}
:is(.developer-shell,#key-workspace) .markdown-copy :is(th,td){border:1px solid var(--line);padding:10px 12px;text-align:left;white-space:normal;overflow-wrap:anywhere}
:is(.developer-shell,#key-workspace) .markdown-copy th{background:var(--page);font-weight:600}

:is(.developer-shell,#key-workspace) dialog{max-width:800px;max-height:88vh;overflow-y:auto}
:is(.developer-shell,#key-workspace) dialog button{min-height:38px;padding:8px 14px;font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap}
:is(.developer-shell,#key-workspace) .secret-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px;flex-wrap:wrap}
:is(.developer-shell,#key-workspace) .secret-actions .primary:hover{background:#174f86;color:white}
:is(.developer-shell,#key-workspace) .curl-examples{border-top:1px solid var(--line);padding-top:18px;margin-top:16px}
:is(.developer-shell,#key-workspace) .example-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin-top:18px}
:is(.developer-shell,#key-workspace) .example-tabs button{border:0;border-radius:6px 6px 0 0;background:transparent;border-bottom:3px solid transparent;color:var(--muted);padding:10px 12px}
:is(.developer-shell,#key-workspace) .example-tabs [aria-selected="true"]{background:var(--blue-soft);border-bottom-color:var(--blue);color:var(--blue)}
:is(.developer-shell,#key-workspace) .example-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
:is(.developer-shell,#key-workspace) .example-heading h4{margin:0;font-size:14px}
:is(.developer-shell,#key-workspace) .curl-example pre{margin:10px 0 0;height:260px;overflow:auto;font-size:13px;line-height:1.65}
:is(.developer-shell,#key-workspace) [id$="secret-feedback"]{min-height:20px;margin:8px 0 0;font-size:13px}
@media(max-width:650px){:is(.developer-shell,#key-workspace) dialog{padding:20px}:is(.developer-shell,#key-workspace) .secret-actions button{flex:1}}
