

.vdc-wrap {
    background: linear-gradient(180deg, rgba(15,118,110,.06), #ffffff 60%);
    padding: 2rem 0 3rem;
}
.vdc-container { max-width: 1080px; margin: 0 auto; padding: 0 1rem; }

.vdc-head { text-align: center; margin-bottom: 1.5rem; }
.vdc-kicker {
    display: inline-block;
    letter-spacing: .08em; text-transform: uppercase;
    font-size: .78rem; font-weight: 600;
    color: #0f766e;
    background: rgba(15,118,110,.10);
    padding: .35rem 1rem; border-radius: 999px;
    margin-bottom: 1rem;
}
.vdc-h1 {
    font-size: clamp(1.55rem, 3.4vw, 2.4rem);
    font-weight: 700; line-height: 1.18;
    margin: 0 0 .6rem; color: #0f172a;
}
.vdc-sub {
    font-size: clamp(.95rem, 1.6vw, 1.05rem);
    color: #475569; max-width: 62ch; margin: 0 auto;
}

.vdc-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(15,23,42,.08);
    border: 1px solid rgba(15,23,42,.06);
    overflow: hidden;
}
.vdc-step { padding: 1.5rem; border-bottom: 1px solid rgba(15,23,42,.06); }
.vdc-step:last-child { border-bottom: 0; }
.vdc-step-head {
    display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem;
}
.vdc-step-num {
    width: 28px; height: 28px; flex: 0 0 28px;
    background: #0f766e; color: #fff;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
}
.vdc-step-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0; }
.vdc-step-help { color: #64748b; font-size: .9rem; margin: -.4rem 0 .9rem 2.3rem; }

.vdc-search {
    position: relative; margin-bottom: .9rem;
}
.vdc-search input {
    width: 100%; padding: .65rem .9rem .65rem 2.3rem;
    border: 1px solid #cbd5e1; border-radius: 10px;
    font-size: .98rem; background: #f8fafc;
    transition: border-color 150ms ease, background 150ms ease;
}
.vdc-search input:focus {
    outline: none; border-color: #0f766e; background: #fff;
    box-shadow: 0 0 0 3px rgba(15,118,110,.15);
}
.vdc-search-icon {
    position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
    color: #94a3b8; pointer-events: none;
}

.vdc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
}
@media (min-width: 576px) { .vdc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .vdc-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .vdc-grid { grid-template-columns: repeat(5, 1fr); } }

