:root {
    --h5-primary: #1f6feb;
    --h5-primary-dark: #1558b0;
    --h5-ink: #172033;
    --h5-muted: #6b778c;
    --h5-line: #e4e9f0;
    --h5-bg: #f3f6fa;
    --h5-card: #ffffff;
    --h5-success: #169c65;
    --h5-warning: #d78517;
    --h5-danger: #d84a4a;
    --h5-radius: 12px;
    --h5-shadow: 0 8px 28px rgba(24, 39, 75, .09);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--h5-bg);
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--h5-ink);
    background: var(--h5-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

[hidden] {
    display: none !important;
}

.h5-app {
    width: 100%;
    max-width: 860px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--h5-bg);
}

.h5-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
    color: #fff;
    background: #1e5faa;
    box-shadow: 0 3px 12px rgba(20, 57, 98, .18);
}

.h5-eyebrow {
    margin: 0 0 2px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.h5-header h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.25;
}

.h5-user-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 45%;
    padding: 6px 9px 6px 6px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.h5-avatar {
    display: inline-flex;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    color: #1e5faa;
    border-radius: 50%;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.h5-main {
    padding: 16px 14px calc(88px + env(safe-area-inset-bottom));
}

.h5-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.h5-module-section {
    margin: 16px 0 20px;
    padding: 14px;
    border: 1px solid var(--h5-line);
    border-radius: var(--h5-radius);
    background: #fff;
}

.h5-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.h5-section-heading h2,
.h5-section-heading p {
    margin: 0;
}

.h5-section-heading h2 {
    font-size: 16px;
}

.h5-section-heading p {
    margin-top: 3px;
    color: var(--h5-muted);
    font-size: 11px;
}

.h5-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
}

.h5-module-grid button {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
    background: transparent;
}

.h5-module-grid button[hidden] {
    display: none;
}

.h5-module-grid button > span {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    color: #1e5faa;
    border-radius: 11px;
    background: #eaf2fd;
    font-size: 15px;
    font-weight: 700;
}

.h5-module-grid button:nth-child(2) > span,
.h5-module-grid button:nth-child(5) > span {
    color: #167657;
    background: #e7f7f1;
}

.h5-module-grid button:nth-child(3) > span,
.h5-module-grid button:nth-child(6) > span {
    color: #a9680b;
    background: #fff4dc;
}

.h5-module-grid button:nth-child(4) > span,
.h5-module-grid button:nth-child(7) > span {
    color: #7652b5;
    background: #f1ebfb;
}

.h5-module-grid strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-card {
    min-width: 0;
    padding: 13px 14px;
    text-align: left;
    border: 1px solid var(--h5-line);
    border-radius: var(--h5-radius);
    background: var(--h5-card);
    box-shadow: 0 3px 12px rgba(24, 39, 75, .04);
}

.summary-card span,
.summary-card strong {
    display: block;
}

.summary-card span {
    margin-bottom: 5px;
    color: var(--h5-muted);
    font-size: 12px;
}

.summary-card strong {
    font-size: 24px;
    line-height: 1;
}

.summary-card.is-selected {
    color: #fff;
    border-color: var(--h5-primary);
    background: var(--h5-primary);
}

.summary-card.is-selected span {
    color: rgba(255, 255, 255, .78);
}

.h5-toolbar {
    margin-top: 16px;
}

.h5-search {
    display: flex;
    height: 44px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--h5-line);
    border-radius: 10px;
    background: #fff;
}

.h5-search > span {
    color: #8691a4;
    font-size: 22px;
    transform: rotate(-18deg);
}

.h5-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.h5-search button {
    width: 26px;
    height: 26px;
    padding: 0;
    color: #8b96a8;
    border-radius: 50%;
    background: #eef2f6;
    font-size: 19px;
    line-height: 24px;
}

.h5-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 19px 2px 10px;
}

.h5-list-heading h2 {
    margin: 0 0 2px;
    font-size: 18px;
}

.h5-list-heading p {
    margin: 0;
    color: var(--h5-muted);
    font-size: 12px;
}

.h5-refresh {
    width: 36px;
    height: 36px;
    color: var(--h5-primary);
    border: 1px solid #dbe6f5;
    border-radius: 50%;
    background: #fff;
    font-size: 21px;
}

.h5-project-list {
    display: grid;
    gap: 11px;
}

.h5-project-card {
    padding: 15px;
    border: 1px solid var(--h5-line);
    border-radius: var(--h5-radius);
    background: var(--h5-card);
    box-shadow: 0 4px 16px rgba(24, 39, 75, .05);
}

.project-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-card-head > div {
    min-width: 0;
}

