/* tourraum.de — mock5 design language: Poppins, brand blue, photo hero, navy footer */

@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap;
    src: url('../fonts/poppins-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap;
    src: url('../fonts/poppins-600-latin.woff2') format('woff2'); }

:root {
    --blue: #1B70C6;
    --blue-dark: #12518F;
    --navy: #0C447C;
    --night: #042C53;
    --tint: #E4EEF9;
    --ink: #1c1c1c;
    --muted: #5f6c7b;
    --line: #dfe5ec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', system-ui, sans-serif; color: var(--ink);
    line-height: 1.65; background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 99; }

/* Buttons */
.btn { display: inline-block; border-radius: 10px; padding: 13px 26px;
    font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: rgba(255,255,255,.85); color: var(--navy); }
.btn-ghost:hover { background: #fff; }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--tint); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge { height: 36px; width: auto; }
.brand-word { font-weight: 600; font-size: 21px; color: var(--ink); }
.brand-word b { color: var(--blue); font-weight: 600; }
.brand-word-light { color: #fff; font-size: 24px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none;
    border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 12px; }
.lang-switch:hover { border-color: var(--blue); color: var(--blue); }
.back-link { margin-top: 34px; }
@media (max-width: 760px) { .nav { display: none; } }

/* Hero */
.hero { background-size: cover; background-position: center; }
.hero-overlay { background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.25) 45%, rgba(4,44,83,.45)); }
.hero-inner { padding: 110px 22px 130px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; color: var(--night);
    line-height: 1.18; text-shadow: 0 1px 12px rgba(255,255,255,.65); }
.hero-sub { max-width: 640px; margin: 18px auto 30px; font-size: 17px; color: #23384d;
    text-shadow: 0 1px 10px rgba(255,255,255,.75); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-top: 34px; list-style: none; }
.hero-badges li { background: rgba(255,255,255,.9); color: var(--navy); font-size: 13px;
    font-weight: 600; padding: 7px 16px; border-radius: 999px; }

/* Sections */
.section { padding: 74px 0; }
.section-tinted { background: var(--tint); }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 600; color: var(--night);
    text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 40px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 26px 24px; }
.card h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--tint);
    color: var(--blue); display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; }
.card-icon svg { width: 26px; height: 26px; }

/* Tour embed */
.tour-embed { border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(4,44,83,.16); }
.tour-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px; margin-top: 40px; }
.step { text-align: center; padding: 0 10px; }
.step-num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
    background: var(--blue); color: #fff; font-weight: 600; font-size: 19px;
    align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* USP band */
