body {
    margin: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.navbar {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18);
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-right: 16px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

h1, h2, h3 {
    margin-top: 0;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #475569;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbe2f0;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 14px;
}

textarea {
    resize: vertical;
    min-height: 72px;
}

button {
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}

button.secondary {
    background: #64748b;
}

button.danger {
    background: #dc2626;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #e0e7ff;
    color: #3730a3;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-info {
    background: #dbeafe;
    color: #1e3a8a;
}

.newbie-flow-card {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #dbeafe;
}

.newbie-flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.newbie-step {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #1f2937;
    background: #fff;
    border: 1px solid #dbe2f0;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.15s ease;
}

.newbie-step:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.newbie-step-index {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 26px;
}

.newbie-step-text {
    font-size: 14px;
    line-height: 1.45;
}

.newbie-next-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px dashed #86efac;
    background: #f0fdf4;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
    color: #166534;
}

.btn-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.btn-link:hover {
    background: #15803d;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero {
    padding: 36px 0 12px;
}

.muted {
    color: #64748b;
    font-size: 14px;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

.inline-form input,
.inline-form select {
    width: auto;
    margin-bottom: 0;
}

input.date-clickable {
    cursor: pointer;
}

.slot-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 13px;
    color: #475569;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.legend-box.free { background: #ffffff; }
.legend-box.past { background: #f1f5f9; }
.legend-box.booked { background: #e2e8f0; }
.legend-box.mine { background: #ddd6fe; }
.legend-box.current { background: #dbeafe; }
.legend-box.selected { background: #2563eb; }

.slot-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(82px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

button.slot-cell {
    border: 1px solid #dbe2f0;
    background: #ffffff !important;
    color: #1f2937 !important;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 12px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

button.slot-cell:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

button.slot-cell.booked {
    background: #e2e8f0 !important;
    color: #475569 !important;
    cursor: not-allowed;
    box-shadow: none;
}

button.slot-cell.past {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none;
}

button.slot-cell.mine {
    background: #ddd6fe !important;
    color: #4c1d95 !important;
    cursor: not-allowed;
    box-shadow: none;
}

button.slot-cell.current {
    box-shadow: inset 0 0 0 2px #3b82f6;
}

button.slot-cell.selected {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #1d4ed8;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

@media (max-width: 1200px) {
    .slot-grid {
        grid-template-columns: repeat(8, minmax(82px, 1fr));
    }
}

@media (max-width: 768px) {
    .slot-grid {
        grid-template-columns: repeat(4, minmax(78px, 1fr));
        gap: 10px;
    }
}

.admin-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.admin-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 10px;
}

.admin-workspace {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.admin-sidebar {
    padding: 14px;
    position: sticky;
    top: 12px;
}

.admin-sidebar-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.side-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #0f172a;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .2s ease;
}

.side-menu-item:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.side-menu-item.is-active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .24);
}

.admin-content {
    min-width: 0;
}

.admin-content-panel {
    margin: 0;
}

.domain-filter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.domain-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    padding: 9px 12px;
}

.single-domain-card {
    margin-top: 4px;
}

.domain-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
}

.domain-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.domain-card-title h3 {
    margin: 0;
    font-size: 18px;
}

.domain-punycode {
    margin-top: 4px;
    font-size: 13px;
}

.domain-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.domain-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.domain-meta-grid > div {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    background: #f8fafc;
}

.meta-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 2px;
}

.timeline-scroll-wrap {
    overflow-x: auto;
    padding-bottom: 6px;
}

.week-grid-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.week-grid-table {
    min-width: 1840px;
}

.week-grid-header,
.week-grid-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
}

.week-grid-header {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.week-grid-row + .week-grid-row {
    border-top: 1px solid #eef2f7;
}

.week-date-cell {
    padding: 8px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    background: #fbfdff;
}

.week-date-cell strong {
    font-size: 13px;
    color: #0f172a;
}

.week-date-cell span {
    font-size: 12px;
    color: #64748b;
}

.week-date-head {
    font-weight: 700;
    color: #334155;
}

.week-time-head,
.week-time-row {
    display: grid;
    grid-template-columns: repeat(48, minmax(34px, 1fr));
    gap: 0;
}

.week-time-head span {
    padding: 6px 2px;
    font-size: 10px;
    color: #64748b;
    text-align: center;
    border-right: 1px solid #edf2f7;
    white-space: nowrap;
}

.timeline-scale {
    display: grid;
    grid-template-columns: repeat(24, minmax(80px, 1fr));
    gap: 0;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 6px;
    min-width: 960px;
}

.timeline-scale span {
    text-align: left;
    padding-left: 2px;
}

.domain-timeline {
    display: grid;
    grid-template-columns: repeat(48, minmax(40px, 1fr));
    gap: 4px;
    min-width: 960px;
}

button.timeline-slot {
    border: 1px solid #d8e0ea;
    border-radius: 0;
    min-height: 34px;
    padding: 2px;
    font-size: 9px;
    line-height: 1.2;
    color: #334155;
    background: #f1f5f9;
    cursor: default;
    width: 100%;
}

button.timeline-slot.is-free {
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

button.timeline-slot.is-booked {
    background: #2563eb;
    color: #ffffff;
    border-color: #1e40af;
    cursor: pointer;
}

button.timeline-slot:hover {
    filter: brightness(0.98);
}

button.timeline-slot.is-disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

button.timeline-slot.is-free:not(.is-disabled):hover {
    background: #e8edf4;
}

button.timeline-slot.is-current {
    box-shadow: inset 0 0 0 2px #f59e0b;
}

button.timeline-slot span {
    display: block;
    white-space: nowrap;
}

.booking-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.booking-detail-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
}

.materials-page {
    margin-top: 20px;
}

.materials-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.ai-generator-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-generator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.ai-generator-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.ai-result-card {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ai-result-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ai-result-body {
    padding: 10px;
}

.ai-result-body h4 {
    margin: 0 0 6px;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.material-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.material-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.material-body {
    padding: 10px;
}

.material-body h4 {
    margin: 0 0 6px;
}

.material-actions {
    display: flex;
    gap: 8px;
    padding: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tutorial-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.tutorial-list-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.tutorial-list-card.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.tutorial-list-cover {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    object-fit: cover;
    background: #f8fafc;
}

.tutorial-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
}

.tutorial-list-info h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.tutorial-detail-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.tutorial-detail-header h3 {
    margin: 0 0 8px;
}

.tutorial-detail-intro {
    margin: 8px 0 0;
    color: #334155;
    line-height: 1.7;
}

.tutorial-step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.tutorial-step-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
}

.tutorial-step-index {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    margin-bottom: 8px;
}

.tutorial-step-body h4 {
    margin: 0 0 8px;
}

.tutorial-step-image {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 8px;
}

.tutorial-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.tutorial-card h4 {
    margin: 0 0 6px;
}

.tutorial-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.tutorial-images img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe3ef;
}

.tutorial-content {
    color: #1f2937;
    line-height: 1.7;
    margin-bottom: 8px;
}

.tutorial-steps {
    margin: 0;
    padding-left: 20px;
}

.materials-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.material-admin-block {
    padding: 12px;
}

.ai-admin-block {
    margin-bottom: 12px;
}

.material-card-list-scroll,
.tutorial-card-list-scroll {
    height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    padding-bottom: 16px;
    background: #f8fafc;
}

.material-card-grid,
.tutorial-card-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
}

.material-compact-card,
.tutorial-compact-card {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.material-compact-card {
    min-height: 220px;
    max-height: 220px;
}

.tutorial-compact-card {
    min-height: 0;
    max-height: none;
}

.material-compact-body {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
}

.material-compact-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
}

.material-compact-info {
    min-width: 0;
}

.material-compact-info h4,
.tutorial-compact-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-compact-info .muted {
    margin: 4px 0;
}

.card-desc {
    margin: 6px 0 0;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
}

.tutorial-compact-card {
    padding: 10px;
}

.tutorial-compact-cover {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    margin-bottom: 8px;
}

.tutorial-step-editor {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
    margin-bottom: 10px;
}

.step-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.step-editor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 48vh;
    overflow-y: auto;
    padding-right: 2px;
}

.step-editor-item {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 10px;
}

.step-editor-item.is-dragging {
    opacity: 0.6;
}

.step-editor-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.step-drag-handle {
    color: #475569;
    font-size: 13px;
    cursor: move;
}

.step-current-image img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #f8fafc;
}

