* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
}

body {
    min-height: 100vh;
    padding: 10px;
    font-family: Arial, sans-serif;
    background-color: #ecf0f1;
    color: #2c3e50;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.aviso-shell {
    width: min(1200px, calc(100vw - 20px));
    margin: 0 auto;
}

.aviso-reveal {
    opacity: 1;
    transform: none;
    animation: none;
}

.aviso-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 10px 18px;
    background-color: #2c3e50;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.aviso-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aviso-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #3498db;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.aviso-brand p,
.aviso-brand span {
    margin: 0;
}

.aviso-brand p {
    font-size: 0.9rem;
    font-weight: 700;
}

.aviso-brand span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.82);
}

.aviso-topbar-actions,
.aviso-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aviso-workspace {
    margin-top: 10px;
    padding: 10px;
    background-color: #ecf0f1;
    border: 3px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.aviso-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 40px;
    padding: 8px 14px;
    margin-bottom: 10px;
    background-color: #f4f4f9;
    border: 1px solid #d7dee5;
    border-radius: 6px;
}

.aviso-toolbar p,
.aviso-toolbar span {
    margin: 0;
    font-size: 0.9rem;
}

.aviso-toolbar span {
    font-weight: 700;
    color: #34495e;
}

.aviso-alert,
.aviso-hero-copy,
.aviso-summary-card,
.aviso-form-card,
.aviso-table-card {
    background-color: #f4f4f9;
    border: 1px solid #d3dae1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.aviso-alert {
    margin-bottom: 10px;
    padding: 12px 14px;
}

.aviso-alert-success {
    color: #1e6a3c;
    background-color: #edf9f0;
    border-color: #bfe2c8;
}

.aviso-alert-error {
    color: #8f2c2c;
    background-color: #fff1f1;
    border-color: #f1c4c4;
}

.aviso-error-list {
    margin: 8px 0 0 18px;
    padding: 0;
}

.aviso-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 10px;
}

.aviso-hero-copy,
.aviso-summary-card,
.aviso-form-card,
.aviso-table-card {
    padding: 16px;
}

.aviso-eyebrow,
.aviso-status-pill,
.aviso-field span,
.aviso-table th,
.aviso-criteria-pill small,
.aviso-row-status {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aviso-eyebrow {
    margin: 0 0 8px;
    font-size: 0.73rem;
    font-weight: 700;
    color: #3498db;
}

.aviso-hero-copy h1,
.aviso-section-heading h2,
.aviso-empty-state h3 {
    margin: 0;
    color: #2c3e50;
    line-height: 1.2;
}

.aviso-hero-copy h1 {
    font-size: 1.9rem;
}

.aviso-section-heading h2 {
    font-size: 1.5rem;
}

.aviso-empty-state h3 {
    font-size: 1.3rem;
}

.aviso-hero-text,
.aviso-section-copy,
.aviso-summary-note p,
.aviso-footnote,
.aviso-empty-state p,
.aviso-table-message {
    color: #5d6d7e;
}

.aviso-hero-text {
    margin: 12px 0 16px;
    line-height: 1.6;
}

.aviso-primary-link,
.aviso-ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.aviso-primary-link {
    border: 1px solid #2980b9;
    background-color: #3498db;
    color: #ffffff;
    font-weight: 700;
}

.aviso-ghost-link {
    border: 1px solid #c5ced7;
    background-color: #ffffff;
    color: #2c3e50;
}

.aviso-primary-link:hover,
.aviso-ghost-link:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.aviso-trust-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 12px 0 0;
    margin: 16px 0 0;
    border-top: 1px solid #d8dee5;
}

.aviso-trust-strip li {
    padding: 6px 10px;
    border-radius: 999px;
    background-color: #ffffff;
    border: 1px solid #d7dee5;
    color: #5d6d7e;
    font-size: 0.82rem;
}

.aviso-summary-head,
.aviso-section-heading,
.aviso-form-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.aviso-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 7px 10px;
    border-radius: 999px;
    background-color: #eaf5fd;
    color: #2471a3;
    font-size: 0.72rem;
    font-weight: 700;
}

.aviso-scoreboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.aviso-scoreboard article {
    padding: 12px;
    border: 1px solid #d7dee5;
    border-radius: 6px;
    background-color: #ffffff;
}

.aviso-scoreboard span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #5d6d7e;
}

.aviso-scoreboard strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    color: #2c3e50;
}

.aviso-scoreboard small {
    display: block;
    margin-top: 8px;
    color: #5d6d7e;
    font-size: 0.8rem;
}

.aviso-summary-note {
    padding: 12px;
    border: 1px solid #d7dee5;
    border-radius: 6px;
    background-color: #ffffff;
}

.aviso-summary-note p {
    margin: 0;
    line-height: 1.55;
}

.aviso-form-card,
.aviso-table-card {
    margin-top: 10px;
}

.aviso-section-copy {
    margin: 2px 0 0;
    max-width: 34ch;
    line-height: 1.5;
}

.aviso-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.aviso-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aviso-field span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #34495e;
}