.project-card-head h3 {
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.project-card-head p {
    margin: 0;
    overflow: hidden;
    color: var(--h5-muted);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.h5-status {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: var(--h5-primary-dark);
    border-radius: 12px;
    background: #eaf2ff;
    font-size: 11px;
    font-weight: 600;
}

.h5-status.completed {
    color: #087348;
    background: #e2f7ee;
}

.h5-status.archived {
    color: #667085;
    background: #edf0f3;
}

.project-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 14px 0;
}

.project-card-meta div {
    min-width: 0;
}

.project-card-meta span,
.project-card-meta strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.project-card-meta span {
    margin-bottom: 2px;
    color: #909aab;
    font-size: 11px;
}

.project-card-meta strong {
    font-size: 13px;
    font-weight: 600;
}

.h5-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--h5-muted);
    font-size: 12px;
}

.h5-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 4px;
    background: #e9edf3;
}

.h5-progress-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--h5-primary);
}

.project-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #eef1f5;
}

.project-card-actions button {
    min-height: 34px;
    padding: 0 13px;
    color: var(--h5-primary-dark);
    border: 1px solid #d6e3f5;
    border-radius: 7px;
    background: #f8fbff;
    font-size: 13px;
}

.project-card-actions button.primary {
    color: #fff;
    border-color: var(--h5-primary);
    background: var(--h5-primary);
}

.h5-empty,
.h5-permission-error {
    padding: 42px 20px;
    text-align: center;
    border: 1px dashed #cfd7e3;
    border-radius: var(--h5-radius);
    background: #fff;
}

.h5-empty strong,
.h5-permission-error strong {
    display: block;
    margin-bottom: 7px;
    font-size: 16px;
}

.h5-empty p,
.h5-permission-error p {
    margin: 0;
    color: var(--h5-muted);
    font-size: 13px;
}

.h5-skeleton {
    height: 176px;
    border: 1px solid #e8edf3;
    border-radius: var(--h5-radius);
    background: linear-gradient(90deg, #f1f4f7 25%, #f8fafc 37%, #f1f4f7 63%);
    background-size: 400% 100%;
    animation: h5-skeleton 1.25s ease infinite;
}

@keyframes h5-skeleton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.h5-load-more {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 12px;
    color: var(--h5-primary);
    border: 1px solid #d6e3f5;
    border-radius: 9px;
    background: #fff;
}

.h5-bottom-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 860px;
    min-height: 62px;
    margin: 0 auto;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--h5-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -5px 18px rgba(24, 39, 75, .06);
}

.h5-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #7b8798;
    background: transparent;
}

.h5-bottom-nav button.is-active {
    color: var(--h5-primary);
}

.h5-bottom-nav span {
    font-size: 21px;
    line-height: 1;
}

.h5-bottom-nav em {
    font-size: 11px;
    font-style: normal;
}

.h5-nav-add {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-top: -17px;
    color: #fff;
    border-radius: 50%;
    background: var(--h5-primary);
    box-shadow: 0 4px 13px rgba(31, 111, 235, .3);
}

.h5-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 20px;
    background: rgba(14, 24, 40, .48);
}

.h5-sheet {
    display: flex;
    width: 100%;
    max-width: 760px;
    max-height: calc(94vh - env(safe-area-inset-top));
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: var(--h5-shadow);
}

.h5-sheet-handle {
    flex: 0 0 auto;
    width: 42px;
    height: 4px;
    margin: 8px auto 2px;
    border-radius: 3px;
    background: #d8dee8;
}

.h5-sheet-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px 12px;
    border-bottom: 1px solid var(--h5-line);
}

.h5-sheet-header p {
    margin: 0 0 2px;
    color: var(--h5-muted);
    font-size: 11px;
}

.h5-sheet-header h2 {
    margin: 0;
    font-size: 19px;
}

.h5-close {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #6f7a8c;
    border-radius: 50%;
    background: #eef2f6;
    font-size: 23px;
    line-height: 32px;
}

.h5-sheet-content,
.h5-project-form {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.h5-sheet-content {
    padding: 15px 16px 20px;
}

.h5-project-form {
    padding: 15px 16px 24px;
}

.h5-sheet-actions {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--h5-line);
    background: #fff;
}

.h5-btn {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 600;
}

.h5-btn-secondary {
    color: #536174;
    border: 1px solid #d7dee8;
    background: #fff;
}

.h5-btn-primary {
    color: #fff;
    background: var(--h5-primary);
}

.h5-btn-danger {
    color: #fff;
    background: var(--h5-danger);
}

#detail-actions {
    grid-template-columns: 1fr 1.35fr;
}

#detail-actions.has-delete {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h5-resource-sheet,
.h5-schedule-sheet {
    max-width: 920px;
    max-height: calc(97vh - env(safe-area-inset-top));
}

