:root {
  --jp-primary: #5b4ff6;
  --jp-secondary: #7d73ff;
  --jp-background: #f7f8fc;
  --jp-vote-more-background: #fff;
  --jp-button: #5b4ff6;
  --jp-button-text: #fff;
  --jp-button-hover: #453ade;
  --jp-button-hover-text: #fff;
  --jp-surface: #fff;
  --jp-border: #e3e7f0;
  --jp-button-radius: 8px;
  --jp-container-width: 1480px;
  --jp-card-columns: 3;
  --jp-radius: 18px;
  --jp-ink: #101831;
  --jp-copy: #273451;
  --jp-muted: #6e7891;
  --jp-line: #e3e7f0;
  --jp-soft: #f2f3ff;
  --jp-white: #fff;
  --jp-shadow: 0 10px 35px rgba(27, 35, 71, .08);
}

.jp-route { max-width: calc(var(--jp-container-width) + 60px); margin: 0 auto; padding: 28px 18px 70px; }
.jp-app { box-sizing: border-box; width: 100%; max-width: 100%; color: var(--jp-ink); font-family: var(--jajce-polls-body-font-family, system-ui, sans-serif); font-size: var(--jajce-polls-body-font-size, 16px); line-height: var(--jajce-polls-body-line-height, 1.6); overflow-wrap: anywhere; }
.jp-app *, .jp-app *::before, .jp-app *::after { box-sizing: border-box; }
.jp-app img { max-width: 100%; }
.jp-app button, .jp-app input, .jp-app textarea, .jp-app select { max-width: 100%; font: inherit; }
.jp-app button, .jp-app a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.jp-app a:not(.jp-button) { color: inherit; text-decoration: none; }
.jp-app h1, .jp-app h2, .jp-app h3, .jp-app p { text-wrap: pretty; }
.jp-app button:focus-visible, .jp-app a:focus-visible, .jp-app input:focus-visible, .jp-app textarea:focus-visible, .jp-app select:focus-visible { outline: 3px solid color-mix(in srgb, var(--jp-primary) 55%, white); outline-offset: 3px; }

