@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format('woff2'); }
:root { --page: #f3f4f6; --card: #ffffff; --border: #e0dfdc; --text: #1d2226; --muted: #666666; --accent: #0a66c2; --accent-hover: #004182; --soft: #f3f6fa; --good: #1a7f37; --radius: 14px; color-scheme: light; }
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--text); font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:root { --x-line: #e6e8ec; --x-mute: #6b737c; --x-soft: #f3f6fa; --x-ok: #1a7f37; --x-warn: #8a5a00; --x-bad: #b3261e; }
body.x { background: var(--page); padding-bottom: 0; }
#xapp { max-width: 720px; margin: 0 auto; padding: 12px 12px 110px; }
body.auth #xapp { padding-bottom: 40px; }


.x-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--x-line); }
.x-top-in { max-width: 720px; margin: 0 auto; padding: 10px 14px; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.x-brand { display: flex; align-items: baseline; gap: 8px; }
.x-brand b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.x-brand span { font-size: 12px; font-weight: 600; color: var(--x-mute); }
.x-top .grow { flex: 1; }
.x-ib { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.x-ib:hover { background: rgba(127,127,127,.12); }
.x-ib svg, .x-ic { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.x-dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.x-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #f26b4f, #f2a65a); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; border: 0; cursor: pointer; }
.x-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--x-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-bottom: 2px solid var(--accent); display: flex; justify-content: center; }
.x-nav-in { width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; }
.x-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; font-size: 11px; font-weight: 500; color: #7a828b; }
.x-nav a.on { color: var(--accent); font-weight: 700; }
.x-nav a .x-ic { width: 22px; height: 22px; }
.x-nav a.add .plus { width: 58px; height: 58px; margin-top: -28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(10,102,194,.35); }
.x-nav a.add .plus .x-ic { stroke-width: 2.2; width: 28px; height: 28px; }
.x-nav a.add { color: var(--accent); font-weight: 600; }
body.auth .x-nav { display: none; }


.x-card { background: var(--card); border: 1px solid var(--x-line); border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(20,30,50,.04); }
.x-card.flush { padding: 0; overflow: hidden; }
.x-h { display: flex; align-items: center; gap: 10px; margin: 6px 4px 12px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.x-h::before { content: ""; width: 5px; height: 24px; border-radius: 3px; background: var(--accent); flex: none; }
.x-h small { font-size: 13px; font-weight: 400; color: var(--x-mute); margin-left: 2px; }
.x-h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.x-sub { margin: -4px 4px 14px; font-size: 13.5px; color: var(--x-mute); line-height: 1.5; }
.x-p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #3a434c; }
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.x-btn:hover { background: var(--accent-hover); }
.x-btn.ghost { background: #fff; color: var(--accent); }
.x-btn.ghost:hover { background: rgba(10,102,194,.07); }
.x-btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.x-btn.block { width: 100%; }
.x-btn.danger { background: #fff; color: var(--x-bad); border-color: #e7b9b5; }
.x-btn[disabled] { opacity: .45; cursor: not-allowed; }
.x-btn .x-ic { width: 18px; height: 18px; }
.x-link { color: var(--accent); font-weight: 500; font-size: 13.5px; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.x-link:hover { text-decoration: underline; }
.x-row { display: flex; align-items: center; gap: 10px; }
.x-row.between { justify-content: space-between; }
.x-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-muted { color: var(--x-mute); font-size: 12.5px; }


.x-f { margin-bottom: 14px; }
.x-f label, .x-lab { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 600; color: #4a5560; }
.x-f label i { font-style: normal; font-weight: 400; color: #8b939c; margin-left: 4px; }
.x-in, .x-ta, .x-sel { width: 100%; border: 1px solid #d9dde3; border-radius: 10px; background: #fff; font: inherit; font-size: 14.5px; color: var(--text); padding: 0 12px; height: 44px; }
.x-ta { height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.x-sel { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b737c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.x-in:focus, .x-ta:focus, .x-sel:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.x-in.price { font-size: 22px; font-weight: 700; padding-left: 34px; height: 52px; }
.x-money { position: relative; } .x-money::before { content: "\20b5"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 20px; color: var(--x-mute); }
.x-money.sm::before { font-size: 15px; } .x-money.sm .x-in { padding-left: 28px; }
.x-help { margin-top: 5px; font-size: 12px; color: var(--x-mute); line-height: 1.45; }
.x-pw { position: relative; } .x-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--x-mute); font: inherit; font-size: 12.5px; font-weight: 600; padding: 8px; cursor: pointer; }
.x-pw .x-in { padding-right: 60px; }
.x-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.x-chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.x-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.x-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.x-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cdd2d9; transition: background .15s; cursor: pointer; }
.x-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.x-switch input:checked + span { background: var(--accent); }
.x-switch input:checked + span::after { transform: translateX(20px); }
.x-switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.x-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #eef0f3; }
.x-opt:first-of-type { border-top: 0; padding-top: 2px; }
.x-opt b { display: block; font-size: 14px; font-weight: 600; } .x-opt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--x-mute); line-height: 1.4; }


.x-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.x-chip.ok { background: #e9f6ee; color: var(--x-ok); border-color: #cfe9d9; }
.x-chip.warn { background: #fff4e0; color: var(--x-warn); border-color: #f3d9a6; }
.x-chip.bad { background: #fdecea; color: var(--x-bad); border-color: #f2c4c0; }
.x-chip.mute { background: #eef0f3; color: #59626b; border-color: #dfe3e8; }
.x-chip.blue { background: #e8f1fb; color: var(--accent); border-color: #cfe0f5; }
.x-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.x-filter::-webkit-scrollbar { display: none; }
.x-filter button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--x-line); background: #fff; font: inherit; font-size: 13px; font-weight: 500; color: #4a5560; cursor: pointer; }
.x-filter button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.x-filter button small { opacity: .75; margin-left: 4px; font-weight: 500; }


.x-auth { max-width: 420px; margin: 24px auto 0; }
.x-auth .logo { text-align: center; margin-bottom: 18px; } .x-auth .logo b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; } .x-auth .logo span { display: block; margin-top: 2px; font-size: 13px; color: var(--x-mute); font-weight: 500; }
.x-auth .x-card { padding: 22px 20px; }
.x-auth h1 { margin: 0 0 4px; font-size: 21px; font-weight: 600; } .x-auth .x-sub { margin: 0 0 18px; }
.x-ok-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #e9f6ee; border: 1px solid #cfe9d9; color: #1a5f30; font-size: 13.5px; line-height: 1.5; }
.x-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff4e0; border: 1px solid #f3d9a6; color: #6d4700; font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
.x-note.blue { background: #e8f1fb; border-color: #cfe0f5; color: #174a86; }
.x-note.bad { background: #fdecea; border-color: #f2c4c0; color: #8c1d18; }
.x-note .x-ic { width: 19px; height: 19px; margin-top: 1px; }
.x-steps { display: flex; gap: 6px; margin-bottom: 14px; } .x-steps i { flex: 1; height: 4px; border-radius: 3px; background: #dfe3e8; } .x-steps i.on { background: var(--accent); }


.x-hello { margin: 4px 4px 12px; } .x-hello h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; } .x-hello p { margin: 2px 0 0; font-size: 13.5px; color: var(--x-mute); }
.x-page { display: flex; align-items: center; gap: 12px; }
.x-page .av { width: 52px; height: 52px; font-size: 17px; } .x-page .u { font-size: 13px; color: var(--accent); font-weight: 600; word-break: break-all; } .x-page .n { font-size: 15px; font-weight: 600; }
.x-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.x-stat { background: var(--x-soft); border-radius: 12px; padding: 12px 10px; text-align: center; } .x-stat b { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; } .x-stat span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--x-mute); font-weight: 500; }
.x-top1 { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef0f3; font-size: 13px; color: #4a5560; } .x-top1 b { font-weight: 600; color: var(--text); }
.x-cta { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #0a66c2, #2f86dd); color: #fff; border: 0; text-align: left; width: 100%; cursor: pointer; font: inherit; }
.x-cta .ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; } .x-cta .ico .x-ic { width: 26px; height: 26px; }
.x-cta b { display: block; font-size: 16px; font-weight: 700; } .x-cta span { display: block; margin-top: 2px; font-size: 13px; opacity: .92; line-height: 1.4; font-weight: 400; }
.x-prow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid #eef0f3; }
.x-prow:first-child { border-top: 0; }
.x-prow:hover { background: #fafbfc; }
.x-prow img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #f3f4f6; display: block; }
.x-prow .nm { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-prow .pr { margin-top: 3px; font-size: 14px; font-weight: 700; } .x-prow .pr s { margin-left: 6px; font-size: 12px; font-weight: 400; color: #9aa1a9; }
.x-prow .chips { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.x-prow .why { grid-column: 2 / -1; margin-top: -4px; font-size: 12.5px; color: var(--x-bad); line-height: 1.4; }
.x-more { display: flex; align-items: center; justify-content: center; padding: 13px; border-top: 1px solid #eef0f3; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.x-draft { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid #eef0f3; }
.x-draft:first-child { border-top: 0; }
.x-draft img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.x-draft .t { font-size: 14px; font-weight: 500; } .x-draft .s { font-size: 12.5px; color: var(--x-mute); margin-top: 2px; }
.x-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cfe0f5; border-top-color: var(--accent); animation: xs 0.9s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes xs { to { transform: rotate(360deg); } }


.x-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px 16px; border: 2px dashed #b9c6d8; border-radius: 16px; background: #f7faff; text-align: center; cursor: pointer; width: 100%; font: inherit; color: var(--text); }
.x-drop:hover { background: #eef5ff; } .x-drop .ico { width: 56px; height: 56px; border-radius: 50%; background: #e1edfb; color: var(--accent); display: grid; place-items: center; } .x-drop .ico .x-ic { width: 28px; height: 28px; }
.x-drop b { font-size: 16px; font-weight: 600; } .x-drop span { font-size: 13px; color: var(--x-mute); }
.x-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.x-thumb { position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: #f3f4f6; border: 1px solid var(--x-line); }
.x-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-thumb .rm, .x-thumb .mv { position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1d2226; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); font-size: 15px; line-height: 1; }
.x-thumb .rm { top: 6px; right: 6px; } .x-thumb .mv { bottom: 6px; left: 6px; }
.x-thumb .main { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.x-thumb.addtile { display: grid; place-items: center; border: 2px dashed #b9c6d8; background: #f7faff; color: var(--accent); cursor: pointer; font: inherit; }
.x-thumb.addtile .x-ic { width: 26px; height: 26px; }
.x-tips { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; } .x-tips li { display: flex; gap: 10px; font-size: 13px; color: #4a5560; line-height: 1.45; } .x-tips .x-ic { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.x-read { text-align: center; padding: 26px 16px; }
.x-read .big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid #d5e5f8; border-top-color: var(--accent); animation: xs 1s linear infinite; }
.x-read h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; } .x-read p { margin: 0; font-size: 13.5px; color: var(--x-mute); }
.x-prog { margin: 18px 0 4px; height: 8px; border-radius: 6px; background: #e3e8ef; overflow: hidden; } .x-prog i { display: block; height: 100%; width: 8%; background: var(--accent); border-radius: 6px; transition: width .5s ease; }
.x-stage { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; text-align: left; } .x-stage div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #9aa1a9; } .x-stage div.on { color: var(--text); font-weight: 600; } .x-stage div.done { color: var(--x-ok); }
.x-stage .b { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d5dae1; display: grid; place-items: center; flex: none; } .x-stage .done .b { background: var(--x-ok); border-color: var(--x-ok); color: #fff; } .x-stage .done .b .x-ic { width: 13px; height: 13px; stroke-width: 3; } .x-stage .on .b { border-color: var(--accent); border-top-color: transparent; animation: xs .9s linear infinite; }
.x-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--x-line); box-shadow: 0 -6px 18px rgba(20,30,50,.08); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.x-bar-in { width: 100%; max-width: 720px; display: flex; align-items: center; gap: 12px; } .x-bar-in .x-btn { flex: 1; } .x-bar-in .t { font-size: 12.5px; color: var(--x-mute); line-height: 1.35; flex: 1.2; }
.x-done { text-align: center; padding: 34px 18px; } .x-done .ok { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; background: #e9f6ee; color: var(--x-ok); display: grid; place-items: center; } .x-done .ok .x-ic { width: 34px; height: 34px; stroke-width: 2.4; }
.x-done h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; } .x-done p { margin: 0 auto 18px; max-width: 34ch; font-size: 14px; color: var(--x-mute); line-height: 1.5; } .x-done .x-row { justify-content: center; flex-wrap: wrap; }


details.x-sec { background: var(--card); border: 1px solid var(--x-line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
details.x-sec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 15px 16px; cursor: pointer; font-size: 15px; font-weight: 600; }
details.x-sec > summary::-webkit-details-marker { display: none; }
details.x-sec > summary .tag { margin-left: auto; font-size: 11.5px; font-weight: 600; }
details.x-sec > summary::after { content: ""; width: 9px; height: 9px; margin-left: 8px; border-right: 2px solid #8b939c; border-bottom: 2px solid #8b939c; transform: rotate(45deg); transition: transform .15s; flex: none; margin-top: -3px; }
details.x-sec[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
details.x-sec > summary .tag + * { }
details.x-sec .body { padding: 2px 16px 16px; }
.x-pair { display: grid; grid-template-columns: 1fr 1.3fr 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.x-pair .x-in { height: 40px; font-size: 13.5px; }
.x-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1f3f6; color: #6b737c; cursor: pointer; font-size: 17px; line-height: 1; display: grid; place-items: center; }
.x-tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.x-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 12px; border-radius: 999px; background: #f1f3f6; font-size: 13px; }
.x-tag button { border: 0; background: rgba(0,0,0,.08); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; color: #4a5560; }
.x-optgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .x-optgrid label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--x-line); border-radius: 10px; font-size: 13.5px; cursor: pointer; } .x-optgrid label:has(input:checked) { border-color: var(--accent); background: #f1f7fe; }
.x-danger { border-color: #f0d3d0; }


.x-prev { border: 1px solid var(--x-line); border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: 14px; }
.x-prev .cov { height: 86px; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 40%), linear-gradient(120deg, #3b6e5a 0%, #7aa88f 45%, #d9c9a3 100%); }
.x-prev .bd { padding: 0 14px 14px; } .x-prev .av { width: 64px; height: 64px; margin-top: -32px; border: 3px solid #fff; font-size: 20px; }
.x-prev .nm { margin-top: 6px; font-size: 17px; font-weight: 600; } .x-prev .hd { font-size: 13.5px; color: #3a434c; margin-top: 1px; } .x-prev .mt { font-size: 12.5px; color: var(--x-mute); margin-top: 3px; }
.x-lock { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid #eef0f3; font-size: 14px; } .x-lock:first-of-type { border-top: 0; }
.x-lock span { color: var(--x-mute); font-size: 12.5px; } .x-lock b { font-weight: 600; } .x-lock .x-ic { width: 15px; height: 15px; color: #9aa1a9; }
.x-verified { display: inline-flex; vertical-align: -3px; width: 17px; height: 17px; }
.x-radio { display: grid; gap: 8px; margin-top: 10px; } .x-radio label { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--x-line); border-radius: 10px; font-size: 13.5px; cursor: pointer; line-height: 1.4; } .x-radio label:has(input:checked) { border-color: var(--accent); background: #f1f7fe; } .x-radio input { margin-top: 2px; accent-color: var(--accent); } .x-radio small { display: block; color: var(--x-mute); font-size: 12px; margin-top: 2px; }


.x-sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(15,25,40,.4); display: none; } .x-sheet-bg.show { display: block; }
.x-sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); display: none; max-width: 560px; margin: 0 auto; }
.x-sheet.show { display: block; }
.x-sheet h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.x-note-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #eef0f3; font-size: 13.5px; line-height: 1.45; } .x-note-item:first-of-type { border-top: 0; } .x-note-item .x-ic { width: 20px; height: 20px; margin-top: 1px; } .x-note-item small { display: block; color: var(--x-mute); font-size: 12px; margin-top: 2px; } .x-note-item.ok .x-ic { color: var(--x-ok); } .x-note-item.bad .x-ic { color: var(--x-bad); }
.x-proto { position: fixed; left: 10px; bottom: 84px; z-index: 40; padding: 7px 12px; border-radius: 999px; border: 1px solid #c9d2de; background: rgba(255,255,255,.96); color: #4a5560; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
body.auth .x-proto { bottom: 14px; }
.x-proto-list { display: grid; gap: 4px; } .x-proto-list a { display: flex; justify-content: space-between; padding: 11px 6px; border-top: 1px solid #eef0f3; font-size: 14px; } .x-proto-list a:first-child { border-top: 0; } .x-proto-list a small { color: var(--x-mute); font-size: 12px; }
.x-toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); z-index: 80; background: #1d2226; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
.x-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 761px) { #xapp { padding-top: 20px; } .x-prow { grid-template-columns: 64px minmax(0, 1fr) auto; } .x-prow img { width: 64px; height: 64px; } }


.x-protobtn { padding: 5px 11px; border-radius: 999px; border: 1px dashed #b5bfcc; background: #f6f8fb; color: #5a6470; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }

.x-thumb .main { top: auto; bottom: 6px; }


@media (max-width: 520px) {
  .x-pair { grid-template-columns: 1fr 34px; row-gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #eef0f3; }
  .x-pair .x-in:first-child { grid-column: 1 / -1; }
}

.x-nav-in.two { grid-template-columns: repeat(2, 1fr); }
.x-err { margin: 10px 0 0; font-size: 13px; color: var(--x-bad); }
.x-ok { margin: 10px 0 0; font-size: 13px; color: var(--x-ok); }
.x-band { background: linear-gradient(155deg, #0a2c52 0%, #0a66c2 100%); color: #fff; padding: 16px 20px; }
.x-band .in { max-width: 440px; margin: 0 auto; }
.x-band a.l1 { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.x-band svg { flex: none; display: block; width: 38px; height: 38px; }
.x-band .tx { display: block; }
.x-band .nm { display: block; font-size: 18px; line-height: 18px; font-weight: 800; letter-spacing: -.025em; }
.x-band .tg { display: block; margin-top: 2px; margin-left: 1px; font-size: 10px; line-height: 11px; font-weight: 500; color: rgba(255,255,255,.86); }
body.auth #xapp { max-width: 480px; padding: 32px 20px 56px; }
body.auth .x-auth { max-width: none; }
body.auth .x-auth { margin-top: 0; }
body.auth .x-auth .x-card, body.auth #xapp > .x-card { box-shadow: 0 14px 44px rgba(17,24,39,.12); padding: 26px 24px; }
.x-invite { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; }
.x-invite .x-ic { width: 16px; height: 16px; }
.x-pts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.x-pts li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #e6e8ec; font-size: 11.5px; line-height: 1.3; color: #33414f; }
.x-pts li .x-ic { flex: none; width: 14px; height: 14px; color: #0a66c2; margin-top: 1px; }
.x-pts b { display: block; font-weight: 700; color: #1d2226; }

@media (min-width: 768px) { body.auth #xapp { padding-top: 56px; } body.auth .x-auth .x-card, body.auth #xapp > .x-card { padding: 32px 30px; } }
@media (min-width: 768px) { .x-band { padding-left: 32px; padding-right: 32px; } .x-band .in { max-width: none; margin: 0; } }

/* first-time setup: choices instead of typing */
.x-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-type { position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 13px; border: 1.5px solid #dfe3e8; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.x-type .x-ic { width: 24px; height: 24px; color: var(--accent); margin-bottom: 4px; }
.x-type b { font-size: 15px; font-weight: 700; color: var(--text); }
.x-type small { font-size: 12px; line-height: 1.35; color: var(--x-mute); }
.x-type .tk { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--x-ok); display: none; align-items: center; justify-content: center; }
.x-type .tk .x-ic { width: 14px; height: 14px; margin: 0; color: #fff; stroke-width: 3; }
.x-type.on { border-color: var(--accent); background: #f2f7fd; box-shadow: 0 0 0 3px rgba(10,102,194,.12); }
.x-type.on .tk { display: flex; }
.x-gs { margin-top: 22px; }
.x-gs .x-lab { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.x-gopt { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--x-mute); }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.x-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid #dfe3e8; background: #fff; font-size: 13.5px; font-weight: 600; color: #33414f; cursor: pointer; }
.x-chip .x-ic { width: 14px; height: 14px; stroke-width: 3; color: var(--x-ok); }
.x-chip.on { border-color: var(--accent); background: #eaf3fc; color: #0a4f99; }
.x-chip.sm { padding: 7px 12px; font-size: 13px; font-weight: 500; }
.x-chip.wide { border-style: dashed; }
.x-subhead { margin: 14px 0 8px; font-size: 12.5px; font-weight: 700; color: var(--x-mute); text-transform: none; }
.x-subhead:first-of-type { margin-top: 0; }
.x-townbox { position: relative; margin-top: 10px; }
.x-sug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; box-shadow: 0 12px 28px rgba(17,24,39,.14); overflow: hidden; }
.x-sug button { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: #fff; font-size: 14.5px; cursor: pointer; border-top: 1px solid #f0f2f5; }
.x-sug button:first-child { border-top: 0; }
.x-sug button:hover { background: #f3f6fa; }
.x-sug button.own { color: var(--accent); font-weight: 600; }
.x-check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.x-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.x-check .bx { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #c5ccd5; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.x-check .bx .x-ic { width: 15px; height: 15px; stroke-width: 3; color: #fff; display: none; }
.x-check input:checked + .bx { background: var(--accent); border-color: var(--accent); }
.x-check input:checked + .bx .x-ic { display: block; }
.x-check input:focus-visible + .bx { box-shadow: 0 0 0 3px rgba(10,102,194,.25); }
.x-physical { margin-top: 14px; padding: 16px; border-radius: 14px; background: #f6f8fb; border: 1px solid #e6e8ec; }
.x-physical .x-lab { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 380px) { .x-types { grid-template-columns: 1fr; } }

.x-variety { position: relative; display: block; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 12px; border: 1.5px solid #bcd3ee; border-radius: 14px; background: linear-gradient(180deg, #f5f9fe, #eaf3fc); cursor: pointer; }
.x-variety b { display: block; font-size: 14.5px; font-weight: 700; color: #0a4f99; padding-right: 30px; }
.x-variety small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #4a5f78; }
.x-variety .tk { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1.5px solid #bcd3ee; display: flex; align-items: center; justify-content: center; }
.x-variety .tk .x-ic { width: 14px; height: 14px; stroke-width: 3; color: #fff; display: none; }
.x-variety.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,102,194,.12); }
.x-variety.on .tk { background: var(--x-ok); border-color: var(--x-ok); }
.x-variety.on .tk .x-ic { display: block; }
.x-chips.dis { opacity: .4; }
.x-chip.dis { cursor: not-allowed; background: #f3f4f6; }

.x-locrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; } .x-locrow .x-ic { width: 20px; height: 20px; color: var(--accent); flex: none; } .x-locrow span { flex: 1; font-size: 14px; font-weight: 600; }
.x-prow .ph { width: 56px; height: 56px; border-radius: 10px; background: #f3f4f6; }

.x-nav-in.three { grid-template-columns: repeat(3, 1fr); }

/* Home: identity card (cover + profile photo, camera on each) and the "Finish setting up" list */
.x-ident { padding: 0; overflow: hidden; }
.x-cover { position: relative; aspect-ratio: 3.5 / 1; background: linear-gradient(135deg, #0a2c52, #0a66c2) center / cover no-repeat; }
.x-cam { position: absolute; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--x-line); color: #33414f; cursor: pointer; box-shadow: 0 2px 8px rgba(15,25,40,.18); }
.x-cam .x-ic { width: 18px; height: 18px; }
.x-cam.cover { right: 12px; bottom: 12px; }
.x-identbody { padding: 0 16px 16px; }
.x-avbig { position: relative; width: 88px; height: 88px; margin-top: -44px; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(135deg, #f26b4f, #f2a65a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; }
.x-avbig img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.x-cam.av { right: -6px; bottom: -4px; width: 30px; height: 30px; }
.x-cam.av .x-ic { width: 15px; height: 15px; }
.x-bar { height: 6px; border-radius: 4px; background: #e8ebef; overflow: hidden; margin: 8px 0 6px; } .x-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.x-check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #eef0f3; } .x-check:first-of-type { border-top: 0; }
.x-check .ck { width: 34px; height: 34px; border-radius: 50%; background: #eaf3fc; color: var(--accent); display: grid; place-items: center; flex: none; } .x-check .ck .x-ic { width: 18px; height: 18px; }
.x-check.done .ck { background: #e9f6ee; color: var(--x-ok); } .x-check.done .tx { color: var(--x-mute); }
.x-check .tx { flex: 1; font-size: 14px; font-weight: 600; }
.x-filebtn { cursor: pointer; }
.x-checkform { padding: 0 0 14px 46px; }

@media (max-width: 380px) { .x-checkform { padding-left: 0; } }

/* panel under the header + cover picker + photo credit */
.x-pnbg { position: fixed; left: 0; right: 0; bottom: 0; top: 56px; z-index: 58; background: rgba(15,25,40,.35); display: none; } .x-pnbg.show { display: block; }
.x-pn { position: fixed; z-index: 59; left: 0; right: 0; top: 56px; overflow: auto; background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 18px 40px rgba(15,25,40,.18); padding: 10px 16px 16px; display: none; } .x-pn.show { display: block; }
.x-pn h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.x-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; padding: 0; color: var(--text); } .x-back .x-ic { width: 18px; height: 18px; }
.x-pickopt { display: block; width: 100%; text-align: left; padding: 14px 16px; margin-top: 10px; border: 1.5px solid #dfe3e8; border-radius: 14px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.x-pickopt small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--x-mute); }
.x-covgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.x-covth { padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #eef0f3; cursor: pointer; aspect-ratio: 16 / 9; } .x-covth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-credit { position: absolute; left: 10px; bottom: 7px; z-index: 1; color: rgba(255,255,255,.4); font-size: 8.5px; font-weight: 300; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.25); pointer-events: none; }
@media (min-width: 768px) { .x-pnbg { background: transparent; } .x-pn { right: auto; left: 50%; transform: translateX(-50%); width: 560px; margin-top: 8px; border-radius: 14px; border: 1px solid var(--x-line); } .x-covgrid { grid-template-columns: repeat(3, 1fr); } }

.x-covfull { position: relative; border-radius: 12px; overflow: hidden; background: #0f1928; } .x-covfull img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.x-cropframe { position: relative; overflow: hidden; border-radius: 12px; background: #0f1928; margin: 0 auto; touch-action: none; cursor: grab; user-select: none; }
.x-cropframe img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.x-cropmask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(15,25,40,.55); border: 2px solid rgba(255,255,255,.9); pointer-events: none; }
.x-cropzoom { width: 100%; margin-top: 14px; accent-color: var(--accent); }

/* ===== Page dimensions: the agreed template (profile-template), used by EVERY page =====
   1440px wide, 16px gutters (12px on phones); cover 200px (120px on phones); profile photo 152px (112px on phones). */
:root { --page-w: 1440px; --gut: 16px; }
@media (max-width: 560px) { :root { --gut: 12px; } }
#xapp, body.auth #xapp { max-width: var(--page-w); }
#xapp { padding: 16px var(--gut) 110px; }
body.auth #xapp { padding: 32px var(--gut) 56px; }
.x-top-in { max-width: var(--page-w); padding: 10px var(--gut); }
.x-band { padding: 16px var(--gut); }
.x-band .in { max-width: var(--page-w); margin: 0 auto; }
@media (min-width: 768px) { .x-band { padding-left: var(--gut); padding-right: var(--gut); } .x-band .in { max-width: var(--page-w); margin: 0 auto; } body.auth #xapp { padding-top: 56px; } }
body.auth .x-auth { max-width: 440px; margin: 0 auto; }
body.auth #xapp > .x-card { max-width: 480px; margin-left: auto; margin-right: auto; }

.x-cover { aspect-ratio: auto; height: 200px; }
.x-identbody { padding: 0 24px 24px; }
.x-avbig { width: 152px; height: 152px; margin-top: -76px; font-size: 48px; font-weight: 600; }
.x-cam { width: 40px; height: 40px; } .x-cam .x-ic { width: 20px; height: 20px; }
.x-cam.cover { right: 16px; bottom: 16px; }
.x-cam.av { right: 6px; bottom: 6px; width: 40px; height: 40px; } .x-cam.av .x-ic { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .x-cover { height: 120px; } .x-identbody { padding: 0 16px 16px; }
  .x-avbig { width: 112px; height: 112px; margin-top: -56px; font-size: 36px; }
  .x-cam { width: 36px; height: 36px; } .x-cam.av { width: 34px; height: 34px; right: 2px; bottom: 2px; } .x-cam.cover { right: 10px; bottom: 10px; }
}

/* wide screens: the Home cards sit in two columns; phones keep one column in the same order */
.x-cols { display: grid; gap: 12px; align-items: start; }
.x-colL, .x-colR { display: grid; gap: 12px; min-width: 0; align-content: start; }
.x-cols .x-card { margin-bottom: 0; }
.x-colL > div:empty, .x-colR > div:empty { display: none; }
@media (min-width: 1000px) {
  .x-cols { grid-template-columns: 1fr 1fr; }
  #pd { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: start; }
  #pd > .x-card, #pd > .x-note { grid-column: 1 / -1; }
}

/* buttons keep a sensible size on wide screens: they never stretch across the page */
.x-btn.block { max-width: 420px; }
@media (min-width: 768px) {
  .x-ident .x-row > .x-btn { flex: 0 0 auto !important; min-width: 170px; }
  .x-ident .x-row { gap: 10px; }
}

/* identity: business badge, Account page layout */
.x-idrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 8px; } .x-idrow .x-page { margin-top: 0; }
.x-org { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; flex: 0 1 280px; }
.x-orgmark { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #3b6e5a, #7aa88f); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; overflow: hidden; flex: none; } .x-orgmark img { width: 100%; height: 100%; object-fit: cover; display: block; }


.x-check .tx small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--x-mute); }
.x-check .ck .ckimg { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
@media (max-width: 560px) { .x-idrow .x-org { flex-basis: 100%; } }

/* one blue header on every page; avatar at its right once signed in */
.x-band { position: sticky; top: 0; z-index: 30; }
.x-band .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.x-bandav { width: 38px; height: 38px; font-size: 14px; border: 2px solid rgba(255,255,255,.85); overflow: hidden; } .x-bandav img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Account page: overview on top, then two independent columns that start at the same level */
.x-overview { margin-bottom: 12px; }
.x-ovtop { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.x-ovav { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #f26b4f, #f2a65a); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; overflow: hidden; flex: none; } .x-ovav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-ovname { font-size: 20px; font-weight: 700; line-height: 1.2; }
.x-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; padding-top: 16px; border-top: 1px solid #eef0f3; }
.x-dl dt { font-size: 12px; font-weight: 600; color: var(--x-mute); margin-bottom: 2px; } .x-dl dd { margin: 0; font-size: 14.5px; font-weight: 500; word-break: break-word; }
.x-acctcols { display: grid; gap: 12px; align-items: start; }
.x-acol { display: grid; gap: 12px; min-width: 0; align-content: start; } .x-acol .x-card { margin-bottom: 0; }
@media (min-width: 1000px) { .x-acctcols { grid-template-columns: 1fr 1fr; } }
.x-dangertxt { color: var(--x-bad); border-color: #e7b9b5; }

/* buttons never wrap their text; on phones the three profile buttons sit as one full row plus two half rows */
.x-btn { white-space: nowrap; }
.x-ident .x-row { flex-wrap: wrap; }
@media (max-width: 560px) {
  .x-ident .x-row > .x-btn { flex: 1 1 calc(50% - 5px) !important; min-width: 0; }
  .x-ident .x-row > .x-btn:first-child { flex: 1 1 100% !important; }
  .x-ident .x-row { gap: 10px; }
}

/* Account overview: items sit two across on phones, as many as fit on wide screens */
.x-dl { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 560px) { .x-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; } .x-dl dd { font-size: 14px; overflow-wrap: anywhere; } }

/* Account overview: an even table. Always two columns, six cells, a line between rows, labels small and quiet, values steady. */
.x-dl { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 24px !important; padding-top: 4px !important; }
.x-dl > div { padding: 12px 0; border-top: 1px solid #eef0f3; min-width: 0; }
.x-dl > div:nth-child(-n+2) { border-top: 0; }
.x-dl dt { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #8a929b; margin-bottom: 3px; }
.x-dl dd { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
@media (min-width: 1000px) { .x-dl { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .x-dl > div:nth-child(-n+3) { border-top: 0; } .x-dl > div:nth-child(3) { border-top: 0; } }

/* long items (page address, email) take the full row on phones and tablets so they never break mid-word */
.x-dl dd { overflow-wrap: break-word; }
@media (max-width: 999px) { .x-dl > div.w { grid-column: 1 / -1; } .x-dl > div:nth-child(2) { border-top: 1px solid #eef0f3; } }
.x-dl { gap: 0 !important; }
.x-dl > div { padding: 12px 16px 12px 0; }

/* Account overview hierarchy: the heading leads, the filled-in detail is smaller and quieter */
.x-dl dt { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: 2px; }
.x-dl dd { font-size: 13px; font-weight: 400; color: #5f6770; line-height: 1.4; }

/* every item sits two across on phones (no full-width rows); long values wrap at the slash or the @ */
@media (max-width: 999px) { .x-dl > div.w { grid-column: auto; } .x-dl > div:nth-child(2) { border-top: 0; } }
.x-dl dd { overflow-wrap: normal; word-break: normal; }

/* Add a product */
.x-add { max-width: 720px; margin: 0 auto; }
.x-add .x-card { margin-bottom: 12px; }
.x-doneck { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e9f6ee; color: var(--x-ok); } .x-doneck .x-ic { width: 26px; height: 26px; stroke-width: 3; }
.x-thumb .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,25,40,.65); color: #fff; display: grid; place-items: center; cursor: pointer; } .x-thumb .rm .x-ic { width: 14px; height: 14px; }

/* Add a product: the check step is laid out like the product page (sections), wider on big screens */
.x-add.wide { max-width: 980px; }
.x-fgrid { display: grid; gap: 0 16px; }
@media (min-width: 768px) { .x-fgrid { grid-template-columns: 1fr 1fr; } }
.x-adphotos { display: flex; flex: none; } .x-adphotos img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(15,25,40,.2); margin-right: -14px; background: #eee; } .x-adphotos img:last-child { margin-right: 0; }
.x-adbar { position: sticky; bottom: 78px; z-index: 5; display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-top: 4px; background: rgba(255,255,255,.96); border: 1px solid var(--x-line); border-radius: 14px; box-shadow: 0 6px 20px rgba(15,25,40,.12); }

/* the price field looks like every other field: same height, size and weight (it used to be oversized and bold) */
.x-money::before { font-size: 15px; font-weight: 600; }
.x-money .x-in, .x-money .x-in.price { height: 44px; padding-left: 30px; font-size: 14.5px; font-weight: 400; letter-spacing: normal; color: var(--text); }
.x-money.sm .x-in { padding-left: 30px; }

/* phones: inputs under 16px make iOS zoom the page on focus and leave it zoomed */
html { -webkit-text-size-adjust: 100%; }
input, textarea, select { font-size: 16px !important; }
.x-ta { resize: none; overflow: hidden; }

/* clear "Edit" cue on every collapsible section and every product row */
details.x-sec > summary .tag { margin-left: 8px; }
details.x-sec > summary .editpill { margin-left: auto; padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 700; }
details.x-sec > summary .editpill .c, details.x-sec[open] > summary .editpill .o { display: none; }
details.x-sec[open] > summary .editpill .c { display: inline; }
.x-prow .rowedit { pointer-events: none; padding: 4px 16px; min-height: 0; }

/* product sections: faded peek when closed */
.x-sec { background: var(--card); border: 1px solid var(--x-line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.x-sec .sum { display: flex; align-items: center; gap: 8px; padding: 15px 16px 10px; cursor: pointer; font-size: 15px; font-weight: 600; }
.x-sec .sum .tag { margin-left: 8px; font-size: 11.5px; font-weight: 600; }
.x-sec .sum .editpill { margin-left: auto; padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 700; }
.x-sec .sum .editpill .c, .x-sec.open .sum .editpill .o { display: none; }
.x-sec.open .sum .editpill .c { display: inline; }
.x-sec .body { padding: 0 16px 14px; max-height: 92px; overflow: hidden; position: relative; cursor: pointer; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.x-sec.open .body { max-height: none; overflow: visible; cursor: auto; -webkit-mask-image: none; mask-image: none; padding-bottom: 16px; }

/* smaller Live chip, Edit pills and View button on the product page; drafts: Open over Delete, compact */
#pd > .x-card .x-chip { font-size: 10.5px; padding: 1px 8px; line-height: 1.5; }
#pd > .x-card .x-btn.sm { height: 26px; padding: 0 12px; font-size: 12px; }
.x-sec .sum { padding: 11px 16px 6px; }
.x-sec .sum .editpill { padding: 2px 11px; font-size: 12px; }
.x-draft .dact { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }
.x-draft .dact .x-chip { padding: 1px 12px; font-size: 11px; line-height: 1.5; justify-content: center; }
.x-draft .dact button.x-chip { font-family: inherit; cursor: pointer; background: #fff; }

/* setup: page look choice */
.x-lookpicked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.x-lnum { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.x-look { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 18px; }
.x-lbody { flex: 1; min-width: 0; }
.x-lwhy { margin: 4px 0 8px; font-size: 13.5px; color: #555; line-height: 1.45; }
.x-look iframe { width: 100%; height: 400px; border: 0; border-radius: 12px; background: #f3f2ef; display: block; margin-bottom: 10px; }
.x-fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .x-fgrid2 { grid-template-columns: 1fr; } }

/* progress bar while a photo is read (Creating product information) */
.x-prog { max-width: 380px; margin: 0 auto; text-align: left; }
.x-prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.x-prog-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.x-prog-track { height: 10px; border-radius: 99px; background: #e6edf6; overflow: hidden; }
.x-prog-track i { display: block; height: 100%; width: 0%; border-radius: 99px; background: var(--accent); transition: width .35s ease; }

/* sign-in / sign-up: the Google button and the "or" divider */
.x-gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #cfd6dd; background: #fff; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.x-gbtn:hover { border-color: var(--accent); background: #f8fbff; }
.x-gbtn img { width: 20px; height: 20px; display: block; }
.x-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #8b939c; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.x-or::before, .x-or::after { content: ""; flex: 1; height: 1px; background: #e3e6ea; }

/* "Other" on the setup page: the many-things button greys out while Other is chosen */
.x-variety.dis { opacity: .4; cursor: not-allowed; }

/* setup page: who is signed in, clearly, with a way to switch */
.x-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 18px; border: 1px solid #d5e3f3; background: #f4f8fd; border-radius: 14px; }
.x-whoic { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #dfe6ef; display: grid; place-items: center; flex: none; }
.x-whoic img { width: 21px; height: 21px; display: block; }
.x-whoic .x-ic { width: 21px; height: 21px; color: var(--accent); }
.x-whotx { min-width: 0; flex: 1 1 150px; }
.x-whotx small { display: block; font-size: 12px; color: #6b737c; font-weight: 600; }
.x-whotx b { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); word-break: break-all; }
.x-who-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #b9d2ee; background: #fff; color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.x-who-btn:hover { border-color: var(--accent); }
.x-who-btn .x-ic { width: 17px; height: 17px; }
/* the switch button sits beside the email and stays small */
.x-who { flex-wrap: nowrap; gap: 10px; padding: 10px 12px; }
.x-whotx { flex: 1 1 auto; }
.x-whotx b { font-size: 14px; }
.x-who-btn { flex: none; min-height: 32px; padding: 0 11px; gap: 5px; font-size: 12.5px; border-width: 1.2px; }
.x-who-btn .x-ic { width: 14px; height: 14px; }

/* setup page: the "Something else" card (half the width) with its box beside it, and icons on the group buttons */
.x-else { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 12px; }
.x-else .x-vhalf { margin-bottom: 0; }
.x-else .x-townbox { margin-top: 0; }
.x-else .x-in:disabled { background: #f1f3f5; color: #9aa1a9; cursor: not-allowed; }
@media (max-width: 380px) { .x-else { grid-template-columns: 1fr; } }
.x-chip .x-ci { display: inline-flex; }
.x-chip .x-ci .x-ic { width: 17px; height: 17px; stroke-width: 1.8; color: var(--accent); }
.x-chip.dis .x-ci .x-ic { color: #98a2ad; }

@media (max-width: 440px) { .x-who { gap: 8px; padding: 10px; } .x-whoic { width: 34px; height: 34px; } .x-whotx b { font-size: 13px; overflow-wrap: anywhere; word-break: normal; } .x-who-btn { padding: 0 9px; font-size: 12px; } }