.h5-resource-toolbar {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--h5-line);
    background: #f8fafc;
}

.h5-resource-toolbar > select {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    background: #fff;
}

.h5-resource-search {
    display: flex;
    min-width: 0;
    height: 40px;
    overflow: hidden;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    background: #fff;
}

.h5-resource-search input {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    outline: 0;
}

.h5-resource-search button {
    flex: 0 0 54px;
    color: var(--h5-primary);
    background: #edf4fe;
}

.h5-resource-toolbar > .h5-btn {
    min-width: 72px;
    min-height: 40px;
    padding: 0 13px;
}

.h5-resource-list {
    display: grid;
    align-content: start;
    gap: 10px;
    background: #f4f7fb;
}

.h5-resource-card {
    padding: 13px;
    border: 1px solid var(--h5-line);
    border-radius: 10px;
    background: #fff;
}

.h5-resource-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.h5-resource-card h3,
.h5-resource-card p {
    margin: 0;
}

.h5-resource-card h3 {
    font-size: 15px;
    line-height: 1.4;
}

.h5-resource-card p {
    margin-top: 4px;
    color: var(--h5-muted);
    font-size: 12px;
    line-height: 1.55;
}

.h5-resource-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    color: #536174;
    border-radius: 10px;
    background: #eef2f6;
    font-size: 10px;
}

.h5-resource-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin-top: 11px;
}

.h5-resource-meta div {
    min-width: 0;
}

.h5-resource-meta span,
.h5-resource-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h5-resource-meta span {
    color: #8a95a6;
    font-size: 10px;
}

.h5-resource-meta strong {
    margin-top: 2px;
    color: #405067;
    font-size: 12px;
    font-weight: 500;
}

.h5-resource-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.h5-resource-card-actions button,
.h5-resource-card-actions a {
    min-height: 33px;
    padding: 7px 11px;
    color: #315f9b;
    border: 1px solid #d6e3f5;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    text-decoration: none;
}

.h5-resource-card-actions .danger {
    color: #b83c3c;
    border-color: #f1d0d0;
}

.h5-resource-empty,
.h5-resource-error {
    padding: 42px 18px;
    color: var(--h5-muted);
    text-align: center;
    font-size: 13px;
}

.h5-upload-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.h5-upload-control button {
    min-width: 82px;
    color: #fff;
    border-radius: 8px;
    background: #315f9b;
}

.h5-upload-status {
    margin: 6px 0 0;
    color: var(--h5-muted);
    font-size: 11px;
}

.h5-color-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px 56px;
    gap: 7px;
}

.h5-color-control input[type="color"] {
    padding: 4px;
}

.h5-color-control button {
    color: #536174;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
}

.h5-field select[multiple] {
    min-height: 104px;
}

.h5-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    padding: 8px 0;
}

.h5-check-row label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4f5d70;
    font-size: 13px;
}

.h5-schedule-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--h5-line);
    background: #f8fafc;
}

.h5-schedule-actions .h5-btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 21px;
    text-decoration: none;
}

.h5-schedule-scroll {
    overflow: auto;
    background: #e9edf2;
}

.h5-schedule-export {
    min-width: 900px;
    padding: 18px;
    background: #fff;
}

.h5-schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #111;
    background: #fff;
    font-size: 13px;
}

.h5-schedule-table th,
.h5-schedule-table td {
    height: 38px;
    padding: 7px 8px;
    border: 1px solid #222;
    text-align: center;
    word-break: break-word;
}

.h5-schedule-table .sheet-title {
    height: 46px;
    font-size: 17px;
    font-weight: 500;
}

.h5-schedule-table th:nth-child(1) { width: 19%; }
.h5-schedule-table th:nth-child(2) { width: 11%; }
.h5-schedule-table th:nth-child(3),
.h5-schedule-table th:nth-child(4),
.h5-schedule-table th:nth-child(5) { width: 12%; }
.h5-schedule-table th:nth-child(6) { width: 20%; }
.h5-schedule-table th:nth-child(7) { width: 14%; }

.detail-hero {
    padding: 14px;
    color: #fff;
    border-radius: 10px;
    background: #225f9f;
}

.detail-hero-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.detail-hero p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.detail-hero .h5-status {
    height: fit-content;
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.detail-hero .h5-progress-track {
    margin-top: 12px;
    background: rgba(255, 255, 255, .2);
}

.detail-hero .h5-progress-track i {
    background: #fff;
}

.detail-section {
    margin-top: 18px;
}

.detail-section h3 {
    margin: 0 0 9px;
    font-size: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--h5-line);
    border-radius: 9px;
    background: var(--h5-line);
}

.detail-grid div {
    min-width: 0;
    padding: 10px;
    background: #fff;
}

