* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 8%, rgba(100, 128, 124, 0.18), transparent 24rem),
        radial-gradient(circle at 86% 18%, rgba(31, 47, 45, 0.58), transparent 30rem),
        radial-gradient(circle at 50% 92%, rgba(72, 96, 92, 0.16), transparent 34rem),
        linear-gradient(135deg, #2d3836 0%, #202b2a 48%, #151f1e 100%);
    color: #252a26;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: min(1360px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 30px;
}

.top-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.top-bar h1 {
    margin: 0;
    color: #edf7f3;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: 0;
}

.top-bar p {
    margin: 3px 0 0;
    color: rgba(237, 247, 243, 0.68);
    font-size: 15px;
}

.compact-header {
    align-items: center;
}

.top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 8px;
    background: rgba(247, 246, 240, 0.74);
    box-shadow: 0 18px 46px rgba(44, 50, 45, 0.18);
    backdrop-filter: blur(12px);
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(37, 42, 38, 0.1);
    text-align: left;
    vertical-align: middle;
}

.data-table.is-compact {
    font-size: 13px;
}

.data-table.is-compact th,
.data-table.is-compact td {
    padding: 7px 10px;
}

.data-table th {
    background: rgba(255, 255, 255, 0.42);
    color: rgba(37, 42, 38, 0.72);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.code-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.code-pill {
    padding: 0 8px;
    background: rgba(37, 42, 38, 0.08);
    color: #252a26;
    letter-spacing: 0.05em;
}

.status-pill {
    min-width: 62px;
    padding: 0 8px;
    background: #6ca5a0;
    color: #062d2b;
}

.status-pill.is-off {
    background: #d96262;
    color: #fff;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.link-button,
.primary-button,
.secondary-button,
.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.primary-button {
    border: 0;
    padding: 0 16px;
    background: #63d7cf;
    color: #062d2b;
    box-shadow: 0 16px 34px rgba(9, 21, 20, 0.24), 0 0 0 1px rgba(218, 255, 250, 0.22) inset;
}

.primary-button:hover {
    background: #7be2dc;
    transform: translateY(-1px);
}

.secondary-button,
.link-button,
.danger-link {
    border: 1px solid rgba(37, 42, 38, 0.14);
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.45);
    color: rgba(37, 42, 38, 0.78);
    font-size: 13px;
}

.data-table .link-button,
.data-table .danger-link {
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
}

.search-panel {
    display: flex;
    align-items: end;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 8px;
    background: rgba(247, 246, 240, 0.24);
    backdrop-filter: blur(10px);
}

.search-panel input[type="search"] {
    height: 34px;
    box-shadow: none;
}

.search-field {
    display: grid;
    flex: 1;
    gap: 5px;
}

.search-field span {
    color: rgba(237, 247, 243, 0.74);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 8px;
    color: rgba(237, 247, 243, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.listing-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(218, 255, 250, 0.14);
    border-radius: 8px;
    background: rgba(224, 244, 239, 0.12);
}

.action-message {
    margin: 0 0 8px;
    padding: 9px 12px;
    border: 1px solid rgba(99, 215, 207, 0.34);
    border-radius: 8px;
    background: rgba(99, 215, 207, 0.2);
    color: #d9fffb;
    font-size: 13px;
    font-weight: 800;
}

.action-message.is-error {
    border-color: rgba(217, 98, 98, 0.36);
    background: rgba(217, 98, 98, 0.18);
    color: #ffe4e4;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid rgba(218, 255, 250, 0.16);
    background: rgba(224, 244, 239, 0.18);
    color: rgba(237, 247, 243, 0.82);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.pagination span {
    min-width: 24px;
    border-color: transparent;
    background: transparent;
}

.pagination a.is-active {
    border-color: rgba(99, 215, 207, 0.52);
    background: #63d7cf;
    color: #062d2b;
}

.secondary-button:hover,
.link-button:hover {
    border-color: rgba(30, 105, 101, 0.35);
    background: rgba(99, 215, 207, 0.26);
    color: #062d2b;
}

.danger-link:hover {
    border-color: rgba(217, 98, 98, 0.4);
    background: rgba(217, 98, 98, 0.16);
    color: #8b2525;
}

.form-panel {
    width: min(560px, 100%);
    padding: 22px;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field span {
    color: rgba(37, 42, 38, 0.76);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.field-row {
    display: flex;
    gap: 8px;
}

.field-row input {
    min-width: 0;
    flex: 1;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"] {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(37, 42, 38, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    color: #252a26;
    padding: 0 13px;
    outline: none;
    box-shadow: 0 10px 26px rgba(49, 55, 50, 0.08);
}

input:focus {
    border-color: rgba(30, 105, 101, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 215, 207, 0.22);
}

.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(99, 215, 207, 0.22);
    color: #062d2b;
    font-weight: 700;
}

.notice.is-error {
    background: rgba(217, 98, 98, 0.16);
    color: #8b2525;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(420px, 100%);
}

.login-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 8px;
    background: rgba(247, 246, 240, 0.78);
    box-shadow: 0 24px 60px rgba(9, 21, 20, 0.32);
    backdrop-filter: blur(12px);
}

.login-header {
    margin-bottom: 22px;
}

.login-header p {
    margin: 0 0 6px;
    color: rgba(37, 42, 38, 0.66);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.login-header h1 {
    margin: 0;
    color: #252a26;
    font-size: 32px;
    letter-spacing: 0;
}

.empty-state {
    padding: 34px;
    color: rgba(37, 42, 38, 0.68);
    text-align: center;
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 20px, 1360px);
        padding-top: 14px;
    }

    .top-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .top-actions,
    .search-panel,
    .field-row {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}
