.sm-hero {
    padding: 90px 0 60px;
    background:
        radial-gradient(circle at 18% 20%, rgba(70, 110, 255, .22), transparent 34%),
        radial-gradient(circle at 82% 0%, rgba(0, 200, 180, .18), transparent 30%),
        #0b1220;
    color: #f7f9ff;
}

.sm-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #b9c7ff;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sm-hero h2 {
    max-width: 900px;
    margin: 0 0 22px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -.03em;
}

.sm-hero-text {
    max-width: 760px;
    margin: 0 0 32px;
    color: #c5cee4;
    font-size: 1.12rem;
    line-height: 1.7;
}

.sm-hero-note {
    margin-top: 22px;
    color: #8f9bb5;
    font-size: .92rem;
}

.sm-hero .sm-button {
    background: #6d8cff;
    color: #081020;
}

.sm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    background: #16305f;
    color: #fff;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.sm-button:hover {
    transform: translateY(-1px);
    opacity: .94;
}

.sm-button:disabled {
    cursor: wait;
    opacity: .55;
}

.sm-button-ghost {
    border: 1px solid #cbd5e8;
    background: transparent;
    color: #16305f;
}

.sm-button-small {
    padding: 8px 12px;
    font-size: .85rem;
}

.sm-button-danger {
    background: #b42318;
}

.sm-create,
.sm-how,
.sm-security,
.sm-limits,
.sm-legal-links,
.sm-view,
.sm-moderation,
.sm-legal {
    padding: 64px 0;
    background: #fff;
}

.sm-how,
.sm-limits,
.sm-legal-links {
    background: #f3f6fc;
}

.sm-create h2,
.sm-how h2,
.sm-security h2,
.sm-limits h2,
.sm-legal-links h2,
.sm-view h2,
.sm-moderation h2,
.sm-legal h2 {
    margin: 0 0 12px;
    color: #0c1830;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -.02em;
}

.sm-section-sub {
    max-width: 760px;
    margin: 0 0 30px;
    color: #59657c;
    line-height: 1.65;
}

.sm-form {
    max-width: 820px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid #dfe6f3;
    border-radius: 18px;
    background: #fbfcff;
    box-shadow: 0 18px 50px rgba(16, 38, 84, .06);
}

.sm-form label,
.sm-passphrase label {
    display: block;
    margin-bottom: 8px;
    color: #1b2a46;
    font-weight: 650;
}

.sm-form input[type="text"],
.sm-form input[type="password"],
.sm-form textarea,
.sm-form select,
.sm-passphrase input,
.sm-mod-login input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e8;
    border-radius: 10px;
    background: #fff;
    color: #0c1830;
    font: inherit;
}

.sm-form textarea {
    resize: vertical;
    min-height: 150px;
}

.sm-form input:focus,
.sm-form textarea:focus,
.sm-form select:focus,
.sm-passphrase input:focus,
.sm-mod-login input:focus {
    outline: 2px solid rgba(45, 91, 255, .35);
    outline-offset: 1px;
}

.sm-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    border-bottom: 1px solid #dfe6f3;
}

.sm-tabs button {
    padding: 10px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #59657c;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.sm-tabs button[aria-selected="true"] {
    border-bottom-color: #2d5bff;
    color: #16305f;
}

.sm-panel,
.sm-field {
    margin-bottom: 20px;
}

.sm-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sm-hint {
    margin: 8px 0 0;
    color: #6b778d;
    font-size: .9rem;
    line-height: 1.55;
}

