/* Version: 3.19.0 */
/* Updated: 2026-11-24 */
body[data-app-state="workspace"] { background: var(--color-page); }
body[data-app-state="workspace"] .page-shell { min-height: 100svh; padding: max(18px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
body[data-app-state="workspace"] .site-header { position: relative; z-index: 5; width: min(100%, 1600px); min-height: 54px; padding: 0 2px 14px; border-bottom: 1px solid var(--color-surface-border); }
body[data-app-state="workspace"] .brand { font-size: 18px; }
.workspace-header-actions[hidden] { display: none; }
body[data-app-state="workspace"] .page-back, body[data-app-state="workspace"] .public-header-actions { display: none; }
body[data-app-state="workspace"] .workspace-header-actions { display: flex; gap: 8px; }
.workspace-icon-button { display: inline-grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--color-surface-border); border-radius: 14px; color: var(--color-text); background: var(--color-surface); cursor: pointer; transition: border-color var(--motion-standard), background-color var(--motion-standard), transform var(--motion-standard); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.workspace-icon-button:hover { border-color: var(--color-accent-hover-border); transform: translateY(-1px); }
.workspace-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body[data-app-state="workspace"] .page-main { display: block; width: min(100%, 1600px); margin: 0 auto; padding: 30px 0 48px; }
.workspace-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 34px; align-items: start; min-height: calc(100svh - 130px); }
.workspace-sidebar { position: sticky; top: 20px; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--color-surface-border); border-radius: 22px; background: var(--color-surface); box-shadow: var(--shadow-surface); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.workspace-nav-link { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 13px; border-radius: 14px; color: var(--color-text-muted); font-size: 14px; font-weight: 570; text-decoration: none; transition: color var(--motion-standard), background-color var(--motion-standard); }
.workspace-nav-link:hover { color: var(--color-text); background: var(--color-neutral-hover); }
.workspace-nav-link[aria-current="page"] { color: var(--color-text); background: var(--color-accent-soft); }
.workspace-nav-link[aria-current="page"] .workspace-nav-icon { color: var(--color-accent); }
.workspace-nav-icon { display: inline-grid; width: 20px; place-items: center; color: var(--color-text-muted); }
.workspace-nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace-content { min-width: 0; }
.workspace-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 3px 0 26px; }
.workspace-page-heading h1 { margin: 0; font-size: clamp(29px, 4vw, 38px); font-weight: 690; letter-spacing: -.06em; line-height: 1.12; }
.workspace-page-heading p { max-width: 600px; margin: 9px 0 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }
.workspace-empty-state { display: grid; min-height: 330px; place-items: center; padding: 42px 24px; border: 1px solid var(--color-surface-border); border-radius: 26px; background: var(--color-surface); box-shadow: var(--shadow-surface); text-align: center; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.workspace-empty-inner { width: min(100%, 440px); }
.workspace-empty-icon { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 20px; border: 1px solid var(--color-accent-border); border-radius: 20px; color: var(--color-accent); background: var(--color-accent-wash); }
.workspace-empty-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.workspace-empty-state h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.workspace-empty-state p { margin: 10px 0 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.65; }
.workspace-section-notice { margin-top: 16px; color: var(--color-text-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.workspace-mobile-nav { display: none; }
@media (max-width: 760px) {
 body[data-app-state="workspace"] .page-shell { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); padding-bottom: max(88px, calc(76px + env(safe-area-inset-bottom))); }
 body[data-app-state="workspace"] .site-header { min-height: 50px; padding-bottom: 10px; }
 body[data-app-state="workspace"] .brand { font-size: 17px; }
 .workspace-icon-button { width: 40px; height: 40px; border-radius: 13px; }
 body[data-app-state="workspace"] .page-main { padding-top: 26px; }
 .workspace-layout { display: block; min-height: auto; }
 .workspace-sidebar { display: none; }
 .workspace-page-heading { margin-bottom: 22px; }
 .workspace-empty-state { min-height: 290px; padding: 32px 20px; }
 .workspace-mobile-nav { position: fixed; z-index: 10; right: max(12px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 8px 5px; border: 1px solid var(--color-surface-border); border-radius: 21px; background: var(--color-surface); box-shadow: var(--shadow-floating); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
 .workspace-mobile-nav .workspace-nav-link { min-width: 0; min-height: 55px; flex-direction: column; justify-content: center; gap: 4px; padding: 5px 1px; border-radius: 13px; font-size: 10px; font-weight: 600; }
 .workspace-mobile-nav .workspace-nav-icon { width: auto; }
 .workspace-mobile-nav .workspace-nav-icon svg { width: 19px; height: 19px; }
}
@media (prefers-reduced-motion: reduce) { .workspace-nav-link, .workspace-icon-button { transition: none; } }

/* Team invitations and notification center */
.team-invitations-card { display: grid; gap: 13px; margin-top: 18px; padding: 18px; border: 1px solid var(--color-surface-border); border-radius: 20px; background: var(--color-surface); box-shadow: var(--shadow-surface); }
.team-invite-form { display: grid; gap: 13px; padding-top: 15px; border-top: 1px solid var(--color-surface-border); }
.team-invite-form .settings-field textarea { box-sizing: border-box; width: 100%; min-height: 76px; padding: 12px 14px; border: 1px solid var(--color-surface-border); border-radius: 13px; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 14px; resize: vertical; }
.team-invite-form .settings-field select { min-height: 46px; padding: 0 12px; border: 1px solid var(--color-surface-border); border-radius: 13px; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 14px; }
.team-invitation-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-surface-border); }
.team-invitation-row > div { display: grid; min-width: 0; gap: 5px; }
.team-invitation-row strong { overflow-wrap: anywhere; font-size: 13px; }
.team-invitation-row small { color: var(--color-text-muted); font-size: 11px; }
.team-invitation-cancel { min-height: 34px; padding: 0 10px; border: 1px solid var(--color-surface-border); border-radius: 10px; color: var(--color-text-muted); background: transparent; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.team-invitation-cancel:disabled { opacity: .5; cursor: wait; }
.notification-center-dialog { width: min(560px, calc(100vw - 28px)); max-width: 560px; max-height: min(78svh, 760px); padding: 0; overflow: hidden; border: 1px solid var(--color-surface-border); border-radius: 24px; color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-floating); }
.notification-center-dialog::backdrop { background: rgb(0 0 0 / 42%); backdrop-filter: blur(5px); }
.notification-center-panel { display: grid; max-height: min(78svh, 760px); grid-template-rows: auto minmax(0, 1fr); }
.notification-center-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 22px 16px; border-bottom: 1px solid var(--color-surface-border); }
.notification-center-heading h2 { margin: 0; font-size: 19px; font-weight: 680; letter-spacing: -.035em; }
.notification-center-heading p { margin: 5px 0 0; color: var(--color-text-muted); font-size: 12px; }
.notification-center-list { display: grid; gap: 10px; padding: 14px; overflow: auto; overscroll-behavior: contain; }
.notification-center-muted { margin: 10px; color: var(--color-text-muted); font-size: 13px; }
.notification-center-empty { display: grid; min-height: 180px; align-content: center; justify-items: center; padding: 20px; text-align: center; }
.notification-center-empty strong { font-size: 14px; }
.notification-center-empty p { max-width: 330px; margin: 7px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.55; }
.notification-card { display: grid; gap: 13px; padding: 15px; border: 1px solid var(--color-surface-border); border-radius: 17px; background: var(--color-page); }
.notification-card.is-unread { border-color: var(--color-accent-border); background: var(--color-accent-wash); }
.notification-card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.notification-card-topline strong { font-size: 13px; font-weight: 670; }
.notification-card-topline time { flex: 0 0 auto; color: var(--color-text-muted); font-size: 10px; }
.notification-card-copy p { margin: 7px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.55; }
.notification-card-copy blockquote { margin: 10px 0 0; padding: 9px 11px; border-left: 2px solid var(--color-accent); border-radius: 0 9px 9px 0; color: var(--color-text); background: var(--color-surface); font-size: 12px; line-height: 1.5; }
.notification-card-copy small { display: block; margin-top: 9px; color: var(--color-text-muted); font-size: 11px; }
.notification-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notification-card-actions:has([data-notification-action]) { flex-wrap: nowrap; align-items: stretch; }
.notification-card-actions [data-notification-action] { box-sizing: border-box; flex: 1 1 0; width: 0; min-width: 0; padding-inline: 8px; text-align: center; }
.notification-card-actions .settings-primary-button, .notification-card-actions .settings-secondary-button { min-height: 38px; }
.notification-card-actions .settings-primary-button { padding-inline: 14px; }
.notification-card-actions .settings-secondary-button { padding-inline: 12px; }
.notification-unread-badge { position: absolute; top: -5px; right: -5px; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 2px solid var(--color-page); border-radius: 999px; color: #fff; background: var(--color-accent); font-size: 9px; font-weight: 700; }
[data-workspace-notifications] { position: relative; }
@media (max-width: 560px) { .notification-center-dialog { width: calc(100vw - 20px); max-height: 84svh; border-radius: 20px; } .notification-center-panel { max-height: 84svh; } .notification-center-heading { padding: 18px 17px 14px; } .notification-center-list { padding: 10px; } .team-invitations-card { padding: 14px; } .team-invitation-row { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .notification-center-dialog { scroll-behavior: auto; } }

/* Profile screen */
.profile-page { width: min(100%, 760px); margin: 0 auto; }
.profile-identity-card { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--color-surface-border); border-radius: 26px; background: var(--color-surface); box-shadow: var(--shadow-surface); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.profile-avatar { display: grid; width: 76px; height: 76px; flex: 0 0 76px; place-items: center; border: 1px solid var(--color-accent-border); border-radius: 24px; color: var(--color-accent); background: var(--color-accent-wash); font-size: 24px; font-weight: 720; letter-spacing: -.05em; }
.profile-identity-copy { min-width: 0; }
.profile-identity-copy h2 { margin: 0; overflow-wrap: anywhere; font-size: clamp(19px, 3vw, 23px); font-weight: 680; letter-spacing: -.045em; }
.profile-username { margin: 5px 0 10px; color: var(--color-text-muted); font-size: 14px; }
.profile-status { display: inline-flex; align-items: center; gap: 7px; color: var(--color-text-muted); font-size: 12px; }
.profile-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #35a66b; box-shadow: 0 0 0 4px rgb(53 166 107 / 12%); }
.profile-sections { display: grid; gap: 10px; margin-top: 18px; }
.profile-group { display: flex; min-width: 0; min-height: 78px; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--color-surface-border); border-radius: 20px; color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-surface); text-align: left; text-decoration: none; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.profile-link-card { transition: border-color var(--motion-standard), transform var(--motion-standard), background-color var(--motion-standard); }
.profile-link-card:hover { border-color: var(--color-accent-hover-border); transform: translateY(-1px); }
.profile-control-card { min-height: 88px; border-color: var(--color-accent-border); background: linear-gradient(110deg, var(--color-accent-wash), var(--color-surface) 70%); }
.profile-control-symbol, .profile-row-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 14px; color: var(--color-accent); background: var(--color-accent-wash); }
.profile-control-symbol svg, .profile-row-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.profile-row-copy { min-width: 0; flex: 1; }
.profile-row-copy h2, .profile-row-copy strong { display: block; margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.profile-row-copy p, .profile-row-copy small { display: block; margin: 5px 0 0; color: var(--color-text-muted); font-size: 12px; font-weight: 450; line-height: 1.45; }
.profile-access-label, .profile-soon-label { flex: 0 0 auto; color: var(--color-text-muted); font-size: 11px; font-weight: 620; }
.profile-access-label { padding: 6px 9px; border: 1px solid var(--color-accent-border); border-radius: 999px; color: var(--color-accent); background: var(--color-accent-wash); }
.profile-chevron { color: var(--color-text-muted); font-size: 25px; line-height: 1; }
.profile-signout { width: 100%; min-height: 50px; margin-top: 18px; border: 1px solid var(--color-surface-border); border-radius: 16px; color: var(--color-text-muted); background: var(--color-surface); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color var(--motion-standard), border-color var(--motion-standard), background-color var(--motion-standard); }
.profile-signout:hover { border-color: var(--color-accent-border); color: var(--color-accent); }
@media (max-width: 760px) {
 .profile-identity-card { gap: 14px; padding: 19px; border-radius: 22px; }
 .profile-avatar { width: 64px; height: 64px; flex-basis: 64px; border-radius: 20px; font-size: 21px; }
 .profile-group { min-height: 74px; gap: 11px; padding: 14px; border-radius: 17px; }
 .profile-control-card { min-height: 84px; }
 .profile-row-copy h2, .profile-row-copy strong { font-size: 14px; }
 .profile-row-copy p, .profile-row-copy small { font-size: 11px; }
 .profile-access-label, .profile-soon-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .profile-link-card, .profile-signout { transition: none; } }


/* Profile subpages and ecosystem-wide tool catalog */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.workspace-subpage-back { margin: -8px 0 18px; }
.workspace-subpage-back a { color: var(--color-text-muted); font-size: 13px; font-weight: 580; text-decoration: none; }
.workspace-subpage-back a:hover { color: var(--color-accent); }
.workspace-catalog-intro, .workspace-catalog-note { color: var(--color-text-muted); font-size: 13px; line-height: 1.6; }
.workspace-tool-category { margin-top: 24px; }
.workspace-tool-category > h2 { margin: 0 0 12px; font-size: 17px; font-weight: 660; letter-spacing: -.03em; }
.workspace-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.workspace-tool-card { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--color-surface-border); border-radius: 18px; background: var(--color-surface); box-shadow: var(--shadow-surface); }
.workspace-tool-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 14px; color: var(--color-accent); background: var(--color-accent-wash); font-size: 17px; font-weight: 700; }
.workspace-tool-card > div { min-width: 0; flex: 1; }
.workspace-tool-card h3 { margin: 0; font-size: 14px; font-weight: 650; }
.workspace-tool-card p { margin: 4px 0 0; color: var(--color-text-muted); font-size: 11px; }
.workspace-tool-status { flex: 0 0 auto; color: var(--color-text-muted); font-size: 10px; font-weight: 600; }
.workspace-catalog-note { margin-top: 18px; }
@media (max-width: 560px) {
 .workspace-tool-grid { grid-template-columns: 1fr; }
 .workspace-tool-card { padding: 13px; }
}