.vdc-tile {
    background: #f8fafc; border: 2px solid transparent;
    border-radius: 10px; padding: .8rem .65rem;
    cursor: pointer; text-align: left;
    transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
    font: inherit; color: #0f172a;
    display: flex; align-items: center; gap: .55rem;
    width: 100%;
}
.vdc-tile:hover { background: #f0fdfa; border-color: rgba(15,118,110,.25); }
.vdc-tile:active { transform: scale(.98); }
.vdc-tile.is-active {
    background: rgba(15,118,110,.10); border-color: #0f766e;
    box-shadow: inset 0 0 0 1px #0f766e;
}
.vdc-tile.is-hidden { display: none; }
.vdc-tile-mark {
    width: 32px; height: 32px; flex: 0 0 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #0f766e;
    font-size: .78rem; letter-spacing: .03em;
}
.vdc-tile.is-active .vdc-tile-mark {
    background: #0f766e; border-color: #0f766e; color: #fff;
}
.vdc-tile-name {
    font-size: .88rem; font-weight: 600; line-height: 1.25;
}
.vdc-tile-rule {
    display: block; font-size: .72rem; font-weight: 500;
    color: #64748b; margin-top: .15rem;
}

.vdc-empty {
    grid-column: 1 / -1;
    text-align: center; color: #64748b; font-size: .9rem;
    padding: 1rem .5rem;
}

.vdc-rule-card {
    background: #f0fdfa; border-left: 3px solid #0f766e;
    padding: .85rem 1rem; border-radius: 0 10px 10px 0;
    margin-bottom: 1rem;
}
.vdc-rule-name { font-weight: 700; color: #0f766e; font-size: 1rem; margin: 0 0 .25rem; }
.vdc-rule-desc { font-size: .9rem; color: #334155; margin: 0; line-height: 1.45; }
.vdc-rule-link {
    display: inline-block; margin-top: .5rem; font-size: .85rem;
    color: #0f766e; text-decoration: underline; font-weight: 600;
}

.vdc-trips-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .6rem; flex-wrap: wrap; gap: .5rem;
}
.vdc-ref {
    display: flex; align-items: center; gap: .5rem;
    font-size: .88rem; color: #475569;
}
.vdc-ref input { padding: .35rem .55rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: .88rem; }
.vdc-trips-list { display: flex; flex-direction: column; gap: .55rem; }
.vdc-trip {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: .5rem; align-items: center;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: .55rem .65rem;
}
.vdc-trip label {
    display: block; font-size: .72rem; color: #64748b;
    text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
    margin-bottom: .12rem;
}
.vdc-trip input[type="date"] {
    width: 100%; padding: .45rem .55rem;
    border: 1px solid #cbd5e1; border-radius: 6px;
    font-size: .95rem; background: #fff; color: #0f172a;
}
.vdc-trip-remove {
    background: transparent; border: 0; color: #94a3b8;
    cursor: pointer; padding: .45rem .35rem;
    align-self: end; transition: color 100ms ease;
}
.vdc-trip-remove:hover { color: #ef4444; }
.vdc-trip-remove svg { display: block; }

.vdc-add-trip {
    margin-top: .85rem;
    background: transparent; border: 1px dashed #94a3b8;
    color: #0f766e; font-weight: 600;
    width: 100%; padding: .7rem; border-radius: 10px;
    cursor: pointer; transition: all 120ms ease;
    font-size: .92rem;
}
.vdc-add-trip:hover { background: rgba(15,118,110,.06); border-color: #0f766e; }

.vdc-results { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .vdc-results { grid-template-columns: 1fr 1fr; } }

.vdc-result {
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 1rem 1.1rem;
}
.vdc-result-label {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
    color: #64748b; font-weight: 600; margin-bottom: .35rem;
}
.vdc-result-value {
    font-size: 1.9rem; font-weight: 700; color: #0f172a; line-height: 1.1;
}
.vdc-result-value-sub {
    font-size: .85rem; color: #64748b; font-weight: 500; margin-top: .15rem;
}
.vdc-result.is-warn { background: #fff7ed; border-color: #fed7aa; }
.vdc-result.is-warn .vdc-result-label { color: #c2410c; }
.vdc-result.is-warn .vdc-result-value { color: #c2410c; }
.vdc-result.is-danger { background: #fef2f2; border-color: #fecaca; }
.vdc-result.is-danger .vdc-result-label { color: #b91c1c; }
.vdc-result.is-danger .vdc-result-value { color: #b91c1c; }
.vdc-result.is-success { background: #f0fdf4; border-color: #bbf7d0; }
.vdc-result.is-success .vdc-result-label { color: #166534; }
.vdc-result.is-success .vdc-result-value { color: #166534; }

.vdc-bar-wrap { margin-top: .25rem; }
.vdc-bar {
    height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden;
}
.vdc-bar-fill {
    height: 100%; background: #0f766e; border-radius: 999px;
    transition: width 250ms ease, background 250ms ease;
}
.vdc-bar.is-warn .vdc-bar-fill { background: #ea580c; }
.vdc-bar.is-danger .vdc-bar-fill { background: #dc2626; }

.vdc-empty-state {
    text-align: center; color: #94a3b8; padding: 2rem .5rem;
    font-size: .92rem;
}
.vdc-info {
    background: #f8fafc; border: 1px dashed #cbd5e1;
    border-radius: 10px; padding: .85rem 1rem;
    font-size: .88rem; color: #475569; line-height: 1.5;
    margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .vdc-tile, .vdc-bar-fill, .vdc-add-trip { transition: none !important; }
}

.vdc-trip-card {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 1rem;
    margin-bottom: .6rem;
    transition: border-color 120ms ease;
}
.vdc-trip-card:hover { border-color: #cbd5e1; }
.vdc-trip-head {
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .85rem; flex-wrap: wrap;
}
.vdc-trip-name { font-size: .95rem; color: #475569; font-weight: 600; }
.vdc-trip-visa-name {
    font-size: .82rem; color: #0f766e; font-weight: 600;
    background: rgba(15,118,110,.10);
    padding: .2rem .65rem; border-radius: 999px;
    white-space: nowrap;
}
.vdc-trip-remove-x {
    margin-left: auto;
    background: transparent; border: 0; color: #94a3b8;
    cursor: pointer; padding: .3rem; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color 120ms ease, background 120ms ease;
}
.vdc-trip-remove-x:hover { color: #ef4444; background: #fef2f2; }
.vdc-trip-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
}
@media (min-width: 576px) {
    .vdc-trip-fields { grid-template-columns: minmax(180px, 1.6fr) 1fr 1fr; }
}
.vdc-trip-field label {
    display: block; font-size: .72rem; color: #64748b;
    text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
    margin-bottom: .18rem;
}
.vdc-trip-field input[type="date"],
.vdc-visa-select {
    width: 100%; padding: .55rem .65rem;
    border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: .95rem; background: #fff; color: #0f172a;
    line-height: 1.2;
}
.vdc-visa-select { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right .6rem center;
    padding-right: 1.9rem;
}
.vdc-trip-field input[type="date"]:focus,
.vdc-visa-select:focus {
    outline: none; border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15,118,110,.15);
}

.vdc-ref-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: .6rem; margin-top: 1.1rem;
    background: #f0fdfa; border: 1px dashed rgba(15,118,110,.3);
    border-radius: 10px; padding: .7rem .9rem;
}
.vdc-ref-row label { font-size: .88rem; color: #134e4a; font-weight: 600; }
.vdc-ref-row input[type="date"] {
    padding: .45rem .6rem; border: 1px solid #cbd5e1; border-radius: 6px;
    background: #fff; font-size: .9rem;
}
.vdc-ref-hint { font-size: .8rem; color: #64748b; flex-basis: 100%; margin: 0; }

.vdc-counter {
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: .9rem 1.1rem;
}
.vdc-counter-head {
    display: flex; align-items: center; gap: .55rem;
    margin-bottom: .6rem;
    padding-bottom: .55rem; border-bottom: 1px solid #f1f5f9;
}
.vdc-counter-name { font-size: 1rem; color: #0f172a; }
.vdc-counter-rule {
    margin-left: auto; font-size: .76rem; color: #0f766e;
    background: rgba(15,118,110,.10); padding: .15rem .6rem;
    border-radius: 999px; font-weight: 700;
    white-space: nowrap;
}
.vdc-counter-row {
    padding: .55rem 0; border-bottom: 1px dashed #f1f5f9;
}
.vdc-counter-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vdc-counter-row.is-warn .vdc-result-value { color: #c2410c; }
.vdc-counter-row.is-danger .vdc-result-value { color: #b91c1c; }
.vdc-counter-row.is-success .vdc-result-value { color: #166534; }

.vdc-supported {
    background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.vdc-supported summary {
    cursor: pointer; padding: 1rem 1.5rem;
    font-size: .98rem; color: #0f172a;
    user-select: none;
    list-style: none;
}
.vdc-supported summary::-webkit-details-marker { display: none; }
.vdc-supported summary::before {
    content: "+"; display: inline-block; width: 1.2rem;
    color: #0f766e; font-weight: 700; font-size: 1.1rem;
    transition: transform 150ms ease;
}
.vdc-supported[open] summary::before { content: "−"; }
.vdc-step-help-inline { color: #64748b; font-weight: 400; }
.vdc-supported-list {
    list-style: none; padding: 0 1.5rem 1.5rem; margin: 0;
    display: grid; gap: .65rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .vdc-supported-list { grid-template-columns: 1fr 1fr; } }
.vdc-supported-item {
    background: #fff; padding: .85rem .95rem;
    border: 1px solid #e2e8f0; border-radius: 10px;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem;
}
.vdc-supported-link { color: #0f172a; text-decoration: none; }
.vdc-supported-link:hover { color: #0f766e; text-decoration: underline; }
.vdc-supported-rule {
    font-size: .78rem; color: #0f766e; font-weight: 700;
    background: rgba(15,118,110,.10); padding: .1rem .5rem;
    border-radius: 999px; margin-left: .25rem;
}
.vdc-supported-desc {
    flex-basis: 100%; margin-top: .25rem;
    font-size: .85rem; color: #475569; line-height: 1.45;
}

.vdc-actions {
    display: flex; flex-wrap: wrap; gap: .55rem;
    margin-top: 1rem; align-items: center;
}
.vdc-action-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #0f766e; color: #fff;
    border: 1px solid #0f766e; border-radius: 10px;
    padding: .55rem 1rem;
    font-size: .92rem; font-weight: 600;
    cursor: pointer; transition: background 120ms ease, border-color 120ms ease;
}
.vdc-action-btn:hover { background: #115e58; border-color: #115e58; }
.vdc-action-btn-ghost {
    background: transparent; color: #475569;
    border: 1px solid #cbd5e1;
}
.vdc-action-btn-ghost:hover { background: #f8fafc; color: #0f172a; border-color: #94a3b8; }
.vdc-saved-hint { font-size: .78rem; color: #94a3b8; margin-left: auto; }

@media print {
    body * { visibility: hidden; }
    [data-vdc-root], [data-vdc-root] * { visibility: visible; }
    [data-vdc-root] { position: absolute; inset: 0; padding: 1rem; background: #fff; }
    .vdc-wrap { background: #fff !important; padding: 0; }
    .vdc-card { box-shadow: none; border: 1px solid #cbd5e1; }
    .vdc-trips-list, .vdc-add-trip, .vdc-ref-row, .vdc-actions, .vdc-supported, .vdc-step-help { display: none !important; }
}
