:root {
  --ink: #22282c;
  --muted: #565e63;
  --green: #426159;
  --green-dark: #29463e;
  --line: #e5e8e8;
  --paper: #fff;
  --soft: #f1f5f3;
  --serif: var(--sans);
  --pb-focus: #487568;
}
[lang=ar] { --serif: var(--sans); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--pb-focus); outline-offset: 3px; }
.pb-icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.site-header { border-color: #ebeded; }
.header-inner { min-height: 64px; }
.brand { color: #242c30; gap: 7px; font-size: 18px; font-weight: 680; letter-spacing: -.035em; white-space: nowrap; }
.brand img { display: block; }
.nav-link, .saved-link, .language summary { font-weight: 570; }
.saved-link { background: #f4f6f5; }
.saved-link:hover { background: #e8efeb; }
.language summary .pb-icon { width: 16px; height: 16px; }
.language ul { box-shadow: 0 12px 38px #20292b16; }
.footer { background: #fafbfa; }
.page-heading h1 { font-size: clamp(33px, 5vw, 56px); }
.field-mark { color: var(--green-dark); }
.search input, .search select { border-color: var(--line); background: #fafbfa; }
.plan-starter { border-color: #c6d5cf; background: #f8faf9; }

.pb-hero { width: min(calc(100% - 36px), 694px); margin-inline: auto; padding-block: clamp(34px, 5vw, 66px) 0; }
.pb-intro { text-align: center; }
.pb-mascot { background: #f2f5f3; border: 1px solid #e9edeb; border-radius: 21px; width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 18px; }
.pb-mascot img { display: block; }
.pb-intro h1 { font-family: var(--sans); font-size: clamp(32px, 5.4vw, 49px); line-height: 1.07; font-weight: 650; letter-spacing: -.055em; text-wrap: balance; overflow-wrap: anywhere; }
:lang(zh) .pb-intro h1, :lang(ja) .pb-intro h1 { letter-spacing: -.04em; }
:lang(ar) .pb-intro h1, :lang(hi) .pb-intro h1 { letter-spacing: normal; line-height: 1.22; }
.pb-intro > p { max-width: 61ch; margin: 12px auto 24px; font-size: clamp(14px, 2vw, 16px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.pb-intro > p strong { color: var(--ink); font-weight: 600; }
.pb-composer { background: #fff; border: 1px solid #dfe4e3; border-radius: 24px; padding: 19px 21px 16px; box-shadow: 0 2px 6px #24333105, 0 12px 30px #24333108; }
.pb-label { display: block; font-size: 13px; font-weight: 660; margin-block-end: 6px; }
.pb-input { border: 1px solid #e5e8e7; border-radius: 12px; display: flex; gap: 10px; align-items: center; padding-inline: 12px; background: #f7f8f8; min-width: 0; }
.pb-input > .pb-icon { color: #586761; width: 17px; height: 17px; }
.pb-input:focus-within { border-color: #88a49a; box-shadow: 0 0 0 2px #8ca99e30; background: #fff; }
.pb-input input { min-width: 0; width: 100%; border: 0; padding: 9px 0; min-height: 42px; outline: none; background: transparent; font-size: 15px; }
.pb-input input:focus-visible { outline: none; }
.pb-input input::placeholder { color: #62696d; opacity: 1; }
.pb-composer fieldset { border: 0; min-width: 0; margin: 13px 0 0; padding: 0; }
.pb-composer legend { padding: 0; }
.pb-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.pb-search select { max-width: 190px; min-width: 0; border: 1px solid #e5e8e7; border-radius: 12px; background: #f7f8f8; padding: 5px 8px; font-size: 13px; min-height: 42px; }
.pb-search-status:empty { display: none; }
.pb-search-status:not(:empty) { margin-block: 8px; color: var(--muted); font-size: 13px; }
.pb-options { margin-block-start: 8px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.pb-options[aria-busy=true] { opacity: .7; }
.pb-option { position: relative; display: flex; border: 1px solid #e8eaea; border-radius: 12px; min-width: 0; align-items: center; gap: 5px; justify-content: space-between; padding: 8px 9px; cursor: pointer; }
.pb-option:hover { border-color: #acc1b8; background: #fafcfb; }
.pb-option:has(input:checked) { background: #edf5f1; border-color: #a1bbae; }
.pb-option:has(input:focus-visible) { outline: 2px solid var(--pb-focus); outline-offset: 2px; }
.pb-option input { position: absolute; inline-size: 1px; block-size: 1px; margin: 0; clip-path: inset(50%); }
.pb-choice-name { display: grid; gap: 2px; min-width: 0; align-content: center; }
.pb-choice-name strong { font-size: 12.5px; font-weight: 660; line-height: 1.25; overflow-wrap: anywhere; }
.pb-choice-name small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.pb-choice-mark { background: #f3f5f4; border-radius: 50%; color: #41524b; display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; }
.pb-choice-mark .pb-icon { width: 14px; height: 14px; }
.pb-choice-mark .pb-icon:nth-child(2), .pb-option:has(input:checked) .pb-choice-mark .pb-icon:first-child { display: none; }
.pb-option:has(input:checked) .pb-choice-mark { background: var(--green-dark); color: #fff; }
.pb-option:has(input:checked) .pb-choice-mark .pb-icon:nth-child(2) { display: block; }
.pb-picks { display: flex; flex-wrap: wrap; gap: 5px; margin-block-start: 8px; }
.pb-pick { display: inline-flex; align-items: center; justify-content: space-between; text-align: start; gap: 6px; min-height: 33px; max-width: 100%; border-radius: 8px; background: #edf5f1; color: #29463e; border: 1px solid #d5e3db; padding: 3px 7px; font-size: 12px; overflow-wrap: anywhere; }
.pb-pick span { font-size: 15px; }
.pb-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; border-top: 1px solid #edf0ee; padding-block-start: 12px; margin-block-start: 12px; }
.pb-actions > span { color: var(--muted); font-size: 13px; }
.pb-submit { background: #262e32; color: #fff; border: 1px solid #262e32; border-radius: 13px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 8px 13px; line-height: 1.25; font-size: 14px; font-weight: 640; }
.pb-submit:hover { background: #3b474b; }
.pb-submit:disabled { opacity: .7; cursor: progress; }
.pb-submit .pb-icon { width: 17px; height: 17px; }
.pb-feedback { color: #8c2e23; border-radius: 9px; background: #fdf1ed; margin-block-start: 9px; padding: 7px 11px; font-size: 13px; }
.pb-feedback[data-state=saved] { background: #edf5ef; color: #264a35; }
.pb-notes { text-align: center; color: var(--muted); font-size: 12px; margin-block-start: 12px; text-wrap: pretty; }
.pb-notes .pb-preview { margin-block-start: 4px; }

.pb-explore { width: min(calc(100% - 36px), 894px); margin-inline: auto; padding-block: clamp(31px, 4.2vw, 53px) clamp(40px, 6vw, 70px); }
.pb-explore h2 { text-align: center; margin-block-end: 13px; font-size: 15px; font-weight: 650; }
.pb-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.pb-tool { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 9px; padding: 11px 10px; border: 1px solid #e6e9e8; border-radius: 12px; }
.pb-tool:hover { background: #f6f8f7; border-color: #d2ddd7; }
.pb-tool-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f1f5f3; color: #486158; }
.pb-tool-icon .pb-icon { width: 17px; height: 17px; }
.pb-tool strong, .pb-tool small { display: block; }
.pb-tool strong { font-size: 13px; line-height: 1.35; }
.pb-tool small { color: var(--muted); margin-block-start: 3px; font-size: 12px; line-height: 1.35; }
.pb-tool > .pb-icon { width: 15px; height: 15px; color: #687670; margin-block-start: 2px; }
[dir=rtl] :is(.pb-tool > .pb-icon, .pb-submit > .pb-icon) { transform: scaleX(-1); }

@media (max-width: 740px) {
  .header-inner { padding-block: 5px 0; }
  .header-inner nav { column-gap: 4px; justify-content: space-between; }
  .nav-link { padding-inline: 2px; }
  .pb-tools { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pb-hero { padding-block-start: 24px; }
  .pb-intro > p { margin-block: 9px 16px; }
  .pb-mascot { border-radius: 16px; width: 51px; height: 51px; margin-block-end: 12px; }
  .pb-mascot img { width: 38px; height: 38px; }
  .pb-composer { padding: 13px; border-radius: 19px; }
  .pb-search { grid-template-columns: minmax(0,1fr); }
  .pb-search select { max-width: 100%; width: 100%; }
  .pb-options { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .pb-option { min-height: 44px; padding-block: 6px; }
}
@media (max-width: 380px) {
  .brand { font-size: 16px; gap: 4px; }
  .brand img { width: 28px; height: 28px; }
  .toolbar { gap: 4px; }
  .language summary, .saved-link { font-size: 11px; }
  .language summary .pb-icon { display: none; }
}