.material-compact-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 6px 8px 8px;
    border-top: 1px solid #eef2f7;
    align-items: center;
}

.material-compact-actions .button-link,
.material-compact-actions button {
    padding: 6px 10px;
    font-size: 14px;
}

.tutorial-image-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.tutorial-image-admin-grid label {
    display: block;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
}

.tutorial-image-admin-grid img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 4px;
}

.material-edit-modal {
    width: min(96vw, 980px);
    max-width: 980px;
}

.stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 20px;
    color: #1d4ed8;
}

.stat-item span {
    font-size: 12px;
    color: #64748b;
}

.admin-modules {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-module {
    padding: 0;
    overflow: hidden;
}

.module-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    font-size: 17px;
    font-weight: 600;
}

.module-open .module-toggle {
    background: #f8fafc;
}

.module-toggle-icon {
    transition: transform .2s ease;
}

.module-open .module-toggle-icon {
    transform: rotate(180deg);
}

.module-body {
    padding: 18px 20px 20px;
}

.module-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.module-toolbar h2 {
    margin: 0;
    font-size: 18px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
}

.module-table-wrap {
    max-height: 400px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.module-table-wrap table {
    margin: 0;
}

.module-table-wrap thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}

.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.admin-modal[hidden] {
    display: none !important;
}

.admin-modal-dialog {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-close {
    background: transparent;
    color: #475569;
    font-size: 24px;
    line-height: 1;
    padding: 0 6px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .admin-workspace {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .module-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .domain-filter-form {
        grid-template-columns: 1fr;
    }

    .domain-filter-actions {
        justify-content: flex-start;
    }

    .domain-card-header {
        flex-direction: column;
    }

    .domain-meta-grid {
        grid-template-columns: 1fr;
    }

    .booking-detail-grid {
        grid-template-columns: 1fr;
    }

    .materials-admin-grid {
        grid-template-columns: 1fr;
    }

    .material-card-grid,
    .tutorial-card-grid-admin {
        grid-template-columns: 1fr;
    }

    .materials-filter {
        grid-template-columns: 1fr;
    }

    .tutorial-list-card {
        grid-template-columns: 1fr;
    }

    .tutorial-list-cover {
        width: 100%;
        height: 140px;
    }

    .ai-generator-grid {
        grid-template-columns: 1fr;
    }

    .material-compact-body {
        grid-template-columns: 1fr;
    }

    .material-compact-cover {
        width: 100%;
        height: 120px;
    }

    .admin-modal {
        padding: 8px;
    }

    .admin-modal-dialog {
        max-height: calc(100vh - 16px);
        padding: 12px;
    }

    .material-edit-modal {
        width: 100%;
    }

    .step-editor-list {
        max-height: 42vh;
    }

    .newbie-next-action {
        flex-direction: column;
        align-items: flex-start;
    }
}
