/* Workspace UI: compact navigation, clear scope, and one primary task per page. */
.signed-in .sidebar{width:272px;padding:24px 16px 12px;border-right:0;overflow:visible;gap:0}
.signed-in .workspace{margin-left:272px}
.signed-in .sidebar>.brand{padding:0 12px;margin-bottom:24px}
.signed-in .sidebar-navigation{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--sidebar-line) transparent}
.signed-in .sidebar nav a,.signed-in .sidebar .nav-branch>summary>a{font-size:.85rem;padding:8px 12px;min-height:36px;margin:0;line-height:1.35}
.signed-in .sidebar nav a>svg{width:18px;height:18px;flex-shrink:0}
.signed-in .sidebar .nav-branch>summary{position:relative;min-height:36px;width:100%;padding-right:8px;border-radius:3px;margin:2px 0}
.signed-in .sidebar .nav-branch>summary>a{padding-right:4px;background:transparent}
.signed-in .sidebar .nav-branch>summary>svg{box-sizing:content-box;width:10px;height:10px;flex:0 0 10px;padding:8px 3px;margin:0;color:var(--sidebar-muted);opacity:.8}
.signed-in .sidebar .nav-branch>summary:hover{background:var(--sidebar-hover)}
.signed-in .sidebar .nav-branch>summary:has(>a[aria-current=page]){background:var(--sidebar-hover)}
.signed-in .sidebar .nav-branch>summary:has(>a[aria-current=page])::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:1px;background:var(--blue)}
.signed-in .sidebar .nav-branch>summary>a[aria-current=page]{background:transparent;color:var(--sidebar-ink)}
.signed-in .sidebar .nav-branch>summary>a[aria-current=page]::before{display:none}
.signed-in .sidebar .workspace-tree-heading{padding-left:12px!important;margin:4px 0 6px!important;font-size:.75rem!important}
.signed-in .sidebar .workspace-tree-heading>a{padding:8px!important;min-height:32px!important}
.signed-in .nav-project-children{margin-left:19px;padding-left:8px}
.signed-in .nav-project-children .nav-environment-resources{margin:2px 0 8px 19px;padding-left:6px}
.signed-in .sidebar .nav-resource-group>summary.nav-label{margin:6px 0 0;min-height:30px;font-size:.7rem;padding-left:8px}
.signed-in .sidebar .nav-add{font-size:.78rem;color:var(--sidebar-muted)}
.signed-in .nav-project-tools{padding-top:6px;margin:8px 0 6px}
.signed-in .sidebar-bottom{padding-top:24px;padding-bottom:16px}
.signed-in .sidebar-bottom>a{padding:8px 12px;font-size:.8rem;min-height:36px}
.signed-in .user-menu{flex-shrink:0;margin:0;padding-top:8px;border-top:1px solid var(--sidebar-line)}
.signed-in .user-menu>summary{font-size:.85rem;padding:10px 12px;border-radius:3px}
.signed-in .user-menu-panel{left:0;max-width:calc(100vw - 32px);bottom:calc(100% + 8px)}
.signed-in .app-header{min-height:64px;padding:14px 32px;gap:20px}
.signed-in .header-context{display:flex;align-items:center;gap:10px;min-width:0;font-size:.8rem;flex-wrap:wrap}
.signed-in .header-context>a{color:var(--ink)}
.signed-in .header-workspace,.signed-in .breadcrumb-separator{color:var(--muted);font-size:inherit}
.signed-in .main{padding:32px;min-width:0}
.project-overview{max-width:1120px}
.project-overview .page-heading{margin:0 0 28px}
.project-overview .page-heading h1{margin:0;font-size:1.8rem}
.project-overview .section-heading{margin-bottom:12px;gap:16px}
.project-overview .section-heading h2{margin:0;font-size:1.15rem}
.project-overview .section-heading .button{font-size:.82rem;padding:9px 13px;white-space:nowrap}
.project-overview .resource-section{margin:0 0 32px}
.project-overview .resource-row{padding:20px 12px;gap:16px;min-height:78px}
.project-overview .resource-row>span:nth-child(2){flex:1;min-width:0}
.project-overview .resource-row strong{overflow-wrap:anywhere}
.project-overview .resource-row small{margin-top:4px;color:var(--muted)}
.project-overview .resource-row .row-meta{flex:0 1 auto;font-size:.78rem;color:var(--muted);text-align:right}
.project-overview .resource-row>svg:last-child{width:16px;height:16px;flex-shrink:0;color:var(--muted)}
.project-overview .empty{padding:24px 12px;background:transparent;border:0;text-align:left}
.project-overview .empty h3{font-family:inherit;font-size:.95rem;margin:0 0 6px}
.project-overview .empty p{margin:0;color:var(--muted);font-size:.85rem}
.component-settings{margin:12px 0 24px;padding:0;border:0}
.component-settings>summary{display:flex;align-items:center;gap:8px;width:fit-content;color:var(--muted);font-size:.85rem;padding:8px 0;list-style:none}
.component-settings>summary::-webkit-details-marker{display:none}
.component-settings>summary::after{display:none}
.component-settings>summary>svg{width:16px;height:16px}
.component-settings>summary>svg:last-child{width:10px;height:10px}
.component-settings[open]>summary>svg:last-child{transform:rotate(180deg)}
.component-settings .project-components{padding:12px 0 0;margin:0}
.component-settings .component-options{gap:20px}
.component-settings small{font-size:.78rem;max-width:65ch}
.project-overview .storage-footer{font-size:.76rem;color:var(--muted);margin-top:28px;gap:20px}
.project-overview progress{height:3px;margin-top:8px}
#rename-dialog .actions{justify-content:flex-end;margin-top:20px}
#rename-dialog .actions [data-rename-close]{order:-1;margin:0}
.nav-toggle,.nav-close{display:none}
#mobile-navigation{padding:0;border:0;border-radius:0;margin:0;width:min(340px,90vw);min-width:0;max-width:none;height:100dvh;max-height:100dvh;background:var(--sidebar-bg);color:var(--sidebar-ink)}
#mobile-navigation[open]{display:block}
#mobile-navigation::backdrop{background:#0007}
@media(max-width:800px){
 .signed-in .workspace{margin-left:0;min-width:0;min-height:100dvh}
 .signed-in.nav-enhanced>.sidebar{display:none}
 .signed-in.nav-enhanced .nav-toggle{display:inline-flex;align-items:center;justify-content:center;padding:8px;margin:0;width:36px;height:36px;min-width:36px;background:transparent;color:var(--ink);border:0;border-radius:4px}
 .nav-toggle svg,.nav-close svg{width:20px;height:20px}
 .signed-in .app-header{padding:12px 16px;gap:12px;flex-wrap:nowrap}
 .signed-in .header-context{flex:1;gap:6px;font-size:.75rem;line-height:1.4}
 .signed-in .header-workspace,.signed-in .header-workspace+.breadcrumb-separator{display:none}
 .signed-in .main{padding:24px 20px}
 .signed-in .app-footer{padding:20px;gap:16px;flex-wrap:wrap}
 .signed-in .toast-region{bottom:16px}
 #mobile-navigation .sidebar{display:flex;position:relative;inset:auto;width:100%;height:100%;padding:22px 16px 12px;border:0;overflow:visible}
 #mobile-navigation .sidebar>.brand{font-size:1.6rem;margin:0 36px 24px 0}
 #mobile-navigation .nav-close{display:flex;position:absolute;right:14px;top:20px;padding:8px;margin:0;width:36px;height:36px;background:transparent;color:var(--sidebar-ink);border:0}
 #mobile-navigation .sidebar-navigation{overflow-y:auto}
 #mobile-navigation .sidebar .project-tree{display:block}
 #mobile-navigation .user-menu{position:relative;left:auto;bottom:auto;width:100%;margin:0;z-index:1}
 #mobile-navigation .user-menu>summary{box-shadow:none}
 #mobile-navigation .user-menu-panel{width:100%;max-height:70dvh}
 body.nav-open{overflow:hidden}
 .project-overview .section-heading .button{font-size:.76rem;padding:8px 10px}
 .project-overview .page-heading h1{font-size:1.6rem}
 .project-overview .resource-row{padding:16px 4px;gap:12px;flex-wrap:wrap}
 .project-overview .resource-row .row-meta{display:none}
 .project-overview .storage-footer{flex-wrap:wrap;gap:8px}
}
.signed-in .nav-project-children,.signed-in .nav-project-children .nav-environment-resources{border-left:0}
.signed-in .sidebar nav a[aria-current=page]::before,.signed-in .sidebar .nav-branch>summary:has(>a[aria-current=page])::before{display:none}
/* Configuration has one home, separate from capture navigation. */
.signed-in .sidebar .nav-branch>summary>.nav-project-settings{order:3;margin-left:auto;flex:0 0 28px;min-height:28px;padding:6px;color:var(--sidebar-muted);opacity:.65}
.signed-in .sidebar .nav-branch>summary>.nav-project-settings svg{width:14px;height:14px}
.signed-in .sidebar .nav-branch>summary:hover>.nav-project-settings,.signed-in .sidebar .nav-project-settings:focus-visible,.signed-in .sidebar .nav-project-settings[aria-current=page]{opacity:1}
.project-settings-page{max-width:1040px}
.project-settings-page>.back-link{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;margin:0 0 16px}
.project-settings-page>.back-link svg{width:15px;height:15px}
.project-settings-page>.page-heading{margin:0 0 24px}
.settings-sections{display:flex;justify-content:flex-start;gap:24px;padding:0 0 14px;border-bottom:1px solid var(--line);margin-bottom:28px;font-size:.85rem}
.settings-sections a{color:var(--muted)}
.settings-sections a:hover{color:var(--ink)}
.settings-section{scroll-margin-top:24px;margin:0 0 40px}
.settings-section>h2,.settings-section>.section-heading h2{font-size:1.2rem;margin:0 0 20px}
.settings-name-form{max-width:520px;margin-bottom:28px}
.settings-name-form label,.settings-add label{font-size:.83rem;margin-bottom:8px}
.settings-input-row{display:flex;gap:12px;align-items:flex-start}
.settings-input-row input{flex:1;min-width:0;width:100%;margin:0;font-size:.88rem;padding:10px 12px;height:42px}
.settings-input-row button{flex-shrink:0;height:42px;font-size:.8rem;padding:10px 14px}
.project-settings-page .project-components{margin:0;max-width:620px}
.project-settings-page .project-components legend{font-family:inherit;font-size:.85rem}
.project-settings-page .project-components small{font-size:.78rem}
.settings-section>.section-heading{margin:0}
.settings-add{margin:0 0 16px;border:0;padding:0}
.settings-add>summary{display:inline-flex;align-items:center;gap:6px;width:auto;margin:0;padding:6px 0;font-size:.8rem;color:var(--blue);list-style:none}
.settings-add>summary::-webkit-details-marker{display:none}
.settings-add>summary::after{display:none}
.settings-add>summary svg{width:16px;height:16px}
.settings-add[open]>summary svg{transform:rotate(45deg)}
.settings-add form{margin:12px 0 0;max-width:520px}
.settings-environment{border-top:1px solid var(--line);padding:22px 0;margin:0;scroll-margin-top:24px}
.settings-environment>header{display:flex;align-items:center;gap:8px;margin-bottom:16px}
.settings-environment h3{display:flex;align-items:center;gap:10px;font-size:1.05rem;margin:0}
.settings-environment h3>svg{width:18px;height:18px;color:var(--muted)}
.settings-resource-groups{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}
.settings-resource-groups>.settings-resources:only-child{grid-column:1 / -1}
.settings-description-form{max-width:520px;margin:0 0 18px}
.settings-description-form label{font-size:.75rem}
.settings-description-form textarea{min-height:64px;margin:0;resize:vertical}
.overview-description{max-width:65ch;white-space:pre-line;font-size:.875rem;margin:0 0 24px;overflow-wrap:anywhere}
.project-settings-page input[name="name"]{margin-bottom:0}
.project-settings-page .settings-name-form,.project-settings-page .settings-edit-resource,.project-settings-page .settings-add form{max-width:360px}
.project-settings-page .settings-resources h4{font-size:.875rem;color:var(--ink)}
.project-settings-page .settings-name-form label,.project-settings-page .settings-add label{font-size:.75rem}
.project-settings-page .save-feedback{min-height:20px;margin-top:4px;font-size:.75rem}
.project-settings-page .settings-environment .settings-name-form{margin-bottom:16px}
.project-settings-page .settings-resources .crud-heading{margin-bottom:4px}
.project-settings-page .settings-environment>header{margin-bottom:12px}
@media(pointer:coarse){.project-settings-page .settings-resources h4{font-size:1rem}}
.settings-resources{min-width:0;margin:0}
.settings-resources h4{display:flex;align-items:center;gap:8px;font-family:inherit;font-size:.8rem;color:var(--muted);margin:0 0 10px}
.settings-resources h4>svg{width:16px;height:16px}
.settings-resources ul{list-style:none;padding:0;margin:0 0 8px}
.settings-resources li{list-style:none;display:flex;align-items:center;gap:8px;padding:8px 0;min-height:48px;margin:0}
.resource-settings-link{flex:1;min-width:0;color:var(--ink);font-size:.86rem}
.resource-settings-link>span{overflow-wrap:anywhere}
.resource-settings-link>small{display:block;color:var(--muted);font-size:.74rem;margin-top:3px}
.settings-resource-empty,.settings-capacity,.component-enable-link{font-size:.78rem;color:var(--muted)}
.settings-capacity{margin:10px 0}
.component-off{font-size:.65rem;font-weight:400;padding:2px 6px;border:1px solid var(--line);border-radius:3px}
@media(max-width:800px){.settings-resource-groups{grid-template-columns:1fr;gap:24px}.settings-input-row{gap:8px}.settings-input-row button{padding-inline:10px}.project-settings-page>.page-heading h1{font-size:1.6rem}}