/* Profile settings */
/* Version: 1.1.0 */
/* Updated: 2026-11-16 */
.profile-settings { display: grid; gap: 14px; width: min(100%, 760px); margin: 0 auto; }
.settings-card { padding: 22px; border: 1px solid var(--color-surface-border); border-radius: 22px; background: var(--color-surface); box-shadow: var(--shadow-surface); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.settings-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.settings-card-heading h2 { margin: 0; font-size: 17px; font-weight: 670; letter-spacing: -.035em; }
.settings-card-heading p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.5; }
.settings-form { display: grid; gap: 15px; }
.settings-field { display: grid; min-width: 0; gap: 7px; color: var(--color-text-muted); font-size: 12px; font-weight: 600; }
.settings-field input { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--color-surface-border); border-radius: 13px; outline: none; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 14px; font-weight: 480; transition: border-color var(--motion-standard), box-shadow var(--motion-standard); }
.settings-field input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-wash); }
.settings-field input:disabled { opacity: .68; cursor: not-allowed; }
.settings-field small { color: var(--color-text-muted); font-size: 11px; font-weight: 450; }
.settings-primary-button { min-height: 49px; padding: 0 18px; border: 0; border-radius: 14px; color: #fff; background: var(--color-accent); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: opacity var(--motion-standard), transform var(--motion-standard); }
.settings-primary-button:hover { transform: translateY(-1px); }
.settings-primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.settings-form-feedback { min-height: 0; color: var(--color-text-muted); font-size: 12px; }
.settings-form-feedback:not(:empty) { min-height: 18px; }
.settings-form-feedback[data-state="success"] { color: #26965d; }
.settings-form-feedback[data-state="error"] { color: #d94b4b; }
.settings-theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 5px; border: 1px solid var(--color-surface-border); border-radius: 16px; background: var(--color-page); }
.settings-theme-option { min-height: 42px; padding: 7px 10px; border: 1px solid transparent; border-radius: 11px; color: var(--color-text-muted); background: transparent; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.settings-theme-option[aria-pressed="true"] { border-color: var(--color-accent-border); color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-surface); }
.settings-account-note { margin: 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 560px) {
 .settings-card { padding: 18px; border-radius: 19px; }
 .settings-theme-options { grid-template-columns: 1fr; }
 .settings-theme-option { text-align: left; padding-left: 13px; }
}
@media (prefers-reduced-motion: reduce) { .settings-field input, .settings-primary-button { transition: none; } }


/* Shared header navigation */
/* Version: 1.0.1 */
/* Updated: 2026-11-16 */
body[data-app-state="workspace"] .page-back { display: inline-grid; }
body[data-app-state="workspace"] .workspace-header-actions { display: flex; }
body[data-app-state="workspace"] .workspace-layout { display: block; min-height: auto; }
body[data-app-state="workspace"] .workspace-sidebar,
body[data-app-state="workspace"] .workspace-mobile-nav,
body[data-app-state="workspace"] .workspace-subpage-back { display: none; }
body[data-app-state="workspace"] .workspace-content { width: 100%; }
@media (max-width: 760px) {
  body[data-app-state="workspace"] .page-back { display: inline-grid; }
  body[data-app-state="workspace"] .page-shell { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* Settings date field sizing */
/* Version: 1.1.0 */
/* Updated: 2026-11-16 */
.settings-card { box-sizing: border-box; width: min(100%, 760px); min-width: 0; }
.settings-form, .settings-field { min-width: 0; }
.settings-field input[type="date"] { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; padding-inline: 8px; font-size: 16px; }
.settings-field input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.settings-field input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; padding: 0; }


/* Settings groups */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.settings-security-list { display: grid; gap: 18px; }
.settings-security-action { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--color-surface-border); }
.settings-security-action > div { min-width: 0; }
.settings-security-action strong, .settings-placeholder strong { display: block; color: var(--color-text); font-size: 14px; font-weight: 650; }
.settings-security-action p, .settings-placeholder p, .settings-section-note { margin: 5px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.55; }
.settings-secondary-button { flex: 0 0 auto; min-height: 42px; padding: 0 14px; border: 1px solid var(--color-accent-border); border-radius: 12px; color: var(--color-accent); background: var(--color-accent-wash); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.settings-secondary-button:disabled { opacity: .6; cursor: wait; }
.settings-placeholder { padding: 16px; border: 1px dashed var(--color-surface-border); border-radius: 15px; background: var(--color-page); }
.settings-section-note { margin-top: 13px; }
@media (max-width: 560px) {
 .settings-security-action { align-items: flex-start; flex-direction: column; }
 .settings-secondary-button { width: 100%; }
}


/* Settings navigation */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.settings-group-list { display: grid; gap: 10px; }
.settings-group-link { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 17px; border: 1px solid var(--color-surface-border); border-radius: 18px; color: var(--color-text); background: var(--color-surface); text-decoration: none; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.settings-group-link:active { transform: scale(.99); }
.settings-group-link:hover { border-color: var(--color-accent-border); }
.settings-group-symbol { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: var(--color-accent); background: var(--color-accent-wash); font-size: 20px; }
.settings-group-copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.settings-group-copy strong { font-size: 14px; font-weight: 650; }
.settings-group-copy small { color: var(--color-text-muted); font-size: 12px; line-height: 1.4; }
.settings-group-chevron { color: var(--color-text-muted); font-size: 25px; line-height: 1; }
.settings-group-back { display: inline-flex; margin: 0 0 14px; color: var(--color-text-muted); font-size: 13px; text-decoration: none; }
.settings-group-back:hover { color: var(--color-accent); }


/* Restore persistent mobile workspace navigation */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
body[data-app-state="workspace"] .workspace-mobile-nav { display: none; }
@media (max-width: 760px) {
 body[data-app-state="workspace"] .workspace-mobile-nav { display: grid; }
}


/* Normalize personal-data inputs on narrow mobile viewports */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.settings-card,
.settings-form,
.settings-field { box-sizing: border-box; min-width: 0; }
.settings-form { grid-template-columns: minmax(0, 1fr); }
.settings-field { grid-template-columns: minmax(0, 1fr); width: 100%; }
.settings-field input,
.settings-field input[type="date"] { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; justify-self: stretch; }
.settings-field input[type="date"] { -webkit-appearance: none; appearance: none; padding-inline: 14px; }
.settings-field input[type="date"]::-webkit-date-and-time-value { width: 100%; min-width: 0; text-align: left; }
@media (max-width: 560px) {
 .settings-card { width: 100%; padding-inline: 16px; }
 .settings-field input[type="date"] { padding-inline: 10px; }
}


/* Center the native date value within the input control */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.settings-field input[type="date"] {
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  line-height: normal;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.settings-field input[type="date"]::-webkit-date-and-time-value {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: normal;
}
@media (max-width: 560px) {
  .settings-field input[type="date"] { padding: 0 12px; }
}


/* Collapsing profile identity card on scroll */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.profile-identity-card {
 transition: gap 260ms ease, padding 260ms ease, border-radius 260ms ease, box-shadow 260ms ease, background-color 260ms ease;
}
.profile-avatar {
 transition: width 260ms ease, height 260ms ease, flex-basis 260ms ease, border-radius 260ms ease, font-size 260ms ease;
}
.profile-identity-copy h2 {
 transition: font-size 260ms ease, letter-spacing 260ms ease;
}
.profile-username,
.profile-status {
 overflow: hidden;
 max-height: 30px;
 opacity: 1;
 transition: max-height 220ms ease, opacity 180ms ease, margin 220ms ease, transform 220ms ease;
}
.profile-identity-card.is-collapsed {
 gap: 12px;
 padding: 10px 16px;
 border-radius: 18px;
 box-shadow: var(--shadow-floating);
}
.profile-identity-card.is-collapsed .profile-avatar {
 width: 42px;
 height: 42px;
 flex-basis: 42px;
 border-radius: 13px;
 font-size: 15px;
}
.profile-identity-card.is-collapsed .profile-identity-copy h2 {
 font-size: 15px;
 letter-spacing: -.025em;
}
.profile-identity-card.is-collapsed .profile-username,
.profile-identity-card.is-collapsed .profile-status {
 max-height: 0;
 margin-top: 0;
 margin-bottom: 0;
 opacity: 0;
 transform: translateY(-4px);}
@media (prefers-reduced-motion: reduce) {
 .profile-identity-card,
 .profile-avatar,
 .profile-identity-copy h2,
 .profile-username,
 .profile-status { transition: none; }
}


/* Refined profile identity collapse motion */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.profile-identity-card {
 transition:
  gap 420ms cubic-bezier(.22, 1, .36, 1),
  padding 420ms cubic-bezier(.22, 1, .36, 1),
  border-radius 420ms cubic-bezier(.22, 1, .36, 1),
  box-shadow 420ms ease,
  background-color 420ms ease;
}
.profile-avatar {
 transition:
  width 420ms cubic-bezier(.22, 1, .36, 1),
  height 420ms cubic-bezier(.22, 1, .36, 1),
  flex-basis 420ms cubic-bezier(.22, 1, .36, 1),
  border-radius 420ms cubic-bezier(.22, 1, .36, 1),
  font-size 420ms cubic-bezier(.22, 1, .36, 1);
}
.profile-identity-copy h2 {
 transition:
  font-size 420ms cubic-bezier(.22, 1, .36, 1),
  letter-spacing 420ms cubic-bezier(.22, 1, .36, 1);
}
.profile-username,
.profile-status {
 transition:
  max-height 360ms cubic-bezier(.22, 1, .36, 1),
  opacity 300ms ease,
  margin 360ms cubic-bezier(.22, 1, .36, 1),
  transform 360ms cubic-bezier(.22, 1, .36, 1);
}
.profile-identity-card.is-collapsed .profile-username,
.profile-identity-card.is-collapsed .profile-status {
 transform: translateY(-7px);
}
@media (prefers-reduced-motion: reduce) {
 .profile-identity-card,
 .profile-avatar,
 .profile-identity-copy h2,
 .profile-username,
 .profile-status { transition: none; }
}


/* Projects workspace */
.projects-overview { width: min(100%, 1040px); margin: 0 auto; }
.projects-overview-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.projects-toolbar-heading { min-width: 0; }
.projects-overview-intro h2 { margin: 0; font-size: 18px; font-weight: 670; letter-spacing: -.035em; }
.projects-eyebrow, .project-create-kicker { color: var(--color-accent); font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.projects-toolbar p { max-width: 580px; margin: 8px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.6; }
.project-primary-button, .project-secondary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 14px; font: inherit; font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--motion-standard), background-color var(--motion-standard), border-color var(--motion-standard); }
.project-primary-button { color: var(--color-accent-contrast, #fff); background: var(--color-accent); }
.project-primary-button:hover:not(:disabled) { transform: translateY(-1px); }
.project-primary-button:disabled { opacity: .48; cursor: not-allowed; }
.projects-create-button { display: inline-grid; width: 42px; min-width: 42px; min-height: 42px; flex: 0 0 42px; place-items: center; padding: 0; border-radius: 14px; font-size: 24px; line-height: 1; }
.projects-create-button span { font-size: inherit; line-height: 1; }
.projects-create-button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.projects-empty-state { display: grid; justify-items: center; margin-top: 20px; padding: 58px 24px 54px; border: 1px dashed var(--color-surface-border); border-radius: 24px; background: color-mix(in srgb, var(--color-surface) 70%, transparent); text-align: center; }
.projects-empty-symbol { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 18px; border: 1px solid var(--color-accent-border); border-radius: 18px; color: var(--color-accent); background: var(--color-accent-wash); }
.projects-empty-symbol svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.projects-empty-state h3 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.projects-empty-state p { max-width: 470px; margin: 9px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.65; }
.projects-empty-action { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--color-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.projects-empty-action span { font-size: 17px; transition: transform var(--motion-standard); }
.projects-empty-action:hover span { transform: translateX(4px); }
.projects-access-note { margin: 16px 4px 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.6; text-align: center; }
.project-create-panel { width: min(100%, 760px); margin: 0 auto; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--color-surface-border); border-radius: 26px; background: var(--color-surface); box-shadow: var(--shadow-surface); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.project-create-intro { padding-bottom: 24px; border-bottom: 1px solid var(--color-surface-border); }
.project-create-intro h2 { margin: 10px 0 0; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.045em; }
.project-create-intro p { max-width: 560px; margin: 9px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.65; }
.project-create-form { display: grid; gap: 20px; padding-top: 25px; }
.project-form-field { display: grid; gap: 9px; color: var(--color-text); font-size: 13px; font-weight: 650; }
.project-form-field > span { display: flex; align-items: baseline; gap: 8px; }
.project-form-field > span small, .project-field-hint { color: var(--color-text-muted); font-size: 11px; font-weight: 450; }
.project-form-field input, .project-form-field textarea { width: 100%; min-height: 48px; padding: 13px 14px; border: 1px solid var(--color-surface-border); border-radius: 13px; outline: none; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 14px; font-weight: 450; transition: border-color var(--motion-standard), box-shadow var(--motion-standard); }
.project-form-field textarea { min-height: 112px; resize: vertical; }
.project-form-field input:focus, .project-form-field textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-wash); }
.project-form-field input::placeholder, .project-form-field textarea::placeholder { color: var(--color-text-muted); opacity: .75; }
.project-field-hint { justify-self: end; margin-top: -4px; }
.project-create-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--color-accent-border); border-radius: 14px; color: var(--color-accent); background: var(--color-accent-wash); }
.project-create-note > span { font-size: 16px; line-height: 1.35; }
.project-create-note p { margin: 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.6; }
.project-create-actions { display: flex; justify-content: flex-end; gap: 10px; }
.project-secondary-button { border-color: var(--color-surface-border); color: var(--color-text); background: var(--color-surface); }
.project-prototype-note { margin: -7px 0 0; color: var(--color-text-muted); font-size: 11px; line-height: 1.5; text-align: right; }
@media (max-width: 760px) {

 .projects-empty-state { min-height: 260px; padding: 42px 20px; }
 .project-create-panel { border-radius: 21px; }
 .project-create-actions { display: grid; grid-template-columns: 1fr 1fr; }
 .project-create-actions > * { width: 100%; }
 .project-prototype-note { text-align: left; }
}


/* Project creation RPC controls */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.project-form-field select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--color-surface-border); border-radius: 13px; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 14px; }
.project-form-field select:focus { border-color: var(--color-accent); outline: 2px solid var(--color-accent-wash); }
.project-component-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.project-component-options[hidden] { display: none; }
.project-component-options legend { margin-bottom: 10px; color: var(--color-text); font-size: 13px; font-weight: 650; }
.project-component-options legend small { color: var(--color-text-muted); font-size: 11px; font-weight: 450; }
.project-component-options label { display: flex; min-height: 46px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--color-surface-border); border-radius: 12px; color: var(--color-text); background: var(--color-page); font-size: 12px; }
.project-component-options input { accent-color: var(--color-accent); }
.project-form-feedback { min-height: 0; margin: 0; color: var(--color-text-muted); font-size: 12px; }
.project-form-feedback[data-state="error"] { color: #d94b4b; }
.project-create-success { display: grid; gap: 12px; padding-top: 25px; }
.project-create-success h2 { margin: 0; font-size: 22px; }
.project-create-success p { margin: 0; color: var(--color-text-muted); line-height: 1.5; }
.project-create-success small { overflow-wrap: anywhere; color: var(--color-text-muted); }
.project-create-success .project-primary-button { justify-self: start; margin-top: 8px; }
@media (max-width: 560px) { .project-component-options { grid-template-columns: 1fr; } .project-create-success .project-primary-button { width: 100%; } }


/* Projects list */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.project-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.project-card { display: flex; min-width: 0; flex-direction: column; padding: 21px; border: 1px solid var(--color-surface-border); border-radius: 21px; background: var(--color-surface); box-shadow: var(--shadow-surface); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.project-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.project-card-type, .project-card-role { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 650; }
.project-card-type { color: var(--color-accent); background: var(--color-accent-wash); }
.project-card-role { color: var(--color-text-muted); background: var(--color-page); }
.project-card h3 { margin: 17px 0 0; overflow-wrap: anywhere; font-size: 18px; letter-spacing: -.035em; }
.project-card-description { min-height: 42px; margin: 8px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.project-card-description-muted { opacity: .72; }
.project-card-components { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.project-card-components span { padding: 6px 8px; border: 1px solid var(--color-surface-border); border-radius: 8px; color: var(--color-text-muted); font-size: 10px; }
.project-card-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 17px; color: var(--color-text-muted); font-size: 10px; }
.projects-loading-state { display: flex; min-height: 180px; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; border: 1px solid var(--color-surface-border); border-radius: 22px; color: var(--color-text-muted); background: var(--color-surface); }
.projects-loading-state p { margin: 0; font-size: 13px; }
.projects-loading-indicator { width: 18px; height: 18px; border: 2px solid var(--color-accent-border); border-top-color: var(--color-accent); border-radius: 50%; animation: projects-loading-spin .8s linear infinite; }
@keyframes projects-loading-spin { to { transform: rotate(360deg); } }
.projects-error-state button { margin-top: 18px; }
@media (max-width: 760px) { .project-card-grid { grid-template-columns: 1fr; } .project-card { padding: 19px; } }
@media (prefers-reduced-motion: reduce) { .projects-loading-indicator { animation: none; } }

.project-card-link { color: inherit; text-decoration: none; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.project-card-link:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.project-card-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.project-detail { display: grid; gap: 16px; }
.project-detail-back { width: fit-content; color: var(--color-accent); font-size: 13px; font-weight: 650; text-decoration: none; }
.project-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-detail-heading h2 { margin: 8px 0 0; overflow-wrap: anywhere; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.04em; }
.project-detail-card { padding: 20px; border: 1px solid var(--color-surface-border); border-radius: 20px; background: var(--color-surface); box-shadow: var(--shadow-surface); }
.project-detail-card h3 { margin: 0 0 14px; font-size: 15px; }
.project-detail-card dl { display: grid; gap: 12px; margin: 0; }
.project-detail-card dl div { display: grid; grid-template-columns: minmax(110px, .35fr) 1fr; gap: 12px; }
.project-detail-card dt { color: var(--color-text-muted); font-size: 12px; }
.project-detail-card dd { min-width: 0; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.project-detail-card code { font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 520px) { .project-detail-heading { align-items: flex-start; flex-direction: column; } .project-detail-card dl div { grid-template-columns: 1fr; gap: 4px; } }


/* Project member management */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.project-members-card { display: grid; gap: 17px; }
.project-members-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-members-heading h3 { margin: 0; }
.project-members-heading p { margin: 5px 0 0; color: var(--color-text-muted); font-size: 11px; }
.project-members-list { display: grid; gap: 9px; }
.project-member-row { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--color-surface-border); }
.project-member-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 13px; color: var(--color-accent); background: var(--color-accent-wash); font-size: 12px; font-weight: 750; }
.project-member-copy { display: grid; min-width: 0; gap: 3px; }
.project-member-copy strong { overflow: hidden; color: var(--color-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-member-copy small, .project-members-muted { color: var(--color-text-muted); font-size: 11px; }
.project-member-role { margin-left: auto; padding: 6px 9px; border-radius: 9px; color: var(--color-text-muted); background: var(--color-page); font-size: 10px; white-space: nowrap; }
.project-member-invite-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto; align-items: end; gap: 12px; padding-top: 17px; border-top: 1px solid var(--color-surface-border); }
.project-member-invite-form .project-form-field { gap: 7px; }
.project-member-invite-form input, .project-member-invite-form select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 0 11px; border: 1px solid var(--color-surface-border); border-radius: 12px; outline: none; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 13px; }
.project-member-invite-form input:focus, .project-member-invite-form select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-wash); }
.project-member-invite-form .project-primary-button { min-height: 44px; padding: 0 13px; font-size: 11px; }
.project-member-invite-form .project-form-feedback { grid-column: 1 / -1; }
.project-members-error, .project-form-feedback[data-state="error"] { color: #d94b4b; }
@media (max-width: 760px) {
 .project-member-invite-form { grid-template-columns: 1fr; }
 .project-member-invite-form .project-primary-button { width: 100%; }
 .project-member-role { font-size: 9px; }
}


/* Project information page */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.project-detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-detail-heading { justify-content: flex-start; }
.project-detail-heading h2 { margin-top: 0; }
.project-info-menu { position: relative; z-index: 4; display: flex; justify-content: flex-end; }
.project-info-avatar { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid var(--color-accent-border); border-radius: 16px; color: var(--color-accent); background: var(--color-accent-wash); box-shadow: var(--shadow-surface); font-size: 13px; font-weight: 750; letter-spacing: -.03em; text-decoration: none; cursor: pointer; transition: transform var(--motion-standard), border-color var(--motion-standard), background-color var(--motion-standard); }
.project-info-avatar::-webkit-details-marker { display: none; }
.project-info-avatar::marker { content: ""; }
.project-info-avatar:hover { transform: translateY(-1px); border-color: var(--color-accent); }
.project-info-menu[open] .project-info-avatar { border-color: var(--color-accent); background: var(--color-surface); }
.project-info-popover { position: absolute; top: calc(100% + 10px); right: 0; width: min(420px, calc(100vw - 40px)); max-height: min(70svh, 560px); overflow: auto; padding: 8px; border: 1px solid var(--color-surface-border); border-radius: 22px; background: var(--color-surface); box-shadow: 0 18px 55px rgb(0 0 0 / .2); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.project-info-card { padding: 18px; }
.project-info-card h3 { margin-bottom: 16px; }
.project-info-card dl { gap: 14px; }
@media (max-width: 520px) {
 .project-info-popover { width: min(360px, calc(100vw - 32px)); }
 .project-info-card { padding: 15px; }
}


/* Project member invite dialog and aligned project avatar */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.project-detail-heading { align-items: center; justify-content: space-between; }
.project-detail-heading h2 { min-width: 0; flex: 1 1 auto; }
.project-info-avatar { margin-left: auto; }
.project-members-heading { align-items: center; }
.project-members-add-button { flex: 0 0 auto; }
.project-member-add-button { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--color-accent-border); border-radius: 13px; color: var(--color-accent); background: var(--color-accent-wash); font: inherit; font-size: 24px; font-weight: 450; line-height: 1; cursor: pointer; transition: transform var(--motion-standard), border-color var(--motion-standard), background-color var(--motion-standard); }
.project-member-add-button:hover { transform: translateY(-1px); border-color: var(--color-accent); }
.project-member-add-button:focus-visible, .project-member-dialog-close:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.project-member-dialog { width: min(100% - 32px, 480px); max-width: 480px; max-height: min(80svh, 680px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--color-surface-border); border-radius: 24px; color: var(--color-text); background: var(--color-surface); box-shadow: 0 24px 80px rgb(0 0 0 / .28); }
.project-member-dialog::backdrop { background: rgb(8 10 16 / .52); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.project-member-dialog-panel { padding: clamp(20px, 5vw, 28px); }
.project-member-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--color-surface-border); }
.project-member-dialog-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.project-member-dialog-heading p { margin: 7px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.55; }
.project-member-dialog-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid var(--color-surface-border); border-radius: 11px; color: var(--color-text-muted); background: var(--color-page); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.project-member-dialog .project-member-invite-form { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; border-top: 0; }
.project-member-dialog .project-member-invite-form .project-form-feedback { grid-column: auto; }
.project-member-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 2px; }
.project-member-dialog-actions > button { min-width: 120px; }
@media (max-width: 520px) {
 .project-detail-heading { align-items: center; flex-direction: row; }
 .project-detail-heading h2 { font-size: clamp(22px, 6vw, 30px); }
 .project-member-dialog { width: calc(100% - 24px); border-radius: 20px; }
 .project-member-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
 .project-member-dialog-actions > button { width: 100%; min-width: 0; }
}


