.cosmo-market{display:grid;gap:20px;max-width:var(--page-width);margin-inline:auto;color:var(--ink)}
.market-section{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:clamp(16px,2.6vw,32px);min-width:0}
.market-section>header,.market-country-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.market-section h2,.market-section h3{margin:0;letter-spacing:-.035em}
.market-section>header{margin-bottom:20px}
.market-section h2{font-size:clamp(19px,2vw,24px)}
.market-catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr));gap:12px}
.market-country{display:grid;align-content:start;gap:12px;border:1px solid var(--line);border-radius:15px;padding:18px;background:var(--bg)}
.market-iso,.market-state{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--accent-wash);color:var(--brand-ink);font-weight:600;padding:5px 9px;font-size:13px}
.market-country small,.market-order small{color:var(--muted)}
.market-price,.market-total{font-variant-numeric:tabular-nums;font-size:23px;color:var(--ink)}
.market-order{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.market-order>div:first-child,.market-form{display:grid;gap:8px}
.market-order>div:last-child,.market-check{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.market-form{gap:16px}.market-form .form-note,.market-section>.form-note{margin:0}
.market-check input{width:20px;height:20px;accent-color:var(--accent)}
@media(max-width:760px){.nav button[data-page=market]{display:none}.cosmo-market{gap:12px}.market-section>header{margin-bottom:12px}.market-order .button{min-height:44px}}
.country-flag{display:inline-block;flex:none;width:48px;height:36px;border-radius:6px;box-shadow:inset 0 0 0 1px #0002,0 2px 5px #0002;vertical-align:middle}
.country-line{display:flex;align-items:center;gap:12px}
.market-country-picker,.market-country-input{position:relative;min-width:0}
.market-country-picker .field{margin:0}
.market-country-input input{width:100%;padding-inline-end:38px}
.market-country-input.has-country input{padding-inline-start:46px}
.market-country-input:has([role=combobox])::after{content:"";position:absolute;right:17px;top:calc(50% - 5px);width:7px;height:7px;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
.country-mini{display:inline-block;width:24px;height:18px;flex:none;pointer-events:none}
.country-mini .country-flag{display:block;transform:scale(.5);transform-origin:top left}
.market-country-input>.country-mini{position:absolute;left:14px;top:50%;transform:translateY(-50%)}
.market-country-options{position:absolute;inset:calc(100% + 4px) 0 auto;z-index:3;max-height:min(208px,32dvh);overflow-y:auto;overscroll-behavior:contain;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0003;padding:4px}
.market-country-options[hidden]{display:none}
.market-country-options [role=option]{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;cursor:pointer;border-radius:8px;line-height:1.25}
.market-country-options [role=option] small{margin-inline-start:auto;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.market-country-options [role=option]:is(:hover,.current,[aria-selected=true]){background:var(--accent-wash)}
.market-country-options .country-empty{padding:12px;color:var(--muted)}
.market-section>.country-search{width:min(100%,28rem);margin-bottom:16px}
.market-country{position:relative;overflow:hidden}
.market-country[data-flag="DE"]{--country-tone:#342c28;--country-stripe:linear-gradient(90deg,#272625 33.33%,#e83e39 33.33% 66.66%,#ffcd49 66.66%)}
.market-country[data-flag="SK"]{--country-tone:#164e90;--country-stripe:linear-gradient(90deg,#fff 33.33%,#0b4ea2 33.33% 66.66%,#ee1c25 66.66%)}
.market-country[data-flag="CZ"]{--country-tone:#9c2331}
.market-country .button.country-action{background:var(--country-tone);color:white;border:1px solid color-mix(in srgb,var(--country-tone),white 25%);position:relative;overflow:hidden;font-weight:650}
.country-action::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--country-stripe)}
.market-country .button.country-action:hover{filter:brightness(1.08)}
.country-admin-tools,.country-filters,.country-toggle,.country-pages,.country-pages>div,.market-text-help{display:flex;align-items:center;gap:8px}
.country-admin-tools,.country-pages,.market-text-help{justify-content:space-between;flex-wrap:wrap}
.country-admin-tools{margin-bottom:16px;gap:12px}.country-admin-tools .country-search{flex:1 1 15rem;max-width:28rem;min-width:0}
.country-filters{gap:3px;flex-wrap:wrap;padding:3px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.country-filters button,.country-switch{font:inherit;color:var(--ink);cursor:pointer}
.country-filters button{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 11px;min-height:38px;border:1px solid transparent;border-radius:10px;background:transparent;font-size:14px}
.country-filters button[aria-pressed=true]{border-color:var(--line);background:var(--surface);font-weight:650;box-shadow:0 1px 3px #0002}
.country-filters button span{font-variant-numeric:tabular-nums;color:var(--muted)}
.country-admin-list{border-top:1px solid var(--line)}
.country-admin-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(80px,1.2fr) auto auto auto;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding:10px 0}
.country-admin-name{min-width:0;display:flex;align-items:center;gap:10px}.country-admin-name h3{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.country-admin-name small,.country-admin-description,.market-text-help,.country-pages{color:var(--muted)}
.country-admin-description,.store-country-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.country-admin-description{margin:0;font-size:14px;line-height:1.45}.country-admin-price{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.country-toggle{justify-content:flex-end;min-width:124px}.country-visibility{font-size:13px;color:var(--muted)}
.country-switch{display:grid;place-items:center;position:relative;min-width:48px;min-height:44px;padding:0;border:0;background:transparent}
.country-switch::before{content:'';width:42px;height:24px;border-radius:99px;background:var(--muted);transition:background .15s ease}
.country-switch span{position:absolute;left:calc(50% - 18px);width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:transform .15s ease}
.country-switch[aria-checked=true]::before{background:#247749}.country-switch[aria-checked=true] span{transform:translateX(18px)}
.country-switch:disabled{opacity:.55}.country-switch:focus-visible,.country-filters button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.country-pages{margin-top:14px}.country-pages[hidden]{display:none}.market-text-help{font-size:14px}.market-form textarea{min-height:110px;resize:vertical}
.country-description{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);line-height:1.5}
@media(max-width:1000px){.country-admin-row{grid-template-columns:minmax(0,1fr) auto auto;gap:4px 12px}.country-admin-name{grid-column:1;grid-row:1}.country-admin-description{grid-column:1;grid-row:2}.country-admin-price{grid-column:2;grid-row:1}.country-toggle{grid-column:3;grid-row:1}.country-edit{grid-column:3;grid-row:2;justify-self:end}}
@media(max-width:600px){.country-admin-tools{align-items:stretch}.country-filters{width:100%}.country-filters button{flex:1;padding:6px 4px;font-size:13px}.country-admin-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px}.country-admin-name{grid-column:1;grid-row:1}.country-admin-description{grid-column:1 / -1;grid-row:2}.country-admin-price{grid-column:1;grid-row:3}.country-toggle{grid-column:2;grid-row:1;min-width:0;gap:4px}.country-edit{grid-column:2;grid-row:3}.country-admin-name .country-flag{max-width:none}.country-admin-row .button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.country-switch span,.country-switch::before{transition:none}}
.buyer-portal{min-height:100dvh;background:var(--bg);color:var(--ink)}
.buyer-bar,.buyer-nav,.shared-thread>header,.shared-composer{display:flex;align-items:center;gap:10px}
.buyer-bar{justify-content:space-between;padding:12px clamp(12px,3vw,40px);background:var(--studio-rail);color:var(--rail-ink)}
.buyer-bar .logo{display:inline-flex;align-items:center;gap:10px}.buyer-nav .button[aria-pressed=true]{background:var(--signal);color:var(--signal-ink)}
.buyer-portal .content{padding:clamp(14px,3vw,36px);width:min(100%,1400px);margin-inline:auto}
.shared-inbox{display:grid;grid-template-columns:minmax(208px,32%) minmax(0,1fr);height:clamp(360px,70dvh,850px);border-radius:18px;border:1px solid var(--line);overflow:hidden;background:var(--surface)}
.shared-list{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:12px;border-inline-end:1px solid var(--line)}
.shared-rows,.shared-messages{overflow:auto;overscroll-behavior:contain;min-height:0}
.shared-row{display:flex;align-items:center;gap:10px;width:100%;padding:12px;text-align:start;border:0;border-radius:10px;background:transparent;color:var(--ink);cursor:pointer}
.shared-row:hover,.shared-row[aria-pressed=true]{background:var(--accent-wash)}
.shared-row>span:last-child{min-width:0}.shared-row strong,.shared-row small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.shared-row small,.shared-bubble small,.shared-thread header small{color:var(--muted)}
.shared-initial{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--surface-soft);font-weight:650}
.shared-thread{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--chat-bg)}
.shared-thread>header,.shared-composer{padding:12px 16px;flex-wrap:wrap;background:var(--surface);border-bottom:1px solid var(--line)}
.shared-back.button{display:none}.shared-placeholder{margin:auto;color:var(--muted)}
.shared-messages{flex:1;padding:14px;display:flex;flex-direction:column;gap:8px;overflow-anchor:none}
.shared-bubble{max-width:min(88%,560px);align-self:flex-start;background:var(--bubble);color:var(--ink);border-radius:13px;padding:8px 12px;overflow-wrap:anywhere;white-space:pre-wrap}
.shared-bubble.outgoing{align-self:flex-end;background:var(--bubble-out)}.shared-bubble small{display:block;font-size:12px;text-align:end;margin-top:3px}
.shared-bubble img{max-width:100%;max-height:260px;border-radius:8px}.shared-bubble audio{max-width:100%}
.shared-composer{border-top:1px solid var(--line);border-bottom:0;flex-wrap:nowrap;align-items:flex-end}.shared-composer textarea{min-width:0;min-height:44px;height:44px;flex:1;resize:none;max-height:7rem;line-height:20px;padding:11px 12px}.shared-composer .button{min-height:44px}
@media(max-width:760px){.buyer-bar{flex-wrap:wrap}.buyer-nav{gap:4px}.buyer-nav .button{padding:9px}.shared-inbox{display:block;height:72dvh}.shared-list,.shared-thread{height:100%}.shared-inbox:not(.chat-open) .shared-thread,.shared-inbox.chat-open .shared-list{display:none}.shared-back.button{display:inline-flex}.buyer-bar .identity-name>span{display:none}}
