.workspaces-page { padding: 34px; color: var(--text); }
.workspaces-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.workspaces-header p, .workspaces-card header span { margin: 0 0 7px; color: var(--brand); font-size: 8pt; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.workspaces-header h1 { margin: 0; font-size: 24pt; }
.workspaces-header span { color: var(--muted); font-size: 10pt; }
.workspaces-header > a, .workspace-form button, .workspace-member-form button { padding: 10px 16px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; font-size: 9pt; font-weight: 600; text-decoration: none; cursor: pointer; }
.workspaces-alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 7px; font-size: 9pt; }
.workspaces-alert.is-success { background: #e8f6ed; color: #267947; }
.workspaces-alert.is-error { background: #fff0ef; color: #a13a33; }
.workspaces-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; }
.workspaces-card { padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.workspaces-card > header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.workspaces-card header h2 { margin: 0; font-size: 14pt; }
.workspaces-card header small { color: var(--muted); }
.workspaces-list, .workspace-members-list { display: grid; gap: 9px; }
.workspaces-list article, .workspace-members-list article { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.workspaces-list article.is-active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, white); }
.workspaces-list strong, .workspace-members-list strong { display: block; margin-bottom: 4px; font-size: 10pt; }
.workspaces-list small, .workspace-members-list small { color: var(--muted); font-size: 8.5pt; }
.workspaces-list button, .workspace-members-list button { border: 0; background: transparent; color: var(--brand); font-size: 8.5pt; font-weight: 600; cursor: pointer; }
.workspace-members-list button { color: #aa4039; }
.workspace-item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.workspace-edit-action { display: inline-grid; width: 30px; height: 30px; padding: 0; place-items: center; border-radius: 6px !important; color: var(--muted) !important; }
.workspace-edit-action:hover { background: color-mix(in srgb, var(--brand) 7%, white); color: var(--brand) !important; }
.workspace-edit-action:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }
.workspace-edit-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.workspace-current { padding: 6px 9px; border-radius: 20px; background: var(--brand); color: #fff; font-size: 8pt; }
.workspace-form, .workspace-member-form { display: grid; gap: 13px; }
.workspace-form label, .workspace-member-form label { display: grid; gap: 7px; color: var(--muted); font-size: 8.5pt; }
.workspace-form input, .workspace-form select, .workspace-member-form input, .workspace-member-form select { min-height: 42px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text); font-size: 9pt; }
.workspace-form-feedback { margin: -4px 0 14px; padding: 10px 12px; border-radius: 7px; font-size: 8.5pt; }
.workspace-form-feedback.is-success { background: #e8f6ed; color: #267947; }
.workspace-form-feedback.is-error { background: #fff0ef; color: #a13a33; }
.workspace-form-actions { display: flex; align-items: center; gap: 12px; }
.workspace-form-actions > button[type="submit"] { flex: 1 1 auto; }
.workspace-form .workspace-form-cancel { padding-inline: 4px; background: transparent; color: var(--muted); }
.workspace-form .workspace-form-cancel:hover { color: var(--brand); }
.workspace-form button:disabled, .workspace-edit-action:disabled { cursor: wait; opacity: .62; }
.workspace-members-card { margin-top: 18px; }
.workspace-member-form { grid-template-columns: minmax(220px, 1fr) 180px auto; align-items: end; margin-bottom: 20px; }
@media (max-width: 900px) { .workspaces-grid { grid-template-columns: 1fr; } .workspace-member-form { grid-template-columns: 1fr; } .workspaces-page { padding: 22px; } }
@media (max-width: 520px) { .workspaces-list article { align-items: flex-start; } .workspace-item-actions { gap: 5px; } }