.band { background: var(--night); color: #fff; padding: 64px 0; }
.band-inner { text-align: center; }
.band h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; margin-bottom: 22px; }
.band ul { list-style: none; display: flex; gap: 26px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 18px; }
.band li { font-size: 15px; }
.band li::before { content: '✓'; color: #7db4e8; margin-right: 8px; font-weight: 600; }
.band-note { color: #9dbede; font-size: 14px; }

/* Pricing */
.pricing .card { text-align: center; position: relative; padding-top: 34px; }
.pricing .price { font-size: 22px; font-weight: 600; color: var(--ink); margin: 6px 0 16px; }
.pricing ul { list-style: none; margin-bottom: 22px; }
.pricing li { font-size: 14px; color: var(--muted); padding: 4px 0; }
.card-featured { border: 2px solid var(--blue); }
.card-featured .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
    padding: 4px 16px; border-radius: 999px; }

/* Contact */
.contact-inner { text-align: center; }

/* Legal */
.legal h1 { text-align: left; }
.legal h2 { font-size: 17px; font-weight: 600; color: var(--navy); margin: 26px 0 8px; }
.legal p { margin-bottom: 10px; font-size: 15px; }
.legal .micro { color: var(--muted); font-size: 13px; margin-top: 30px; }

/* Footer */
.site-footer { background: var(--night); color: #cfe0f2; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
    padding: 54px 22px 34px; }
.footer-brand p { font-size: 14px; color: #9dbede; margin-top: 12px; }
.footer-col h3 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; color: #cfe0f2; font-size: 14px;
    text-decoration: none; padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 16px 22px 26px; border-top: 1px solid rgba(255,255,255,.14);
    font-size: 13px; color: #9dbede; }
.footer-legal a { color: #cfe0f2; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- Backend / auth (conservative, same design language) ---------- */
.auth-body { background: var(--tint); min-height: 100vh; display: flex;
    align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 34px 30px; width: 100%; max-width: 420px; }
.auth-brand { justify-content: center; margin-bottom: 22px; display: flex; }
.auth-title { font-size: 22px; font-weight: 600; color: var(--night); margin-bottom: 18px;
    text-align: center; }
.auth-info { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.auth-links { margin-top: 18px; font-size: 14px; text-align: center; line-height: 1.9; }
.auth-lang { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-lang a { color: var(--muted); }
.auth-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0;
    color: var(--muted); font-size: 13px; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

label { display: block; font-size: 14px; font-weight: 600; color: var(--navy);
    margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], select {
    width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
    font-family: inherit; font-size: 15px; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
input[type=file] { font-size: 14px; margin: 6px 0; max-width: 100%; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px;
    color: var(--ink); margin: 12px 0; }
.check input { width: auto; }
.check-disabled { color: var(--muted); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 18px; border: 0; cursor: pointer; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-outline { border: 1.5px solid var(--blue); background: #fff; }
.btn-danger { background: #fff; border: 1.5px solid #c0392b; color: #c0392b; }
.btn-danger:hover { background: #fdf0ee; }

.alert { border-radius: 8px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fdf0ee; color: #8f2a1d; border: 1px solid #f0c4bc; }
.alert-ok { background: #ecf6ee; color: #1e6b34; border: 1px solid #c4e3cc; }

.app-body { background: #f7f9fc; min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; width: 100%; padding-top: 30px; padding-bottom: 50px; }
.app-nav { margin-left: 30px; margin-right: auto; }
.app-nav-mobile { display: none; }
.app-title { font-size: 24px; font-weight: 600; color: var(--night); margin: 6px 0 20px; }
.app-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-title-row .app-title { margin-bottom: 0; }
.app-empty { color: var(--muted); margin-top: 20px; }
.app-footer { background: transparent; border-top: 1px solid var(--line);
    padding: 14px 0; font-size: 13px; color: var(--muted); }
.app-footer a { color: var(--muted); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px; margin-top: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 20px; }
.stat-num { font-size: 30px; font-weight: 600; color: var(--blue); display: block; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-card-info { display: flex; align-items: center; background: var(--tint); border-color: var(--tint); }

.tour-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.tour-row { background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 18px; display: grid; grid-template-columns: 1fr auto;
    gap: 4px 14px; align-items: center; }
.tour-row-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tour-row-title { font-weight: 600; color: var(--night); text-decoration: none; font-size: 16px; }
.tour-row-meta { font-size: 13px; color: var(--muted); grid-column: 1; }
.tour-row-actions { grid-row: 1 / span 2; grid-column: 2; }
.status { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.status-draft { background: #f1f1ee; color: #5f5e5a; }
.status-published { background: #ecf6ee; color: #1e6b34; }
.status-archived, .status-expired { background: #fdf0ee; color: #8f2a1d; }

.tour-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 18px 0 22px; }
.tour-toolbar .inline { display: inline; }
.tour-toolbar .right { margin-left: auto; }
.hint { font-size: 13px; color: var(--muted); }

.editor-grid { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 20px; }
.editor-panel h2 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.stack { display: flex; flex-direction: column; align-items: flex-start; }
.stack input[type=text], .stack input[type=password] { width: 100%; }
.stack .btn { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* (obsolete read-only floorplan styles removed — replaced by the canvas editor) */

.wp-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px;
    background: #fff; }
.wp-item summary { cursor: pointer; padding: 12px 14px; font-size: 15px; font-weight: 600;
    color: var(--ink); display: flex; align-items: center; gap: 10px; list-style: none; }
.wp-item summary::-webkit-details-marker { display: none; }
.wp-item[open] summary { border-bottom: 1px solid var(--line); }
.wp-item form.wp-form { padding: 4px 14px 14px; }
.wp-item > form.inline { padding: 0 14px 14px; }
.wp-num { width: 24px; height: 24px; border-radius: 50%; background: var(--tint);
    color: var(--navy); font-size: 13px; display: inline-flex; align-items: center;
    justify-content: center; flex-shrink: 0; }
.wp-kind { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.wp-thumb { max-height: 120px; border-radius: 6px; margin-top: 8px; }
.wp-new summary { color: var(--blue); }

.link-list { list-style: none; margin: 10px 0; }
.link-list li { display: flex; align-items: center; gap: 8px; font-size: 14px;
    padding: 7px 0; border-bottom: 1px solid var(--line); }
.link-x { border: 0; background: none; color: #c0392b; font-size: 17px; cursor: pointer;
    margin-left: auto; line-height: 1; }
.link-form select { width: auto; flex: 1; min-width: 120px; }

.app-form { max-width: 480px; }
.app-form .btn { margin-top: 20px; border: 0; cursor: pointer; }

@media (max-width: 760px) {
    .app-nav { display: none; }
    .app-nav-mobile { display: flex; gap: 4px; padding: 0 14px 10px; }
    .app-nav-mobile a { flex: 1; text-align: center; font-size: 14px; color: var(--navy);
        text-decoration: none; background: var(--tint); border-radius: 8px; padding: 8px 4px; }
    .tour-row { grid-template-columns: 1fr; }
    .tour-row-actions { grid-row: auto; grid-column: 1; }
}

/* App teaser + header login */
.header-login { font-size: 15px; color: var(--ink); text-decoration: none; }
.header-login:hover { color: var(--blue); }
.app-teaser { display: flex; gap: 22px; align-items: flex-start; background: #fff;
    border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.app-teaser-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--tint);
    color: var(--blue); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; }
.app-teaser-icon svg { width: 30px; height: 30px; }
.app-teaser h2 { font-size: 19px; font-weight: 600; color: var(--night); margin: 8px 0 6px; }
.app-teaser p { font-size: 14px; color: var(--muted); max-width: 640px; }
.app-teaser-badge { font-size: 12px; font-weight: 600; background: var(--tint);
    color: var(--navy); border-radius: 999px; padding: 3px 12px; }
#app-teaser { padding-top: 0; }

/* Direction picker */
.link-dir { border: 1px solid var(--line); background: #fff; color: var(--blue);
    font-family: inherit; font-size: 12px; border-radius: 999px; padding: 3px 10px;
    cursor: pointer; }
.link-dir.is-set { border-color: #c4e3cc; background: #ecf6ee; color: #1e6b34; }
.dir-modal { position: fixed; inset: 0; background: rgba(4,44,83,.55); z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 16px; }
.dir-modal[hidden] { display: none; }
.dir-box { background: #fff; border-radius: 14px; padding: 16px; width: 100%;
    max-width: 760px; }
.dir-pano { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
    background: #042C53; margin: 10px 0; }
.dir-marker { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #1B70C6;
    background: rgba(255,255,255,.85); transform: translate(-50%, -50%); margin: 15px; }

/* Statistics charts (pure CSS) */
.chart-days { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 18px; }
.chart-day { flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: flex-end; height: 100%; gap: 4px; }
.chart-day-bar { width: 100%; max-width: 26px; background: var(--blue); border-radius: 4px 4px 0 0; }
.chart-day-num { font-size: 11px; color: var(--navy); font-weight: 600; }
.chart-day-lbl { font-size: 10px; color: var(--muted); }
.chart-rooms { display: flex; flex-direction: column; gap: 12px; }
.chart-room-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.chart-room-track { background: var(--tint); border-radius: 6px; height: 14px; margin: 3px 0; }
.chart-room-bar { background: var(--blue); border-radius: 6px; height: 100%; }
.chart-room-val { font-size: 12px; color: var(--muted); }

/* Language bar (App-Store-style locale lanes) */
.lang-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.lang-bar-label { font-size: 13px; color: var(--muted); }
.lang-pill { font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none;
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.lang-pill:hover { border-color: var(--blue); }
.lang-pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.lang-primary { opacity: .7; }
.lang-add { position: relative; display: inline-block; }
.lang-add summary { list-style: none; }
.lang-add summary::-webkit-details-marker { display: none; }
.lang-pill-add { color: var(--blue); }
.lang-add-form { position: absolute; z-index: 20; margin-top: 6px; background: #fff;
    border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; gap: 8px;
    box-shadow: 0 8px 24px rgba(4,44,83,.14); }
.lang-remove { margin-left: auto; }
.lang-remove-btn { border: 0; background: none; color: #c0392b; font-size: 12px; cursor: pointer; }
.lane-name, .lane-tag { color: var(--blue); }
.lane-tag { font-size: 11px; font-weight: 600; background: var(--tint); color: var(--navy);
    border-radius: 999px; padding: 1px 8px; margin-left: 4px; }

/* Compact dropzones */
.dropzone { display: block; position: relative; border: 1.5px dashed var(--border-strong, #b9c4d0);
    border-radius: 10px; background: #fafcff; padding: 14px; cursor: pointer; text-align: center;
    transition: border-color .12s, background .12s; margin: 4px 0 2px; }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--tint); }
.dropzone.filled { border-style: solid; border-color: #c4e3cc; background: #f2faf4; }
.dz-inner { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dz-ico { font-style: normal; font-size: 16px; color: var(--blue); }
.dz-preview { display: block; max-height: 90px; border-radius: 6px; margin: 0 auto 8px; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
    font-family: inherit; font-size: 14px; resize: vertical; }
textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.shared-ref { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.shared-ref img { max-height: 54px; border-radius: 6px; border: 1px solid var(--line); }
.dz-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400;
    color: var(--ink); margin: 8px 0 2px; cursor: pointer; }
.dz-toggle input { width: auto; }
.linkish { border: 0; background: none; color: var(--blue); font-size: 13px; cursor: pointer;
    padding: 4px 0; text-decoration: underline; }

/* ---- Floor-plan canvas editor ---- */
.canvas-panel { padding: 16px; }
.canvas-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.canvas-toolbar .hint { flex: 1; min-width: 180px; }
.fp-replace { position: relative; }
.fp-replace summary { list-style: none; }
.fp-replace summary::-webkit-details-marker { display: none; }
.fp-replace-form { position: absolute; right: 0; z-index: 20; margin-top: 6px; width: 280px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
    box-shadow: 0 8px 24px rgba(4,44,83,.16); }
.fp-canvas { position: relative; width: 100%; max-width: 960px; margin: 0 auto;
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden; user-select: none; background: #f4f6f9; }
.fp-canvas img { display: block; width: 100%; }
.fp-canvas.armed { cursor: crosshair; }
.fp-canvas.armed img { cursor: crosshair; }
.fp-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fp-link { stroke: #1B70C6; stroke-width: 0.6; stroke-linecap: round; }
.mode-connect .fp-link-hit { stroke: transparent; stroke-width: 3; pointer-events: stroke; cursor: pointer; }
.mode-connect .fp-links { pointer-events: auto; }
.fp-pins { position: absolute; inset: 0; }
.fp-pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; pointer-events: auto;
    border-radius: 50%; background: var(--blue); color: #fff; border: 3px solid #fff;
    font-size: 13px; font-weight: 600; cursor: grab; box-shadow: 0 1px 5px rgba(4,44,83,.4);
    display: flex; align-items: center; justify-content: center; padding: 0; }
.fp-pin:hover { background: var(--blue-dark); }
.fp-pin.selected { outline: 3px solid var(--blue); outline-offset: 2px; }
.fp-pin.pending { background: #e08a1e; }
.fp-pin.nomedia { background: #8a97a6; }
.mode-connect .fp-pin { cursor: pointer; }

.wp-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.wp-detail-head strong { font-size: 16px; color: var(--navy); }
.wp-detail-head .wp-detail-del { margin-left: auto; }
.wp-detail-empty { padding: 8px 0; }

.dropzone-lg { padding: 40px; }

/* ---- Graphic confirm modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(4,44,83,.5); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 14px; padding: 26px 28px; width: 100%; max-width: 440px;
    box-shadow: 0 24px 60px rgba(4,44,83,.3); }
.modal-box h3 { font-size: 19px; font-weight: 600; color: var(--night); margin-bottom: 10px; }
.modal-box p { font-size: 15px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Connection rows (one per bidirectional connection) */
.conn-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.conn-name { font-weight: 600; color: var(--navy); }
.conn-dirs { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