.sm-dropzone {
    position: relative;
    display: block;
    padding: 24px 18px;
    border: 2px dashed #cbd5e8;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}

.sm-dropzone.is-over {
    border-color: #2d5bff;
    background: #f3f6ff;
}

.sm-drop-title {
    display: block;
    margin-bottom: 4px;
    color: #16305f;
    font-weight: 650;
}

.sm-dropzone .sm-hint {
    margin: 0;
}

.sm-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sm-file-list {
    margin: 8px 0 0;
}

.sm-file-list p {
    margin: 0;
}

.sm-file-list ul {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.sm-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    background: #fff;
}

.sm-file-list li span {
    overflow-wrap: anywhere;
}

.sm-file-remove {
    flex: 0 0 auto;
}

.sm-error {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid #f3b6b0;
    border-radius: 10px;
    background: #fff1f0;
    color: #8f1d14;
}

.sm-warning {
    padding: 12px 14px;
    border-left: 3px solid #d97706;
    background: #fffbeb;
    color: #7c4a03;
}

.sm-working {
    margin: 14px 0 0;
    color: #2d5bff;
    font-weight: 600;
}

.sm-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sm-result {
    max-width: 820px;
    margin: 26px auto 0;
    padding: 26px;
    border: 1px solid #b9e6d4;
    border-radius: 18px;
    background: #f1fcf7;
}

.sm-result h3,
.sm-result h4 {
    margin: 0 0 10px;
    color: #0b3b2b;
}

.sm-result h4 {
    margin-top: 22px;
}

.sm-result-link {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sm-email-to input {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.sm-result input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #b9e6d4;
    border-radius: 10px;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.sm-card {
    padding: 22px;
    border: 1px solid #dfe6f3;
    border-radius: 16px;
    background: #fff;
}

.sm-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e8eeff;
    color: #16305f;
    font-weight: 750;
}

.sm-card h3 {
    margin: 0 0 8px;
    color: #0c1830;
    font-size: 1.05rem;
}

.sm-card p {
    margin: 0;
    color: #59657c;
    line-height: 1.6;
}

.sm-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.sm-split p {
    color: #59657c;
    line-height: 1.7;
}

.sm-check-list,
.sm-limit-list,
.sm-legal-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-check-list li,
.sm-limit-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 28px;
    color: #263550;
    line-height: 1.55;
}

.sm-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 14px;
    height: 8px;
    border-left: 2px solid #0f9d76;
    border-bottom: 2px solid #0f9d76;
    transform: rotate(-45deg);
}

.sm-limit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.sm-limit-list li {
    margin: 0;
    padding: 14px 16px 14px 40px;
    border: 1px solid #dfe6f3;
    border-radius: 12px;
    background: #fff;
}

.sm-limit-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #2d5bff;
}

.sm-limit-list li {
    position: relative;
}

.sm-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sm-legal-nav a {
    padding: 10px 14px;
    border: 1px solid #dfe6f3;
    border-radius: 10px;
    color: #16305f;
    text-decoration: none;
}

.sm-legal-nav a:hover {
    border-color: #2d5bff;
}

.sm-legal .container,
.sm-view .container,
.sm-moderation .container {
    max-width: 900px;
}

.sm-legal h3 {
    margin-top: 32px;
    color: #0c1830;
}

.sm-legal p,
.sm-legal li {
    color: #3c4a63;
    line-height: 1.7;
}

.sm-legal a,
.sm-view a,
.sm-moderation a {
    color: #2d5bff;
}

.sm-legal-updated {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f3f6fc;
    font-size: .9rem;
}

.sm-view-status {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f3f6fc;
    color: #263550;
}

.sm-view-content {
    margin-top: 22px;
}

.sm-view-meta {
    margin-bottom: 18px;
    color: #59657c;
    font-size: .92rem;
}

.sm-view pre {
    max-height: 460px;
    overflow: auto;
    padding: 18px;
    border: 1px solid #dfe6f3;
    border-radius: 12px;
    background: #0c1830;
    color: #e8eeff;
    white-space: pre-wrap;
    word-break: break-word;
}

.sm-passphrase {
    max-width: 560px;
    margin: 22px auto 0;
    padding: 22px;
    border: 1px solid #dfe6f3;
    border-radius: 16px;
    background: #fbfcff;
}

.sm-view-files ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-view-files li {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #dfe6f3;
    border-radius: 12px;
    background: #fff;
}

.sm-view-files li > span:first-child {
    display: block;
    margin-bottom: 8px;
    color: #263550;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}

.sm-view-files li > span:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sm-mod-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 22px 0 30px;
}

.sm-mod-cards .sm-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #59657c;
}

.sm-mod-cards strong {
    color: #0c1830;
    font-size: 1.8rem;
}

.sm-table-wrap {
    overflow-x: auto;
    border: 1px solid #dfe6f3;
    border-radius: 12px;
}

.sm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.sm-table th,
.sm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f9;
    text-align: left;
    white-space: nowrap;
}

.sm-table th {
    background: #f3f6fc;
    color: #263550;
}

.sm-table code {
    font-size: .82rem;
}

.sm-mod-login {
    max-width: 420px;
}

.sm-captcha {
    margin-bottom: 18px;
}

@media (max-width: 720px) {
    .sm-row,
    .sm-split {
        grid-template-columns: 1fr;
    }

    .sm-hero {
        padding-top: 60px;
    }

    .sm-form {
        padding: 20px;
    }

    .sm-result-link {
        flex-direction: column;
    }
}
