:root {
  color-scheme: light;
  --background: #f5f7f2;
  --ink: #182d23;
  --muted: #495c50;
  --green: #176345;
  --border: #dce5da;
  --soft-green: #e5f1e8;
  font: 100% 'Source Sans 3', system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid #25794f; outline-offset: 3px; }
h1, h2, h3, .brand, .price { margin: 0; letter-spacing: normal; }
h1 { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.875rem); line-height: 1.15; font-weight: 700; }
h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
p { color: var(--muted); margin: 6px 0 0; line-height: 1.55; }
svg { flex-shrink: 0; vertical-align: middle; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 8px; left: 8px; background: white; padding: 10px; }
#sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; background: white; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 28px 17px 18px; z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; font-size: 1.52rem; font-weight: 700; line-height: 1.15; }
.brand small { display: block; margin-top: 5px; font-size: .65rem; font-weight: 700; color: var(--muted); letter-spacing: .12em; }
nav { display: grid; gap: 5px; margin-top: 43px; }
nav a { display: flex; gap: 11px; align-items: center; min-height: 45px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem; }
nav a:hover { background: #f1f7ef; }
nav a[aria-current] { color: #145a3c; background: var(--soft-green); font-weight: 700; }
.sidebar-end { margin-top: auto; }
.sidebar-plan { background: #fff7d6; border: 1px solid #ebd992; border-radius: 13px; padding: 14px; }
.sidebar-plan strong { display: block; margin-top: 9px; }
.sidebar-plan p { font-size: .81rem; }
.sidebar-plan a { display: inline-flex; gap: 6px; align-items: center; font-size: .83rem; font-weight: 700; color: var(--green); margin-top: 12px; }
.private { font-size: .73rem; color: var(--muted); display: flex; gap: 6px; align-items: center; margin: 15px 2px 0; }
.workspace { margin-left: 238px; }
#topbar { height: 71px; padding: 0 35px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--border); box-shadow: inset 0 3px #f4ce52; }
.breadcrumb { color: var(--muted); font-weight: 700; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-button, .profile { border: 1px solid var(--border); border-radius: 10px; width: 39px; height: 39px; display: inline-grid; place-items: center; background: white; }
.icon-button:hover { background: var(--soft-green); }
.profile { border-radius: 50%; color: var(--green); background: var(--soft-green); border-color: transparent; }
main { max-width: 1440px; margin: auto; padding: 30px 35px 12px; }
main:focus { outline: none; }
.hero { border: 1px solid var(--border); border-top: 4px solid #f4ce52; border-radius: 12px; background: white; padding: 26px 32px 30px; }
.hero-label { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.hero p { margin-top: 8px; font-size: 1.0625rem; }
.search-box { display: flex; align-items: center; gap: 12px; background: white; color: #516457; border-radius: 11px; padding: 5px 5px 5px 14px; border: 1px solid var(--border); max-width: 520px; }
.hero .search-box { margin-top: 18px; max-width: 42rem; background: var(--background); border-color: #a9bbad; }
.search-box input, .url-field input { border: 0; background: transparent; padding: 9px 0; min-width: 0; flex: 1; color: var(--ink); outline-offset: 0; }
.search-box button, .primary, .secondary, .ghost, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; border-radius: 8px; font-weight: 700; padding: 8px 14px; border: 1px solid transparent; }
.search-box button, .primary { background: var(--green); color: white; }
.search-box button:hover, .primary:hover { background: #114a33; }
.secondary { background: var(--soft-green); color: #145a3c; }
.secondary:hover, .ghost:hover { background: #dbeddf; }
.ghost { background: transparent; color: var(--green); }
.danger { background: #fff0f2; color: #a02443; }
.home-section { margin-top: 27px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.section-heading p { margin-top: 3px; }
.text-link { color: var(--green); display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.guide-grid, .tool-grid, .plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.guide-card, .panel { border-radius: 15px; border: 1px solid var(--border); background: white; padding: 19px; box-shadow: 0 2px 5px #29233b05; }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; transition: border-color .2s, transform .2s; }
.guide-card:hover { transform: translateY(-3px); border-color: #8eb49c; }
.tile { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; flex: 0 0 auto; }
.lilac { color: #176345; background: #e5f1e8; }
.peach { color: #765300; background: #fff4cd; }
.mint { color: #176d55; background: #e2f6ed; }
.sidebar-plan .tile { width: 32px; height: 32px; border-radius: 9px; }
.category { color: var(--muted); font-weight: 700; letter-spacing: .05em; font-size: .75rem; margin: 12px 0 5px; }
.guide-card p { font-size: 1rem; margin-bottom: 14px; }
.card-link { display: inline-flex; gap: 7px; align-items: center; color: var(--green); font-weight: 700; font-size: .87rem; margin-top: auto; }
.tool-grid, .plans { grid-template-columns: 1fr 1fr; }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.panel-heading h2 { font-size: 1.25rem; }
.panel-heading p { font-size: .87rem; margin-top: 3px; }
.link-form, .chat-form { display: flex; gap: 9px; align-items: stretch; }
.url-field { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.date-empty, .empty { background: #f5f7f2; color: var(--muted); border: 1px dashed #cbdccf; border-radius: 8px; padding: 12px; font-size: .89rem; margin: 0 0 11px; }
.date-panel .secondary { min-height: 34px; font-size: .86rem; }
.link-result { overflow-wrap: anywhere; padding: 10px; border-radius: 8px; font-size: .86rem; }
.link-result.official { color: #125844; background: #e2f6ed; }
.link-result.unknown, .warning { color: #754508; background: #fff3d9; }
.link-result.invalid { color: #8f2644; background: #fff0f2; }
footer { max-width: 1440px; margin: auto; padding: 14px 35px 20px; font-size: .77rem; color: var(--muted); }
.page-heading { margin: 0 0 25px; }
.page-heading .tile { margin-bottom: 12px; }
.back { margin-bottom: 16px; }
.catalog-search { display: flex; gap: 10px; align-items: center; }
.catalog-search .search-box { flex: 1; }
.guide-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 19px; }
.guide-side { display: grid; align-content: start; gap: 13px; }
.guide-side button, .guide-side .text-link, .account button { margin-top: 12px; }
.guide-progress span, .fine-print { font-size: .82rem; color: var(--muted); }
.fine-print { margin-top: 12px; }
.state-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-weight: 700; }
progress { display: block; width: 100%; height: 10px; accent-color: var(--green); }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li a { margin-top: 10px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
dt { margin-top: 12px; font-size: .8rem; color: var(--muted); }
dd { margin: 2px 0; font-weight: 700; }
.warning { padding: 8px; border-radius: 8px; }
.date-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.date-row div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.date-row div > span { display: block; font-size: .83rem; color: var(--muted); }
.date-row .tile { width: 35px; height: 35px; }
.standalone, .chat, .account { max-width: 750px; }
.chat .category { margin: 0 0 14px; }
.chat-form { margin-top: 15px; }
.chat-form input { flex: 1; min-width: 0; }
.chat-question, .chat-response { padding: 13px; margin: 10px 0; border-radius: 10px; overflow-wrap: anywhere; }
.chat-question { background: var(--soft-green); margin-left: 14%; }
.chat-response { background: var(--background); margin-right: 14%; }
.chat-response p:first-child { margin-top: 0; }
.price { font-size: 2.2rem; font-weight: 700; margin: 13px 0; }
.price small { font-size: 1rem; color: var(--muted); }
.plans ul { padding-left: 19px; color: var(--muted); line-height: 1.8; }
.annual { border-color: #97bba3; }
dialog { width: min(470px,calc(100% - 24px)); max-height: 90dvh; border: 1px solid var(--border); border-radius: 16px; padding: 21px; color: var(--ink); box-shadow: 0 18px 60px #10291d36; }
dialog::backdrop { background: #10291d75; }
.modal-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
dialog > .primary, dialog > .danger { margin-top: 14px; }
.fields { display: grid; gap: 13px; margin-top: 12px; }
.fields label { display: grid; gap: 5px; font-weight: 700; }
.fields .check-label { display: flex; align-items: center; font-weight: 500; }
.fields input:not([type=checkbox]), select, .chat-form input { border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; color: var(--ink); background: white; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 1120px) {
  #sidebar { width: 202px; }
  .workspace { margin-left: 202px; }
  main, #topbar, footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 870px) {
  #sidebar { width: 68px; padding: 19px 9px; }
  .brand { padding: 0 5px; }
  .brand span, .sidebar-end { display: none; }
  nav a { justify-content: center; position: relative; }
  nav a span { position: absolute; clip-path: inset(50%); white-space: nowrap; }
  .workspace { margin-left: 68px; }
  .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  #sidebar { inset: auto 0 0; width: auto; padding: 4px 3px max(4px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--border); }
  #sidebar .brand { display: none; }
  nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; margin: 0; }
  nav a { flex-direction: column; gap: 2px; padding: 4px 1px; text-align: center; font-size: .75rem; min-height: 54px; line-height: 1.15; }
  nav a span { position: static; clip-path: none; white-space: normal; }
  .workspace { margin-left: 0; padding-bottom: 65px; }
  #topbar { height: 57px; }
  main, #topbar, footer { padding-left: 14px; padding-right: 14px; }
  main { padding-top: 14px; }
  .hero { padding: 24px 18px; }
  .hero .search-box { max-width: none; }
  .guide-grid, .guide-layout, .plans { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .section-heading > .text-link { text-align: right; flex-shrink: 0; max-width: 98px; }
  .catalog-search { flex-wrap: wrap; }
  .catalog-search .search-box { flex-basis: 100%; }
  .section-heading .primary { font-size: .82rem; }
}
@media print {
  body:has(dialog[open]) #sidebar, body:has(dialog[open]) .workspace,
  dialog button, dialog select { display: none; }
  dialog[open] { position: static; width: 100%; max-height: none; border: 0; box-shadow: none; }
  dialog::backdrop { background: transparent; }
}
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fields fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 9px; padding: 12px; display: grid; gap: 10px; }
.fields textarea { font: inherit; padding: 9px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; }
.admin-list { padding-left: 20px; overflow-wrap: anywhere; }
.admin-list li { padding: 5px 0; }
@media (max-width: 420px) {
  .link-form { flex-wrap: wrap; }
  .link-form .url-field { flex-basis: 100%; }
  .link-form .primary { width: 100%; }
}
.tool-grid > .panel { min-width: 0; }

.service-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
