:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #242d2a;
  background: #f5f3ed;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flow-root; }
main {
  width: min(100% - 32px, 490px);
  margin: clamp(24px, 9vh, 85px) auto max(32px, env(safe-area-inset-bottom));
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #d5dad3;
  border-top: 4px solid #183c38;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 30px rgb(23 43 33 / 6%);
}
header { display: flex; align-items: center; gap: 10px; color: #344a40; font-size: .95rem; }
header img { border-radius: 10px; }
header strong { color: #152e2b; font-size: 1.15rem; }
h1 { margin: 28px 0 7px; color: #183c38; font: 500 clamp(2.15rem, 8vw, 3.25rem)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.intro, .hint, li, #feedback { line-height: 1.5; overflow-wrap: anywhere; }
.intro { margin: 0 0 25px; color: #45554e; }
label, h2 { display: block; font-size: .99rem; font-weight: 650; color: #233d35; }
select,input,button { width: 100%; min-height: 47px; font: inherit; border-radius: 7px; }
select,input { border: 1px solid #84958c; padding: 9px 13px; background: white; color: inherit; margin-top: 6px; font-size: 16px; }
button { cursor: pointer; padding: 11px 15px; font-weight: 600; }
.primary { margin-top: 19px; background: #183c38; color: white; border: 1px solid #183c38; }
.primary:hover:enabled { background: #102c29; }
.subtle { background: transparent; color: #36594e; border: 0; margin-top: 3px; font-size: .91rem; }
.subtle:hover:enabled { text-decoration: underline; }
button:disabled, select:disabled { opacity: .62; cursor: progress; }
:is(input,select,button):focus-visible { outline: 3px solid #207785; outline-offset: 3px; }
.hint { margin: 4px 0; font-size: .91rem; color: #506159; }
#news-option { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; cursor: pointer; }
#news { width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: #183c38; flex: none; }
#news-help { margin-top: -1px; }
#delivery-state { padding: 11px 13px; border-inline-start: 3px solid #9aaba1; background: #f4f6f3; color: #33493e; border-radius: 0 6px 6px 0; }
#delivery-state[data-active="true"] { border-color: #3e7654; background: #edf5ef; color: #255036; }
#delivery-status { margin: 0; font-size: .96rem; line-height: 1.45; }
#delivery-scope { margin-bottom: 0; }
.ui-language { display: grid; margin-inline-start: auto; justify-items: end; gap: 0; }
.ui-language label { font-size: .77rem; font-weight: 500; }
.ui-language select { width: auto; max-width: 100%; margin: 0; min-height: 44px; padding: 5px 6px; border: 0; color: #233d35; }
#article-languages { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
#article-languages legend { padding: 0; color: #233d35; font-weight: 650; }
#language-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 9px; margin-top: 5px; }
#language-options label { min-height: 44px; display: flex; align-items: center; gap: 9px; font-size: .96rem; font-weight: 400; cursor: pointer; }
#language-options input { width: 19px; min-height: 19px; height: 19px; flex: none; margin: 0; padding: 0; accent-color: #183c38; }
#article-preview { border-top: 1px solid #d5dad3; margin-top: 18px; }
#article-preview summary { min-height: 44px; padding: 13px 0; font-size: .95rem; color: #36594e; cursor: pointer; }
#article-preview summary:focus-visible { outline: 3px solid #207785; outline-offset: 2px; }
#test-article { max-width: 100%; }
#open-preview { display: flex; align-items: center; min-height: 44px; padding-block: 4px; color: #275b4e; line-height: 1.4; font-size: .92rem; overflow-wrap: anywhere; }
#article-message:empty { display: none; }
#article-preview .primary { margin-top: 7px; }
#country-picker { margin-top: 16px; border-block: 1px solid #d5dad3; }
#country-picker summary { display: grid; min-height: 48px; align-items: center; grid-template-columns: minmax(0, auto) minmax(0, 1fr) 8px; gap: 8px; padding: 5px 5px 5px 0; list-style: none; cursor: pointer; }
#country-picker summary::-webkit-details-marker { display: none; }
#country-picker summary::after { content: ''; width: 6px; height: 6px; border: solid #506159; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
#country-picker[open] summary::after { transform: rotate(225deg); }
#country-picker summary:focus-visible { outline: 3px solid #207785; outline-offset: 2px; border-radius: 3px; }
.country-title { font-weight: 650; color: #233d35; }
#country-summary { font-size: .9rem; color: #41574e; text-align: end; overflow-wrap: anywhere; }
.country-content { padding-bottom: 10px; }
#country-search-wrap { margin-top: 12px; }
#country-search-wrap label { font-size: .91rem; }
#country-options { max-height: min(230px, 42vh); overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
#country-options label { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 4px; font-size: .96rem; font-weight: 400; cursor: pointer; overflow-wrap: anywhere; }
#country-options input { width: 19px; min-height: 19px; height: 19px; flex: none; margin: 0; padding: 0; accent-color: #183c38; }
#country-options input:focus-visible { outline-offset: 1px; }
.country-bulk { display: flex; flex-wrap: wrap; column-gap: 14px; align-items: center; }
.country-bulk button { width: auto; min-height: 44px; padding: 4px 0; margin: 0; text-align: start; }
#country-apply { margin-top: 12px; min-height: 44px; border: 1px solid #84958c; background: #f1f5f2; color: #233d35; }
.guide { border: 1px solid #ccd8d1; border-radius: 8px; padding: 15px; background: #f1f5f2; margin-top: 18px; }
.guide h2 { margin: 0 0 6px; }
.guide ol { margin: 0; padding-left: 1.35rem; }
.guide li { padding-left: 2px; margin-top: 6px; font-size: .94rem; }
#feedback { margin: 16px 0 0; color: #41564b; font-size: .95rem; }
#feedback:empty { display: none; }
#feedback[data-tone="error"] { color: #8e332c; }
#feedback[data-tone="success"] { color: #235642; }
@media (max-width: 420px) {
  main { width: calc(100% - 20px); margin-top: max(10px, env(safe-area-inset-top)); padding: 21px 18px; }
  h1 { margin-top: 21px; }
}

#install-fallback { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: #275b4e; }
:host([data-ofm-article-panel]) { display: block; color: #242d2a; font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:host([data-ofm-article-panel]) main { width: 100%; margin: 0; padding: 8px 20px 20px; border: 0; border-radius: 0; box-shadow: none; }
:host([data-ofm-article-panel]) main > :is(header,h1) { display: none; }
:host([data-ofm-article-panel]) .intro { font-size: .99rem; margin-bottom: 14px; }
:host([data-ofm-article-panel]) #article-languages { margin-top: 15px; }
:host([data-ofm-article-panel]) #country-picker { margin-top: 8px; }
