:root { color-scheme: light; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #152b36; background: #f2f7f6; }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.billing-grid .environment-card { margin: 0; min-width: 0; }
.billing-notice { padding: 16px; background: #fff7df; border: 1px solid #ead296; border-radius: 12px; line-height: 1.5; }
.billing-notice p { margin-bottom: 0; font-size: 14px; }
.billing-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.billing-actions button { width: auto; }
#billing-test-form { margin-top: 20px; }
#billing-test-form select { width: 100%; padding: 12px; border: 1px solid #bacdca; border-radius: 9px; background: white; font: inherit; }
.billing-history small { display: block; overflow-wrap: anywhere; margin-top: 6px; }
@media (max-width: 600px) { .billing-grid { grid-template-columns: minmax(0, 1fr); } .billing-actions { align-items: stretch; flex-direction: column; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 10% 0%, #d8ede9 0, transparent 55%); }
.shell { width: min(100% - 40px, 520px); margin: 64px auto; }
.brand { display: block; color: #153e43; font-size: 24px; font-weight: 800; text-decoration: none; margin-bottom: 32px; }
.brand span { border-left: 1px solid #a3c0bd; margin-left: 12px; padding-left: 12px; font-size: 16px; font-weight: 500; }
.card { background: #fff; border: 1px solid #dce8e5; border-radius: 20px; padding: 36px; box-shadow: 0 12px 40px #1a514308; }
.eyebrow { color: #49766f; letter-spacing: .12em; font-size: 11px; font-weight: 700; margin: 0 0 12px; }
h1 { font-size: clamp(26px, 5vw, 31px); letter-spacing: -.035em; line-height: 1.18; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 28px 0 12px; }
.intro { color: #5a6e75; font-size: 15px; line-height: 1.55; margin-bottom: 28px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
input { width: 100%; border: 1px solid #bacdca; border-radius: 9px; padding: 14px; font: inherit; font-size: 17px; color: #173c3d; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #7dcab9; outline-offset: 3px; }
button { width: 100%; padding: 14px; border: none; border-radius: 9px; background: #176c5b; color: white; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
button:hover { background: #105b4c; }
button:disabled { opacity: .55; cursor: wait; }
.hint { font-size: 12px; color: #677c80; line-height: 1.6; margin: 9px 0 22px; }
.quiet { color: #27695d; background: #eef6f3; }
.quiet:hover { background: #e0efea; }
.secondary { display: grid; gap: 8px; margin-top: 12px; }
.status { font-size: 13px; line-height: 1.6; color: #854a29; min-height: 21px; margin: 16px 0 0; overflow-wrap: anywhere; }
.footnote { font-size: 12px; line-height: 1.6; border-top: 1px solid #e6eeeb; padding-top: 20px; margin-top: 24px; color: #728480; }
.footer { text-align: center; font-size: 11px; color: #80928e; margin-top: 24px; }
.memberships { list-style: none; padding: 0; }
.memberships li { display: flex; gap: 16px; justify-content: space-between; border-bottom: 1px solid #e6eeeb; padding: 16px 0; font-size: 14px; overflow-wrap: anywhere; }
.memberships small { color: #49766f; font-size: 11px; align-self: center; }
[hidden] { display: none !important; }
@media (max-width: 480px) { .shell { margin: 28px auto; width: min(100% - 24px, 520px); } .card { padding: 24px; border-radius: 16px; } }

.workspace-shell { max-width: 760px; width: min(100% - 40px, 760px); }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; line-height: 1.6; margin: 20px 0; overflow-wrap: anywhere; }
a { color: #176c5b; }
h3 { font-size: 15px; margin: 20px 0 12px; }
.resource-id { font-size: 12px; color: #677c80; overflow-wrap: anywhere; }
.environment-switch { display: flex; gap: 8px; margin: 24px 0 16px; }
.environment-switch a { border: 1px solid #bacdca; border-radius: 8px; padding: 10px 22px; text-decoration: none; font-size: 13px; font-weight: 700; }
.environment-switch a[aria-current] { background: #176c5b; border-color: #176c5b; color: white; }
.environment-card { background: #f2f7f6; border: 1px solid #dce8e5; border-radius: 12px; padding: 20px; }
.environment-card h3 { margin-top: 0; }
.environment-card .hint { margin-bottom: 0; }
#application-form { border-top: 1px solid #e6eeeb; margin-top: 24px; }
#logout { margin-top: 24px; }

.key-list { list-style: none; padding: 0; }
.key-list li { border: 1px solid #dce8e5; border-radius: 10px; padding: 16px; margin: 12px 0; overflow-wrap: anywhere; }
.key-list .hint { margin: 8px 0; }
.key-list button { margin-top: 10px; }
fieldset { border: 1px solid #bacdca; border-radius: 9px; margin: 20px 0; padding: 12px 16px; }
legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.scope-option { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-size: 13px; overflow-wrap: anywhere; }
.scope-option input { width: 18px; height: 18px; flex-shrink: 0; }
.secret-card { border: 2px solid #176c5b; border-radius: 12px; margin-top: 20px; padding: 20px; }
textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid #bacdca; border-radius: 8px; font: 13px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
textarea:focus-visible { outline: 3px solid #7dcab9; outline-offset: 3px; }
#key-form { margin-top: 24px; }

#webhook-panel { border-top: 1px solid #e6eeeb; margin-top: 28px; padding-top: 8px; }
#webhook-summary { overflow-wrap: anywhere; }
#test-webhook { margin-top: 10px; }

#journal-panel, #usage-panel { border-top: 1px solid #e6eeeb; margin-top: 28px; padding-top: 8px; }
#notifications small { display: block; color: #677c80; font-size: 12px; line-height: 1.7; margin-top: 8px; }
#usage-period, #usage-channel, #usage-source, #journal-period, #journal-channel, #journal-source { width: 100%; padding: 12px; border: 1px solid #bacdca; border-radius: 9px; margin-bottom: 12px; font: inherit; background: white; }
#usage-period:focus-visible, #usage-channel:focus-visible, #usage-source:focus-visible, #journal-period:focus-visible, #journal-channel:focus-visible, #journal-source:focus-visible { outline: 3px solid #7dcab9; outline-offset: 3px; }
.usage-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.usage-date-grid input { min-width: 0; font-size: 14px; }
@media (max-width: 480px) { .usage-date-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.usage-table-scroll { max-height: 320px; overflow: auto; margin: 16px 0; border: 1px solid #dce8e5; border-radius: 10px; }
.usage-table-scroll:focus-visible { outline: 3px solid #7dcab9; outline-offset: 3px; }
.usage-cost-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.usage-cost-table caption { text-align: left; font-weight: 700; padding: 12px; background: #eef6f3; }
.usage-cost-table th, .usage-cost-table td { text-align: right; padding: 10px 12px; border-top: 1px solid #dce8e5; white-space: nowrap; }
.usage-cost-table th:first-child { text-align: left; }
.usage-cost-table thead th { background: #f2f7f6; }
#push-panel { border-top: 1px solid #e6eeeb; margin-top: 28px; padding-top: 8px; }
#push-form select { width: 100%; padding: 12px; border: 1px solid #bacdca; border-radius: 9px; font: inherit; background: white; }
#push-form select:focus-visible { outline: 3px solid #7dcab9; outline-offset: 3px; }
#push-form input[type="file"] { font-size: 12px; }

#sms-panel { border-top: 1px solid #e6eeeb; margin-top: 28px; padding-top: 8px; }
#sms-form select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #bacdca; border-radius: 9px; font: inherit; background: white; }
#sms-form select:focus-visible { outline: 3px solid #7dcab9; outline-offset: 3px; }

/* Project workspace: one task per view, persistent context, mobile-first controls. */
.workspace-shell { max-width: 1240px; width: min(100% - 48px, 1240px); margin: 32px auto; }
.workspace-shell > .card { padding: 28px 32px; }
.workspace-shell .brand { margin-bottom: 20px; }
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.account-bar .intro { margin: 0; }
.docs-link { font-size: 14px; font-weight: 600; }
.contact-details { margin: 16px 0; max-width: 520px; }
summary { cursor: pointer; font-size: 14px; line-height: 1.6; font-weight: 600; }
select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #bacdca; border-radius: 9px; background: #fff; color: #173c3d; font: inherit; }
select:focus-visible, summary:focus-visible { outline: 3px solid #7dcab9; outline-offset: 3px; }
.project-workspace { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 28px; margin-top: 28px; border-top: 1px solid #dce8e5; padding-top: 24px; }
.project-navigation { display: flex; flex-direction: column; gap: 5px; align-self: start; position: sticky; top: 16px; }
.project-navigation a { display: block; padding: 12px 14px; text-decoration: none; border-radius: 9px; color: #4f656c; font-size: 14px; line-height: 1.4; }
.project-navigation a:hover { background: #f2f7f6; }
.project-navigation a[aria-current] { color: #105644; background: #e5f3ec; font-weight: 700; box-shadow: inset 3px 0 #176c5b; }
.workspace-content, [data-project-view], #channel-settings { min-width: 0; }
[data-project-view] > h3, [data-project-view] > section > h3:first-child { margin-top: 0; font-size: 23px; letter-spacing: -.025em; }
[data-project-view] #journal-panel, [data-project-view] #usage-panel { margin: 0; padding: 0; border: none; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 16px; margin: 20px 0; }
.action-card { display: flex; flex-direction: column; align-items: start; gap: 10px; border: 1px solid #dce8e5; border-radius: 12px; padding: 20px; text-decoration: none; color: #173c3d; background: #fff; }
.action-card:hover { border-color: #73ad9d; background: #f7fbf9; }
.action-card span:last-child { color: #586e75; font-size: 13px; line-height: 1.6; }
.step-number { display: grid; place-items: center; height: 27px; width: 27px; background: #e5f3ec; border-radius: 50%; font-size: 13px; font-weight: 700; }
.overview-grid h4 { margin: 0 0 12px; }
.overview-grid p, .help-details p { font-size: 14px; line-height: 1.7; }
.help-details { border-top: 1px solid #dce8e5; padding-top: 18px; margin-top: 24px; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px; }
.option-card { display: flex; align-items: start; gap: 12px; margin: 0; padding: 14px; background: #f7faf9; border: 1px solid #dce8e5; border-radius: 10px; cursor: pointer; }
.option-card:has(input:checked) { background: #edf7f1; border-color: #7cb49e; }
.option-card input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: #176c5b; }
.option-card strong { display: block; font-size: 14px; }
.option-card small { display: block; color: #5a7178; font-size: 12px; line-height: 1.6; margin-top: 5px; font-weight: 400; }
#channel-settings > .environment-card { margin-top: 24px; }
#channel-settings ol { padding-left: 22px; font-size: 14px; line-height: 1.8; }
.channel-state { font-size: 13px; font-weight: 650; color: #72531c; }
.context-notice { background: #eef6f3; padding: 14px 18px; border-left: 3px solid #176c5b; border-radius: 8px; font-size: 13px; line-height: 1.7; }
pre { max-width: 100%; overflow: auto; background: #f2f7f6; border: 1px solid #dce8e5; border-radius: 10px; padding: 18px; line-height: 1.6; font-size: 12px; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.workspace-shell .hint { color: #536b72; font-size: 13px; }
.workspace-shell .status { min-height: 24px; }
.workspace-shell button { min-height: 44px; }
.workspace-shell .footer { color: #566c67; }
@media (max-width: 850px) {
  .project-workspace { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .project-navigation { position: static; flex-direction: row; flex-wrap: wrap; gap: 7px; }
  .project-navigation a { padding: 10px 12px; border: 1px solid #dce8e5; }
  .project-navigation a[aria-current] { box-shadow: none; border-color: #7cb49e; }
}
@media (max-width: 600px) {
  .workspace-shell { width: calc(100% - 24px); margin: 20px auto; }
  .workspace-shell > .card { padding: 20px 16px; }
  .workspace-shell .brand { font-size: 23px; }
  .project-navigation { display: grid; grid-template-columns: 1fr 1fr; }
  .project-navigation a { font-size: 13px; }
  .workspace-shell .memberships li { flex-direction: column; gap: 8px; }
  .workspace-shell .memberships small { align-self: start; }
  .workspace-shell input, .workspace-shell select, .workspace-shell textarea { min-width: 0; font-size: 16px; }
  .workspace-shell .billing-grid { grid-template-columns: minmax(0,1fr); }
  .workspace-shell .environment-card { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) { .action-card, .project-navigation a { transition: background-color .12s, border-color .12s; } }

.project-active #main-content > .eyebrow, .project-active #application-title, .project-active #application-panel > .eyebrow:first-child { display: none; }
.project-active #heading { font-size: clamp(25px,4vw,32px); margin-bottom: 12px; }
.project-active .account-bar { justify-content: flex-start; gap: 18px; }
.project-active .account-bar .intro { flex: 1; font-size: 13px; }
.project-active .account-bar a { font-size: 13px; }
.project-active .contact-details { margin: 8px 0; }
.project-active .contact-details > summary { font-size: 12px; color: #536b72; }
.project-active .breadcrumbs { margin: 12px 0 8px; }
.project-active .owner-navigation:empty { display: none; }
.project-active #application-id { margin: 6px 0; }
.project-active .environment-switch { margin: 14px 0 12px; }
.environment-details { padding: 12px 16px; }
.environment-details summary { color: #234b42; }
.environment-details .hint { margin-bottom: 0; }
.project-active .context-notice { margin: 12px 0 0; padding: 10px 14px; }
.project-active .project-workspace { margin-top: 20px; padding-top: 20px; }
@media(max-width:600px) { .project-active .account-bar { gap: 8px 14px; } .project-active .account-bar .intro { flex-basis:100%; } }
