:root { font-family: "Amazon Ember", "Segoe UI", system-ui, sans-serif; color: #16191f; background: #f2f3f3; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #879596; border-radius: 8px; background: white; padding: 9px 15px; color: #16191f; font-weight: 600; }
button:hover { background: #f2f3f3; border-color: #5f6b7a; }
button:disabled { cursor: not-allowed; opacity: .55; }
button.primary { background: #0972d3; border-color: #0972d3; color: white; }
button.primary:hover { background: #075fb0; border-color: #075fb0; }
button.danger { color: #d91515; border-color: #d91515; }
:focus-visible { outline: 3px solid #0972d3; outline-offset: 3px; }
a { color: #0972d3; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 20px; margin-bottom: 0; font-weight: 650; }
h2 { font-size: 26px; margin-bottom: 8px; letter-spacing: -.5px; }
h3 { font-size: 17px; }
p { line-height: 1.6; }
.muted, small { color: #5f6b7a; line-height: 1.5; }
.topnav { flex-shrink: 0; display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); background: #232f3e; color: #e9ebed; padding: 10px clamp(14px, 2.5vw, 28px); flex-wrap: wrap; }
.topnav-brand { display: flex; align-items: center; gap: 12px; }
.topnav-brand h1 { font-size: 16px; font-weight: 650; color: #fff; white-space: nowrap; }
.brand-icon { background: #0972d3; color: white; border-radius: 8px; padding: 7px 10px; font-size: 14px; font-weight: 650; flex-shrink: 0; }
.topnav nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav nav button { background: transparent; border: 0; color: #d1d5db; padding: 10px 14px; font-weight: 500; border-radius: 6px; }
.topnav nav button:hover { background: #31465f; color: #fff; }
.topnav nav button[aria-current="page"] { background: #16191f; color: #fff; box-shadow: inset 0 -3px #0972d3; }
.topnav-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.env-switch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 6px; border: 1px solid #5f6b7a; background: #16191f; color: #e9ebed; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.env-switch:hover { background: #31465f; border-color: #879596; color: #fff; }
.account-profile { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.account-details { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.account-profile small { color: #d1d5db; }
.profile-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #0972d3; color: white; display: grid; place-items: center; font-weight: 600; overflow: hidden; }
.profile-avatar img { width: 40px; height: 40px; object-fit: cover; }
.account-profile .text-button { color: #d1d5db; text-align: left; }
.access-link { display: inline-block; margin-bottom: 16px; }
.shell { display: flex; flex: 1; min-height: 0; }
main { min-width: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: clamp(16px, 3vh, 30px) clamp(14px, 2.5vw, 38px) 24px; overflow-wrap: anywhere; }
#workspace, #otn-page, #configuration-page, #review-page, #otn-dashboard, #configuration-dashboard { display: flex; flex-direction: column; flex: 1; }
#otn-dashboard > .panel, #configuration-dashboard > .panel, #review-page > .panel { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
#otn-request-list, #configuration-request-list, #review-list { flex: 1; display: flex; flex-direction: column; }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: #5f6b7a; margin-bottom: 9px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; }
label.is-required .field-label::after,
label:has(> :is(input, select, textarea)[required]:not(:disabled)) .field-label::after { content: " *"; color: #d91515; font-weight: 700; }
label small { font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #879596; border-radius: 8px; padding: 10px 11px; color: #16191f; background: white; font-size: 14px; }
textarea { resize: vertical; }
.role-dropdown { position: relative; width: 100%; }
.role-dropdown-toggle { width: 100%; text-align: left; font-weight: 400; padding: 10px 11px; border: 1px solid #879596; border-radius: 8px; background: white; color: #16191f; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.role-dropdown-toggle::after { content: "▼"; font-size: 10px; color: #5f6b7a; flex-shrink: 0; }
.role-dropdown-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow-y: auto; background: white; border: 1px solid #879596; border-radius: 8px; padding: 6px; box-shadow: 0 4px 12px #0000001f; display: flex; flex-direction: column; gap: 2px; }
.role-option { flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-weight: 400; cursor: pointer; }
.role-option:hover { background: #f2f3f3; }
.role-option input { width: auto; margin: 0; }
.page-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading p { color: #5f6b7a; margin-bottom: 0; }
.panel-heading h3 { margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 24px; }
.metric { background: white; border: 1px solid #e9ebed; border-radius: 9px; padding: 20px; }
.metric span { display: block; color: #5f6b7a; font-size: 14px; }
.metric strong { font-size: 29px; display: block; margin-top: 9px; font-weight: 600; }
.panel { border: 1px solid #e9ebed; border-radius: 10px; background: white; padding: 24px; margin-bottom: 22px; box-shadow: 0 1px 2px #00000012; }
.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.filters label { width: 190px; flex-shrink: 0; }
.filters label.search-filter { width: 250px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #5f6b7a; background: #fafafa; border-bottom: 1px solid #e9ebed; }
th .sort-button { width: 100%; text-align: left; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; font-weight: 650; white-space: nowrap; cursor: pointer; }
th .sort-button:hover { color: #16191f; }
th:has(.sort-button[aria-sort="ascending"]), th:has(.sort-button[aria-sort="descending"]) { color: #16191f; }
td { padding: 16px 12px; border-bottom: 1px solid #f2f3f3; vertical-align: top; }
td small { display: block; margin-top: 6px; }
td .name-button { display: block; text-align: left; border: 0; padding: 0; background: none; color: #0972d3; max-width: 230px; overflow-wrap: anywhere; }
.badge { display: inline-block; border-radius: 16px; padding: 5px 9px; font-size: 11px; font-weight: 650; white-space: nowrap; background: #f2f3f3; color: #5f6b7a; }
.badge.pending { background: #fff8e6; color: #8d6605; }
.badge.scheduled { background: #f0f7ff; color: #0972d3; }
.badge.created, .badge.sent, .badge.completed { background: #e9f6ec; color: #037f51; }
.badge.failed, .badge.rejected { background: #fdf3f1; color: #d91515; }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 45px 12px; }
.empty h3 { color: #16191f; }
.empty p { color: #5f6b7a; }
.steps { display: flex; margin: 24px 0; gap: 12px; flex-wrap: wrap; }
.steps span { border-radius: 5px; padding: 10px 15px; background: #f2f3f3; color: #5f6b7a; font-size: 12px; }
.steps .active { color: #0972d3; background: #f0f7ff; font-weight: 650; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.request-form h3:not(:first-child), .form-section { border-top: 1px solid #e9ebed; margin-top: 28px; padding-top: 25px; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid #e9ebed; margin-top: 26px; padding-top: 24px; }
.form-footer p { font-size: 12px; margin-bottom: 0; color: #5f6b7a; }
.notice, .error, .callout { border-radius: 6px; padding: 14px 18px; margin-bottom: 20px; line-height: 1.6; }
.notice { background: #e9f6ec; color: #037f51; border: 1px solid #b7e4c7; }
.error { background: #fdf3f1; color: #d91515; border: 1px solid #f1b9ae; }
.callout { color: #075fb0; border: 1px solid #b6d6f2; background: #f0f7ff; }
footer { padding: 8px 0; color: #5f6b7a; font-size: 11px; line-height: 1.8; }
.text-button { font-size: 11px; padding: 3px; border: 0; background: none; color: #0972d3; text-decoration: underline; }
dialog { border: 1px solid #d1d5db; border-radius: 12px; width: min(760px, calc(100% - 24px)); max-height: 90vh; padding: 26px; color: #16191f; box-shadow: 0 20px 70px #13233b40; }
dialog::backdrop { background: #14233d80; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 22px; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: 155px 1fr; gap: 12px 16px; font-size: 13px; margin: 20px 0; }
.details dt { color: #5f6b7a; }
.details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.timeline { list-style: none; padding-left: 16px; border-left: 2px solid #e9ebed; }
.timeline li { position: relative; margin: 18px 0; padding-left: 10px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #0972d3; }
.timeline small { display: block; }
.review-actions { border-top: 1px solid #e9ebed; padding-top: 20px; margin-top: 22px; }
.review-actions label { margin-bottom: 15px; }
.checkbox { flex-direction: row; align-items: center; font-weight: 400; }
.checkbox input { width: auto; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.result-id { font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.payload-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 15px; background: #f2f3f3; font-size: 12px; }
summary { cursor: pointer; font-weight: 600; margin: 16px 0; }
@media (max-width: 1100px) { main { padding: 24px; } .panel-heading { align-items: start; flex-direction: column; } }
@media (max-width: 760px) {
    .topnav { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
    .topnav-brand h1 { white-space: normal; }
    .topnav nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } .topnav nav button { padding: 11px; font-size: 12px; }
    .topnav-end { margin-left: 0; width: 100%; justify-content: space-between; }
    main { padding: 20px 14px; }
    .account-profile { min-width: 0; } h1 { font-size: 18px; } h2 { font-size: 23px; }
    .page-heading, .form-footer { flex-direction: column; align-items: stretch; } .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric { padding: 16px; } .panel { padding: 18px; } .form-grid { grid-template-columns: 1fr; }
    .filters { width: 100%; flex-wrap: wrap; } .filters label { flex: 1; } .details { grid-template-columns: 1fr; gap: 5px; }
    .details dd { margin-bottom: 12px; } dialog { padding: 20px; }
}