/* Project settings section */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.project-settings-card p { margin: 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.6; }


/* Project deletion confirmation */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.project-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: rgb(220 70 70 / .28); }
.project-danger-zone h3 { margin: 0 0 7px; color: var(--color-text); }
.project-danger-zone p { max-width: 560px; margin: 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.6; }
.project-danger-button { min-height: 42px; padding: 0 15px; border: 1px solid rgb(220 70 70 / .48); border-radius: 12px; color: #d94b4b; background: rgb(220 70 70 / .09); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color var(--motion-standard), border-color var(--motion-standard), transform var(--motion-standard); }
.project-danger-button:hover { transform: translateY(-1px); border-color: #d94b4b; background: rgb(220 70 70 / .15); }
.project-danger-button:disabled { opacity: .55; cursor: wait; transform: none; }
.project-delete-dialog { width: min(100% - 32px, 480px); max-width: 480px; max-height: min(80svh, 680px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--color-surface-border); border-radius: 24px; color: var(--color-text); background: var(--color-surface); box-shadow: 0 24px 80px rgb(0 0 0 / .28); }
.project-delete-dialog::backdrop { background: rgb(8 10 16 / .56); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.project-delete-dialog-panel { padding: clamp(20px, 5vw, 28px); }
.project-delete-form { display: grid; gap: 16px; padding-top: 20px; }
.project-delete-form .project-form-field { display: grid; gap: 8px; color: var(--color-text); font-size: 12px; font-weight: 650; }
.project-delete-form input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--color-surface-border); border-radius: 12px; outline: none; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 14px; }
.project-delete-form input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-wash); }
.project-delete-form .project-form-feedback { min-height: 18px; margin: 0; font-size: 12px; line-height: 1.5; }
.project-delete-form .project-form-feedback[data-state="error"] { color: #d94b4b; }
.project-delete-form .project-form-feedback[data-state="success"] { color: var(--color-accent); }
@media (max-width: 600px) {
 .project-danger-zone { align-items: stretch; flex-direction: column; }
 .project-danger-button { width: 100%; }
 .project-delete-dialog { width: calc(100% - 24px); border-radius: 20px; }
 .project-delete-form .project-member-dialog-actions { display: grid; grid-template-columns: 1fr; }
 .project-delete-form .project-member-dialog-actions > button { width: 100%; }
}


/* Project settings navigation row */
/* Version: 1.0.0 */
/* Updated: 2026-11-16 */
.project-settings-link,
.project-settings-link:link,
.project-settings-link:visited {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 color: var(--color-text);
 text-decoration: none;
 transition: border-color var(--motion-standard), background-color var(--motion-standard), transform var(--motion-standard);
}
.project-settings-link:hover,.project-settings-link:active {
 color: var(--color-text);
 border-color: var(--color-accent-border);
 background: var(--color-surface);
}
.project-settings-link:focus-visible {
 color: var(--color-text);
 outline: 2px solid var(--color-accent);
 outline-offset: 3px;
}
.project-settings-link > span:first-child { min-width: 0; }
.project-settings-link h3 { margin: 0 0 7px; color: var(--color-text); }
.project-settings-link p { color: var(--color-text-muted); }
.project-settings-link .profile-chevron { flex: 0 0 auto; color: var(--color-text-muted); }


/* Public profile cards */
/* Version: 1.0.1 */
/* Updated: 2026-11-16 */
.profile-identity-card { position: relative; }
.profile-share-icon-button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; margin-left: auto; padding: 0; border: 1px solid var(--color-surface-border); border-radius: 14px; color: var(--color-text-muted); background: var(--color-page); cursor: pointer; transition: color var(--motion-standard), border-color var(--motion-standard), background-color var(--motion-standard), transform var(--motion-standard); }
.profile-share-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-share-icon-button:hover { color: var(--color-accent); border-color: var(--color-accent-border); background: var(--color-accent-wash); transform: translateY(-1px); }
.profile-share-icon-button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.profile-share-icon-button:disabled { opacity: .55; cursor: wait; transform: none; }
.public-profile-dialog { width: min(520px, calc(100% - 28px)); max-width: 520px; max-height: min(88vh, 760px); padding: 0; border: 1px solid var(--color-surface-border); border-radius: 24px; color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-floating); }
.public-profile-dialog::backdrop { background: rgba(0,0,0,.48); backdrop-filter: blur(5px); }
.public-profile-dialog-panel { display: grid; gap: 18px; padding: 22px; }
.public-profile-dialog-close { width: 36px; height: 36px; border: 1px solid var(--color-surface-border); border-radius: 50%; color: var(--color-text-muted); background: var(--color-page); font-size: 22px; cursor: pointer; }
.public-profile-preview { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--color-surface-border); border-radius: 18px; background: var(--color-page); }
.public-profile-preview > div:last-child { display: grid; gap: 5px; min-width: 0; }
.public-profile-preview strong { font-size: 16px; }
.public-profile-preview span { color: var(--color-text-muted); font-size: 12px; }
.public-profile-preview-projects { display: grid; gap: 9px; }
.public-profile-preview-projects article { padding: 13px; border: 1px solid var(--color-surface-border); border-radius: 14px; }
.public-profile-preview-projects article strong { font-size: 13px; }
.public-profile-preview-projects article p, .public-profile-preview-projects > p { margin: 5px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.5; }
.public-profile-share-url { overflow-wrap: anywhere; margin: 0; color: var(--color-text-muted); font-size: 12px; }
.public-profile-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.public-profile-dialog-actions .settings-primary-button { min-height: 42px; }
.public-projects-picker { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--color-surface-border); }
.public-projects-heading { display: grid; gap: 5px; }
.public-projects-heading strong { color: var(--color-text); font-size: 14px; }
.public-projects-heading small { color: var(--color-text-muted); font-size: 12px; line-height: 1.5; }
.public-project-option { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid var(--color-surface-border); border-radius: 14px; background: var(--color-page); cursor: pointer; }
.public-project-option input, .public-profile-switch input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-accent); }
.public-project-option span, .public-profile-switch span { display: grid; gap: 4px; min-width: 0; }
.public-project-option strong, .public-profile-switch strong { color: var(--color-text); font-size: 13px; font-weight: 650; }
.public-project-option small, .public-profile-switch small { color: var(--color-text-muted); font-size: 11px; line-height: 1.45; }
.public-profile-switch { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--color-accent-border); border-radius: 15px; background: var(--color-accent-wash); cursor: pointer; }
.public-profile-page { width: min(100%, 820px); margin: 24px auto 50px; }
.public-profile-card { display: grid; gap: 22px; padding: clamp(20px, 5vw, 34px); border: 1px solid var(--color-surface-border); border-radius: 26px; background: var(--color-surface); box-shadow: var(--shadow-surface); }
.public-profile-heading { display: flex; align-items: center; gap: 16px; }
.public-profile-heading .profile-avatar { flex: 0 0 64px; width: 64px; height: 64px; }
.public-profile-heading h1 { margin: 0; font-size: clamp(21px, 4vw, 29px); letter-spacing: -.04em; }
.public-profile-heading p { margin: 5px 0 0; color: var(--color-text-muted); font-size: 13px; }
.public-profile-socials { display: flex; flex-wrap: wrap; gap: 9px; }
.public-profile-socials a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--color-surface-border); border-radius: 12px; color: var(--color-text); background: var(--color-page); font-size: 12px; font-weight: 600; text-decoration: none; }
.public-profile-projects { display: grid; gap: 12px; }
.public-profile-projects h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.public-profile-project-card { padding: 17px; border: 1px solid var(--color-surface-border); border-radius: 17px; background: var(--color-page); }
.public-profile-project-card h3 { margin: 0; font-size: 15px; }
.public-profile-project-card p { margin: 7px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.55; }
.public-profile-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--color-surface-border); color: var(--color-text-muted); font-size: 12px; }
.public-profile-brand a { color: var(--color-accent); font-weight: 650; text-decoration: none; }
.public-profile-loading, .public-profile-error { padding: 45px 20px; text-align: center; color: var(--color-text-muted); }
.public-profile-error h1 { color: var(--color-text); font-size: 21px; }
.public-project-option:has(input:checked) { border-color: var(--color-accent-border); background: var(--color-accent-wash); }
@media (max-width: 560px) {
 .public-profile-dialog-panel { padding: 17px; }
 .public-profile-dialog-actions { flex-direction: column-reverse; }
 .public-profile-dialog-actions button { width: 100%; }
 .public-profile-card { border-radius: 20px; }
}