.detail-grid div.wide {
    grid-column: 1 / -1;
}

.detail-grid span,
.detail-grid strong {
    display: block;
}

.detail-grid span {
    margin-bottom: 3px;
    color: var(--h5-muted);
    font-size: 11px;
}

.detail-grid strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-grid .wide strong {
    line-height: 1.6;
    white-space: normal;
}

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

.detail-relation {
    padding: 10px 5px;
    text-align: center;
    border: 1px solid var(--h5-line);
    border-radius: 8px;
    background: #fff;
}

.detail-relation strong,
.detail-relation span {
    display: block;
}

.detail-relation strong {
    margin-bottom: 2px;
    color: var(--h5-primary);
    font-size: 18px;
}

.detail-relation span {
    color: var(--h5-muted);
    font-size: 10px;
}

.h5-stage-box {
    display: flex;
    gap: 8px;
}

.h5-stage-box select {
    min-width: 0;
    height: 42px;
    flex: 1 1 auto;
    padding: 0 10px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    background: #fff;
}

.h5-stage-box button {
    flex: 0 0 auto;
    padding: 0 14px;
    color: #fff;
    border-radius: 8px;
    background: var(--h5-primary);
}

.detail-module-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.detail-module-actions button {
    min-height: 38px;
    color: #315f9b;
    border: 1px solid #d6e3f5;
    border-radius: 8px;
    background: #f7faff;
    font-size: 12px;
}

.h5-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.h5-field {
    display: block;
    min-width: 0;
}

.h5-field > span {
    display: block;
    margin: 0 0 6px;
    color: #4f5d70;
    font-size: 13px;
    font-weight: 600;
}

.h5-field > span b {
    color: var(--h5-danger);
    font-weight: 500;
}

.h5-field input,
.h5-field select,
.h5-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 9px 11px;
    outline: none;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}

.h5-field textarea {
    min-height: 94px;
    resize: vertical;
    line-height: 1.55;
}

.h5-field input:focus,
.h5-field select:focus,
.h5-field textarea:focus {
    border-color: var(--h5-primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .11);
}

.h5-input-suffix {
    position: relative;
}

.h5-input-suffix input {
    padding-right: 36px;
}

.h5-input-suffix i {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 36px;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--h5-muted);
    border-left: 1px solid #d5dde8;
    font-style: normal;
}

.h5-login-page {
    display: flex;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    margin: 0 auto;
    background: #fff;
}

.h5-login-brand {
    padding: calc(42px + env(safe-area-inset-top)) 24px 34px;
    color: #fff;
    background: #1e5faa;
}

.h5-logo {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #1e5faa;
    border-radius: 11px;
    background: #fff;
    font-size: 18px;
    font-weight: 800;
}

.h5-login-brand p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
}

.h5-login-brand h1 {
    margin: 0 0 8px;
    font-size: 27px;
}

.h5-login-brand span {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
}

.h5-login-panel {
    flex: 1 1 auto;
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
}

.h5-login-heading h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.h5-login-heading p {
    margin: 0 0 24px;
    color: var(--h5-muted);
    font-size: 13px;
}

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

.h5-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 9px;
}

.h5-captcha img {
    width: 116px;
    height: 43px;
    cursor: pointer;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    object-fit: cover;
}

.h5-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #566477;
    font-size: 13px;
}

.h5-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--h5-primary);
}

.h5-login-submit {
    min-height: 46px;
    color: #fff;
    border-radius: 8px;
    background: var(--h5-primary);
    font-weight: 700;
}

.h5-login-message {
    min-height: 20px;
    margin: -5px 0 0;
    color: var(--h5-danger);
    text-align: center;
    font-size: 12px;
}

.h5-toast {
    position: fixed;
    z-index: 200;
    top: calc(18px + env(safe-area-inset-top));
    left: 50%;
    max-width: calc(100vw - 32px);
    padding: 10px 15px;
    opacity: 0;
    color: #fff;
    border-radius: 8px;
    background: rgba(20, 29, 43, .9);
    box-shadow: var(--h5-shadow);
    font-size: 13px;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transition: opacity .2s, transform .2s;
}

.h5-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

body.h5-lock {
    overflow: hidden;
}

@media (min-width: 640px) {
    .h5-main {
        padding-right: 22px;
        padding-left: 22px;
    }

    .h5-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .h5-project-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .h5-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 18px;
    }

    .h5-field-wide {
        grid-column: 1 / -1;
    }

    .h5-overlay {
        align-items: center;
        padding: 22px;
    }

    .h5-sheet {
        max-height: 88vh;
        border-radius: 16px;
    }
}

@media (max-width: 359px) {
    .h5-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    .h5-main {
        padding-right: 10px;
        padding-left: 10px;
    }

    .detail-relations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
