:root {
    --bg: #f6f8fa;
    --card: #fff;
    --ink: #131a29;
    --mut: #5b6472;
    --line: #e3e8ee;
    --teal: #33736b;
    --teal2: #265c55;
    --mint: #eefaf4;
    --acc: #c2410c
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(900px 400px at 50% -100px, #e4f5ee, transparent), var(--bg);
    color: var(--ink);
    font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif
}

.wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 20px 60px
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -.03em
}

.logo b {
    background: var(--teal);
    color: #fff;
    border-radius: 10px;
    padding: 2px 9px;
    margin-right: 6px
}

.star {
    display: inline-flex;
    align-items: stretch;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(19, 26, 41, .06)
}

.star span {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 7px
}

.star span + span {
    background: var(--ink);
    color: #fff;
    min-width: 44px;
    justify-content: center
}

.star:hover {
    border-color: var(--teal)
}

.star svg {
    fill: #e0a800
}

.hero {
    text-align: center;
    margin: 56px auto 36px;
    max-width: 660px
}

h1 {
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin: 0 0 16px;
    font-weight: 800
}

.hero p {
    color: var(--mut);
    font-size: 18px;
    margin: 0
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(19, 26, 41, .05)
}

h2 {
    font-size: 18px;
    margin: 0 0 14px
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end
}

label.f {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mut);
    flex: 1;
    min-width: 130px
}

select, input[type=text] {
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f9fafc;
    width: 100%
}

select:focus, input:focus {
    outline: 2px solid var(--teal);
    border-color: transparent
}

.cities {
    list-style: none;
    margin: 14px 0;
    padding: 0;
    display: grid;
    gap: 8px
}

.cities li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--mint);
    border-radius: 14px;
    font-weight: 600
}

.cities small {
    color: var(--mut);
    font-weight: 400;
    margin-left: 6px
}

.empty {
    color: var(--mut);
    font-size: 14px;
    margin: 12px 0
}

.del {
    border: 0;
    background: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    color: #b42318;
    font: 600 13px inherit;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid #f3d3cf
}

.del:hover {
    background: #fff1f0
}

.ac {
    position: relative
}

.dd {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(19, 26, 41, .14);
    max-height: 280px;
    overflow: auto;
    z-index: 10;
    display: none
}

.dd div {
    padding: 10px 14px;
    cursor: pointer
}

.dd div:hover, .dd div.on {
    background: var(--mint)
}

.dd small {
    color: var(--mut)
}

.dd .n {
    color: var(--mut);
    cursor: default
}

.dd .n:hover {
    background: none
}

.link {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--ink);
    color: #cbd5e1;
    border-radius: 24px;
    padding: 18px 20px
}

.link a {
    flex: 1;
    min-width: 240px;
    word-break: break-all;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 15px
}

.link a:hover {
    text-decoration: underline
}

.link a i {
    font-style: normal;
    color: #6ee7b7;
    font-weight: 700
}

.link .ph {
    flex: 1;
    color: #94a3b8;
    font-size: 15px
}

.btn {
    font: 700 15px inherit;
    font-family: inherit;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap
}

.btn:hover:not(:disabled) {
    filter: brightness(.94)
}

.btn:disabled {
    opacity: .55;
    cursor: default
}

.gen {
    display: block;
    width: 100%;
    font-size: 22px;
    font-weight: 800;
    padding: 24px;
    border: 0;
    border-radius: 26px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(51, 115, 107, .35);
    font-family: inherit;
    margin-bottom: 18px;
    transition: transform .1s, background .2s
}

.gen:hover {
    background: var(--teal2)
}

.gen:active {
    transform: scale(.99)
}

.io p {
    color: #8b93a1;
    font-size: 14px;
    margin: 0 0 10px
}

.io a {
    color: var(--teal);
    font-weight: 700;
    margin-right: 20px;
    cursor: pointer
}

.msg {
    min-height: 22px;
    text-align: center;
    font-size: 14px;
    color: var(--mut);
    margin: -4px 0 14px
}

.msg.err {
    color: #b42318
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px
}

.export-import {
    text-align: center;
    color: var(--mut);
    font-size: 12px;
    padding: 0 30px;
}

.export-import p {
    padding-bottom: 0;
    margin-bottom: 0;
}

#cnt {
    color:#8b93a1;
    font-size:14px;
}

.export-import a {
    color: var(--teal);
    font-weight: 500;
    cursor: pointer;
}

.export-import a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .card {
        padding: 18px;
        border-radius: 22px
    }

    .hero p {
        font-size: 16px
    }
}