/* Public profile preview social links */
/* Version: 1.0.1 */
/* Updated: 2026-11-16 */
.public-profile-preview-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.public-profile-preview-socials a { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid var(--color-surface-border); border-radius: 11px; color: var(--color-text); background: var(--color-page); font-size: 11px; font-weight: 600; text-decoration: none; }


/* Public profile biography and social icon row */
/* Version: 1.0.1 */
/* Updated: 2026-11-16 */
.public-profile-about { margin: -5px 0 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.public-profile-social-icons { display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 14px; }
.public-profile-social-icons a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--color-surface-border); border-radius: 50%; color: var(--color-text); background: var(--color-page); transition: transform .18s ease, color .18s ease, border-color .18s ease; }
.public-profile-social-icons a:hover { color: var(--color-accent); border-color: var(--color-accent-border); transform: translateY(-2px); }
.public-profile-social-icons svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-profile-brand { justify-content: center; gap: 7px; flex-wrap: wrap; }
.settings-field textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 88px; padding: 12px 14px; border: 1px solid var(--color-surface-border); border-radius: 13px; outline: none; resize: vertical; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 14px; line-height: 1.5; transition: border-color var(--motion-standard), box-shadow var(--motion-standard); }
.settings-field textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-wash); }




/* Public profile identity and owner verification badge */
.public-profile-panel > .public-profile-identity-row { display: flex; min-width: 0; align-items: center; gap: 9px; }
.public-profile-panel > .public-profile-identity-row > .auth-heading { min-width: 0; margin: 0; }
.public-profile-owner-badge { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; align-items: center; justify-content: center; color: #d4a72c; }
.public-profile-owner-badge svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.8; filter: drop-shadow(0 1px 2px rgb(212 167 44 / 24%)); }