.aviso-field input,
.aviso-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c7d1db;
    border-radius: 6px;
    background-color: #ffffff;
    color: #2c3e50;
}

.aviso-field input {
    max-width: 30ch;
}

.aviso-field input:focus,
.aviso-field textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.12);
}

.aviso-field-full {
    grid-column: 1 / -1;
}

.aviso-field textarea {
    min-height: 120px;
    max-width: none;
    resize: vertical;
    line-height: 1.5;
}

.aviso-form-footer {
    margin-top: 14px;
    align-items: center;
}

.aviso-footnote {
    margin: 0;
    line-height: 1.5;
}

.aviso-submit-button {
    min-width: 170px;
}

.aviso-table-wrap {
    margin-top: 14px;
    max-height: 360px;
    overflow: auto;
    border: 1px solid #cfd7df;
    border-radius: 6px;
    background-color: #ffffff;
}

.aviso-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.aviso-table th,
.aviso-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e3e8ed;
}

.aviso-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #ecf3f9;
    color: #34495e;
    font-size: 0.72rem;
    font-weight: 700;
}

.aviso-table tbody tr:nth-child(even) {
    background-color: #fafbfd;
}

.aviso-table tbody tr:hover {
    background-color: #eef6fc;
}

.aviso-table-id,
.aviso-table-date {
    white-space: nowrap;
    color: #34495e;
    font-weight: 700;
}

.aviso-table-action-head,
.aviso-table-action-cell {
    width: 42px;
    min-width: 42px;
    text-align: center;
    white-space: nowrap;
}

.aviso-table-action-head .aviso-row-delete-form,
.aviso-table-action-cell .aviso-row-delete-form {
    display: inline-flex;
    justify-content: center;
}

.aviso-table-message {
    min-width: 300px;
    line-height: 1.5;
}

.aviso-criteria-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 220px;
}

.aviso-criteria-pill,
.aviso-criteria-empty,
.aviso-row-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.aviso-criteria-pill {
    color: #2c3e50;
    background-color: #eef6fc;
    border: 1px solid #d4e7f5;
}

.aviso-criteria-pill small {
    color: #5d6d7e;
    font-size: 0.62rem;
}

.aviso-criteria-empty {
    color: #6c7a89;
    background-color: #ffffff;
    border: 1px dashed #c7d1db;
}

.aviso-row-status-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.aviso-row-status {
    min-width: 90px;
    justify-content: center;
    font-size: 0.7rem;
}

.aviso-row-status.is-active {
    color: #1e6a3c;
    background-color: #edf9f0;
    border: 1px solid #bfe2c8;
}

.aviso-row-status.is-snoozed {
    color: #9a5c00;
    background-color: #fff5e8;
    border: 1px solid #f2c98c;
}

.aviso-row-status.is-running {
    color: #b42318;
    background-color: #fff1f1;
    border: 1px solid #f0b8b8;
}

.aviso-row-status.is-revision {
    color: #b42318;
    background-color: #fff1f1;
    border: 1px solid #f0b8b8;
}

.aviso-row-status.is-inactive {
    color: #8f2c2c;
    background-color: #fff1f1;
    border: 1px solid #f1c4c4;
}

.aviso-row-status-detail {
    font-size: 0.74rem;
    font-weight: 700;
    color: #5d6d7e;
}

.aviso-status-with-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.aviso-row-reminder-btn,
.aviso-row-delete-form {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.aviso-row-reminder-btn,
.aviso-row-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #e0b4b4;
    background: #fff5f5;
    color: #c0392b;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.aviso-row-reminder-btn {
    border-color: #b8d2ea;
    background: #eef6fc;
    color: #2f6595;
}

.aviso-row-reminder-btn svg {
    width: 15px;
    height: 15px;
}

.aviso-row-reminder-btn:hover {
    background: #2f6595;
    color: #ffffff;
    border-color: #2f6595;
}

.aviso-row-delete-btn:hover {
    background: #c0392b;
    color: #ffffff;
    border-color: #c0392b;
}

.aviso-delete-all-btn {
    background: #fff7f7;
}

.aviso-empty-state {
    margin-top: 14px;
    padding: 24px;
    text-align: center;
    border: 1px dashed #c7d1db;
    border-radius: 6px;
    background-color: #ffffff;
}

.aviso-empty-state p {
    max-width: 40ch;
    margin: 10px auto 0;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .aviso-hero,
    .aviso-form-grid,
    .aviso-scoreboard {
        grid-template-columns: 1fr;
    }

    .aviso-summary-head,
    .aviso-section-heading,
    .aviso-form-footer,
    .aviso-toolbar,
    .aviso-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .aviso-section-copy {
        max-width: none;
    }
}

@media (max-width: 640px) {
    body {
        padding: 6px;
    }

    .aviso-shell {
        width: min(100%, calc(100vw - 12px));
    }

    .aviso-topbar,
    .aviso-workspace,
    .aviso-hero-copy,
    .aviso-summary-card,
    .aviso-form-card,
    .aviso-table-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    .aviso-primary-link,
    .aviso-ghost-link {
        width: 100%;
    }

    .aviso-criteria-list {
        min-width: 0;
    }
}