.project-settings-page .component-options input[role=switch]{appearance:none;position:relative;width:34px;height:20px;min-width:34px;border:0;border-radius:12px;background:var(--control-border);box-shadow:none}
.project-settings-page .component-options input[role=switch]::before{content:"";position:absolute;left:3px;top:3px;transform:none;margin:0;float:none;width:14px;height:14px;border-radius:50%;background:var(--canvas)}
.project-settings-page .component-options input[role=switch]:checked{background:var(--primary-fill)}
.project-settings-page .component-options input[role=switch]:checked::before{left:17px;background:#fff}
#general[hidden], #environments[hidden]{display:none}
.settings-sections a[aria-selected="true"]{color:var(--blue);border-bottom:2px solid var(--blue);font-weight:600}
.save-feedback [hidden]{display:none}
.settings-resources li.settings-edit-resource{display:block}
.settings-edit-resource form{margin:0}
.settings-edit-resource input{margin-bottom:0}
.settings-environment .settings-name-form{margin-bottom:12px}
.settings-environment>header{flex-wrap:wrap;gap:12px}
.save-feedback{min-height:28px;display:flex;gap:12px;align-items:center;font-size:.8rem;margin-top:8px}
[data-save-status][data-state="saved"]{color:var(--success)}
[data-save-status][data-state="saving"]{color:var(--blue)}
[data-save-status][data-state="error"]{color:var(--danger)}
.settings-environment>header{justify-content:space-between}
#delete-environment-dialog article{max-width:480px;padding:28px;background:var(--canvas);border-radius:12px}
#delete-environment-dialog::backdrop{background:#0008}

/* AMMO actions: compact labels with a consistent leading icon. */
.project-settings-page button,#delete-environment-dialog button{width:auto;min-height:32px;height:auto;padding:6px 10px;gap:6px;font-size:.78rem;line-height:1.25}
.project-settings-page button>svg,#delete-environment-dialog button>svg{width:16px;height:16px;flex-shrink:0}
@media(pointer:coarse){.project-settings-page button,#delete-environment-dialog button{min-height:44px}}

.project-settings-page .crud-heading{display:flex;align-items:center;justify-content:flex-start;gap:6px;margin-bottom:14px}
.project-settings-page .crud-heading h2,.project-settings-page .crud-heading h4{margin:0}
button.crud-icon{display:inline-flex;align-items:center;justify-content:center;margin:0;vertical-align:middle;flex-shrink:0}
.project-settings-page button.crud-icon{display:inline-flex;width:28px;min-width:28px;height:28px;min-height:28px;padding:5px;border:0;background:transparent!important;box-shadow:none;color:var(--muted)!important;border-radius:4px}
.project-settings-page button.crud-icon:hover{color:var(--blue)!important;background:var(--hover)!important}
.project-settings-page button.crud-delete:hover{color:var(--danger)!important;background:var(--danger-bg)!important}
.settings-add.icon-add>summary{display:none}
.settings-add.icon-add:not([open]){margin:0}
@media(pointer:coarse){.project-settings-page button.crud-icon{width:44px;height:44px;min-height:44px}}

/* Tabs meet the panel edge; hover never adds a second text underline. */
body .settings-sections,body .smtp-setup-tabs,body .tabs{display:flex;justify-content:flex-start;gap:4px;padding:0;border-bottom:1px solid var(--line);overflow-x:auto}
body .settings-sections a,body .smtp-setup-tabs a,body .tabs a{display:inline-flex;align-items:center;justify-content:center;flex:none;margin:0;padding:9px 14px;border:1px solid transparent;border-bottom:0;border-radius:6px 6px 0 0;font-size:.85rem;line-height:1.4;font-weight:500;color:var(--muted);text-decoration:none}
body .settings-sections a:hover,body .smtp-setup-tabs a:hover,body .tabs a:hover{color:var(--ink);background:var(--hover);text-decoration:none}
body .settings-sections a[aria-selected="true"],body .smtp-setup-tabs a[aria-selected="true"],body .tabs a[aria-current="page"]{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-bottom:0;font-weight:600;text-decoration:none}
@media(pointer:coarse){body .settings-sections a,body .smtp-setup-tabs a,body .tabs a{min-height:44px}}

.message-delete-form{margin-top:24px}
.delete-control{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden;max-width:100%}
.delete-control button.secondary{display:inline-flex;align-items:center;gap:6px;margin:0;padding:8px 10px;min-height:36px;border:0;border-radius:0;background:transparent;font-size:.8rem;white-space:nowrap}
.delete-control button>svg{width:16px;height:16px}
.delete-control button:enabled{color:var(--danger);background:var(--danger-bg)}
.delete-control label{display:inline-flex;align-items:center;gap:8px;margin:0;padding:8px 10px;border-left:1px solid var(--line);font-size:.78rem;white-space:nowrap}
.delete-control input[role="switch"]{margin:0}
.message-delete-form>small{display:block;margin-top:8px;color:var(--muted);font-size:.75rem}
@media(pointer:coarse){.delete-control button.secondary,.delete-control label{min-height:44px}}

.smtp-mailers-example{margin-top:28px}.smtp-mailers-example h3{margin:0 0 12px;font-size:.9rem}
