* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #1d2939;
    font-family: "Inter var", Arial, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    background: #f9fafb;
}

.saito-admin-body {
    color: #2f3d4a;
    background: #f3f5fa;
}

:root {
    --bs-font-sans-serif: "Inter var", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

a {
    color: #1b5eaa;
    text-decoration: none;
}

.site-header,
.site-footer {
    background: #ffffff;
    border-bottom: 1px solid #dde1e6;
}

.site-footer {
    border-top: 1px solid #dde1e6;
    border-bottom: 0;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 24px;
}

.brand {
    color: #202124;
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.page-main {
    padding: 48px 0;
}

.panel {
    overflow-x: auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.inner-panel {
    margin: 20px 0;
    background: #f9fafb;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #dbe0e5;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.06);
}

.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.list-item {
    padding: 16px 0;
    border-bottom: 1px solid #dde1e6;
}

.rich-content img {
    max-width: 100%;
    height: auto;
}

.quill-editor {
    min-height: 320px;
    background: #ffffff;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
    border-color: #c9d0d8;
}

.ql-container {
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 16px;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px 1fr;
    background: #f9fafb;
}

.admin-sidebar {
    padding: 28px 20px;
    color: #344054;
    background: #ffffff;
    border-right: 1px solid #e4e7ec;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 28px;
}

.admin-brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: #465fff;
    border-radius: 12px;
    place-items: center;
    font-weight: 700;
}

.admin-brand strong {
    display: block;
    color: #101828;
    font-size: 18px;
    line-height: 1.2;
}

.admin-brand small {
    display: block;
    color: #667085;
    font-size: 12px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-menu-label {
    margin: 18px 8px 8px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    color: #344054;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.admin-menu a:hover,
.admin-menu a.is-active {
    color: #465fff;
    background: #ecf3ff;
}

.admin-menu-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    color: #667085;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    place-items: center;
    font-size: 0;
}

.admin-menu a:hover .admin-menu-icon,
.admin-menu a.is-active .admin-menu-icon {
    color: #465fff;
    background: #ffffff;
}

.admin-main {
    padding: 0 32px 40px;
}

@media (min-width: 761px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 290px;
        overflow-y: auto;
    }

    .admin-main {
        min-height: 100vh;
        margin-left: 290px;
    }
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
    margin: 0 -32px 28px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e4e7ec;
    backdrop-filter: blur(12px);
}

.admin-topbar h2 {
    margin: 0;
    color: #101828;
    font-size: 22px;
    line-height: 1.25;
}

.admin-page-kicker {
    margin: 0 0 2px;
    color: #667085;
    font-size: 13px;
}

.admin-userbar {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
}

.admin-userbar span {
    color: #101828;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.admin-userbar small {
    color: #667085;
    font-size: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    color: #ffffff;
    cursor: pointer;
    background: #465fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    font-weight: 600;
}

.button:hover {
    background: #3641f5;
}

.input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: #101828;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
}

.input:focus {
    border-color: #465fff;
    box-shadow: 0 0 0 4px rgba(70, 95, 255, 0.12);
}

.input:disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    overflow: hidden;
    background: #ffffff;
}

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

.table th {
    color: #475467;
    background: #f9fafb;
    font-size: 12px;
    font-weight: 700;
}

.table td {
    color: #344054;
    font-size: 14px;
}

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

.actions form {
    display: inline;
}

.actions button {
    padding: 0;
    color: #1b5eaa;
    cursor: pointer;
    background: transparent;
    border: 0;
    font: inherit;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background: #f4f5fa;
}

.auth-page::before,
.auth-page::after {
    position: absolute;
    z-index: 0;
    content: "";
    pointer-events: none;
}