/* Public profile projects heading — match the About heading */
.public-profile-panel > .public-profile-priority-heading-row { display: flex; min-width: 0; align-items: baseline; gap: 10px; margin-top: 16px; }
.public-profile-panel > .public-profile-priority-heading-row .public-profile-projects-heading { flex: 0 0 auto; margin: 0; color: var(--color-text-muted); font-size: 12px; font-weight: 650; letter-spacing: .045em; }
.public-profile-priority-project-name { min-width: 0; margin: 0; overflow: hidden; color: var(--color-text); font-size: 15px; font-weight: 650; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.public-profile-priority-project-subtitle { margin: 7px 0 0; color: var(--color-text-muted); font-size: 12px; font-weight: 650; letter-spacing: .045em; line-height: 1.5; overflow-wrap: anywhere; }
.public-profile-priority-project-description { margin: 7px 0 0; color: var(--color-text); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }

/* Public profile about section */
/* Version: 1.0.2 */
/* Updated: 2026-11-16 */
.public-profile-about-section { display: grid; gap: 7px; margin-top: 2px; padding: 18px 0; border-top: 1px solid var(--color-surface-border); border-bottom: 1px solid var(--color-surface-border); }
.public-profile-about-section h2 { margin: 0; color: var(--color-text-muted); font-size: 12px; font-weight: 650; letter-spacing: .045em; }
.public-profile-card > .auth-heading { margin: 0; color: var(--color-text-muted); font-size: 12px; font-weight: 650; letter-spacing: .045em; }
.public-profile-about-section .public-profile-about { margin: 0; color: var(--color-text); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }

/* Profile identity card actions: Telegram, owner control center and public share */
/* Version: 1.1.0 */
/* Updated: 2026-11-24 */
.profile-identity-card { padding-right: 136px; }
.profile-telegram-icon-button, .profile-share-icon-button, .profile-control-icon-button { position: absolute; top: auto; bottom: 14px; display: grid; width: 32px; height: 32px; place-items: center; margin: 0; border: 1px solid var(--color-surface-border); border-radius: 50%; color: var(--color-text-muted); background: var(--color-page); text-decoration: none; cursor: pointer; transition: color var(--motion-standard), border-color var(--motion-standard), background-color var(--motion-standard), transform var(--motion-standard); }
.profile-telegram-icon-button { right: 94px; }
.profile-control-icon-button { right: 54px; }
.profile-share-icon-button { right: 14px; }
.profile-identity-card:not(:has(.profile-control-icon-button)) .profile-telegram-icon-button { right: 54px; }
.profile-identity-card:not(:has(.profile-control-icon-button)) { padding-right: 96px; }
.profile-telegram-icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-share-icon-button svg { width: 17px; height: 17px; }
.profile-control-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-telegram-icon-button:hover, .profile-share-icon-button:hover, .profile-control-icon-button:hover { color: var(--color-accent); border-color: var(--color-accent-border); background: var(--color-accent-wash); transform: translateY(-1px); }
.profile-telegram-icon-button:focus-visible, .profile-share-icon-button:focus-visible, .profile-control-icon-button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.profile-telegram-icon-button:disabled { cursor: wait; opacity: .65; }
.profile-telegram-status, .profile-telegram-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.profile-telegram-retry { margin-left: 6px; border: 0; color: var(--color-accent); background: transparent; font: inherit; cursor: pointer; }
@media (max-width: 560px) {
 .profile-identity-card { padding-right: 124px; }
 .profile-telegram-icon-button, .profile-share-icon-button, .profile-control-icon-button { bottom: 12px; width: 30px; height: 30px; }
 .profile-telegram-icon-button { right: 88px; }
 .profile-control-icon-button { right: 50px; }
 .profile-share-icon-button { right: 12px; }
 .profile-identity-card:not(:has(.profile-control-icon-button)) .profile-telegram-icon-button { right: 50px; }
 .profile-identity-card:not(:has(.profile-control-icon-button)) { padding-right: 88px; }
}


/* Team workspace */
/* Version: 1.0.0 */
/* Updated: 2026-11-24 */
.team-workspace { width: min(100%, 820px); margin: 0 auto; }
.team-workspace-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.team-workspace-intro h2 { margin: 0; font-size: 18px; font-weight: 670; letter-spacing: -.035em; }
.team-workspace-intro p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.5; }
.team-list { display: grid; gap: 10px; }
.team-list-card { display: flex; min-width: 0; min-height: 82px; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid var(--color-surface-border); border-radius: 19px; color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-surface); text-decoration: none; transition: border-color var(--motion-standard), transform var(--motion-standard); }
.team-list-card:hover { border-color: var(--color-accent-hover-border); transform: translateY(-1px); }
.team-list-avatar { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid var(--color-accent-border); border-radius: 15px; color: var(--color-accent); background: var(--color-accent-wash); font-size: 15px; font-weight: 700; }
.team-list-copy { min-width: 0; flex: 1; }
.team-list-copy strong, .team-list-copy small { display: block; overflow-wrap: anywhere; }
.team-list-copy strong { font-size: 14px; font-weight: 650; }
.team-list-copy small { margin-top: 5px; color: var(--color-text-muted); font-size: 11px; line-height: 1.45; }
.team-state-card, .team-detail-panel { padding: 24px; border: 1px solid var(--color-surface-border); border-radius: 22px; background: var(--color-surface); box-shadow: var(--shadow-surface); }
.team-state-card { text-align: center; }
.team-state-card h2 { margin: 0; font-size: 17px; }
.team-state-card p, .team-detail-panel > p { color: var(--color-text-muted); font-size: 13px; line-height: 1.6; }
.team-detail-panel { width: min(100%, 760px); margin: 0 auto; }
.team-detail-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; }
.team-detail-heading h2 { min-width: 0; flex: 1 1 auto; margin: 0; overflow-wrap: anywhere; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.05em; }
.team-settings-heading { justify-content: flex-start; }
.team-settings-heading p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 12px; }
.team-panel-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--color-text-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.team-role-badge { padding: 6px 9px; border: 1px solid var(--color-accent-border); border-radius: 999px; color: var(--color-accent); background: var(--color-accent-wash); letter-spacing: 0; }
.team-detail-panel > h2 { margin: 24px 0 8px; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.05em; }
.team-detail-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.team-detail-panel dl div { padding: 13px; border: 1px solid var(--color-surface-border); border-radius: 14px; }
.team-detail-panel dt { color: var(--color-text-muted); font-size: 11px; }
.team-detail-panel dd { margin: 6px 0 0; font-size: 13px; font-weight: 620; }
.team-feature-note { padding: 13px; border-radius: 14px; background: var(--color-neutral-hover); }
.team-create-dialog { width: min(92vw, 480px); max-width: 480px; padding: 0; border: 1px solid var(--color-surface-border); border-radius: 24px; color: var(--color-text); background: var(--color-surface); box-shadow: var(--shadow-floating); }
.team-create-dialog::backdrop { background: rgb(0 0 0 / 42%); backdrop-filter: blur(5px); }
.team-create-dialog-panel { padding: 22px; }
.team-create-dialog textarea { box-sizing: border-box; width: 100%; min-height: 88px; padding: 12px 14px; border: 1px solid var(--color-surface-border); border-radius: 13px; color: var(--color-text); background: var(--color-page); font: inherit; font-size: 14px; resize: vertical; }
.team-create-dialog textarea:focus { outline: 2px solid var(--color-accent-wash); border-color: var(--color-accent); }
.team-create-actions { display: flex; justify-content: flex-end; gap: 9px; }
.team-create-actions > * { flex: 1; }
@media (max-width: 560px) {
 .team-workspace-intro { align-items: center; flex-direction: row; }
 .team-workspace-intro > .projects-create-button { width: 42px; min-width: 42px; }
 .team-list-card { padding: 13px; }
 .team-detail-panel { padding: 19px; }
 .team-detail-heading h2 { font-size: clamp(22px, 6vw, 30px); }
 .team-detail-panel dl { grid-template-columns: 1fr; }
 .team-create-dialog-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .team-list-card { transition: none; } }


