* {
    box-sizing: border-box;
}

html {
    font-size: 12px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #151515;
    background: #f5f6f8;
}

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

a:hover {
    text-decoration: underline;
}

.auth-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

.install-shell {
    align-items: flex-start;
}

.card {
    width: 100%;
    max-width: 430px;
    padding: 24px;
}

.install-card {
    max-width: 720px;
}

.card h1 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
}

.muted,
.form-tip {
    margin: 0 0 16px;
    color: #6b7280;
}

label {
    display: block;
    margin: 14px 0 6px;
    color: #222;
    font-weight: 600;
}

input {
    width: 100%;
    height: 38px;
    border: 1px solid #d8dce5;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 12px;
    outline: none;
    background: #fff;
    color: #111;
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.button-link:hover {
    background: #1d4ed8;
    text-decoration: none;
}

button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

form > button {
    width: 100%;
    margin-top: 18px;
}

fieldset {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

legend {
    padding: 0 8px;
    font-weight: 700;
    color: #111827;
}

.notice {
    margin: 12px 0;
    border-radius: 10px;
    padding: 10px 12px;
    word-break: break-word;
}

.notice.error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.notice.success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.requirement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.requirement-row.ok strong {
    color: #166534;
}

.requirement-row.bad strong {
    color: #b91c1c;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.admin-header-inner {
    width: min(1100px, calc(100% - 24px));
    min-height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    color: #111827;
    font-weight: 800;
    white-space: nowrap;
}

.admin-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-nav a,
.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #fff;
    font-weight: 600;
}

.admin-nav a[aria-current="page"] {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.nav-button {
    cursor: pointer;
}

.nav-button:hover {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.inline-form {
    display: inline;
    margin: 0;
}

.admin-layout {
    width: min(1100px, calc(100% - 24px));
    margin: 24px auto;
}

.admin-layout.narrow {
    max-width: 520px;
}

.welcome-card {
    max-width: none;
}

.blank-panel {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    text-align: center;
    padding: 24px;
}

@media (max-width: 640px) {
    .auth-shell {
        align-items: flex-start;
        padding: 16px 10px;
    }

    .card {
        padding: 18px;
    }

    .requirements {
        grid-template-columns: 1fr;
    }

    .admin-header-inner {
        min-height: auto;
        padding: 12px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-nav a,
    .nav-button {
        min-height: 34px;
        padding: 0 10px;
    }

    .admin-layout {
        margin: 16px auto;
    }

    .blank-panel {
        min-height: 220px;
    }
}

.dashboard-calendar-app {
    width: 100%;
    margin-top: 20px;
}

.calendar-loading {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.calendar-shell {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(20, 28, 45, 0.06);
}

.calendar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f5;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.calendar-title-text h2 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
    color: #111827;
}

.calendar-title-text p {
    margin: 0;
    color: #64748b;
}

.selected-date-tag.el-tag {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-calendar-app .el-calendar,
.category-calendar-app .el-calendar {
    --el-calendar-cell-width: 88px;
    background: transparent;
}

.dashboard-calendar-app .el-calendar__header,
.category-calendar-app .el-calendar__header {
    padding: 18px 20px;
}

.dashboard-calendar-app .el-calendar__title,
.category-calendar-app .el-calendar__title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.dashboard-calendar-app .el-calendar-table td,
.category-calendar-app .el-calendar-table td {
    border-color: #edf0f5;
}

.dashboard-calendar-app .el-calendar-table th,
.category-calendar-app .el-calendar-table th {
    padding: 12px 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-calendar-app .el-calendar-day,
.category-calendar-app .el-calendar-day {
    min-height: 92px;
    padding: 0;
}

.calendar-day-cell {
    position: relative;
    width: 100%;
    min-height: 92px;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.calendar-day-cell:hover {
    background: #f8fafc;
}

.calendar-day-cell.is-today {
    background: #eff6ff;
}

.calendar-day-cell.is-selected {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
}

.calendar-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.calendar-day-cell.is-selected .calendar-day-number {
    background: rgba(255, 255, 255, 0.18);
}

.calendar-day-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-weight: 700;
}

.calendar-day-cell.is-selected .calendar-day-label {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.calendar-day-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
}

.small-blank-panel {
    min-height: 130px;
}

@media (max-width: 760px) {
    .calendar-title-row {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .dashboard-calendar-app .el-calendar__header,
.category-calendar-app .el-calendar__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .dashboard-calendar-app .el-calendar__button-group,
    .category-calendar-app .el-calendar__button-group {
        display: flex;
        width: 100%;
    }

    .dashboard-calendar-app .el-calendar__button-group .el-button,
    .category-calendar-app .el-calendar__button-group .el-button {
        flex: 1;
        padding: 0 8px;
        font-size: 12px;
    }

    .dashboard-calendar-app .el-calendar-table th,
.category-calendar-app .el-calendar-table th {
        padding: 8px 0;
    }

    .dashboard-calendar-app .el-calendar-day,
    .category-calendar-app .el-calendar-day,
    .calendar-day-cell {
        min-height: 58px;
    }

    .calendar-day-cell {
        padding: 6px;
        border-radius: 8px;
    }

    .calendar-day-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .calendar-day-label {
        display: none;
    }

    .calendar-day-dot {
        right: 8px;
        bottom: 8px;
        width: 7px;
        height: 7px;
    }

    .small-blank-panel {
        min-height: 100px;
    }
}

.dashboard-calendar-app .el-button,
.category-calendar-app .el-button {
    min-height: 32px;
    border: var(--el-border);
    border-color: var(--el-button-border-color);
    border-radius: var(--el-border-radius-base);
    padding: 8px 15px;
    color: var(--el-button-text-color);
    background: var(--el-button-bg-color);
    font-size: 12px;
    font-weight: 500;
}

.dashboard-calendar-app .el-button:hover,
.dashboard-calendar-app .el-button:focus,
.category-calendar-app .el-button:hover,
.category-calendar-app .el-button:focus {
    color: var(--el-button-hover-text-color);
    border-color: var(--el-button-hover-border-color);
    background: var(--el-button-hover-bg-color);
}


.inline-form > .nav-button {
    width: auto;
    margin-top: 0;
}

.page-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.category-add-root {
    display: flex;
    justify-content: flex-end;
}

.category-panel {
    width: 100%;
}

.empty-category-box {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.42);
    text-align: center;
    padding: 24px;
}

.empty-category-box strong {
    color: #111827;
    font-size: 16px;
}

.empty-category-box p {
    margin: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    min-height: 120px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(20, 28, 45, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
    text-decoration: none;
    transform: translateY(-2px);
}

.category-name {
    font-size: 16px;
    font-weight: 800;
    word-break: break-word;
}

.category-meta {
    color: #64748b;
}

.form-error-text {
    margin: 8px 0 0;
    color: #b91c1c;
}

.dialog-form-tip {
    margin: 10px 0 0;
}

.category-page-card {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.category-page-title {
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
}

.category-calendar-app {
    width: min(980px, 100%);
    margin: 0 auto;
}

.category-calendar-app .category-calendar-shell {
    min-height: 560px;
}

.category-form-app .category-calendar-shell {
    min-height: 0;
}

.category-add-root .el-button,
.el-dialog .el-button,
.category-calendar-app .el-button {
    min-height: 32px;
    border: var(--el-border);
    border-color: var(--el-button-border-color);
    border-radius: var(--el-border-radius-base);
    padding: 8px 15px;
    color: var(--el-button-text-color);
    background: var(--el-button-bg-color);
    font-size: 12px;
    font-weight: 500;
    width: auto;
    margin-top: 0;
}

.category-add-root .el-button--primary,
.el-dialog .el-button--primary {
    color: var(--el-color-white);
    background: var(--el-color-primary);
    border-color: var(--el-color-primary);
}

.category-add-root .el-button:hover,
.el-dialog .el-button:hover,
.category-calendar-app .el-button:hover,
.category-add-root .el-button:focus,
.el-dialog .el-button:focus,
.category-calendar-app .el-button:focus {
    color: var(--el-button-hover-text-color);
    border-color: var(--el-button-hover-border-color);
    background: var(--el-button-hover-bg-color);
}

.el-dialog label {
    margin-top: 0;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-head-row {
        flex-direction: column;
        align-items: stretch;
    }

    .category-add-root {
        justify-content: flex-start;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 96px;
    }

    .category-calendar-app {
        width: 100%;
    }
}

.category-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.38);
}

.category-modal {
    width: min(420px, 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    padding: 18px;
}

.category-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.category-modal-head h2 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.category-modal-close {
    width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #64748b;
    background: #fff;
    font-size: 18px;
    line-height: 1;
}

.category-modal-close:hover {
    color: #111827;
    background: #f8fafc;
}

.dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.category-add-root .el-button,
.category-modal .el-button,
.category-calendar-app .el-button {
    min-height: 32px;
    border: var(--el-border);
    border-color: var(--el-button-border-color);
    border-radius: var(--el-border-radius-base);
    padding: 8px 15px;
    color: var(--el-button-text-color);
    background: var(--el-button-bg-color);
    font-size: 12px;
    font-weight: 500;
    width: auto;
    margin-top: 0;
}

.category-add-root .el-button--primary,
.category-modal .el-button--primary {
    color: var(--el-color-white);
    background: var(--el-color-primary);
    border-color: var(--el-color-primary);
}

.category-add-root .el-button:hover,
.category-modal .el-button:hover,
.category-calendar-app .el-button:hover,
.category-add-root .el-button:focus,
.category-modal .el-button:focus,
.category-calendar-app .el-button:focus {
    color: var(--el-button-hover-text-color);
    border-color: var(--el-button-hover-border-color);
    background: var(--el-button-hover-bg-color);
}

.category-modal label {
    margin-top: 0;
}

.category-form-app {
    width: min(980px, 100%);
    margin: 0 auto;
}

.category-form-page-root {
    width: 100%;
}

.category-form-app .el-calendar {
    --el-calendar-cell-width: 88px;
    background: transparent;
}

.category-form-app .el-calendar__header {
    padding: 18px 20px;
}

.category-form-app .el-calendar__title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.category-form-app .el-calendar-table td {
    border-color: #edf0f5;
}

.category-form-app .el-calendar-table th {
    padding: 12px 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.category-form-app .el-calendar-day {
    min-height: 92px;
    padding: 0;
}

.calendar-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.light-button {
    width: auto;
    margin-top: 0;
    min-height: 30px;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.light-button:hover {
    color: #fff;
    background: #2563eb;
}


.calendar-collapsed-box {
    margin-top: 14px;
    padding: 18px;
    border: 1px dashed #cfd8e3;
    border-radius: 12px;
    background: #f8fafc;
    color: #5f6b7a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-collapsed-box p {
    margin: 0;
}

@media (max-width: 720px) {
    .calendar-collapsed-box {
        align-items: stretch;
        flex-direction: column;
    }
}

.calendar-submit-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.calendar-day-cell.is-selected .calendar-submit-dot {
    background: #86efac;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.26);
}

.daily-form-panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(20, 28, 45, 0.06);
}

.empty-form-panel {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #64748b;
}

.daily-form-panel h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
    color: #111827;
}

.daily-form-panel p {
    margin: 0;
    color: #64748b;
}

.daily-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f5;
}

.daily-form-tags {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.daily-form-fields {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.daily-field-wrap {
    width: 100%;
}

.form-section-title,
.readonly-section-title {
    margin: 8px 0 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.form-title-text,
.readonly-title-text {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.form-field-line label {
    margin: 0 0 6px;
}

.form-field-line .el-input,
.form-field-line .el-textarea {
    width: 100%;
}

.readonly-mode {
    color: #111827;
}

.readonly-field-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.readonly-field-label {
    color: #475569;
    font-weight: 700;
    word-break: break-word;
}

.readonly-field-value {
    white-space: pre-wrap;
    word-break: break-word;
}

.submitted-time-text {
    margin-top: 14px !important;
    color: #166534 !important;
}

.daily-form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.form-designer-mask {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.42);
}

.form-designer-dialog {
    width: min(1040px, 100%);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.form-designer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f5;
}

.form-designer-head h2 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #111827;
}

.form-designer-head p {
    margin: 0;
    color: #64748b;
}

.form-designer-body {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 0;
    overflow: hidden;
}

.form-designer-left,
.form-designer-right {
    overflow: auto;
    padding: 18px;
}

.form-designer-left {
    border-right: 1px solid #edf0f5;
    background: #fbfdff;
}

.form-designer-right {
    background: #fff;
}

.designer-column-title {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
}

.designer-empty-drop {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border: 1px dashed #bfdbfe;
    border-radius: 16px;
    color: #64748b;
    background: #eff6ff;
    text-align: center;
}

.designer-empty-drop strong {
    color: #1d4ed8;
}

.designer-palette-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    cursor: grab;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.designer-palette-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.designer-palette-item strong {
    color: #111827;
}

.designer-palette-item span {
    color: #64748b;
}

.designer-field-item {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.designer-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.designer-field-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.designer-field-actions button {
    min-height: 26px;
    width: auto;
    margin: 0;
    padding: 0 9px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    color: #475569;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
}

.designer-field-actions button:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.designer-field-actions .danger-lite:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.designer-field-item label,
.designer-field-extra label {
    margin: 10px 0 6px;
}

.designer-field-extra {
    margin-top: 10px;
}


.daily-field-wrap {
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #fff;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.daily-field-wrap.is-filled {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.daily-field-wrap.is-missing-required {
    border-color: #fecaca;
    background: #fef2f2;
}

.daily-field-wrap.is-optional-empty {
    border-color: #e5e7eb;
    background: #f8fafc;
}

.required-star {
    display: inline-block;
    margin-left: 4px;
    color: #dc2626;
    font-weight: 900;
}

.field-error-tip {
    margin-top: 8px !important;
    color: #dc2626 !important;
    font-weight: 700;
}

.optional-field-collapsed {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px dashed #d7dde8;
    border-radius: 12px;
    color: #64748b;
    background: #f8fafc;
    text-align: left;
    cursor: pointer;
}

.optional-field-collapsed:hover,
.optional-field-collapsed:focus {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.optional-field-collapsed span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.optional-field-collapsed em {
    flex: 0 0 auto;
    font-style: normal;
    font-weight: 800;
}

.designer-required-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
}

.designer-required-row > span {
    font-weight: 800;
    color: #111827;
}

.designer-required-row small {
    color: #64748b;
}

.form-designer-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #edf0f5;
    background: #fff;
}

.category-form-app .el-button,
.form-designer-dialog .el-button,
.daily-form-panel .el-button {
    width: auto;
    margin-top: 0;
    min-height: 32px;
    font-size: 12px;
}

.category-form-app .el-input__inner,
.category-form-app .el-textarea__inner,
.form-designer-dialog .el-input__inner,
.form-designer-dialog .el-textarea__inner {
    font-size: 12px;
}

@media (max-width: 900px) {
    .form-designer-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .form-designer-left {
        border-right: 0;
        border-bottom: 1px solid #edf0f5;
    }

    .form-designer-right {
        max-height: 240px;
    }

    .readonly-field-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 760px) {
    .category-form-app .el-calendar__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .category-form-app .el-calendar__button-group {
        display: flex;
        width: 100%;
    }

    .category-form-app .el-calendar__button-group .el-button {
        flex: 1;
        padding: 0 8px;
        font-size: 12px;
    }

    .category-form-app .el-calendar-table th {
        padding: 8px 0;
    }

    .category-form-app .el-calendar-day,
    .calendar-day-cell {
        min-height: 58px;
    }

    .calendar-submit-dot {
        right: 8px;
        bottom: 8px;
        width: 7px;
        height: 7px;
    }

    .daily-form-panel {
        padding: 16px;
    }

    .daily-form-head {
        flex-direction: column;
    }

    .daily-form-tags {
        justify-content: flex-start;
    }

    .form-designer-mask {
        align-items: stretch;
        padding: 10px;
    }

    .form-designer-dialog {
        max-height: calc(100vh - 20px);
    }

    .form-designer-head,
    .form-designer-footer {
        padding: 14px;
    }

    .form-designer-left,
    .form-designer-right {
        padding: 14px;
    }
}

.page-notice {
    margin: 0 0 14px;
}

.category-card-link {
    flex: 1;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 14px;
    color: #111827;
}

.category-card-link:hover {
    text-decoration: none;
}

.category-delete-form {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.category-delete-form > .category-delete-button {
    width: 100%;
    min-height: 32px;
    margin-top: 0;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #b91c1c;
    background: #fff5f5;
}

.category-delete-form > .category-delete-button:hover,
.category-delete-form > .category-delete-button:focus {
    color: #fff;
    border-color: #dc2626;
    background: #dc2626;
}

.dashboard-home-with-bg {
    background-color: #f5f6f8;
}

.dashboard-home-with-bg .admin-layout {
    position: relative;
    z-index: 1;
}

.dashboard-home-with-bg .welcome-card,
.dashboard-home-with-bg .empty-category-box,
.dashboard-home-with-bg .category-card {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
}

.settings-card {
    max-width: 620px;
}

.settings-site-name-form {
    margin-top: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.settings-preview-box {
    margin: 18px 0 16px;
}

.settings-bg-preview {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    object-position: center center;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.settings-bg-empty {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    background: #f8fafc;
}

.settings-upload-form {
    margin-top: 18px;
}

.settings-upload-form input[type="file"] {
    height: auto;
    min-height: 38px;
    padding: 8px 10px;
}

.settings-remove-form {
    margin-top: 12px;
}

.danger-button {
    color: #fff;
    background: #dc2626;
}

.danger-button:hover {
    background: #b91c1c;
}


.category-card {
    position: relative;
}

.category-card-link {
    padding-right: 46px;
}

.category-delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 0;
    border-top: 0;
}

.category-delete-form > .category-delete-button {
    width: auto;
    min-height: 24px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #b91c1c;
    background: rgba(255, 245, 245, 0.94);
    font-size: 12px;
    font-weight: 700;
}

.category-delete-form > .category-delete-button:hover,
.category-delete-form > .category-delete-button:focus {
    color: #fff;
    border-color: #dc2626;
    background: #dc2626;
}