.auth-page::before {
    top: 25%;
    left: calc(50% + 145px);
    width: 245px;
    height: 315px;
    background-image: radial-gradient(#c6c3ff 3px, transparent 3px);
    background-size: 48px 48px;
    opacity: 0.9;
}

.auth-page::after {
    bottom: 11%;
    left: calc(50% - 410px);
    width: 355px;
    height: 355px;
    background:
        radial-gradient(#c6c3ff 4px, transparent 4px) 28px 54px / 48px 48px,
        linear-gradient(#ecedff, #ecedff) left bottom / 100% 280px no-repeat;
    border-radius: 18px;
    opacity: 0.72;
}

.auth-box {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 44px 38px 46px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(34, 47, 72, 0.08);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.auth-box .saito-brand-mark {
    width: 44px;
    height: 38px;
}

.auth-box .saito-brand-mark::before,
.auth-box .saito-brand-mark span {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

.auth-box .saito-brand-mark::before {
    top: 6px;
}

.auth-box .saito-brand-mark span {
    left: 8px;
}

.auth-box .saito-brand-text {
    color: #2f3d4a;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 1px;
}

.auth-box > h1 {
    margin: 0 0 44px;
    color: #718296;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.auth-box .form-row {
    margin-bottom: 22px;
}

.auth-box .form-row label {
    display: block;
    margin-bottom: 10px;
    color: #2f3d4a;
    font-size: 16px;
    font-weight: 600;
}

.auth-box .form-control {
    min-height: 48px;
    padding: 11px 16px;
    color: #42505f;
    background: #fbfcfe;
    border: 1px solid #d6dde5;
    border-radius: 8px;
    font-size: 16px;
}

.auth-box .form-control::placeholder {
    color: #c0cad4;
}

.auth-box .btn-primary {
    min-height: 50px;
    margin-top: 2px;
    background: #006bf4;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 107, 244, 0.35);
    font-size: 17px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .auth-page {
        padding: 18px;
    }

    .auth-page::before {
        top: 14%;
        left: 54%;
        width: 180px;
        height: 240px;
        background-size: 36px 36px;
    }

    .auth-page::after {
        bottom: 7%;
        left: -36px;
        width: 220px;
        height: 260px;
        background:
            radial-gradient(#c6c3ff 3px, transparent 3px) 22px 42px / 36px 36px,
            linear-gradient(#ecedff, #ecedff) left bottom / 100% 210px no-repeat;
    }

    .auth-box {
        padding: 34px 24px 36px;
    }

    .auth-brand {
        margin-bottom: 34px;
    }

    .auth-box .saito-brand-mark {
        width: 38px;
        height: 34px;
    }

    .auth-box .saito-brand-mark::before,
    .auth-box .saito-brand-mark span {
        width: 30px;
        height: 30px;
    }

    .auth-box .saito-brand-text {
        font-size: 34px;
    }

    .auth-box > h1 {
        margin-bottom: 34px;
        font-size: 24px;
    }

    .auth-box .form-row label {
        font-size: 15px;
    }

    .auth-box .form-control {
        min-height: 46px;
        font-size: 15px;
    }

    .auth-box .btn-primary {
        min-height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    .site-nav,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        border-right: 0;
        border-bottom: 1px solid #e4e7ec;
    }

    .admin-main {
        margin-left: 0;
        padding: 0 16px 32px;
    }

    .admin-topbar {
        position: static;
        margin: 0 -16px 24px;
        padding: 16px;
    }
}

.admin-logo-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    color: #ffffff;
    background: #1677ff;
    border-radius: 10px;
    place-items: center;
    font-weight: 700;
}

.admin-logo-text {
    color: #1d2630;
    font-size: 18px;
    font-weight: 700;
    vertical-align: middle;
}

.admin-avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    color: #1677ff;
    background: #eaf4ff;
    border-radius: 50%;
    place-items: center;
    font-weight: 700;
}

.pc-container .panel {
    margin-bottom: 24px;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e7eaee;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(27, 46, 94, 0.04);
}

.pc-container .panel h3 {
    margin: -24px -24px 28px;
    padding: 24px;
    color: #1d2630;
    border-bottom: 1px solid #dbe0e5;
    font-size: 26px;
    font-weight: 700;
}

.pc-container .button {
    min-height: 40px;
    padding: 9px 16px;
    color: #ffffff;
    background: #1677ff;
    border-radius: 8px;
}

.pc-container .button:hover {
    color: #ffffff;
    background: #0958d9;
}

.pc-container .input {
    min-height: 42px;
    color: #1d2630;
    background: #ffffff;
    border: 1px solid #dbe0e5;
    border-radius: 8px;
}

.pc-container .input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.pc-container .table {
    min-width: 720px;
    margin-bottom: 0;
}

.pc-container .actions button {
    color: #1677ff;
}

.pc-container textarea.input {
    min-height: 110px;
}

@media (min-width: 992px) {
    .pc-container .panel form {
        padding-top: 24px;
    }

    .pc-container .form-row {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 24px 36px;
        align-items: center;
        margin-bottom: 34px;
    }

    .pc-container .form-row label {
        margin-bottom: 0;
        color: #263442;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.35;
    }

    .pc-container .form-row .input,
    .pc-container .form-row .form-control,
    .pc-container .form-row select {
        width: 100%;
    }

    .pc-container .form-row textarea,
    .pc-container .form-row .quill-editor,
    .pc-container .form-row .ql-toolbar,
    .pc-container .form-row .ql-container,
    .pc-container .form-row p {
        grid-column: 2;
    }

    .pc-container .form-row textarea.input {
        min-height: 140px;
    }
}

.pc-container .admin-file-input {
    min-height: 44px;
    padding: 9px 12px;
    color: #5b6b79;
    background-color: #ffffff;
    border: 1px solid #dbe0e5;
    border-radius: 8px;
}

.pc-container .admin-file-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.pc-container .admin-file-input::file-selector-button {
    margin: -9px 12px -9px -12px;
    padding: 9px 14px;
    color: #1d2630;
    background: #f8f9fa;
    border: 0;
    border-right: 1px solid #dbe0e5;
}

.pc-container .admin-file-input:hover::file-selector-button {
    background: #eef2f6;
}

.pc-container .admin-date-input {
    min-height: 42px;
    color: #1d2630;
    background-color: #ffffff;
    border: 1px solid #dbe0e5;
    border-radius: 8px;
}

.pc-container .admin-date-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.pc-container .ql-toolbar.ql-snow {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.pc-container .ql-container.ql-snow {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.saito-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 344px minmax(0, 1fr);
    background: #f3f5fa;
}

.saito-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 8px 0 24px rgba(28, 43, 64, 0.04);
}

.saito-brand {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 10px;
    align-items: center;
    margin: 0 22px 34px;
    color: #2f3d4a;
}

.saito-brand:hover {
    color: #2f3d4a;
}

.saito-brand-mark {
    position: relative;
    width: 46px;
    height: 40px;
}

.saito-brand-mark::before,
.saito-brand-mark span {
    position: absolute;
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 6px;
    transform: skew(-12deg);
}

.saito-brand-mark::before {
    top: 6px;
    left: 0;
    background: #20d4df;
}

.saito-brand-mark span {
    top: 0;
    left: 8px;
    background: #22a7f2;
}

.saito-brand-text {
    color: #2f3d4a;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}

.saito-brand strong {
    grid-column: 1 / -1;
    display: block;
    margin-top: 16px;
    color: #2f3d4a;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.15;
}

.saito-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.saito-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 58px;
    padding: 0 22px;
    color: #344451;
    border-radius: 7px;
    font-size: 20px;
    font-weight: 500;
}

.saito-nav a i {
    width: 25px;
    color: #344451;
    font-size: 25px;
}

.saito-nav a.active {
    color: #006bf4;
    background: #d9eaff;
    font-weight: 700;
}

.saito-nav a.active i {
    color: #006bf4;
}

.saito-nav a.active::after {
    position: absolute;
    top: 0;
    right: -18px;
    width: 6px;
    height: 100%;
    content: "";
    background: #006bf4;
    border-radius: 5px 0 0 5px;
}

.saito-nav p {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 34px 0 20px;
    color: #a7b1bc;
    font-size: 18px;
}

.saito-nav p span {
    width: 22px;
    height: 2px;
    background: #a7b1bc;
}

.saito-main {
    min-width: 0;
    padding: 14px 28px 64px 34px;
}

.saito-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    margin-bottom: 34px;
    padding: 0 38px;
    background: #ffffff;
    border-radius: 7px;
    box-shadow: 0 8px 22px rgba(35, 48, 76, 0.12);
}

.saito-topbar h1 {
    margin: 0;
    color: #006bf4;
    font-size: 30px;
    font-weight: 800;
}

.saito-top-actions {
    display: flex;
    align-items: center;
    gap: 42px;
}

.saito-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 168px;
    min-height: 54px;
    color: #006bf4;
    border: 2px solid #006bf4;
    border-radius: 27px;
    font-size: 20px;
    font-weight: 700;
}

.saito-preview-button:hover {
    color: #006bf4;
}

.saito-preview-button i {
    font-size: 22px;
}

.saito-user-menu {
    position: relative;
}

.saito-user-menu > button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344451;
    background: transparent;
    border: 0;
    font-size: 21px;
    font-weight: 500;
}

.saito-user-menu > button i {
    font-size: 20px;
}

.saito-user-dropdown {
    position: absolute;
    top: calc(100% + 28px);
    right: -10px;
    z-index: 50;
    width: 380px;
    padding: 26px 0;
    visibility: hidden;
    background: #ffffff;
    border-radius: 11px;
    box-shadow: 0 22px 42px rgba(40, 55, 78, 0.14);
    opacity: 0;
    transform: translateY(-8px);
    transition: 0.16s ease;
}

.saito-user-menu:focus-within .saito-user-dropdown,
.saito-user-menu:hover .saito-user-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.saito-user-dropdown a,
.saito-user-dropdown button {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 66px;
    padding: 0 44px;
    color: #718296;
    background: transparent;
    border: 0;
    font-size: 27px;
    text-align: left;
}

.saito-user-dropdown i {
    width: 28px;
    font-size: 31px;
}

.saito-user-dropdown form {
    margin: 22px 0 0;
    padding-top: 22px;
    border-top: 1px solid #d7dee6;
}

.saito-content {
    min-width: 0;
}

.saito-content .panel {
    margin-bottom: 34px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 2px 13px rgba(35, 48, 76, 0.08);
}

.saito-content .panel h3 {
    margin: 0;
    padding: 32px 34px;
    color: #2f3d4a;
    border-bottom: 1px solid #d8dee5;
    font-size: 34px;
    font-weight: 800;
}

.saito-content .panel > p,
.saito-content .panel > form,
.saito-content .panel > table,
.saito-content .panel > .table {
    margin: 0;
}

.saito-content .panel > p {
    padding: 28px 34px 0;
    color: #697686;
    font-size: 18px;
}

.saito-content .panel form {
    padding: 0 34px 34px;
}

.saito-content .form-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px 44px;
    align-items: center;
    margin: 0;
    padding: 36px 0;
    border-bottom: 6px solid #f1f3f6;
}

.saito-content .form-row label {
    margin: 0;
    color: #2f3d4a;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
}

.saito-content .input,
.saito-content .form-control,
.saito-content select.input {
    min-height: 52px;
    padding: 11px 18px;
    color: #42505f;
    background: #fbfcfe;
    border: 1px solid #d6dde5;
    border-radius: 7px;
    font-size: 19px;
}

.saito-content textarea.input {
    min-height: 145px;
}

.saito-content .form-row textarea,
.saito-content .form-row .quill-editor,
.saito-content .form-row .ql-toolbar,
.saito-content .form-row .ql-container,
.saito-content .form-row p {
    grid-column: 2;
}

.saito-content .button,
.saito-content .btn.btn-primary {
    min-height: 54px;
    padding: 0 30px;
    color: #ffffff;
    background: #006bf4;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 4px 9px rgba(0, 107, 244, 0.35);
    font-size: 20px;
    font-weight: 500;
}

.saito-content .button:hover,
.saito-content .btn.btn-primary:hover {
    color: #ffffff;
    background: #005fde;
}

.saito-content .table {
    min-width: 760px;
    margin: 38px 34px 0;
    width: calc(100% - 68px);
    border-collapse: collapse;
}

.saito-content .table th {
    padding: 18px 26px;
    color: #586879;
    background: #f3f5fa;
    border-bottom: 1px solid #d8dee5;
    font-size: 19px;
    font-weight: 500;
}

.saito-content .table td {
    padding: 18px 26px;
    color: #344451;
    border-bottom: 1px solid #d8dee5;
    font-size: 19px;
    vertical-align: middle;
}

.saito-content .actions {
    gap: 44px;
}

.saito-content .actions a,
.saito-content .actions button {
    color: #006bf4;
    font-size: 18px;
}

.saito-content .admin-file-input {
    max-width: 600px;
}

.saito-content .admin-file-input::file-selector-button {
    margin: -11px 16px -11px -18px;
    padding: 12px 26px;
    color: #ffffff;
    background: #006bf4;
    border: 0;
    box-shadow: 0 4px 9px rgba(0, 107, 244, 0.35);
}

.saito-content .thumb {
    width: 180px;
    height: 100px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 991px) {
    .saito-shell {
        grid-template-columns: 1fr;
    }

    .saito-sidebar {
        position: static;
        height: auto;
    }

    .saito-main {
        padding: 16px;
    }

    .saito-topbar,
    .saito-top-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .saito-content .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .saito-content .form-row textarea,
    .saito-content .form-row .quill-editor,
    .saito-content .form-row .ql-toolbar,
    .saito-content .form-row .ql-container,
    .saito-content .form-row p {
        grid-column: 1;
    }
}

.saito-template-body {
    color: #384551;
    background: #f5f5f9;
    font-family: "Noto Sans JP", "Roboto", "Arial", sans-serif;
}

.saito-template-brand {
    align-items: flex-start;
    flex-direction: column;
    height: 100px;
    margin-top: 12px;
}

.saito-template-brand img {
    width: 150px;
    height: auto;
}

.saito-template-brand .app-brand-text {
    margin-top: 10px;
    color: #384551;
    font-size: 26px;
    line-height: 1.2;
    text-transform: none;
}

.saito-template-title {
    color: #056ee9;
    font-size: 1.625rem;
    font-weight: 600;
}

.saito-template-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 168px;
    padding: 0.65rem 1.4rem;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
}

