.account-card {
    max-width: 30rem;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

.account-card h1 {
    margin-bottom: 0.75rem;
}

html, body {
    background: #f6f7f9;
    color: #24313a;
    font-family: Arial, Helvetica, sans-serif;
}

a, .btn-link {
    color: #256d85;
}

a {
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.btn-primary {
    background-color: #256d85;
    border-color: #256d85;
}

.btn-primary:hover {
    background-color: #1d596d;
    border-color: #1d596d;
}

.content {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.breadcrumbs {
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.3;
}

.breadcrumbs ol {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    min-width: 0;
}

.breadcrumbs li + li::before {
    color: #9ca3af;
    content: "/";
}

.breadcrumbs a {
    color: #256d85;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
    color: #24313a;
    font-weight: 700;
}

h1:focus {
    outline: none;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.plan-detail-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.plan-detail-title-row .badge {
    flex-shrink: 0;
}

.plan-detail-publication-date {
    color: #24313a;
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.plan-detail-content,
.article-edit-modal {
    font-size: 1.0625rem;
    line-height: 1.5;
}

.plan-detail-content h1 {
    font-size: 2.25rem;
}

.plan-detail-content .plan-detail-publication-date {
    font-size: 1.5rem;
}

.plan-detail-content .panel h2,
.article-edit-modal h2 {
    font-size: 1.35rem;
    line-height: 1.3;
}

.plan-detail-content .definition-list dt {
    font-size: 0.98rem;
}

.plan-detail-content .definition-list dd {
    font-size: 1.0625rem;
    overflow-wrap: anywhere;
}

.plan-detail-content .muted,
.article-edit-modal .muted {
    font-size: 1rem;
}

.plan-detail-content label,
.plan-detail-content .product-picker-grid label,
.article-edit-modal .article-edit-form label,
.article-edit-modal legend {
    font-size: 1rem;
}

.plan-detail-content .btn-sm,
.article-edit-modal .btn {
    font-size: 0.98rem;
}

.plan-detail-content .badge,
.plan-detail-content small,
.article-edit-modal .article-intent-hint {
    font-size: 0.875rem;
}

.plan-detail-content .form-control,
.plan-detail-content .form-select,
.article-edit-modal .form-control,
.article-edit-modal .form-select {
    font-size: 1rem;
}

.plan-detail-content .prompt-preview,
.plan-detail-content .author-profile-json {
    font-size: 0.98rem;
}

.plan-detail-overview {
    margin-bottom: 1rem;
    min-width: 0;
    width: 100%;
}

.plan-detail-overview-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-detail-overview-section {
    min-width: 0;
}

.plan-detail-overview-section:nth-child(2) {
    border-left: 1px solid #e5e7eb;
    padding-left: 1.5rem;
}

.plan-detail-overview-author {
    border-top: 1px solid #e5e7eb;
    grid-column: 1 / -1;
    padding-top: 1.5rem;
}

.plan-detail-overview .definition-list {
    grid-template-columns: 11rem minmax(0, 1fr);
}

.page-header-left {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
}

.eyebrow {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.summary-grid,
.work-grid,
.pillar-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-preview-grid {
    align-items: stretch;
}

.detail-grid {
    align-items: start;
}

.pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.panel,
.item-card,
.setup-panel,
.prompt-item,
.rule-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.metric-card {
    padding: 1rem;
}

.metric-card span {
    color: #6b7280;
    display: block;
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
}

.metric-card strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.panel,
.item-card,
.setup-panel {
    padding: 1.15rem;
}

.loading-panel {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.loading-panel h2,
.loading-panel p {
    margin: 0;
}

.loading-panel p {
    color: #6b7280;
}

.loading-spinner {
    animation: spin 0.75s linear infinite;
    border: 3px solid #d1d5db;
    border-top-color: #16a34a;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
    height: 2rem;
    width: 2rem;
}

.button-spinner {
    border-width: 2px;
    height: 1rem;
    width: 1rem;
}

.loading-button {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.panel-heading,
.card-heading {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.card-heading {
    align-items: flex-start;
    justify-content: flex-start;
}

.card-heading h2 {
    line-height: 1.3;
    margin: 0;
}

.definition-list {
    display: grid;
    gap: 0.55rem 1rem;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    margin: 0;
}

.definition-list dt {
    color: #6b7280;
    font-size: 0.86rem;
    font-weight: 700;
}

.definition-list dd {
    margin: 0;
    min-width: 0;
}

.date-line,
.muted {
    color: #6b7280;
}

.date-line {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.compact-list {
    display: grid;
    gap: 0.55rem;
}

.compact-list div {
    align-items: center;
    border-bottom: 1px solid #eef0f3;
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.55rem;
}

.compact-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.toolbar {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(14rem, 1fr) 14rem 12rem 12rem;
    margin-bottom: 1rem;
}

.header-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.form-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
    color: #4b5563;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-grid .form-control {
    margin-top: 0.3rem;
}

.field-hint {
    color: #6b7280;
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

.readonly-meta-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    margin-top: 0.9rem;
}

.readonly-meta-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
}

.readonly-meta-grid span {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
}

.readonly-meta-grid strong {
    color: #24313a;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wide-field {
    grid-column: 1 / -1;
}

.section-subtitle {
    margin-top: 1.35rem;
}

.button-row {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}

.preview-header-actions {
    margin-top: 0;
}

.done-state-button {
    background: #eef7f3;
    border-color: #b8dfcf;
    color: #0f5132;
    font-weight: 800;
}

.done-state-button:hover,
.done-state-button:focus {
    background: #d9f7e8;
    border-color: #8fc9b1;
    color: #0f5132;
}

.modal-backdrop-custom {
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1100;
}

.confirm-modal {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    max-width: 32rem;
    padding: 1.25rem;
    width: 100%;
}

.confirm-modal h2 {
    margin-bottom: 0.65rem;
}

.confirm-modal p {
    margin: 0;
}

.article-edit-modal {
    display: flex;
    flex-direction: column;
    height: min(54rem, calc(100vh - 2rem));
    max-width: 72rem;
}

.article-edit-modal > .muted {
    margin-bottom: 1rem;
}

.article-image-diagnostics {
    min-height: 0;
    overflow-y: auto;
    margin: 1rem 0;
    font-size: 14px;
}

.article-image-diagnostics pre {
    max-height: 45vh;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 1rem;
    border: 1px solid #dbe2ea;
    border-radius: 0.5rem;
    background: #f8fafc;
    font-size: 14px;
}

.article-edit-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.article-edit-form > * {
    flex-shrink: 0;
}

.article-edit-modal > .button-row {
    flex-shrink: 0;
    padding-top: 1rem;
}

.article-edit-modal > .alert {
    flex-shrink: 0;
    max-height: 8rem;
    overflow-y: auto;
}

.article-image-field {
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0;
}

.article-image-field legend {
    float: none;
    font-size: 0.86rem;
    font-weight: 700;
}

.article-edit-form label {
    color: #4b5563;
    font-size: 0.86rem;
    font-weight: 700;
}

.author-profile-json {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 20rem;
    overflow-y: auto;
}

.article-edit-form .form-control,
.article-edit-form .form-select {
    margin-top: 0.3rem;
}

.article-html-field {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.article-edit-textarea {
    flex: 1;
    font-family: Consolas, "Courier New", monospace;
    min-height: 20rem;
    resize: vertical;
}

.article-meta-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-intent-section {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.article-intent-section legend {
    color: #4b5563;
    float: none;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    width: auto;
}

.article-intent-grid {
    display: grid;
    gap: 0.55rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    max-height: 9rem;
    overflow-y: auto;
    padding: 0.15rem 0.25rem 0.15rem 0;
}

.article-intent-option {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 0.4rem;
    min-width: 0;
}

.article-intent-option input {
    flex: 0 0 auto;
    margin: 0;
}

.article-intent-option > span:not(.article-intent-hint) {
    color: #4b5563;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-intent-hint {
    align-items: center;
    background: #eef0f3;
    border-radius: 999px;
    color: #6b7280;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 800;
    height: 1rem;
    justify-content: center;
    width: 1rem;
}

.article-intent-loading {
    justify-content: flex-start;
}

.site-list {
    display: grid;
    gap: 0.65rem;
}

.site-list-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #24313a;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.8rem;
    text-align: left;
    width: 100%;
}

.site-list-item.active,
.site-list-item:hover {
    border-color: #7ec8e3;
    background: #f0f9fc;
}

.site-list-item span {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.site-list-item small,
.site-list-item em {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: normal;
}

.site-list-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.color-settings-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    margin-bottom: 1.1rem;
}

.color-setting-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1.8rem minmax(0, 1fr);
    padding: 0.55rem;
}

.color-swatch {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: block;
    height: 1.8rem;
    width: 1.8rem;
}

.color-setting-text {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.color-setting-text small {
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.color-setting-item code {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #24313a;
    font-size: 0.82rem;
    grid-column: 2;
    justify-self: start;
    padding: 0.2rem 0.45rem;
}

.site-switcher {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    margin: 0;
    min-width: min(100%, 24rem);
}

.site-switcher span,
.site-switcher-placeholder {
    color: #4b5563;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.site-switcher .form-select {
    border-color: #d1d5db;
    min-width: 15rem;
}

.table-shell {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow-x: auto;
}

.embedded-table {
    border: 0;
    box-shadow: none;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: #6b7280;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.sort-header {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 0.35rem;
    padding: 0;
    text-transform: inherit;
}

.sort-header:hover {
    color: #111827;
}

.sort-indicator {
    display: inline-block;
    min-width: 0.75rem;
    text-align: center;
}

.table td {
    vertical-align: top;
}

.table-title {
    color: #24313a;
    font-weight: 700;
    text-decoration: none;
}

.table-title:hover {
    text-decoration: underline;
}

.table-actions {
    display: inline-flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.small-text {
    font-size: 0.88rem;
    max-width: 18rem;
}

.nowrap {
    white-space: nowrap;
}

.raw-api-cell {
    max-width: 24rem;
    min-width: 10rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.blog-api-image {
    display: block;
    max-height: 100px;
    max-width: 100px;
    object-fit: contain;
}

.date-status-cell {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

.visibility-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 800;
    justify-content: center;
    min-height: 1.4rem;
    min-width: 1.4rem;
    padding: 0 0.45rem;
}

.visibility-badge.visible {
    background: #d9f7e8;
    color: #0f7a42;
}

.visibility-badge.pending {
    background: #fde2e2;
    color: #b42318;
}

.boolean-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    justify-content: center;
    min-height: 1.5rem;
    min-width: 1.5rem;
}

.boolean-badge-yes {
    background: #fff1bf;
    color: #9a6700;
}

.boolean-badge-no {
    background: #fde2e2;
    color: #b42318;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.priority-critical {
    background: #ffe8e8;
    color: #991b1b;
}

.priority-high {
    background: #fde2e2;
    color: #991b1b;
}

.priority-medium {
    background: #f8f9fa;
    color: #212529;
}

.plan-table tbody tr.plan-row-high-priority > * {
    background: #fff3d6;
}

.plan-table tbody tr.plan-row-done > * {
    background: #d9f7e8;
}

.plan-table tbody tr.plan-row-done .table-title {
    color: #0f5132;
}

.prompt-preview {
    background: #f8fafc;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    color: #24313a;
    display: block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.86rem;
    height: 26rem;
    line-height: 1.5;
    padding: 1rem;
    resize: vertical;
    width: 100%;
}

.prompt-preview-shell {
    position: relative;
}

.prompt-preview-busy {
    color: #6b7280;
    opacity: 0.42;
}

.prompt-loading-overlay {
    align-items: center;
    background: rgba(248, 250, 252, 0.76);
    border: 1px solid #d9dee7;
    border-radius: 8px;
    color: #24313a;
    display: flex;
    font-weight: 800;
    gap: 0.75rem;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: absolute;
    text-align: center;
}

.prompt-panel {
    margin-bottom: 1rem;
}

.prompt-panel-heading {
    justify-content: flex-start;
}

.product-picker-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) 14rem;
    margin-bottom: 0.85rem;
}

.product-picker-grid label {
    color: #4b5563;
    font-size: 0.86rem;
    font-weight: 700;
}

.product-picker-grid .form-control {
    margin-top: 0.3rem;
}

.product-picker-top-actions {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.json-copy-actions {
    margin-bottom: 0.65rem;
}

.selected-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.selected-category-chip {
    align-items: center;
    background: #eef7f3;
    border: 1px solid #cce8df;
    border-radius: 999px;
    color: #1f5f55;
    display: inline-flex;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.3rem 0.55rem 0.3rem 0.7rem;
}

.selected-category-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-category-chip strong {
    font-size: 1rem;
    line-height: 1;
}

.category-multiselect {
    border: 1px solid #d9dee7;
    border-radius: 8px;
    display: grid;
    max-height: 18rem;
    overflow: auto;
}

.category-option {
    align-items: flex-start;
    cursor: pointer;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 1rem minmax(0, 1fr);
    margin: 0;
    padding: 0.6rem 0.75rem;
}

.category-option + .category-option {
    border-top: 1px solid #eef0f3;
}

.category-option:hover {
    background: #f8fafc;
}

.category-option input {
    margin-top: 0.2rem;
}

.category-option span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.category-option strong {
    color: #24313a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-option small {
    color: #6b7280;
}

.product-json-preview {
    height: 22rem;
    margin-top: 1rem;
}

.article-html-input {
    min-height: 46rem;
}

.article-prompt-rules {
    height: 14rem;
}

.article-preview-frame {
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    display: block;
    height: 46rem;
    width: 100%;
}

.preview-warning-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.preview-warning-list div {
    background: #fff3d6;
    border: 1px solid #f8d775;
    border-radius: 8px;
    color: #854d0e;
    font-size: 0.86rem;
    padding: 0.55rem 0.7rem;
}

.prompt-list {
    display: grid;
    gap: 1rem;
}

.prompt-item {
    padding: 1rem;
}

.prompt-item-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.prompt-item-header h2 {
    margin: 0;
}

.prompt-item-header span {
    color: #6b7280;
    display: block;
    font-size: 0.84rem;
    margin-top: 0.15rem;
}

.prompt-item summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.prompt-item summary span {
    color: #6b7280;
}

.prompt-item[open] summary {
    margin-bottom: 1rem;
}

.prompt-edit-modal {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 2rem);
    max-width: none;
    width: calc(100vw - 2rem);
}

.prompt-edit-modal .form-grid {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.prompt-edit-modal .wide-field:last-child {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.prompt-edit-textarea {
    flex: 1;
    font-family: Consolas, "Courier New", monospace;
    min-height: 0;
    resize: none;
}

.rule-list {
    display: grid;
    gap: 0.75rem;
}

.rule-item {
    display: grid;
    gap: 1rem;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    padding: 1rem;
}

.rule-item > span {
    align-items: center;
    background: #eef7f3;
    border-radius: 999px;
    color: #256d65;
    display: flex;
    font-weight: 700;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.rule-item h2 {
    margin-bottom: 0.25rem;
}

.rule-item p {
    margin: 0;
}

.setup-panel pre {
    background: #111827;
    border-radius: 8px;
    color: #f9fafb;
    overflow-x: auto;
    padding: 0.85rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.social-tabs {
    display: flex;
    gap: .6rem;
    margin-bottom: 1rem;
}

.social-text, .social-strategy dd {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.social-strategy summary, .social-preview-channel summary {
    cursor: pointer;
    font-weight: 600;
    padding: .65rem 0;
}

.social-request-select {
    display: block;
    margin-bottom: 1rem;
}

.social-preview-channel {
    margin-bottom: 1.25rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 960px) {
    .plan-detail-overview-grid {
        grid-template-columns: 1fr;
    }

    .plan-detail-overview-section:nth-child(2) {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        padding-top: 1.5rem;
    }

    .summary-grid,
    .work-grid,
    .pillar-grid,
    .form-grid,
    .toolbar {
        grid-template-columns: 1fr;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .plan-detail-overview .definition-list {
        grid-template-columns: 1fr;
    }

    .article-meta-grid {
        grid-template-columns: 1fr;
    }

    .definition-list {
        grid-template-columns: 1fr;
    }
}