/* Team member list */
/* Version: 1.0.0 */
/* Updated: 2026-11-24 */
.team-members-card { display: grid; gap: 13px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-surface-border); }
.team-members-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-members-heading h3 { margin: 0; font-size: 16px; }
.team-members-heading p, .team-members-muted { margin: 5px 0 0; color: var(--color-text-muted); font-size: 11px; }
.team-members-list { display: grid; gap: 4px; }
.team-member-row { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--color-surface-border); }
.team-member-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 13px; color: var(--color-accent); background: var(--color-accent-wash); font-size: 12px; font-weight: 750; }
.team-member-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.team-member-copy strong { overflow: hidden; color: var(--color-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.team-member-copy small { color: var(--color-text-muted); font-size: 11px; }
.team-member-role { margin-left: auto; padding: 6px 9px; border-radius: 9px; color: var(--color-text-muted); background: var(--color-page); font-size: 10px; white-space: nowrap; }
.team-members-error { display: grid; justify-items: start; gap: 8px; }
.team-members-error p { margin: 0; color: var(--color-text-muted); font-size: 12px; }
@media (max-width: 420px) { .team-member-row { gap: 8px; } .team-member-role { padding: 5px 7px; font-size: 9px; } }

/* Team invitation dialog */
.team-panel-actions { display: flex; align-items: center; gap: 10px; }
.team-panel-actions .projects-create-button { width: 42px; min-width: 42px; min-height: 42px; }
.team-invite-dialog { max-height: min(86svh, 760px); overflow-y: auto; }
.team-invite-dialog .team-invite-form { padding-top: 18px; border-top: 0; }

.team-panel-topline { align-items: center; }

/* Version: 3.16.0 */
/* Updated: 2026-11-24 */

/* Unified workspace trash */
.trash-page { display: grid; gap: 24px; }
.trash-category { display: grid; gap: 12px; }
.trash-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trash-category-heading h2 { margin: 0; font-size: 18px; font-weight: 670; letter-spacing: -.03em; }
.trash-category-heading > span { display: grid; min-width: 26px; height: 26px; place-items: center; padding: 0 7px; border: 1px solid var(--color-surface-border); border-radius: 999px; color: var(--color-text-muted); font-size: 11px; }
.trash-item-list { display: grid; gap: 10px; }
.trash-item-card { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 17px; border: 1px solid var(--color-surface-border); border-radius: 18px; background: var(--color-surface); box-shadow: var(--shadow-surface); }
.trash-item-copy { min-width: 0; }
.trash-item-copy h3 { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 650; }
.trash-item-copy p { margin: 5px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.5; }
.trash-item-copy time { display: block; margin-top: 8px; color: var(--color-text-muted); font-size: 11px; }
.trash-restore-button { flex: 0 0 auto; min-height: 40px; }
.trash-empty-note, .trash-retention-note { margin: 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.6; }
.trash-retention-note { padding-top: 14px; border-top: 1px solid var(--color-surface-border); }
@media (max-width: 560px) { .trash-item-card { align-items: flex-start; flex-direction: column; gap: 13px; padding: 14px; } .trash-restore-button { width: 100%; } }


/* Permanent deletion actions in the unified trash */
/* Version: 1.0.0 */
/* Updated: 2026-11-24 */
.trash-item-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.trash-delete-button { min-height: 40px; }
.trash-delete-dialog { width: min(92vw, 480px); max-width: 480px; max-height: min(88svh, 760px); overflow-y: auto; }
.trash-delete-dialog .project-delete-dialog-panel { padding: 22px; }
.trash-delete-dialog [data-trash-delete-description] { line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 560px) {
 .trash-item-actions { width: 100%; flex-direction: column; }
 .trash-item-actions > button { width: 100%; }
 .trash-delete-dialog .project-delete-dialog-panel { padding: 18px; }
}


/* Trash category tabs — aligned with workspace navigation */
.trash-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.trash-tab { display: flex; min-width: 0; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 13px; border: 0; border-radius: 14px; background: transparent; color: var(--color-text-muted); font-size: 14px; font-weight: 570; text-decoration: none; cursor: pointer; transition: color var(--motion-standard), background-color var(--motion-standard); }
.trash-tab:hover { color: var(--color-text); background: var(--color-neutral-hover); }
.trash-tab.is-active { background: var(--color-accent-soft); color: var(--color-text); box-shadow: none; }
.trash-tab .workspace-nav-icon { flex: 0 0 20px; }
.trash-tab .workspace-nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trash-tab.is-active .workspace-nav-icon { color: var(--color-accent); }
.trash-tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-tab-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--color-neutral-hover); color: var(--color-text-muted); font-size: 10px; }
.trash-tab.is-active .trash-tab-count { background: var(--color-accent); color: var(--color-accent-contrast, #fff); }
.trash-tab-panel { min-width: 0; }
.trash-category-empty { min-height: 210px; align-content: center; }
.trash-tab-placeholder { display: grid; min-height: 230px; justify-items: center; align-content: center; padding: 24px; border: 1px dashed var(--color-surface-border); border-radius: 20px; text-align: center; }
.trash-tab-placeholder .projects-empty-symbol { margin-bottom: 12px; }
.trash-tab-placeholder h3 { margin: 0; font-size: 16px; }
.trash-tab-placeholder p { max-width: 420px; margin: 8px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 420px) { .trash-tab { gap: 5px; padding-inline: 5px; font-size: 12px; } }

.trash-tab-panel[hidden] { display: none; }


/* Trash retention countdown */
.trash-countdown { margin: 7px 0 0; color: var(--color-accent); font-size: 12px; font-weight: 620; line-height: 1.45; }