.saito-template-preview i {
    line-height: 1;
}

.saito-template-user {
    color: #384551;
    font-size: 1rem;
}

.saito-template-user-menu {
    min-width: 15rem;
    padding: 0.75rem 0;
    border: 0;
    box-shadow: 0 0.5rem 1.5rem rgba(67, 89, 113, 0.15);
}

.saito-template-user-menu.show {
    display: block;
}

.saito-template-content .panel {
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.375rem rgba(67, 89, 113, 0.12);
}

.saito-template-content .panel h3 {
    margin: 0;
    padding: 1.5rem;
    color: #384551;
    border-bottom: 1px solid #d9dee3;
    font-size: 1.5rem;
    font-weight: 600;
}

.saito-template-content .panel > p {
    margin: 0;
    padding: 1.25rem 1.5rem 0;
}

.saito-template-content .panel > form {
    padding: 1.5rem;
}

.saito-template-content .form-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1rem 1.75rem;
    align-items: center;
    margin: 0;
    padding: 1.35rem 0;
    border-bottom: 4px solid #f0f1f4;
}

.saito-template-content .form-row:first-child {
    padding-top: 0;
}

.saito-template-content .form-row label {
    margin: 0;
    color: #384551;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
}

.saito-template-content .input,
.saito-template-content .form-control,
.saito-template-content select.input,
.saito-template-content select.form-control {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.55rem 0.875rem;
    color: #384551;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 0.375rem;
    font-size: 0.95rem;
}