.jp-dashboard { max-width: var(--jp-container-width); margin: 0 auto; overflow: hidden; border: 1px solid var(--jp-line); border-radius: var(--jp-radius); background: var(--jp-background); box-shadow: 0 24px 70px rgba(32, 43, 79, .10); font-family: var(--jajce-polls-primary-font, system-ui, sans-serif); }
.jp-dashboard__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 1.08fr); gap: clamp(35px, 7vw, 100px); min-height: 465px; padding: clamp(38px, 5vw, 70px); padding-bottom: 42px; }
.jp-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.jp-chat-mark { display: inline-flex; width: 40px; height: 40px; align-items:center; justify-content:center; margin-bottom: 28px; color: var(--jp-primary); font-size: 2rem; }
.jp-chat-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.jp-chat-mark circle { fill: currentColor; stroke: none; }
.jp-hero-copy h1 { max-width: 690px; margin: 0 0 18px; }
.jp-hero-copy h1 em { color: var(--jp-primary); }
.jp-hero-copy__lead { margin: 0 0 28px; color: var(--jp-copy); }
.jp-hero-copy__note { display: flex; gap: 10px; max-width: 625px; margin: 0 0 38px; color: var(--jp-muted); }
.jp-hero-copy__note span { color: var(--jp-copy); }
.jp-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.jp-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: var(--jp-button-radius); background: var(--jp-button); box-shadow: 0 8px 20px color-mix(in srgb, var(--jp-button) 24%, transparent); color: var(--jp-button-text); cursor: pointer; padding: 11px 25px; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.jp-app .jp-button:not(.jp-button--ghost) { color: var(--jp-button-text); }
.jp-app .jp-button:hover, .jp-app .jp-button:focus-visible, .jp-app .jp-button:active { background: var(--jp-button-hover); box-shadow: 0 11px 26px color-mix(in srgb, var(--jp-button-hover) 30%, transparent); color: var(--jp-button-hover-text); transform: translateY(-2px); }
.jp-button:disabled { cursor: wait; opacity: .55; }
.jp-button--ghost { border-color: var(--jp-line); background: #fff; box-shadow: 0 5px 14px rgba(25, 36, 72, .07); color: var(--jp-ink); }
.jp-button--small { min-height: 44px; padding: 9px 17px; }
.jp-button--wide { width: 100%; }

.jp-hero-visual { position: relative; min-height: 385px; overflow: hidden; border-radius: 30px; background: radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .26), transparent 24%), linear-gradient(145deg, #75c8df 0%, #2787a9 32%, #176171 54%, #123846 100%); background-position: center; background-size: cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.jp-hero-visual::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 30, 47, .06), rgba(11, 30, 47, .02) 50%, rgba(11, 30, 47, .22)); content: ""; }
.jp-featured-mini { position: absolute; z-index: 2; right: 18px; bottom: 18px; width: min(285px, calc(100% - 36px)); padding: 24px 22px 20px; border: 1px solid rgba(27, 35, 71, .08); border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: 0 16px 35px rgba(12, 23, 48, .25); backdrop-filter: blur(12px); }
.jp-featured-mini__label { display: flex; align-items: center; gap: 8px; color: var(--jp-copy); }
.jp-featured-mini__label b { color: #f2ad27; font-size: 1.15rem; }
.jp-featured-mini h2 { margin: 19px 0 18px; }
.jp-featured-mini__votes { display: block; margin-bottom: 20px; color: var(--jp-muted); }
.jp-featured-mini .jp-button { min-width: 130px; }

.jp-category-section { padding: 24px clamp(25px, 4.7vw, 68px) 34px; }
.jp-section-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.jp-section-line h2 { margin: 0; }
.jp-text-button { min-height: 38px; padding: 8px 16px; border: 1px solid var(--jp-line); border-radius: 8px; background: #fff; box-shadow: 0 3px 10px rgba(25, 36, 72, .05); color: var(--jp-ink); cursor: pointer; }
.jp-category-cards { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.jp-category-cards button { display: flex; min-width: 0; min-height: 116px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 13px 8px; border: 1px solid var(--jp-line); border-radius: 13px; background: #fff; color: var(--jp-ink); cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.jp-category-cards button:hover, .jp-category-cards button.is-active { border-color: color-mix(in srgb, var(--jp-primary) 42%, var(--jp-line)); box-shadow: 0 7px 20px rgba(38, 45, 83, .08); transform: translateY(-2px); }
.jp-category-cards button span { max-width: 105px; }
.jp-category-cards button.is-active span { color: var(--jp-primary); }
.jp-cat-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; overflow:hidden; border-radius: 50%; background: color-mix(in srgb, var(--jp-cat, var(--jp-primary)) 15%, white); color: var(--jp-cat, var(--jp-primary)); font-size: 1.35rem; font-style: normal; font-weight: 800; }
.jp-cat-icon img { width:100%; height:100%; object-fit:cover; }
.jp-cat-icon--all { background: #ecebff; color: var(--jp-primary); }

.jp-dashboard__content { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, .88fr); gap: 38px; padding: 30px clamp(25px, 4.2vw, 62px) 46px; border-top: 1px solid var(--jp-line); }
.jp-dashboard__content--wide { grid-template-columns: minmax(0, 1fr); }
.jp-poll-feed { min-width: 0; }
.jp-feed-toolbar { display: flex; min-height: 52px; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--jp-line); }
.jp-tabs { display: flex; align-self: stretch; gap: 34px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.jp-tabs button { position: relative; min-height: 50px; padding: 0 7px 13px; border: 0; background: transparent; color: #34405e; cursor: pointer; white-space: nowrap; }
.jp-tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--jp-primary); content: ""; opacity: 0; transform: scaleX(.5); transition: opacity .16s ease, transform .16s ease; }
.jp-tabs button.is-active { color: var(--jp-ink); }
.jp-tabs button.is-active::after { opacity: 1; transform: none; }
.jp-sort-select select, .jp-archive select { min-height: 40px; padding: 8px 36px 8px 14px; border: 1px solid var(--jp-line); border-radius: 8px; background: #fff; color: var(--jp-copy); }

.jp-grid { display: grid; grid-template-columns: repeat(var(--jp-card-columns), minmax(0, 1fr)); gap: 20px; }
.jp-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--jp-line); border-radius: var(--jp-radius); background: #fff; box-shadow: 0 5px 15px rgba(27, 35, 71, .04); transition: box-shadow .2s ease, transform .2s ease; }
.jp-card:hover { box-shadow: var(--jp-shadow); transform: translateY(-3px); }
.jp-card[hidden], .jp-card--extra:not(.is-revealed) { display: none; }
.jp-card__image { position: relative; display: flex; aspect-ratio: 1.52 / 1; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(145deg, #7cc9dd, #176778 56%, #12323c); color: rgba(255, 255, 255, .82); }
.jp-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.jp-card:hover .jp-card__image img { transform: scale(1.035); }
.jp-card__featured { position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 5px; background: var(--jp-primary); color: #fff; }
.jp-card__body { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding: 18px; }
.jp-category { color: var(--jp-muted); }
.jp-card h3 { min-height: 48px; margin: 12px 0 30px; }
.jp-card h3 a { color: var(--jp-ink); }
.jp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; margin-bottom: 17px; color: var(--jp-muted); }
.jp-card__cta { width: 100%; min-height: 39px; border-radius: 6px; }
.jp-view-all { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 12px; margin: 22px auto 0; padding: 8px 23px; border: 1px solid var(--jp-line); border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(28, 38, 74, .05); color: var(--jp-copy); cursor: pointer; }
.jp-view-all span { color: var(--jp-primary); font-size: 1.5rem; line-height: .7; }

.jp-dashboard__sidebar { min-width: 0; padding-left: 38px; border-left: 1px solid var(--jp-line); }
.jp-side-card { margin-bottom: 22px; padding: 24px; border: 1px solid var(--jp-line); border-radius: var(--jp-radius); background: #fff; box-shadow: 0 5px 18px rgba(27, 35, 71, .035); }
.jp-side-card h2 { margin: 0 0 22px; }
.jp-side-card p { color: var(--jp-muted); }
.jp-how ol { margin: 0; padding: 0; list-style: none; }
.jp-how li { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 0 0 20px; }
.jp-how li:not(:last-child)::after { position: absolute; left: 20px; top: 40px; bottom: 2px; width: 1px; background: var(--jp-line); content: ""; }
.jp-how li > i { z-index: 1; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--jp-soft); color: var(--jp-primary); font-size: 1.15rem; font-style: normal; }
.jp-how li p { margin: 5px 0 0; }
.jp-how > a, .jp-side-link { color: var(--jp-primary); }
.jp-side-insights > a:not(.jp-side-link) { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f5; }
.jp-side-insights a span { display: flex; min-width: 0; flex-direction: column; }
.jp-side-insights a small { margin-top: 5px; color: var(--jp-muted); }
.jp-insight-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; background: #feeafb; color: #b531a5; font-style: normal; }
.jp-insight-icon--1 { background: #e5fbf7; color: #0d9c82; }
.jp-insight-icon--2 { background: #e8faec; color: #269445; }
.jp-side-link { display: inline-flex; margin-top: 15px; padding: 7px 10px; border-radius: 6px; background: var(--jp-soft); }
.jp-suggest-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.jp-suggest-card h2 { margin-bottom: 7px; }
.jp-suggest-card p { margin: 0 0 16px; }
.jp-suggest-card > i { color: var(--jp-primary); font-size: 3.6rem; font-style: normal; font-weight: 300; }
.jp-social-card p { margin: -12px 0 18px; }
.jp-social-card button { display: flex; min-height: 38px; align-items: center; gap: 10px; margin: 9px 0; padding: 8px 13px; border: 1px solid var(--jp-line); border-radius: 8px; background: #fff; box-shadow: 0 4px 11px rgba(27, 35, 71, .05); color: var(--jp-copy); cursor: pointer; }
.jp-social-card button i { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: #1877f2; color: #fff; font-size: .7rem; font-style: normal; }
.jp-social-card button:nth-of-type(2) i { background: #20bd5f; font-size: .45rem; }
.jp-social-card button:nth-of-type(3) i { background: #eef0f5; color: var(--jp-copy); }

.jp-recent { margin-top: 42px; padding: 22px 18px 18px; border-radius: var(--jp-radius); background: linear-gradient(118deg, var(--jp-primary), var(--jp-secondary)); color: #fff; }
.jp-recent__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 4px 17px; }
.jp-recent__head h2 { margin: 0 0 4px; }
.jp-recent__head p { margin: 0; color: rgba(255, 255, 255, .78); }
.jp-recent__head > a { padding: 9px 17px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.jp-recent__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jp-recent__grid article { display: flex; min-width: 0; flex-direction: column; padding: 16px; border-radius: 10px; background: #fff; color: var(--jp-ink); }
.jp-recent__grid article > span { color: var(--jp-muted); }
.jp-recent__grid article h3 { min-height: 42px; margin: 10px 0 23px; }
.jp-recent__grid article > small { margin-bottom: 14px; color: var(--jp-muted); }
.jp-recent-result { margin: 7px 0; }
.jp-recent-result > div { display: flex; justify-content: space-between; gap: 8px; }
.jp-recent-result em { color: var(--jp-muted); }
.jp-recent-result > i { display: block; height: 5px; margin-top: 4px; overflow: hidden; border-radius: 99px; background: #eaedf3; }
.jp-recent-result > i b { display: block; height: 100%; border-radius: inherit; background: var(--jp-primary); }
.jp-recent__grid article > a { margin-top: auto; padding: 10px; border-radius: 6px; background: var(--jp-soft); color: var(--jp-primary); text-align: center; }
.jp-dashboard > .jp-disclaimer { margin: 0 60px 35px; }

/* Single poll, archive, suggestion and insights share the new visual language. */
.jp-single { max-width: 900px; margin: auto; overflow: hidden; border: 1px solid var(--jp-line); border-radius: 24px; background: #fff; box-shadow: var(--jp-shadow); }
.jp-single__image { aspect-ratio: 2 / 1; overflow: hidden; }
.jp-single__image img { width: 100%; height: 100%; object-fit: cover; }
.jp-single > header, .jp-vote-form, .jp-results, .jp-share, .jp-single > .jp-notice, .jp-single > .jp-disclaimer { margin-right: clamp(20px, 6vw, 64px); margin-left: clamp(20px, 6vw, 64px); }
.jp-single > header { padding-top: clamp(28px, 5vw, 58px); }
.jp-single h1, .jp-section-head h1 { margin: .35em 0; }
.jp-description { color: var(--jp-copy); }
.jp-vote-form { padding: 15px 0 34px; }
.jp-vote-form fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.jp-choice { display: flex; align-items: center; gap: 14px; margin: 10px 0; padding: 16px 18px; border: 1px solid var(--jp-line); border-radius: 12px; cursor: pointer; transition: border-color .16s, background .16s; }
.jp-choice:hover, .jp-choice:has(input:checked) { border-color: var(--jp-primary); background: var(--jp-soft); }
.jp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.jp-choice i { position: relative; width: 20px; height: 20px; margin-left: auto; border: 2px solid #9ba3b7; border-radius: 50%; }
.jp-choice input[type=checkbox] + span + i { border-radius: 5px; }
.jp-choice input:checked ~ i { border-color: var(--jp-primary); background: var(--jp-primary); box-shadow: inset 0 0 0 4px #fff; }
.jp-vote-note { display: block; margin: 0 0 18px; }
.jp-vote-note > span { display: block; margin-bottom: 7px; }
.jp-vote-note textarea, .jp-suggestion input:not([type=checkbox]), .jp-suggestion textarea, .jp-suggestion select { display: block; width: 100%; padding: 12px; border: 1px solid var(--jp-line); border-radius: 10px; background: #fff; color: var(--jp-ink); resize: vertical; }
.jp-vote-note small { color: var(--jp-muted); }
.jp-message { min-height: 1.5em; margin-top: 14px; }
.jp-message.is-success { color: #18723b; }
.jp-message.is-error { color: #a42a2a; }
.jp-results { padding: 30px 0; border-top: 1px solid var(--jp-line); }
.jp-results.is-hidden { display: none; }
.jp-result { margin: 20px 0; }
.jp-result__top { display: flex; justify-content: space-between; gap: 20px; }
.jp-progress { height: 11px; overflow: hidden; margin: 7px 0; border-radius: 99px; background: #eaedf3; }
.jp-progress i { display: block; width: var(--jp-progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jp-primary), var(--jp-secondary)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.jp-result small, .jp-disclaimer { color: var(--jp-muted); }
.jp-results__total { display: block; margin-top: 24px; }
.jp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; border-top: 1px solid var(--jp-line); }
.jp-share a, .jp-share button { padding: 8px 12px; border: 1px solid var(--jp-line); border-radius: 8px; background: #fff; color: var(--jp-ink); cursor: pointer; }
.jp-single > .jp-disclaimer { padding: 18px 0 30px; }
.jp-vote-more { max-width: 900px; margin: 34px auto 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--jp-line); border-radius: 24px; background: var(--jp-vote-more-background); box-shadow: var(--jp-shadow); }
.jp-vote-more__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.jp-vote-more__head h2 { margin: 0 0 5px; }
.jp-vote-more__head p { margin: 0; color: var(--jp-muted); }
.jp-vote-more__all { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.jp-vote-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jp-vote-more .jp-card h3 { min-height: 3.1em; margin-bottom: 22px; }
.jp-vote-more > .jp-empty { margin: 0; }
.jp-notice, .jp-empty { padding: 22px; border: 1px solid #e7d79c; border-radius: 14px; background: #fff9e3; }
.jp-section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.jp-section-head .jp-eyebrow { color: var(--jp-primary); }
.jp-section-head p { color: var(--jp-muted); }
.jp-suggestion { max-width: 780px; margin: auto; }
.jp-suggestion form { padding: clamp(24px, 6vw, 55px); border: 1px solid var(--jp-line); border-radius: 20px; background: #fff; box-shadow: var(--jp-shadow); }
.jp-suggestion label { display: block; margin-bottom: 20px; }
.jp-suggestion label > span { display: block; margin-bottom: 7px; }
.jp-suggestion .jp-confirm { display: flex; gap: 10px; }
.jp-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.jp-insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jp-insight { display: block; min-height: 230px; padding: 30px; border-radius: 18px; background: linear-gradient(145deg, var(--jp-primary), var(--jp-secondary)); color: #fff; }
.jp-insight span { color: #dedaff; }
.jp-archive .jp-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--jp-line); border-radius: 14px; background: #fff; }
.jp-archive select { width: 100%; }

/* Themeable surfaces and accessible control dimensions. Typography is generated from the registry. */
.jp-card, .jp-featured-mini, .jp-category-cards button, .jp-side-card, .jp-recent__grid article, .jp-single, .jp-suggestion form, .jp-archive .jp-toolbar { background: var(--jp-surface); }
.jp-text-button { min-height: 44px; border-radius: var(--jp-button-radius); background: var(--jp-surface); }
.jp-category-cards button { min-height: 124px; }
.jp-category-cards button.is-active { transform: none; }
.jp-tabs button { min-height: 52px; }
.jp-sort-select select, .jp-archive select { min-height: 44px; background: var(--jp-surface); }
.jp-card__cta { min-height: 46px; }
.jp-view-all { min-height: 46px; background: var(--jp-surface); }
.jp-social-card button { min-height: 44px; background: var(--jp-surface); }
.jp-share a, .jp-share button { min-height: 44px; }

@media (max-width: 1250px) {
  .jp-dashboard__hero { grid-template-columns: minmax(0, .9fr) minmax(410px, 1.1fr); gap: 42px; }
  .jp-category-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .jp-dashboard__content { grid-template-columns: minmax(0, 1.9fr) 300px; gap: 28px; }
  .jp-dashboard__sidebar { padding-left: 28px; }
  .jp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1151px) {
  .jp-hero-copy h1 { white-space: nowrap; }
}

@media (max-width: 900px) {
  .jp-dashboard { border-radius: var(--jp-radius); }
  .jp-dashboard__hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .jp-hero-copy h1 { max-width: 760px; }
  .jp-hero-visual { min-height: 420px; }
  .jp-category-section { padding: 20px 28px 30px; }
  .jp-category-cards { display: flex; overflow-x: auto; padding-bottom: 9px; scroll-snap-type: x proximity; }
  .jp-category-cards button { min-width: 122px; scroll-snap-align: start; }
  .jp-dashboard__content { grid-template-columns: 1fr; padding: 28px; }
  .jp-dashboard__sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 28px 0 0; border-top: 1px solid var(--jp-line); border-left: 0; }
  .jp-side-card { margin: 0; }
  .jp-recent__grid, .jp-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-recent__grid article:last-child { grid-column: 1 / -1; }
  .jp-vote-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .jp-route { padding: 8px 6px 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .jp-dashboard { border-radius: var(--jp-radius); box-shadow: none; }
  .jp-dashboard__hero { gap: 28px; min-height: 0; padding: 28px 18px; }
  .jp-chat-mark { width: 38px; height: 38px; margin-bottom: 18px; }
  .jp-hero-copy__lead { margin-bottom: 20px; }
  .jp-hero-copy__note { margin-bottom: 26px; }
  .jp-hero-actions { width: 100%; }
  .jp-hero-actions .jp-button { width: 100%; flex: 1 1 100%; }
  .jp-hero-visual { min-height: 360px; border-radius: 18px; }
  .jp-featured-mini { right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .jp-category-section, .jp-dashboard__content { padding-right: 16px; padding-left: 16px; }
  .jp-category-cards button { min-width: 118px; min-height: 112px; }
  .jp-feed-toolbar { flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .jp-tabs { width: 100%; gap: 18px; }
  .jp-sort-select select { width: 100%; }
  .jp-grid { grid-template-columns: 1fr; }
  .jp-card__image { aspect-ratio: 1.7 / 1; }
  .jp-card__body { padding: 20px; }
  .jp-card h3 { min-height: 0; }
  .jp-dashboard__sidebar { grid-template-columns: 1fr; }
  .jp-recent { margin-right: -6px; margin-left: -6px; }
  .jp-recent__head { align-items: flex-start; }
  .jp-recent__grid { grid-template-columns: 1fr; }
  .jp-recent__grid article:last-child { grid-column: auto; }
  .jp-dashboard > .jp-disclaimer { margin-right: 20px; margin-left: 20px; }
  .jp-insight-grid { grid-template-columns: 1fr; }
  .jp-archive .jp-toolbar { grid-template-columns: 1fr; }
  .jp-vote-more { margin-top: 22px; padding: 20px 16px; border-radius: 18px; box-shadow: none; }
  .jp-vote-more__head { align-items: stretch; flex-direction: column; gap: 16px; }
  .jp-vote-more__all { width: 100%; }
  .jp-vote-more__grid { grid-template-columns: 1fr; }
}

@supports (padding: max(0px)) {
  .jp-route { padding-right: max(18px, env(safe-area-inset-right)); padding-left: max(18px, env(safe-area-inset-left)); }
  @media (max-width: 620px) {
    .jp-route { padding-right: max(6px, env(safe-area-inset-right)); padding-left: max(6px, env(safe-area-inset-left)); }
  }
}

@media (max-width: 480px) {
  .jp-dashboard__hero { padding: 24px 14px; }
  .jp-hero-visual { min-height: 330px; }
  .jp-featured-mini { padding: 20px 17px 17px; }
  .jp-category-section, .jp-dashboard__content { padding-right: 14px; padding-left: 14px; }
  .jp-category-cards button { min-width: 110px; }
  .jp-single > header, .jp-vote-form, .jp-results, .jp-share, .jp-single > .jp-notice, .jp-single > .jp-disclaimer { margin-right: 16px; margin-left: 16px; }
  .jp-share > strong { width: 100%; }
  .jp-share a, .jp-share button { min-width: 0; flex: 1 1 calc(50% - 6px); }
  .jp-suggestion form { padding: 22px 16px; }
}

@media (max-width: 380px) {
  .jp-route { padding-right: 4px; padding-left: 4px; }
  .jp-dashboard__hero { padding-right: 12px; padding-left: 12px; }
  .jp-hero-visual { min-height: 310px; }
  .jp-featured-mini { right: 8px; bottom: 8px; width: calc(100% - 16px); }
  .jp-tabs { gap: 12px; }
  .jp-card__body { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .jp-app * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
