:root {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #20251f;
	background: #f5f5ef;
	font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f5f5ef; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.account-surface { min-height: 100vh; display: flex; flex-direction: column; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.4rem clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid #d9ddd3; background: rgba(255,255,252,.82); }
.account-brand { font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.account-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; }
.account-nav a { text-decoration: none; }
.account-link-button, .account-text-button { border: 0; padding: 0; background: transparent; color: #43634e; cursor: pointer; font: inherit; }
.account-main { width: min(100% - 2.5rem, 920px); margin: 0 auto; flex: 1; padding: 4.5rem 0 6rem; }
.account-page-narrow { width: min(100%, 570px); margin: 0 auto; }
.account-title { margin-bottom: 2rem; }
.account-title-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.account-title h1 { margin: .35rem 0 .5rem; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.055em; line-height: .98; }
.account-title p { max-width: 620px; margin: 0; color: #687267; line-height: 1.65; }
.account-eyebrow { margin: 0 0 .5rem; color: #6a806d; font-size: .72rem; font-weight: 740; letter-spacing: .11em; text-transform: uppercase; }
.account-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #d9ddd3; }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.account-section-heading h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; }
.account-count { display: inline-grid; min-width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 999px; background: #e1e9df; color: #43634e; font-size: .78rem; }
.account-intro, .account-meta, .account-help { color: #687267; font-size: .9rem; line-height: 1.55; }
.account-list { display: grid; gap: .8rem; }
.account-card, .account-key-row, .account-secret { padding: 1.25rem; border: 1px solid #d9ddd3; border-radius: 12px; background: #fffffc; box-shadow: 0 8px 24px rgba(42, 54, 38, .04); }
.account-card-link { display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.account-card h3, .account-key-row h3 { margin: .15rem 0 .25rem; font-size: 1.05rem; }
.account-card p, .account-key-row p { margin: .2rem 0 0; }
.account-arrow { color: #6a806d; font-size: 1.2rem; }
.account-card-header, .account-card-actions, .account-key-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.account-card-actions { margin: .8rem 0; }
.account-agent-settings { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e4e7df; }
.account-status { display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .55rem; font-size: .72rem; font-weight: 700; }
.account-status-active { background: #e2f0e5; color: #2d6a3d; }
.account-status-disabled { background: #eceee9; color: #6b716a; }
.account-form { display: grid; gap: 1rem; }
.account-form-panel { margin-top: 1rem; padding: 1.25rem; border: 1px solid #d9ddd3; border-radius: 12px; background: #fbfcf7; }
.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.account-form label { display: grid; gap: .35rem; color: #404a40; font-size: .82rem; font-weight: 650; }
.account-form input, .account-form select { width: 100%; border: 1px solid #cbd3c7; border-radius: 7px; padding: .65rem .7rem; background: #fffffc; color: #20251f; font: inherit; }
.account-form input:focus, .account-form select:focus { outline: 2px solid #9bb59f; outline-offset: 1px; }
.account-button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; border: 1px solid #43634e; border-radius: 7px; padding: .7rem 1rem; background: #43634e; color: #fff; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 700; text-decoration: none; }
.account-button-small { padding: .55rem .75rem; font-size: .8rem; }
.account-text-link { color: #43634e; font-size: .86rem; font-weight: 680; text-decoration: none; }
.account-text-button { color: #43634e; font-size: .84rem; font-weight: 680; }
.account-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.account-disclosure { margin-top: 1rem; }
.account-disclosure > summary { list-style: none; }
.account-disclosure > summary::-webkit-details-marker { display: none; }
.account-scope-fieldset { margin: 0; padding: 0; border: 0; }
.account-scope-fieldset legend { margin-bottom: .5rem; color: #404a40; font-size: .82rem; font-weight: 650; }
.account-scope-options { display: flex; flex-wrap: wrap; gap: .75rem; }
.account-scope-options label, .account-checkbox { display: flex; align-items: center; gap: .4rem; color: #687267; font-size: .84rem; }
.account-scope-options input, .account-checkbox input { width: auto; }
.account-help { margin: -.45rem 0 0; font-size: .78rem; }
.account-notice { margin: 1rem 0; border-radius: 8px; padding: .8rem 1rem; font-size: .88rem; }
.account-notice-error { background: #f8e7e3; color: #8a3c32; }
.account-notice-success { background: #e2f0e5; color: #2d6a3d; }
.account-secret { margin: 1.5rem 0; border-color: #bbd0bc; background: #f0f8ef; }
.account-secret h2 { margin: .2rem 0 .4rem; font-size: 1.25rem; }
.account-secret p { color: #536754; line-height: 1.55; }
.account-secret-input { width: 100%; margin-top: .35rem; border: 1px solid #a9c1aa; border-radius: 7px; padding: .75rem; background: #fff; color: #263b29; font: .85rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.account-empty { color: #687267; font-size: .9rem; }
.account-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid #d9ddd3; color: #7b8479; font-size: .78rem; }

@media (max-width: 640px) {
	.account-header, .account-title-row, .account-footer { align-items: flex-start; flex-direction: column; }
	.account-main { width: min(100% - 1.5rem, 920px); padding-top: 2.5rem; }
	.account-form-grid { grid-template-columns: 1fr; }
}
