* { box-sizing: border-box; }
html {
    font-size: 20px !important;
}
body {
    margin: 0 !important;
    padding: 0 0 calc(64px + env(safe-area-inset-bottom)) !important;
    max-width: none !important;
    min-width: 0 !important;
    background: #f4efe6;
    color: #141210;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased;
}
.wrap {
    max-width: 500px;
    margin: 0 auto;
    min-height: calc(100vh - 64px);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(166, 94, 46, 0.08), transparent 42%),
        #f4efe6;
}
.hero {
    position: relative;
    background: #141210;
    color: #f6f1e8;
    padding: 28px 22px 40px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -70px;
    border: 1px solid rgba(196, 160, 122, 0.28);
    border-radius: 50%;
}
.hero::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -18px;
    top: -8px;
    border: 1px solid rgba(196, 160, 122, 0.16);
    border-radius: 50%;
}
.eyebrow {
    position: relative;
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.42em;
    color: #c4a07a;
}
.hero h1 {
    position: relative;
    margin: 12px 0 0;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.28em;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "PMingLiU", "SimSun", serif;
}
.hero .sub {
    position: relative;
    margin: 10px 0 0;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: rgba(246, 241, 232, 0.62);
}
.sheet {
    position: relative;
    margin: -18px 16px 28px;
    background: #fff;
    border: 1px solid #efe8de;
    border-radius: 16px;
    padding: 6px 18px 22px;
    box-shadow: 0 10px 30px rgba(20, 18, 16, 0.04);
}
.field {
    padding: 14px 0;
    border-bottom: 1px solid #f3eee6;
}
.field:last-child,
.field:nth-last-child(2):has(+ .fppaifa:not(.is-on)) {
    border-bottom: none;
}
.field > span,
.field .lab {
    display: block;
    font-size: 12px;
    color: #8a8178;
    margin-bottom: 8px;
    letter-spacing: 0.12em;
}
.lab i {
    font-style: normal;
    color: #a65e2e;
    margin-left: 2px;
}
.box {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 44px;
    padding: 0 12px;
    background: #f6f1e8;
    border: 1px solid #e2d8cc;
    border-radius: 10px;
}
.box:focus-within {
    border-color: #c4a07a;
    background: #fbf7f0;
    box-shadow: 0 0 0 3px rgba(166, 94, 46, 0.08);
}
.box input[type="text"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #141210;
    font-family: inherit;
    height: 42px;
    line-height: 42px;
}
.box input[type="text"]::placeholder { color: #b7aea3; }
.box.pick {
    cursor: pointer;
    padding-right: 28px;
}
.box.pick input[type="text"] {
    caret-color: transparent;
    cursor: pointer;
}
.box.pick::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 1.6px solid #b5aa9e;
    border-bottom: 1.6px solid #b5aa9e;
    transform: rotate(-45deg);
    pointer-events: none;
}
.split-event {
    display: grid;
    grid-template-columns: 1fr 118px;
    gap: 12px;
    align-items: start;
}
.split-place {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}
.side-switch {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 76px;
    cursor: pointer;
}
.side-switch .lab {
    width: 100%;
    text-align: right;
    white-space: nowrap;
}
.side-switch input {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 26px;
    margin: 9px 0 0;
    flex-shrink: 0;
    background: #e4dcd0;
    border: 1px solid #d5cbbf;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.side-switch input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(20, 18, 16, 0.18);
    transition: transform 0.2s;
}
.side-switch input:checked {
    background: #a65e2e;
    border-color: #a65e2e;
}
.side-switch input:checked::after { transform: translateX(18px); }
.seg {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    background: #f6f1e8;
    border: 1px solid #e2d8cc;
    border-radius: 10px;
    padding: 4px;
    min-height: 44px;
    box-sizing: border-box;
}
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg label {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 14px;
    color: #8a8178;
    cursor: pointer;
    line-height: 1.2;
}
.seg label.on {
    background: #fff;
    color: #a65e2e;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(20, 18, 16, 0.08);
}
.actions {
    display: flex;
    gap: 10px;
    margin: 18px 16px 0;
    padding-bottom: 8px;
}
.actions button,
.actions .hist-btn {
    flex: 1;
    min-width: 0;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: 0;
    border-radius: 25px;
    font-size: 16px;
    letter-spacing: 0.16em;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}
.actions button:disabled {
    background: #cbb7a6;
    cursor: not-allowed;
}
.actions .hist-btn {
    background: #fff;
    color: #a65e2e;
    border: 1px solid #a65e2e;
}
.quota-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 4px;
    padding: 10px 12px;
    background: #f6f1e8;
    border: 1px solid #e2d8cc;
    border-radius: 10px;
    font-size: 13px;
    color: #8a8178;
}
.quota-bar b {
    color: #a65e2e;
    font-weight: 600;
}
.lock-card {
    padding: 22px 4px 10px;
    text-align: center;
}
.lock-card strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.lock-card p {
    margin: 0;
    color: #6f675f;
    line-height: 1.7;
    font-size: 14px;
}
.lock-card .go {
    display: block;
    margin-top: 16px;
    height: 46px;
    line-height: 46px;
    border-radius: 23px;
    background: #a65e2e;
    color: #fff;
    text-decoration: none;
}
.lock-card .go.ghost {
    background: #fff;
    color: #a65e2e;
    border: 1px solid #a65e2e;
}
.form-error {
    margin: 12px 0 4px;
    padding: 10px 12px;
    background: #fff1f0;
    color: #b42318;
    border-radius: 10px;
    font-size: 14px;
}
.none, .fppaifa { display: none; }
.fppaifa.is-on,
.fppaifa.dis_flex { display: block; }