.saito-template-content textarea.input,
.saito-template-content textarea.form-control {
    min-height: 8rem;
}

.saito-template-content .form-row textarea,
.saito-template-content .form-row .quill-editor,
.saito-template-content .form-row .ql-toolbar,
.saito-template-content .form-row .ql-container,
.saito-template-content .form-row p {
    grid-column: 2;
}

.saito-template-content .button,
.saito-template-content .btn.btn-primary {
    min-height: 2.7rem;
    padding: 0.55rem 1.3rem;
    color: #ffffff;
    background: #056ee9;
    border: 0;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(5, 110, 233, 0.35);
    font-size: 0.95rem;
    font-weight: 500;
}

.saito-template-content .button:hover,
.saito-template-content .btn.btn-primary:hover {
    color: #ffffff;
    background: #005ed1;
}

.saito-template-content .table {
    width: calc(100% - 3rem);
    min-width: 760px;
    margin: 1.5rem;
    color: #384551;
    border-color: #d9dee3;
}

.saito-template-content .table th {
    padding: 0.9rem 1.25rem;
    color: #566a7f;
    background: #f5f5f9;
    border-bottom: 1px solid #d9dee3;
    font-size: 0.95rem;
    font-weight: 500;
}

.saito-template-content .table td {
    padding: 0.9rem 1.25rem;
    color: #384551;
    border-bottom: 1px solid #d9dee3;
    font-size: 0.95rem;
    vertical-align: middle;
}

.saito-template-content .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.saito-template-content .actions a,
.saito-template-content .actions button {
    color: #056ee9;
    font-size: 0.95rem;
}

.saito-template-content .admin-file-input::file-selector-button {
    margin: -0.55rem 1rem -0.55rem -0.875rem;
    padding: 0.7rem 1.25rem;
    color: #ffffff;
    background: #056ee9;
    border: 0;
}

.saito-template-content .thumb {
    width: 130px;
    max-height: 100px;
    object-fit: cover;
}

.auth-brand img {
    width: 190px;
    height: auto;
}

.saito-mobile-menu-toggle {
    color: #566a7f;
    background: transparent;
    border: 0;
}

@media (max-width: 991px) {
    .layout-menu-expanded .layout-menu {
        transform: translate3d(0, 0, 0) !important;
        visibility: visible !important;
    }

    .layout-menu-expanded::before {
        position: fixed;
        inset: 0;
        z-index: 1074;
        content: "";
        background: rgba(67, 89, 113, 0.45);
    }

    .layout-menu {
        z-index: 1075 !important;
    }

    .layout-navbar {
        gap: 0.75rem;
    }

    .navbar-nav-right {
        min-width: 0;
    }

    .saito-template-title {
        font-size: 1.25rem;
    }

    .saito-template-preview {
        min-width: 124px;
        padding: 0.55rem 1rem;
    }

    .saito-template-content .form-row {
        grid-template-columns: 1fr;
    }

    .saito-template-content .form-row textarea,
    .saito-template-content .form-row .quill-editor,
    .saito-template-content .form-row .ql-toolbar,
    .saito-template-content .form-row .ql-container,
    .saito-template-content .form-row p {
        grid-column: 1;
    }
}
