/* Дебютика — warm paper, ink and terracotta. Owned layer over the saved client. */
:root {
  color-scheme: light;
  --background:#F4F0E8; --foreground:#302D29; --muted-foreground:#756E65;
  --accent:#A34F39; --accent-hover:#87412F; --card-bg:#FFFEFA;
  --chat-bg:#F4F0E8; --chat-border:#DAD4CA; --chat-bubble-bot-bg:#FFFEFA;
  --chat-bubble-bot-color:#302D29; --chat-bubble-user-bg:#A34F39;
  --chat-bubble-user-color:#FFFDF9; --chat-avatar-bg:#E8DDCC;
  --card-glow:none; --cta-glow:none; --chat-shadow:none; --chat-avatar-shadow:none;
  --color-blue-100:#F0E2D8; --color-blue-200:#E5C4B5; --color-blue-400:#AD6750;
  --color-blue-500:#A34F39; --color-blue-600:#954A36; --color-blue-700:#87412F;
  --color-purple-500:#AD6750; --color-purple-600:#A34F39; --color-purple-700:#87412F;
  --color-gray-300:#8B8277; --color-gray-400:#756E65; --color-gray-500:#6D655B;
  --color-gray-600:#5C554D; --color-gray-700:#E8E0D5; --color-gray-800:#F0EAE1;
  --color-gray-900:#FFFEFA;
}
body {background:var(--background);color:var(--foreground);font-family:Inter,Arial,sans-serif;}
button,a,input { -webkit-tap-highlight-color:transparent; }
button,a {touch-action:manipulation;}
a,button {transition:color .15s,background-color .15s,border-color .15s;}
:focus-visible {outline:2px solid var(--accent);outline-offset:4px;}
input:focus-visible {outline-offset:2px;}

.fm-settings {padding-top:32px !important;}
.fm-settings>div>h1 {font:700 38px/1.2 Georgia,serif;letter-spacing:-.8px;margin-bottom:26px;}
.fm-membership {margin-bottom:26px;padding:28px 30px 30px;border:1px solid #D6C3AD;border-radius:14px;background:#FFFEFA;box-shadow:0 6px 24px #58391D06;}
.fm-membership-top {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px;}
.fm-membership-eyebrow {font-size:9px;letter-spacing:1.5px;line-height:1.5;color:#9B6046;font-weight:600;}
.fm-membership-status {display:inline-flex;align-items:center;gap:7px;flex-shrink:0;border:1px solid #D8C8B4;background:#F7EFE3;color:#805E3D;border-radius:6px;padding:6px 9px;font-size:11px;font-weight:500;line-height:1.4;}
.fm-membership-status::before {content:"";width:5px;height:5px;border-radius:50%;background:currentColor;}
.fm-membership-status[data-active="true"] {background:#EFF4E9;border-color:#BBCBAA;color:#536943;}
.fm-membership-layout {display:grid;grid-template-columns:1fr 240px;gap:36px;align-items:stretch;}
.fm-membership h2 {font:700 32px/1.16 Georgia,serif;letter-spacing:-.7px;margin:0 0 16px;max-width:440px;}
.fm-membership-lead {font-size:13px;line-height:1.8;color:#84735F;margin:0;max-width:470px;}
.fm-membership-metrics {display:flex;gap:28px;margin:23px 0 20px;color:#89745D;font-size:12px;}
.fm-membership-metrics strong {font:700 26px/1.2 Georgia,serif;color:#735137;margin-right:3px;}
.fm-membership-benefits {margin:0;padding:0;list-style:none;}
.fm-membership-benefits li {position:relative;padding:5px 0 5px 21px;font-size:12px;line-height:1.6;color:#6D5C48;}
.fm-membership-benefits li::before {content:"✓";position:absolute;left:0;color:#A15F43;}
.fm-membership-action {padding:22px 20px;border:1px solid #E1D2BE;border-radius:9px;background:#F7F0E6;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;}
.fm-membership-action-label {font-size:10px;color:#917A61;margin-bottom:14px;}
.fm-membership-price {font:600 38px/1.15 Inter,Arial,sans-serif;letter-spacing:-1px;color:#70472F;white-space:nowrap;}
.fm-membership-price small {font:400 10px/1.5 Inter,Arial,sans-serif;letter-spacing:0;color:#9A8166;}
.fm-membership-plan {font:700 30px/1.2 Georgia,serif;color:#70472F;}
.fm-membership-action p {font-size:11px;line-height:1.6;margin:12px 0;color:#8D765D;}
.fm-membership-action>small {font-size:10px;color:#8D765D;line-height:1.6;}
.fm-membership .fm-membership-cta {display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:17px;padding:11px 13px;font-size:12px;border-radius:6px;}
.fm-membership-note {margin-top:12px;}
.fm-membership-retry {font-size:11px;color:#955C40;text-decoration:underline;margin-top:13px;}
@media(max-width:700px){.fm-settings {padding-top:24px !important;}.fm-settings>div>h1{font-size:32px}.fm-membership {padding:22px 20px;}.fm-membership-top {display:block;margin-bottom:23px}.fm-membership-eyebrow {display:block;margin-bottom:12px}.fm-membership-status {font-size:11px;padding:6px 9px}.fm-membership-layout {grid-template-columns:1fr;gap:23px}.fm-membership h2 {font-size:31px}.fm-membership-lead {font-size:13px}.fm-membership-action {padding:22px}.fm-membership-metrics {margin:21px 0 16px}.fm-membership-benefits li {font-size:12px}.fm-membership-price {font-size:36px}.fm-membership-price small{font-size:12px}.fm-membership-cta {font-size:13px;padding:12px 14px}.fm-membership-action p{font-size:12px}}
input::placeholder {color:#827A70;opacity:1;}
header {min-height:80px;padding:14px 3%;background:#F4F0E8 !important;backdrop-filter:none;border-bottom:1px solid #DAD4CA;gap:18px;}
header>div {gap:28px;}
header a[href="/"]:has(h1),.fm-wordmark {display:flex;gap:9px;align-items:center;flex-shrink:0;}
header a[href="/"]>img,.fm-wordmark img {width:46px;height:54px;object-fit:contain;}
header h1,.fm-wordmark {font-family:Georgia,'Times New Roman',serif;font-size:30px;font-weight:700;letter-spacing:-1px;white-space:nowrap;}
header h1.sm\:hidden {display:none;}
header h1.hidden {display:block;}
header h1::after,.fm-brand-caption,footer h3::after {content:"шахматный тренажер";display:block;margin-top:0;color:#756E65;font:400 11px/1.2 Inter,Arial,sans-serif;letter-spacing:.065em;white-space:nowrap;}
.fm-brand-name {display:block;line-height:1.1;}
header [style*="55vw"] {display:none !important;}
header .fm-progress,header a[href="/subscription"] {background:none;color:var(--foreground);font-weight:400;font-size:16px;padding:10px 0;box-shadow:none;transform:none;order:2;}
header .fm-progress {background-color:transparent !important;}
header .fm-progress:hover {color:var(--accent);}
header a:has(img[src="/img/tg.svg"]) {font-size:16px;color:var(--foreground);}
header img[src="/img/tg.svg"] {display:none;}
header>div:first-child {flex:1;}
header>div:last-child>a[href="/"] {order:-1;}
header a[href="/auth/login"],header a[href="/auth/register"] {padding:10px 20px;border-radius:7px;}
header button[title] {width:40px;height:40px;background:#E5D9CA;color:#302D29;}
header button[title]>span {color:#302D29;font-weight:500;}
header button[title]:hover {background:#D9C6B2;}
[class*="bg-gradient-to-"] {background-image:none !important;}
[class*="bg-gradient-to-"]:not([class*="text-transparent"]):not([class*="from-transparent"]):not([class*="/10"]):not([class*="/20"]) {background-color:var(--accent);}
[class*="text-transparent"][class*="bg-clip-text"] {color:var(--accent);}
[class*="shadow-"] {--tw-shadow:0 3px 14px #302D2908;}
.fm-catalog>.container {max-width:1536px;padding:40px 3% 56px;}
.fm-catalog>.container>div:first-child {text-align:left;margin-bottom:32px;}
.fm-catalog>.container>div:first-child h1 {font-family:Georgia,'Times New Roman',serif;font-size:clamp(30px,3.15vw,48px);line-height:1.18;font-weight:700;letter-spacing:-1px;margin-bottom:10px;}
.fm-catalog>.container>div:first-child p {max-width:none;margin:0;font-size:20px;line-height:1.6;}
.fm-catalog>.container>.flex.justify-center.mb-8 {margin-bottom:28px;justify-content:stretch;}
.fm-catalog>.container>.flex.justify-center.mb-8>div {display:flex;align-items:center;width:100%;padding:0;border:0;background:none;gap:0;}
.fm-catalog>.container>.flex.justify-center.mb-8 button {height:46px;border:1px solid #CDBFB0;background:#FFFEFA;border-radius:0;font-size:14px;color:#62574D;padding:0 19px;white-space:nowrap;}
.fm-catalog>.container>.flex.justify-center.mb-8 button:first-child {border-radius:7px 0 0 7px;}
.fm-catalog>.container>.flex.justify-center.mb-8 button:nth-child(2),.fm-catalog>.container>.flex.justify-center.mb-8 button:nth-child(3) {border-left:0;}
.fm-catalog>.container>.flex.justify-center.mb-8 button:nth-child(3) {border-radius:0 7px 7px 0;}
.fm-catalog>.container>.flex.justify-center.mb-8 button[class*="bg-[var(--accent)]"] {background:#EEDBD0;color:#713C2D;font-weight:600;}
.fm-catalog>.container>.flex.justify-center.mb-8 button>span {display:none;}
.fm-search {margin-left:auto;width:min(30%,340px);height:46px;border:1px solid #CDBFB0;border-radius:7px;background:#FFFEFA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23827A70' stroke-width='1.7'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E") no-repeat 14px center/20px;padding:10px 16px 10px 44px;font:15px/1.4 Inter,Arial,sans-serif;}
.fm-grid {max-width:none;gap:18px;}
.fm-grid>.fm-card-shell {min-width:0;}
.fm-card {display:grid;grid-template-columns:52% minmax(0,1fr);grid-template-rows:1fr auto;align-items:start;column-gap:20px;height:100%;padding:18px;border:1px solid #D2C5B6;border-radius:10px;background:#FFFEFA;transition:border-color .15s,box-shadow .15s;}
.fm-card:hover {border-color:#A65F49;box-shadow:0 4px 18px #6A462A0A;}
.fm-card-board {grid-row:1/3;min-width:0;align-self:center;}
.fm-card-board>div {aspect-ratio:1;}
.fm-card-board [data-boardid]>div {box-shadow:none !important;}
.fm-card>div:nth-child(2) {padding-top:18px;}
.fm-card h3 {font-family:Georgia,'Times New Roman',serif;font-size:clamp(20px,1.65vw,26px);font-weight:700;line-height:1.16;margin-bottom:14px;letter-spacing:-.3px;overflow-wrap:break-word;}
.fm-card p {font-size:12px;line-height:1.6;color:#62594E;margin:0;}
.fm-card>div:last-child {margin:20px 0 14px;}
.fm-card-link span {font-size:15px;font-weight:500;}
.fm-card-link svg {width:18px;height:18px;}
.fm-opening-progress {margin-top:15px;padding-top:12px;border-top:1px solid #EAE2D8;line-height:1.4;}
.fm-opening-progress-top {display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;color:#756A5D;}
.fm-opening-progress-top strong {font-weight:500;color:#443B31;white-space:nowrap;}
.fm-opening-percent {color:#8B725A;font-size:11px;font-variant-numeric:tabular-nums;}
.fm-opening-progress-track {height:4px;margin:8px 0 9px;border-radius:4px;background:#E9E1D6;overflow:hidden;}
.fm-opening-progress-track>span {display:block;height:100%;border-radius:4px;background:#A65F49;}
.fm-opening-progress-bottom {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;font-size:11px;}
.fm-opening-level {padding:3px 6px;border-radius:4px;background:#F1E8DC;color:#79513A;font-size:11px;font-weight:500;white-space:nowrap;cursor:help;}
.fm-opening-progress-bottom small {font-size:11px;color:#84796B;}
.fm-opening-progress-pending {font-size:11px;color:#82776A;min-height:71px;}
.fm-opening-progress[data-state="error"] {color:#8B4934;}
footer {background:transparent !important;border-top:1px solid #DAD4CA;color:#756E65;}
footer>.container {max-width:1536px;padding:20px 3%;}
footer .grid {display:flex;justify-content:space-between;align-items:center;gap:25px;}
footer .grid>div:first-child>p,footer .grid>div:nth-child(3),footer .border-t,footer h4 {display:none;}
footer .grid>div:first-child .flex {gap:10px;}
footer .grid>div:first-child img {width:31px;height:37px;}
footer h3 {font-family:Georgia,'Times New Roman',serif;font-size:20px;font-weight:700;}
footer nav {flex-direction:row !important;gap:20px;}
footer nav>a {margin:0 !important;font-size:12px;}
.chat-container {background:var(--background);}
.bubble-content {box-shadow:none;backdrop-filter:none;border-radius:14px;font-size:16px;}
.bubble-content:hover,.board-container .board:hover {transform:none;box-shadow:none;}
.chat-bubble.user .bubble-content {box-shadow:none;}
.chat-avatar {border-radius:8px;object-fit:contain;}
.fm-chat-panel {min-height:0;overflow:hidden;gap:0;}
.fm-chat-scroll {min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;scrollbar-gutter:stable;}
.fm-chat-content {min-width:0;display:flow-root;}
.fm-chat-content .bubble-content,.fm-chat-message {overflow-wrap:anywhere;}
.fm-chat-heading {font-weight:700;}
.fm-chat-end {height:12px;clear:both;}
.fm-chat-actions {flex:0 0 auto;}
.fm-chat-mobile {display:block;}
.fm-chat-mobile .fm-chat-content {padding-bottom:12px;}
input:not([type="range"]):not([type="checkbox"]):not(.fm-search) {background:#FFFEFA;border-color:#CDBFB0;color:#302D29;}
main:has(form) form {color:var(--foreground);}
main:has(form) h1,main:has(form) h2 {font-family:Georgia,'Times New Roman',serif;letter-spacing:-.5px;}
.w-2\.5.rounded-sm[class*="bg-"] {background:#EAE4DA;}
.w-2\.5.rounded-sm.bg-green-100 {background:#EDD7C9;}
.w-2\.5.rounded-sm.bg-green-300 {background:#D7AD96;}
.w-2\.5.rounded-sm.bg-green-500 {background:#B77A5F;}
.w-2\.5.rounded-sm.bg-green-700 {background:#8A4A34;}
.fm-info {margin:0;min-height:100vh;display:flex;flex-direction:column;font:16px/1.7 Inter,Arial,sans-serif;}
.fm-info header {display:flex;align-items:center;justify-content:space-between;}
.fm-info a {color:var(--accent);text-decoration:none;}
.fm-info .fm-wordmark {color:var(--foreground);}
.fm-info main {width:min(760px,calc(100% - 40px));margin:60px auto 80px;flex:1;}
.fm-info h1 {font:700 40px/1.2 Georgia,serif;letter-spacing:-1px;margin:20px 0 28px;}
.fm-info p {margin:20px 0;color:#62594E;}
.fm-info footer {padding:20px 3%;font-size:14px;}
.fm-back {font-size:14px;}
.fm-primary {display:inline-block;background:var(--accent);color:#fff !important;padding:10px 22px;border-radius:7px;}

/* Quiet, readable daily streak. Shared by the catalog and training header. */
.fm-streak {position:relative;flex:0 0 auto;line-height:1;}
.fm-streak-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:7px 10px;border:1px solid #DED4C6;border-radius:8px;background:#F4EEE4;color:#706457;white-space:nowrap;cursor:pointer;}
.fm-streak-button[data-active="true"] {color:#8B4934;background:#F5EAE0;border-color:#E2CDBB;}
.fm-streak-button:hover,.fm-streak-button[aria-expanded="true"] {border-color:#B99A7E;background:#EFE3D6;}
.fm-streak-button svg {flex:0 0 auto;width:17px;height:17px;}
.fm-streak-value {display:inline-flex;align-items:baseline;gap:4px;font-size:12px;line-height:1;}
.fm-streak-value strong {font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;}
.fm-streak-value>span {color:#73614F;}
.fm-streak-skeleton {display:inline-grid;place-items:center;flex:0 0 auto;min-width:70px;height:32px;border:1px solid #E5DDD2;border-radius:8px;background:#F4EEE4;color:#827568;font-size:13px;}
.fm-streak-popover {position:absolute;z-index:150;top:calc(100% + 9px);right:0;width:232px;max-width:calc(100vw - 32px);padding:15px 16px;border:1px solid #DAD0C2;border-radius:10px;background:#FFFEFA;color:#302D29;box-shadow:0 6px 22px #34241714;line-height:1.5;text-align:left;}
.fm-streak-caption {display:block;margin-bottom:5px;font-size:11px;color:#796D60;}
.fm-streak-popover>strong {display:block;font-size:15px;font-weight:600;}
.fm-streak-popover>p {margin:7px 0 11px;font-size:12px;line-height:1.6;color:#706457;}
.fm-streak-popover>small {display:block;padding-top:9px;border-top:1px solid #E8E0D5;font-size:11px;color:#796D60;}
.fm-training-heading {min-width:0;gap:14px;}
.fm-training-heading>:not(:last-child) {margin-inline:0;}
.fm-training-heading>a {flex:0 0 auto;}
.fm-training-heading>div:has(h1) {min-width:0;}
.fm-training-heading h1 {line-height:1.3;}
@media(max-width:767px) {
  .fm-training-heading {flex:1;gap:10px;}
  .fm-training-heading>div:has(h1) {flex:1;}
  .fm-training-heading h1 {font-size:16px;overflow-wrap:anywhere;}
  .fm-training-heading .fm-streak {margin-left:auto;}
  .fm-streak-button {min-height:30px;padding:6px 8px;gap:5px;}
}

/* Level celebration: a steady paper card, with motion confined to the medal. */
dialog.fm-level-dialog {position:fixed;inset:0;isolation:isolate;width:min(440px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:28px 32px 30px;overflow:auto;border:1px solid #D7C7B3;border-radius:24px;background:#FFFEFA;color:#302D29;text-align:center;font-family:Inter,Arial,sans-serif;box-shadow:0 32px 100px #1F160F40;animation:fm-level-enter .42s cubic-bezier(.16,1,.3,1) both;}
dialog.fm-level-dialog::backdrop {background:rgba(33,28,23,.56);backdrop-filter:blur(5px);animation:fm-level-backdrop .2s ease-out both;}
dialog.fm-level-dialog:focus {outline:none;}
.fm-level-close {position:absolute;z-index:3;top:14px;right:14px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#756E65;background:transparent;cursor:pointer;}
.fm-level-close:hover {background:#EFE9E0;color:#302D29;}
.fm-level-art {position:relative;display:grid;place-items:center;height:200px;margin:0 0 8px;pointer-events:none;}
.fm-level-medal {position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:142px;height:142px;border-radius:50%;background:#A34F39;color:#FFFEFA;box-shadow:inset 0 0 0 7px #A34F39,inset 0 0 0 8px #DCAD9266,0 12px 26px #824A3026;animation:fm-level-medal .75s cubic-bezier(.22,1,.36,1) both;}
.fm-level-crown {position:absolute;top:15px;color:#EED3A8;}
.fm-level-counter {position:absolute;top:42px;left:50%;width:112px;height:64px;margin:0;overflow:hidden;transform:translateX(-50%);font:600 var(--level-digit-size,64px)/1 Inter,Arial,sans-serif;letter-spacing:-2px;font-variant-numeric:lining-nums tabular-nums;}
.fm-level-counter>span {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
.fm-level-before {opacity:0;animation:fm-level-number-out .4s ease-in both;}
.fm-level-after {animation:fm-level-number-in .7s .16s cubic-bezier(.16,1,.3,1) both;}
.fm-level-medal-label {position:absolute;bottom:17px;color:#FFF3DF;font-size:9px;font-weight:600;line-height:1;letter-spacing:2px;}
.fm-level-rings {position:absolute;z-index:0;width:208px;height:208px;overflow:visible;}
.fm-level-ring-one {stroke:#BB9763;stroke-width:1;stroke-dasharray:591;stroke-dashoffset:591;opacity:0;transform-origin:104px 104px;animation:fm-level-ring 1.3s .12s cubic-bezier(.2,.6,.2,1) both;}
.fm-level-ring-two {stroke:#D5BDA0;stroke-width:2;stroke-dasharray:2 12;opacity:0;transform-origin:104px 104px;animation:fm-level-orbit 1.2s .2s ease-out both;}
.fm-level-sparks {position:absolute;z-index:0;inset:50% auto auto 50%;width:0;height:0;}
.fm-level-sparks i {position:absolute;display:block;width:7px;height:7px;border-radius:1px;background:#A65F49;opacity:0;animation:fm-level-spark 1.15s var(--delay) cubic-bezier(.13,.6,.3,1) both;}
.fm-level-sparks i:nth-child(3n) {background:#B89A67;width:5px;height:9px;}
.fm-level-sparks i:nth-child(3n + 1) {background:#7A8470;}
.fm-level-dialog .fm-level-eyebrow {position:relative;margin:0 0 9px;color:#8B5039;font-size:10px;font-weight:600;line-height:1.4;letter-spacing:1.7px;}
.fm-level-title {position:relative;margin:0 0 12px;color:#302D29;font:700 36px/1.15 Georgia,'Times New Roman',serif;letter-spacing:-1px;}
.fm-level-dialog .fm-level-message {position:relative;margin:0;color:#6E655A;font-size:14px;line-height:1.65;}
.fm-level-dialog .fm-level-path {display:flex;align-items:center;justify-content:center;gap:14px;width:fit-content;margin:22px auto;padding:9px 15px;border:1px solid #E6DED2;border-radius:30px;background:#F6F1E9;color:#756A5C;font-size:12px;line-height:1.4;}
.fm-level-path svg {color:#A58869;}
.fm-level-path strong {color:#7C422F;font-weight:600;}
.fm-level-continue {display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:48px;border:1px solid #A34F39;border-radius:9px;background:#A34F39;color:#FFFEFA;font-size:15px;font-weight:500;cursor:pointer;transition:background .15s,transform .15s;}
.fm-level-continue:hover {background:#87412F;border-color:#87412F;}
.fm-level-continue:active {transform:translateY(1px);}
dialog.fm-level-dialog[data-closing] {animation:fm-level-exit .17s ease-in forwards;pointer-events:none;}
dialog.fm-level-dialog[data-closing]::backdrop {animation:fm-level-backdrop-exit .17s ease-in forwards;}
@keyframes fm-level-enter {from{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fm-level-backdrop {from{opacity:0}to{opacity:1}}
@keyframes fm-level-medal {0%{transform:translateY(12px) scale(.82) rotate(-8deg)}65%{transform:translateY(-3px) scale(1.035) rotate(1deg)}100%{transform:translateY(0) scale(1) rotate(0)}}
@keyframes fm-level-number-out {0%,15%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-32px) scale(.8)}}
@keyframes fm-level-number-in {0%{opacity:0;transform:translateY(38px) scale(.75)}45%{opacity:1}72%{transform:translateY(-4px) scale(1.04)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fm-level-ring {0%{opacity:0;stroke-dashoffset:591;transform:rotate(-95deg) scale(.8)}35%{opacity:.8}65%{stroke-dashoffset:0;opacity:.6}100%{opacity:0;stroke-dashoffset:-591;transform:rotate(25deg) scale(1.12)}}
@keyframes fm-level-orbit {0%{opacity:0;transform:rotate(-30deg) scale(.85)}35%{opacity:.8}100%{opacity:0;transform:rotate(35deg) scale(1.17)}}
@keyframes fm-level-spark {0%{opacity:0;transform:translate(0,0) scale(.25) rotate(0deg)}15%{opacity:1}70%{opacity:.85}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(.65) rotate(var(--turn))}}
@keyframes fm-level-exit {to{opacity:0;transform:translateY(8px) scale(.98)}}
@keyframes fm-level-backdrop-exit {to{opacity:0}}
@media(max-width:480px) {dialog.fm-level-dialog {padding:24px 24px 25px;border-radius:20px;}.fm-level-title {font-size:32px;}.fm-level-art {height:182px;}.fm-level-medal {width:136px;height:136px;}}
@media(min-width:1600px) {.fm-card h3 {font-size:28px;}.fm-card p {font-size:12px;}}
@media(min-width:1000px) {header>div:first-child {gap:140px;} header>div:last-child>a[href="/"] {position:absolute;left:calc(3% + 265px);}}
@media(max-width:1199px) and (min-width:768px) {.fm-grid {grid-template-columns:repeat(2,minmax(0,1fr));}.fm-card h3 {font-size:25px;}}
@media(max-width:767px) {
  header {min-height:68px;padding:10px 18px;gap:12px;} header>div {gap:18px;}
  header h1,.fm-wordmark {font-size:23px;letter-spacing:-.7px;} header a[href="/"]>img,.fm-wordmark img {width:36px;height:43px;}
  header h1::after,.fm-brand-caption {margin-top:0;font-size:10px;letter-spacing:.02em;}
  header a[href="/"]:has(h1),.fm-wordmark {gap:6px;} header .fm-progress {display:none;}
  header a[href="/auth/login"] {padding:8px 13px;} header>div:last-child>a[href="/"] {display:none;}
  .fm-catalog>.container {padding:28px 18px 36px;}
  .fm-catalog>.container>div:first-child {margin-bottom:24px;}
  .fm-catalog>.container>div:first-child h1 {font-size:34px;letter-spacing:-.6px;}
  .fm-catalog>.container>div:first-child p {font-size:16px;line-height:1.6;}
  .fm-catalog>.container>.flex.justify-center.mb-8>div {flex-wrap:wrap;row-gap:14px;}
  .fm-catalog>.container>.flex.justify-center.mb-8 button {padding:0 11px;font-size:12px;flex:1;height:42px;}
  .fm-search {width:100%;height:44px;}
  .fm-grid {grid-template-columns:1fr;gap:14px;}
  .fm-card {padding:14px;column-gap:16px;grid-template-columns:48% minmax(0,1fr);}
  .fm-card>div:nth-child(2) {padding-top:8px;}.fm-card h3 {font-size:21px;margin-bottom:12px;}
  .fm-card p {font-size:11px;}.fm-card>div:last-child {margin:16px 0 8px;}
  footer .grid {align-items:flex-start;flex-direction:column;gap:12px;} footer nav {flex-wrap:wrap;gap:12px;}
  footer>.container {padding:20px 18px;}
  .fm-info h1 {font-size:32px;}.fm-info main {margin-top:32px;}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none !important;transition:none !important;scroll-behavior:auto !important;}}

/* Catalog discovery: the same quiet palette as the training cards. */
.fm-discovery {margin:-6px 0 26px;padding:22px 24px 18px;border:1px solid #D2C5B6;border-radius:10px;background:#FFFEFA;}
.fm-discovery-result {display:flex;align-items:center;gap:17px;font-size:12px;color:#675D51;font-variant-numeric:tabular-nums;}
.fm-filter-reset {padding:5px 0;color:#884B38;text-decoration:underline;text-underline-offset:3px;}
.fm-select-filters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.fm-select-filter {min-width:0;}
.fm-select-filter>label {display:block;margin-bottom:8px;font-size:12px;font-weight:600;color:#675D51;}
.fm-select-control {position:relative;min-width:0;}
.fm-select-control>select {width:100%;height:42px;border:1px solid #CDBFB0;border-radius:6px;background:#FFFEFA;color:#40392F;font-size:13px;padding:0 10px;}
.fm-select-control .select2-container {width:100% !important;max-width:100%;font-size:13px;}
.fm-select-control .select2-selection--single {height:42px;border:1px solid #CDBFB0;border-radius:6px;background:#FFFEFA;}
.fm-select-control .select2-selection--single .select2-selection__rendered {line-height:40px;padding:0 48px 0 12px;color:#40392F;}
.fm-select-control .select2-selection--single .select2-selection__placeholder {color:#817363;}
.fm-select-control .select2-selection--single .select2-selection__arrow {height:40px;right:7px;}
.fm-select-control .select2-container--focus .select2-selection,.fm-select-control .select2-container--open .select2-selection {border-color:#A65F49;box-shadow:0 0 0 2px #A65F491A;}
.fm-select-control .select2-dropdown {border-color:#CDBFB0;background:#FFFEFA;border-radius:6px;box-shadow:0 9px 24px #3D2F1F1F;color:#40392F;}
.fm-select-control .select2-search--dropdown {padding:8px;}
.fm-select-control .select2-search--dropdown .select2-search__field {height:36px;padding:6px 10px;border:1px solid #CDBFB0;border-radius:4px;background:#FFFEFA;font-size:14px;outline-color:#A65F49;}
.fm-select-control .select2-results__option {padding:9px 12px;font-size:13px;}
.fm-select-control .select2-results__option--highlighted[aria-selected] {background:#EEDBD0;color:#713C2D;}
.fm-select-control .select2-results__option[aria-selected="true"] {background:#F1E9DF;}
.fm-select-control .select2-results__option[aria-disabled="true"] {color:#B1A494;}
.fm-select-control .select2-results>.select2-results__options {max-height:250px;overscroll-behavior:contain;}
.fm-discovery-note {margin:13px 0 0;color:#817363;font-size:12px;line-height:1.5;}
.fm-discovery-footer {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:14px;}
.fm-discovery-footer .fm-discovery-note {margin:0;max-width:70%;}
.fm-card .fm-opening-category {display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 10px;margin-bottom:9px;color:#846E59;font-size:10px;line-height:1.4;}
.fm-opening-eco {font-family:ui-monospace,SFMono-Regular,monospace;letter-spacing:.04em;white-space:nowrap;}
.fm-card h3 {margin-bottom:10px;}
.fm-card .fm-opening-idea {font-size:12px;line-height:1.55;color:#4E473D;margin:0 0 10px;}
.fm-opening-tags {display:flex;flex-wrap:wrap;gap:4px;margin:0 0 10px;}
.fm-opening-tag {display:inline-block;padding:3px 6px;border:1px solid #E1D5C6;border-radius:4px;background:#F7F1E8;color:#78604B;font-size:10px;line-height:1.35;}
.fm-opening-tag-more {background:transparent;color:#78604B;}
.fm-card{position:relative}
.fm-card-course-link{position:absolute;inset:0;z-index:1;border-radius:inherit}
.fm-card-course-link>span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.fm-card:has(.fm-card-course-link:focus-visible){outline:2px solid #A65F49;outline-offset:3px}
.fm-opening-tags>a,.fm-opening-tags>button{position:relative;z-index:2}
.fm-opening-tag{font-family:inherit;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.fm-opening-tag:hover,.fm-opening-tag-more[aria-expanded="true"]{background:#EDE0D1;border-color:#C6AA90;color:#754730}
.fm-opening-tag:focus-visible,.fm-tag-popover button:focus-visible{outline:2px solid #A65F49;outline-offset:3px}
.fm-tag-popover{position:fixed;inset:auto;margin:0;padding:16px;width:min(280px,calc(100vw - 24px));max-height:min(320px,calc(100dvh - 24px));box-sizing:border-box;overflow:auto;border:1px solid #DCCDBC;border-radius:12px;background:#FFFEFA;color:#514637;box-shadow:0 12px 36px #372B1926;font:13px/1.45 Inter,Arial,sans-serif}
.fm-tag-popover::backdrop{background:transparent}
.fm-tag-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.fm-tag-popover-heading strong{font-size:12px;font-weight:500;color:#8A7560}
.fm-tag-popover-heading button{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:3px;border:0;border-radius:5px;background:transparent;color:#9A826B;cursor:pointer}
.fm-tag-popover-heading button:hover{background:#F2EADF;color:#754730}
.fm-tag-popover-heading svg{width:17px;height:17px}
.fm-tag-popover-links{display:flex;flex-wrap:wrap;gap:7px}
.fm-tag-popover .fm-opening-tag{padding:6px 9px;font-size:12px}
.fm-opening-level{position:relative;z-index:2}
.fm-card .fm-opening-caution {font-size:11px;line-height:1.5;color:#817363;margin:0 0 10px;}
@media(max-width:767px) {
  .fm-discovery {padding:16px 14px;margin-bottom:20px;}
  .fm-select-filters {grid-template-columns:1fr;gap:13px;}
  .fm-select-filter>label {font-size:11px;margin-bottom:6px;}
  .fm-select-control .select2-search--dropdown .select2-search__field {font-size:16px;}
  .fm-discovery-result {justify-content:space-between;gap:8px;margin-top:14px;}
  .fm-discovery-note {font-size:11px;}
  .fm-discovery-footer {display:block;margin-top:12px;}
  .fm-discovery-footer .fm-discovery-note {max-width:none;}
  .fm-card .fm-opening-category {font-size:9px;gap:3px 7px;}
  .fm-card .fm-opening-idea {font-size:11px;}
  .fm-card .fm-opening-caution {font-size:10px;}
  .fm-opening-tag {font-size:9px;padding:3px 5px;}
}

/* Drawn interface assets and shared card rhythm. */
.fm-ui-icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle}
.fm-card{grid-template-columns:48% minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:18px 18px;padding:22px;transition:box-shadow .2s,border-color .2s}
.fm-card .fm-card-heading{grid-column:1/-1;grid-row:1;padding:0;margin:0;min-width:0}
.fm-card-heading h3{margin:0;font-size:26px;line-height:1.15;letter-spacing:-.5px}
.fm-card-heading .fm-opening-category{margin-bottom:8px}
.fm-course-access{display:inline-flex;align-items:center;gap:4px;margin-left:auto;color:#817466;white-space:nowrap;font-size:10px}
.fm-course-access svg{width:11px;height:11px}
.fm-course-access[data-trial="true"]{color:#856043}
.fm-gate main{width:min(920px,calc(100% - 40px));margin-top:36px}
.fm-gate .fm-back{display:inline-flex;align-items:center;gap:8px;font-size:14px}
.fm-gate svg{width:20px;height:20px;flex:none}
.fm-gate .fm-back svg{transform:rotate(180deg)}
.fm-course-gate{margin:24px 0 44px;padding:42px;border:1px solid #D8CCBE;border-radius:14px;background:#FFFEFA}
.fm-gate-lock{display:flex;align-items:center;justify-content:center;width:50px;height:50px;margin-bottom:22px;border-radius:13px;background:#F1E7DA;color:#A15139}
.fm-gate-lock svg{width:26px;height:26px}
.fm-gate .fm-sub-eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:600;color:#A15139}
.fm-gate .fm-course-gate h1{margin:12px 0 20px}
.fm-gate .fm-course-gate p{max-width:620px;margin:0 0 26px}
.fm-info.fm-gate .fm-primary{display:inline-flex;align-items:center;gap:16px;color:#FFFEFA}
.fm-course-gate small{display:block;margin-top:20px;color:#807264}
.fm-gate-trial h2{margin:0;font:700 27px/1.25 Georgia,serif}
.fm-gate .fm-gate-trial p{margin:12px 0 22px}
.fm-gate-trial>div{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.fm-gate-trial>div>a{position:relative;display:flex;flex-direction:column;gap:8px;padding:22px 46px 22px 22px;border:1px solid #D8CCBE;border-radius:10px;background:#FFFEFA}
.fm-gate-trial a>span{font-size:11px;color:#8A7560}
.fm-gate-trial strong{font:700 22px/1.25 Georgia,serif;color:#302D29}
.fm-gate-trial a>svg{position:absolute;right:18px;top:50%;margin-top:-10px}
.fm-gate-trial a:hover{border-color:#AD6B50;background:#FAF6EF}
@media(max-width:600px){.fm-course-gate{padding:26px 22px;margin-bottom:32px}.fm-gate-trial>div{grid-template-columns:1fr}.fm-course-access{font-size:9px}.fm-gate .fm-course-gate h1{font-size:32px}}
.fm-card>div.fm-card-board{grid-column:1;grid-row:2;align-self:start;padding-top:0}
.fm-card>div:nth-child(3){grid-column:2;grid-row:2;padding:0;min-width:0}
.fm-card>div.fm-card-footer{grid-column:1/-1;grid-row:3;margin:0 0 3px;padding:0}
.fm-card-footer .fm-opening-progress{margin-top:0}
.fm-card-footer .fm-opening-progress+.fm-card-link{margin-top:18px}
.fm-membership-benefits li::before{display:none}
.fm-membership-check{position:absolute;left:0;top:7px;width:15px;height:15px;color:#A15F43}
.fm-select-filter>label{font-size:12px;color:#524A40;letter-spacing:.01em;margin-bottom:9px}
.fm-select-control .select2-selection--single{height:50px;border-color:#DCD6CB;border-radius:10px;background:#fffefa;transition:border-color .18s,box-shadow .18s}
.fm-select-control .select2-selection--single .select2-selection__rendered{padding:0 44px 0 14px;line-height:48px;color:#38352E}
.fm-select-value{display:flex;align-items:center;gap:11px;min-width:0;font-size:14px}
.fm-select-value>svg{width:21px;height:21px;flex:none;color:#9B7257}
.fm-select-value>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm-select-control .select2-selection--single .select2-selection__arrow{width:20px;right:14px;height:48px;transition:transform .2s}
.fm-select-control .select2-selection__arrow b{display:none}
.fm-select-control .select2-selection__arrow::after{content:"";display:block;width:20px;height:20px;margin-top:14px;background:#766B5D;mask:url('/local/icons/chevron.svg') center/contain no-repeat}
.fm-select-control .select2-container--open .select2-selection__arrow{transform:rotate(180deg)}
.fm-select-control .select2-container--focus .select2-selection{border-color:#BCA48D;box-shadow:0 0 0 3px #A65F490B}
.fm-select-control .select2-container--open .select2-selection{border-color:#BCA48D;border-radius:10px!important;box-shadow:0 0 0 3px #A65F490D}
.fm-select-control .select2-dropdown{margin-top:7px;border:1px solid #DED5C8;border-radius:12px!important;overflow:hidden;box-shadow:0 16px 42px #372B191C,0 3px 8px #372B1909;transform-origin:top center}
.fm-select-control .select2-dropdown--above{margin-top:-7px;transform-origin:bottom center}
.fm-select-control .select2-search--dropdown{padding:12px;background:#FFFEFA;border-bottom:1px solid #EEE8DE;position:relative}
.fm-select-control .select2-search--dropdown::before{content:"";position:absolute;left:24px;top:25px;width:17px;height:17px;background:#9D8B75;mask:url('/local/icons/search.svg') center/contain no-repeat;pointer-events:none}
.fm-select-control .select2-search--dropdown .select2-search__field{height:42px;border:0!important;border-radius:7px;background:#F5F1E9!important;padding:8px 12px 8px 37px;font-size:14px;color:#473C30;outline:0!important;box-shadow:none!important}
.fm-select-control .select2-results>.select2-results__options{max-height:310px;padding:5px;scrollbar-width:thin;scrollbar-color:#D8C7B3 transparent}
.fm-select-control .select2-results__option{padding:0;margin:2px 0;border-radius:7px;background:transparent;color:#51483B;transition:background .13s}
.fm-select-option{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 11px}
.fm-select-option-symbol{display:flex;align-items:center;justify-content:center;width:30px;height:32px;background:#F2EBDF;border-radius:6px;color:#A18060;flex:none}
.fm-select-option-symbol>svg{width:19px;height:19px}
.fm-select-option-copy{flex:1;min-width:0;line-height:1.4}
.fm-select-option-copy strong{font-size:13px;font-weight:500;display:block;color:inherit}
.fm-select-option-copy small{font-size:11px;line-height:1.5;color:#97866E;display:block;margin-top:4px}
.fm-select-option-count{font-size:11px;color:#97836C;font-variant-numeric:tabular-nums;min-width:22px;text-align:center;padding:3px 5px;border-radius:5px;background:#F2ECDF}
.fm-select-option-check{width:16px;height:16px;flex:none;opacity:0;color:#A35E42}
.fm-select-control .select2-results__option[aria-selected="true"]{background:#F7F0E6}
.fm-select-control .select2-results__option[aria-selected="true"] .fm-select-option-check{opacity:1}
.fm-select-control .select2-results__option--highlighted[aria-selected]{background:#EEE2D3;color:#724831}
.fm-select-control .select2-results__option--highlighted .fm-select-option-symbol{background:#E7D6C2;color:#926044}
.fm-select-control .select2-results__message{padding:20px;text-align:center;font-size:13px;color:#9A846A}
.fm-filter-reset{transition:color .15s;display:inline-flex;align-items:center;gap:6px}
@view-transition{navigation:none}
body{animation:fm-page-in .22s ease-out both}
@keyframes fm-page-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}
@media(max-width:767px){.fm-card{padding:18px;gap:15px 16px;grid-template-columns:46% minmax(0,1fr)}.fm-card-heading h3{font-size:24px}.fm-card>div:nth-child(2){padding-top:0}.fm-select-filters{gap:16px}.fm-select-control .select2-search--dropdown .select2-search__field{font-size:16px}.fm-select-control .select2-results>.select2-results__options{max-height:260px}}
/* Shared navigation, privacy controls and administration. */
.fm-shell-header{flex-wrap:wrap;gap:16px}.fm-shell-header .fm-progress,.fm-shell-header nav:not([data-fm-site-nav]),.fm-shell-header a:has(img[src="/img/tg.svg"]){display:none!important}.fm-shell-header>div:first-child{order:0}.fm-shell-header>div:last-of-type{order:2}.fm-shell-header>[data-fm-site-nav]{order:1;display:flex!important;align-items:center;gap:22px;margin-left:22px;margin-right:auto;font-size:15px}.fm-shell-header [data-fm-site-nav] a{display:inline-block!important;white-space:nowrap;color:#625343;text-decoration:none}.fm-shell-header [data-fm-site-nav] a:hover,.fm-shell-header [data-fm-site-nav] a[aria-current]{color:#A15139}.fm-shell-header>a:not(.fm-wordmark):not(:has(img)){display:none}.fm-admin-preview{display:flex;align-items:center;flex-wrap:wrap;gap:14px 22px;padding:12px 3%;background:#EBE0D2;border-bottom:1px solid #D6C5AE;color:#6E573E;font:13px/1.5 Inter,Arial,sans-serif}.fm-admin-preview>a{display:flex;align-items:center;gap:8px;color:#905136;text-decoration:none}.fm-admin-preview svg{width:20px;height:20px}.fm-admin-preview label{display:flex;align-items:center;gap:10px}.fm-admin-preview select{padding:8px 34px 8px 12px;border:1px solid #C9B69D;border-radius:7px;background:#FFFEFA url('/local/icons/chevron.svg') right 10px center/16px no-repeat;appearance:none;font:inherit;color:#594B3B}.fm-admin-preview small{max-width:520px;font-size:12px}.fm-admin-preview [role="status"]{color:#9D3E2A}
.fm-privacy-check{display:flex;align-items:flex-start;gap:12px;margin:20px 0;font:14px/1.7 Inter,Arial,sans-serif;color:#7B6955;cursor:pointer}.fm-privacy-check a{color:#A15139;text-decoration:underline}.fm-privacy-check input{appearance:none;width:24px;height:24px;min-width:24px;margin:2px 0 0;border:1.5px solid #BCA48B;border-radius:7px;background:#FFFEFA;cursor:pointer;display:grid;place-items:center}.fm-privacy-check input:checked{background:#A15139;border-color:#A15139}.fm-privacy-check input::after{content:"";width:17px;height:17px;background:#fff;mask:url('/local/icons/check.svg') center/contain no-repeat;transform:scale(0)}.fm-privacy-check input:checked::after{transform:scale(1)}.fm-privacy-check input:focus-visible{outline:3px solid #CFAC91;outline-offset:4px}
.fm-cookie-banner{position:fixed;z-index:9500;bottom:22px;left:22px;display:flex;gap:18px;width:min(590px,calc(100vw - 44px));box-sizing:border-box;padding:24px;border:1px solid #D2BEA6;border-radius:16px;background:#FFFEFA;box-shadow:0 12px 50px #3F2D1B26;color:#5D4D3D;font:15px/1.6 Inter,Arial,sans-serif}.fm-cookie-art{flex:none;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:#F0E3D2;color:#A36546}.fm-cookie-art svg{width:30px;height:30px}.fm-cookie-banner strong{font-size:17px;font-weight:600;color:#41372F}.fm-cookie-banner p{margin:8px 0 18px;font-size:15px}.fm-cookie-banner a,.fm-cookie-dialog a{color:#A15139;text-decoration:underline}.fm-cookie-actions{display:flex;flex-wrap:wrap;gap:10px}.fm-cookie-banner button,.fm-cookie-dialog button.fm-primary,.fm-secondary{font:500 14px/1.5 Inter,Arial,sans-serif;padding:11px 16px;border:1px solid #D4BFA6;border-radius:8px;cursor:pointer}.fm-cookie-banner button.fm-primary,.fm-cookie-dialog button.fm-primary{background:#A15139;color:#FFFEFA;border-color:#A15139}.fm-secondary{background:#FFFEFA;color:#8A5138}.fm-cookie-banner [role="status"]{display:block;font-size:13px;color:#A15139;margin-top:5px}.fm-cookie-dialog{width:min(480px,calc(100vw - 32px));box-sizing:border-box;margin:auto;padding:30px;border:1px solid #CDB89D;border-radius:18px;background:#FFFEFA;box-shadow:0 20px 90px #2D211D3D;color:#675542;font:16px/1.7 Inter,Arial,sans-serif}.fm-cookie-dialog::backdrop{background:#30282080;backdrop-filter:blur(3px)}.fm-cookie-heading{display:flex;justify-content:space-between;align-items:center}.fm-cookie-heading svg{width:40px;height:40px;color:#9D603F}.fm-cookie-heading button{background:transparent;border:0;color:#8A755E;font:28px/1 Inter,sans-serif;cursor:pointer}.fm-cookie-dialog h2{font:700 30px/1.2 Georgia,serif;color:#41362B}.fm-cookie-required{display:flex;justify-content:space-between;gap:12px;padding:16px 0;border-block:1px solid #E2D6C6}.fm-cookie-required span{font-size:13px;color:#806D55}.fm-legal-links{display:flex;flex-wrap:wrap;gap:12px 24px;padding-top:16px;width:100%;font:13px/1.6 Inter,Arial,sans-serif}.fm-legal-links a{color:#8A7059;text-decoration:none}
.fm-info.fm-legal main{width:min(940px,calc(100% - 40px));font-size:17px;line-height:1.85}.fm-legal h2{font:700 29px/1.25 Georgia,serif;margin-top:38px}.fm-info.fm-legal p{margin:18px 0}.fm-legal-table{overflow:auto;border:1px solid #DCCEBB;border-radius:12px;background:#FFFEFA}.fm-legal table{border-collapse:collapse;width:100%;min-width:560px;font-size:15px;line-height:1.7;text-align:left}.fm-legal th,.fm-legal td{padding:16px;vertical-align:top;border-bottom:1px solid #E9DECE}.fm-legal th{background:#EDE2D2;color:#6E543E}.fm-legal td{color:#7D6853}.fm-legal .fm-primary{display:inline-block;padding:13px 20px;color:#FFFEFA;background:#A15139;border:0;border-radius:8px;font:600 16px/1.5 Inter,sans-serif}
.fm-info.fm-admin main{width:min(1240px,calc(100% - 48px));margin:40px auto 80px}.fm-admin-eyebrow{font-size:12px;letter-spacing:1.6px;color:#9A5A3D}.fm-admin-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:30px 0}.fm-admin-metrics>div{display:flex;flex-direction:column;gap:6px;padding:24px;border:1px solid #D8C7B1;border-radius:13px;background:#FFFEFA}.fm-admin-metrics strong{font:700 40px/1 Georgia,serif;color:#735039}.fm-admin-metrics span{font-size:14px;color:#85705A}.fm-admin-filters{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fm-admin-filters label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#7F6851}.fm-admin-filters input,.fm-admin-filters select{width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid #D4C2AA;border-radius:9px;background:#FFFEFA;color:#554737;font:16px/1.5 Inter,sans-serif}.fm-admin-user{margin:12px 0;border:1px solid #DDCEBA;border-radius:12px;overflow:hidden;background:#FFFEFA}.fm-admin-user summary{display:grid;grid-template-columns:minmax(0,1fr) 190px 210px 24px;align-items:center;gap:18px;padding:20px 24px;cursor:pointer;list-style:none}.fm-admin-user summary::-webkit-details-marker{display:none}.fm-admin-identity{display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere}.fm-admin-identity strong{font-size:17px;color:#4B3E32}.fm-admin-identity span,.fm-admin-joined{font-size:14px;color:#8A745B}.fm-admin-badge{font-size:13px;color:#966043}.fm-admin-expand{font:24px/1 Inter,sans-serif;color:#A16C49}.fm-admin-user[open] .fm-admin-expand{transform:rotate(45deg)}.fm-admin-user-body{padding:10px 24px 24px;border-top:1px solid #E5D9CA;font-size:15px;color:#7D6751}.fm-admin-user-body h3{font:700 24px/1.25 Georgia,serif;margin-top:28px}.fm-admin-detail-grid{display:grid;grid-template-columns:200px minmax(0,1fr);gap:8px 20px;padding:20px;background:#F4EEE4;border-radius:10px}.fm-admin-detail-grid dt{color:#9B7F62}.fm-admin-detail-grid dd{margin:0;overflow-wrap:anywhere}.fm-admin-order{border:1px solid #E5D5C2;border-radius:10px;padding:18px;margin:14px 0}.fm-admin-order code{font-size:12px;overflow-wrap:anywhere}.fm-admin-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:24px}.fm-admin-pagination button:disabled{opacity:.4;cursor:default}
@media(max-width:760px){.fm-shell-header>[data-fm-site-nav]{order:3;flex-basis:100%;margin:0;gap:22px;overflow:auto;max-width:100%;padding:4px 0;font-size:14px}.fm-admin-preview{gap:10px;padding:12px 18px}.fm-admin-preview small{font-size:11px}.fm-admin-preview label{font-size:12px}.fm-admin-preview select{font-size:13px}.fm-cookie-banner{left:12px;bottom:12px;width:calc(100vw - 24px);padding:20px;gap:12px}.fm-cookie-art{display:none}.fm-cookie-banner strong{font-size:16px}.fm-cookie-banner p{font-size:14px;margin:8px 0 14px}.fm-cookie-banner button{font-size:13px;padding:10px 12px}.fm-info.fm-admin main{width:calc(100% - 32px);margin-top:26px}.fm-admin-metrics{grid-template-columns:1fr 1fr;gap:12px}.fm-admin-metrics>div{padding:20px}.fm-admin-filters{grid-template-columns:1fr}.fm-admin-user summary{grid-template-columns:minmax(0,1fr) 24px;gap:10px;padding:18px}.fm-admin-badge,.fm-admin-joined{grid-column:1}.fm-admin-expand{grid-row:1;grid-column:2}.fm-admin-user-body{padding:8px 18px 20px}.fm-admin-detail-grid{grid-template-columns:1fr;gap:3px;padding:16px}.fm-admin-detail-grid dd{margin-bottom:12px}.fm-info.fm-legal main{font-size:16px}.fm-legal h1{font-size:32px}.fm-admin-preview [role="status"]{width:100%}}
.fm-shell-header [data-fm-site-nav] a{order:0;padding:6px 0;font:500 15px/1.5 Inter,Arial,sans-serif;letter-spacing:0;background:none;box-shadow:none;transform:none}
/* Compact cookie notice. */
.fm-cookie-banner{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px 12px;max-width:420px;width:calc(100vw - 32px);left:16px;bottom:16px;padding:14px;border-radius:11px;box-shadow:0 5px 24px #3F2D1B1F}.fm-cookie-banner .fm-cookie-art{display:flex;width:34px;height:40px;border-radius:0;background:transparent}.fm-cookie-art img{display:block;width:40px;height:40px;max-width:none}.fm-cookie-banner p{font-size:12px;line-height:1.5;margin:0}.fm-cookie-banner .fm-cookie-actions{gap:0}.fm-cookie-banner .fm-cookie-actions button.fm-primary{font:500 13px/1.4 Inter,Arial,sans-serif;padding:8px 12px;min-height:34px;gap:0;border-radius:7px;white-space:nowrap}.fm-cookie-banner button:focus-visible{outline:3px solid #CFAC91;outline-offset:3px}.fm-cookie-banner [role="status"]{grid-column:2/-1;font-size:12px;margin:0}.fm-cookie-banner [role="status"]:empty{display:none}.fm-cookie-heading img{width:40px;height:40px}
@media(max-width:760px){.fm-cookie-banner{left:10px;bottom:10px;width:calc(100vw - 20px);padding:12px;column-gap:10px}}
.fm-shell-account{position:relative;order:2;display:flex;align-items:center;gap:12px;margin-left:auto;font:15px/1.5 Inter,Arial,sans-serif}.fm-info .fm-shell-account>a.fm-shell-login,.fm-shell-login{display:block;padding:9px 20px;border:1px solid #A15139;border-radius:7px;color:#A15139;background:transparent}.fm-info .fm-shell-account>a.fm-shell-register,.fm-shell-register{display:block;padding:9px 20px;border:1px solid #A15139;border-radius:7px;color:#FFFEFA;background:#A15139}.fm-shell-avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#E7DAC7;color:#483C30;font:500 14px/1 Inter,sans-serif;cursor:pointer}.fm-info .fm-shell-account>a.fm-shell-streak,.fm-shell-streak{display:flex;align-items:center;gap:7px;padding:6px 10px;margin-right:12px;border:1px solid #DED0BC;border-radius:8px;color:#7A6753;font-size:12px}.fm-shell-streak svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.fm-shell-account-menu:not([hidden]){position:absolute;z-index:60;right:0;top:calc(100% + 12px);display:flex;flex-direction:column;min-width:210px;padding:8px;border:1px solid #D7C7B2;border-radius:10px;background:#FFFEFA;box-shadow:0 12px 35px #4E341F26}.fm-shell-account-menu a,.fm-shell-account-menu button{display:block;text-align:left;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:#71553E;font:14px/1.5 Inter,sans-serif;cursor:pointer}.fm-shell-account-menu a:hover,.fm-shell-account-menu button:hover{background:#F2E8DC}
@media(max-width:760px){.fm-shell-account{gap:8px}.fm-info .fm-shell-account>a.fm-shell-login,.fm-info .fm-shell-account>a.fm-shell-register{padding:8px 12px;font-size:12px}.fm-info .fm-shell-account>a.fm-shell-streak{margin-right:2px;padding:5px 7px;font-size:11px}.fm-shell-avatar{width:36px;height:36px}}
@media(max-width:767px){.fm-info .fm-shell-account>a.fm-shell-register{display:none}}
/* One shared sign-in entry; registration happens through the provider. */
header a[href="/auth/register"]{display:none!important}
/* Invite a friend. */
.fm-info.fm-referrals main{width:min(1080px,calc(100% - 48px));margin:48px auto 72px}.fm-referral-hero{display:grid;grid-template-columns:1.45fr 1fr;gap:60px;align-items:center;padding:12px 0 40px}.fm-referral-eyebrow{font-size:11px;line-height:1.5;letter-spacing:1.5px;font-weight:600;color:#A15139}.fm-info .fm-referral-hero h1{font-size:52px;line-height:1.12;letter-spacing:-1.1px;margin:20px 0 24px}.fm-referral-hero h1 em{font-style:normal;color:#A15139}.fm-info .fm-referral-hero p{font-size:17px;line-height:1.8;margin:0 0 20px;color:#7A6753}.fm-referral-condition{display:block;font:12px/1.7 Inter,Arial,sans-serif;color:#90775C}.fm-referral-condition a{color:#A15139;text-decoration:underline}.fm-referral-gift{padding:38px;border:1px solid #DCC8AE;border-radius:22px;background:#EDE0CB;text-align:center;box-shadow:inset 0 0 0 8px #F4EBDD}.fm-referral-gift img{margin:auto}.fm-referral-gift>strong{display:block;font:700 78px/1 Georgia,serif;color:#965637;margin:22px 0 14px}.fm-referral-gift strong span{font-size:30px}.fm-info .fm-referral-gift p{font-size:15px;color:#9B7E5B;margin:0}.fm-referral-personal{padding:30px 34px;border:1px solid #D7C4AB;border-radius:16px;background:#FFFEFA}.fm-referral-panel-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:24px}.fm-referral-panel-heading h2{font:700 30px/1.25 Georgia,serif;margin:0}.fm-referral-panel-heading>span{font-size:12px;color:#9B8062}.fm-referral-personal [hidden]{display:none!important}.fm-referral-personal label{display:block;font-size:14px;color:#8F7356;margin-bottom:8px}.fm-referral-copy{display:flex;gap:12px}.fm-referral-copy input{flex:1;min-width:0;border:1px solid #DCCBB6;border-radius:8px;background:#FAF6EF;padding:12px 14px;color:#71543C;font:15px/1.5 Inter,sans-serif}.fm-referrals .fm-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 18px;border:0;border-radius:8px;background:#A15139;color:#FFFEFA;font:500 15px/1.5 Inter,sans-serif;cursor:pointer;text-decoration:none}.fm-referrals .fm-primary svg{width:20px;height:20px}.fm-referral-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:28px 0}.fm-referral-stats>div{display:flex;flex-direction:column;gap:6px;padding-left:20px;border-left:1px solid #E4D7C5}.fm-referral-stats strong{font:700 34px/1.2 Georgia,serif;color:#87583A}.fm-referral-stats span{font-size:13px;color:#967B5E}.fm-referral-balance{padding:16px 20px;border-radius:9px;background:#F1E8DB;color:#8B6345;font-size:14px;line-height:1.7}.fm-referral-history{border-top:1px solid #E4D7C5;margin-top:24px;padding-top:18px;font-size:14px}.fm-referral-history summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}.fm-referral-history summary::-webkit-details-marker{display:none}.fm-referral-history summary svg{width:18px;height:18px;color:#A87854;transition:transform .2s}.fm-referral-history[open] summary svg{transform:rotate(180deg)}.fm-info .fm-referral-history p{font-size:13px;color:#9A7C5C}.fm-info #referral-message{font-size:14px;color:#A15139;margin:14px 0 0}.fm-referral-how{margin-top:48px}.fm-referral-how>h2{font:700 34px/1.2 Georgia,serif;margin-bottom:26px}.fm-referral-how ol{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;list-style:none;margin:0;padding:0}.fm-referral-how li{padding:24px;border-top:1px solid #CCB89E}.fm-referral-how li>span{font:700 36px/1 Georgia,serif;color:#C3A37E}.fm-referral-how h3{font:700 23px/1.25 Georgia,serif;margin:20px 0 12px}.fm-info .fm-referral-how li p{font-size:15px;line-height:1.75;margin:0;color:#8B7259}.fm-info .fm-referral-footnote{font-size:12px;line-height:1.8;color:#9C8062;margin-top:30px}.fm-referral-promo{display:grid;grid-template-columns:120px 1fr;gap:34px;padding:38px 42px;margin:0 0 60px;border:1px solid #D5BEA1;border-radius:16px;background:#EDE0CC}.fm-referral-promo-art{display:flex;align-items:flex-start;padding-top:18px;justify-content:center}.fm-subscription .fm-referral-promo h2{font-size:38px;margin:12px 0 16px}.fm-info .fm-referral-promo p{font-size:17px;line-height:1.7;margin:0 0 22px;color:#8B6E50}.fm-referral-promo .fm-referral-condition{margin-top:18px;max-width:720px;font-size:12px}.fm-referral-invitation{display:flex;align-items:center;gap:14px;padding:12px 3%;background:#EFE3CF;border-bottom:1px solid #DBC6AA;font:13px/1.6 Inter,Arial,sans-serif;color:#8D6A47}.fm-referral-invitation p{margin:0;flex:1}.fm-referral-invitation a{color:#A15139;text-decoration:underline}.fm-referral-invitation button{padding:6px 0;border:0;background:transparent;color:#A15139;text-decoration:underline;font:12px/1.5 Inter,sans-serif;cursor:pointer}
@media(max-width:760px){.fm-info.fm-referrals main{width:calc(100% - 36px);margin-top:28px}.fm-referral-hero{grid-template-columns:1fr;gap:25px;padding-bottom:30px}.fm-info .fm-referral-hero h1{font-size:38px;line-height:1.13}.fm-referral-gift{display:flex;align-items:center;justify-content:center;gap:20px;padding:24px}.fm-referral-gift img{width:80px;height:80px;margin:0}.fm-referral-gift>strong{font-size:56px;margin:0}.fm-referral-gift strong span{display:block;font-size:23px}.fm-info .fm-referral-gift p{display:none}.fm-referral-personal{padding:24px 20px}.fm-referral-panel-heading{display:block}.fm-referral-panel-heading h2{font-size:28px}.fm-referral-panel-heading>span{display:block;margin-top:10px}.fm-referral-copy{flex-direction:column}.fm-referral-stats{gap:12px}.fm-referral-stats>div{padding-left:10px}.fm-referral-stats strong{font-size:30px}.fm-referral-stats span{font-size:11px;line-height:1.6}.fm-referral-balance{padding:14px 16px;font-size:13px}.fm-referral-how{margin-top:34px}.fm-referral-how>h2{font-size:30px}.fm-referral-how ol{grid-template-columns:1fr;gap:12px}.fm-referral-how li{padding:20px 10px}.fm-referral-promo{grid-template-columns:1fr;gap:14px;padding:26px 24px;margin-bottom:38px}.fm-referral-promo-art{padding:0;justify-content:flex-start}.fm-referral-promo-art img{width:58px;height:58px}.fm-subscription .fm-referral-promo h2{font-size:31px}.fm-info .fm-referral-promo p{font-size:16px}.fm-referral-invitation{gap:10px;padding:12px 18px;flex-wrap:wrap}.fm-referral-invitation img{display:none}.fm-referral-invitation p{flex-basis:100%}}
/* Administrator controls share the header and catalog's Select2 styling. */
.fm-admin-mode{display:flex;align-items:center;gap:9px;flex:none;margin-left:4px;color:#88725E;font:12px/1.3 Inter,Arial,sans-serif}.fm-admin-mode>.fm-select-control{width:178px}.fm-admin-mode .select2-selection--single{height:36px;background:#FFFEFA}.fm-admin-mode .select2-selection--single .select2-selection__rendered{line-height:34px;padding-left:10px;padding-right:30px}.fm-admin-mode .fm-select-value{font-size:12px;gap:6px}.fm-admin-mode .fm-select-value>svg{width:16px;height:16px}.fm-admin-mode .select2-selection--single .select2-selection__arrow{right:8px;height:34px;width:16px}.fm-admin-mode .select2-selection__arrow::after{width:16px;height:16px;margin-top:9px}.fm-admin-mode-status:empty{display:none}.fm-admin-mode-status{position:absolute;right:24px;top:100%;padding:10px 14px;background:#FFFEFA;border:1px solid #D8C7B1;z-index:100;color:#9D3E2A}.fm-admin-badge small{display:block;font-size:12px;margin-top:5px;color:#8A745B}.fm-admin-access{padding:22px;margin:24px 0;border:1px solid #DDCEBA;border-radius:12px;background:#F8F3EB}.fm-admin-access h3{margin:0 0 18px!important}.fm-admin-access-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);gap:16px}.fm-admin-access label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#7F6851}.fm-admin-access input{box-sizing:border-box;width:100%;min-width:0;padding:12px 14px;border:1px solid #D4C2AA;border-radius:9px;background:#FFFEFA;color:#554737;font:15px/1.5 Inter,sans-serif}.fm-admin-access input:disabled{opacity:.5}.fm-admin-access-presets{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.fm-admin-access-presets button{padding:6px 11px;font-size:12px}.fm-admin-access-hint{font-size:13px;line-height:1.6;color:#8A745B;margin:14px 0!important}.fm-admin-access-status{font-size:14px;color:#9D3E2A}.fm-admin-access-status:empty{display:none}.fm-admin-access>.fm-primary{padding:11px 17px;background:#A15139;color:#FFFEFA;border:0;border-radius:8px;font:500 14px/1.5 Inter,sans-serif;cursor:pointer}.fm-admin-access>.fm-primary:disabled{opacity:.55;cursor:wait}.fm-admin-select-control{min-width:0}.fm-admin-select-menu{z-index:1100}
@media(max-width:760px){.fm-admin-mode{margin-right:6px}.fm-admin-mode>span:first-child{display:none}.fm-admin-mode>.fm-select-control{width:162px}.fm-admin-access{padding:16px}.fm-admin-access-fields{grid-template-columns:1fr}.fm-admin-access input{font-size:16px}.fm-admin-access-presets{gap:6px}.fm-admin-access-presets button{padding:6px 9px}.fm-admin-preview{display:none}}
.fm-select-detailed-menu {
  --fm-select-menu-width: min(286px, calc(var(--fm-select-viewport-width) - 24px));
}
.fm-select-detailed-menu .select2-dropdown {
  width: var(--fm-select-menu-width) !important;
  left: clamp(
    calc(12px - var(--fm-select-anchor-left)),
    calc(var(--fm-select-anchor-width) - var(--fm-select-menu-width)),
    calc(var(--fm-select-viewport-width) - 12px - var(--fm-select-anchor-left) - var(--fm-select-menu-width))
  );
}
.fm-select-detailed-menu .select2-results > .select2-results__options { padding: 6px; }
.fm-select-detailed-menu .select2-results__option {
  margin: 0;
  border: 1px solid transparent;
  border-radius: 9px;
}
.fm-select-detailed-menu .select2-results__option + .select2-results__option { margin-top: 3px; }
.fm-select-detailed-menu .fm-select-option { min-height: 58px; padding: 8px 10px; }
.fm-select-detailed-menu .fm-select-option-symbol {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #90664e;
}
.fm-select-detailed-menu .fm-select-option-copy strong { font-size: 14px; font-weight: 600; }
.fm-select-detailed-menu .fm-select-option-copy small { margin-top: 2px; font-size: 12px; color: #776653; }
.fm-select-detailed-menu .select2-results__option[aria-selected="true"] { border-color: #e0caba; }
.fm-select-detailed-menu .fm-select-option-check {
  box-sizing: border-box;
  width: 21px;
  height: 21px;
  padding: 3px;
  border-radius: 50%;
  background: #a15139;
  color: #fffefa;
}
@media (prefers-reduced-motion: no-preference) {
  .fm-select-detailed-menu .select2-dropdown { animation: fm-mode-menu-in .16s ease-out both; }
}
@keyframes fm-mode-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Daily practice: drawn SVG motion, with the count outside the illustration. */
.fm-streak-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:27px 34px 30px;border:1px solid #D8C7B3;border-radius:22px;background:#FFFEFA;color:#302D29;text-align:center;box-shadow:0 24px 100px #2C211B30;font-family:Inter,Arial,sans-serif}.fm-streak-dialog::backdrop{background:#30282085;backdrop-filter:blur(4px)}.fm-daily-close{position:absolute;right:16px;top:16px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#8D7D6B;cursor:pointer}.fm-daily-close:hover{background:#F2E9DD}.fm-daily-close svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.fm-daily-eyebrow{margin:3px 0 0!important;color:#9C684A;font-size:10px;font-weight:600;letter-spacing:2px;line-height:1.5}.fm-daily-art{width:100%;margin:0 auto 15px}.fm-daily-svg{display:block;width:100%;max-width:320px;height:auto;margin:auto}.fm-daily-orbit,.fm-daily-outline{stroke-dasharray:1;stroke-dashoffset:0}.fm-daily-flame,.fm-daily-halo,.fm-daily-core{transform-box:fill-box;transform-origin:50% 85%}.fm-daily-halo{transform-origin:center}.fm-daily-days circle{transform-box:fill-box;transform-origin:center}.fm-streak-dialog h2{margin:0 0 8px!important;color:#5F5043;font:500 17px/1.4 Inter,Arial,sans-serif}.fm-daily-count{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:10px;margin:0!important;color:#49392D;font-family:Georgia,serif}.fm-daily-count strong{font-size:60px;font-weight:700;line-height:1.15;letter-spacing:-2px}.fm-daily-count span{font-size:26px;line-height:1.25;white-space:nowrap}.fm-daily-message{max-width:300px;margin:16px auto 24px!important;color:#88725E;font-size:14px;line-height:1.7}.fm-daily-continue{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:44px;padding:11px 24px;border:0;border-radius:8px;background:#A15139;color:#FFFEFA;font:500 14px/1.5 Inter,Arial,sans-serif;cursor:pointer;transition:background .18s}.fm-daily-continue:hover{background:#8E452F}.fm-daily-continue svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.fm-streak-dialog button:focus-visible{outline:3px solid #D5B59A;outline-offset:4px}.fm-daily-large-count .fm-daily-count strong{font-size:44px}
@media(max-width:430px){.fm-streak-dialog{padding:25px 22px 26px}.fm-daily-art{max-width:275px;margin-bottom:12px}.fm-daily-count strong{font-size:54px}.fm-daily-count span{font-size:23px}.fm-daily-message{font-size:13px;margin:14px auto 22px!important}.fm-daily-eyebrow{font-size:9px}}
@media(prefers-reduced-motion:reduce){.fm-daily-continue{transition:none}.fm-streak-dialog::backdrop{backdrop-filter:none}}

/* The movie is fetched only after opening the dialog. */
.fm-shell-header [data-fm-site-nav] a.fm-promo-link{display:inline-flex!important;align-items:center;gap:7px;white-space:nowrap}.fm-promo-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}.fm-promo-link svg path{fill:currentColor;stroke:none}
.fm-promo-dialog{box-sizing:border-box;inset:0;width:min(1120px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;overflow:auto;border:1px solid #d8c8b7;border-radius:20px;background:#fffefa;color:#302d29;box-shadow:0 32px 120px #1a130c60;font-family:Inter,Arial,sans-serif;animation:fm-promo-enter .28s cubic-bezier(.16,1,.3,1) both}.fm-promo-dialog::backdrop{background:#241c16b8;backdrop-filter:blur(6px)}.fm-promo-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px}.fm-promo-eyebrow{display:block;margin-bottom:6px;color:#a15139;font-size:12px;font-weight:600;letter-spacing:.04em}.fm-promo-top h2{margin:0!important;font:700 clamp(19px,2.3vw,28px)/1.2 Georgia,serif;letter-spacing:-.5px}.fm-promo-close{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:10px;border:1px solid #e1d6c9;border-radius:50%;background:#f4efe7;color:#786a5d;cursor:pointer}.fm-promo-close:hover{background:#eaded1;color:#a15139}.fm-promo-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.fm-promo-screen{background:#302d29}.fm-promo-screen video{display:block;width:100%;max-height:calc(100dvh - 235px);aspect-ratio:16/9;object-fit:contain;background:#302d29}.fm-promo-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:19px 28px}.fm-promo-bottom p{margin:0!important;font-size:13px;line-height:1.5;color:#877768}.fm-promo-bottom a{display:inline-flex;align-items:center;gap:10px;flex:none;color:#a15139;font-size:14px;font-weight:600;text-decoration:none}.fm-promo-bottom svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.fm-promo-dialog :focus-visible{outline:3px solid #d5b59a;outline-offset:4px}.fm-promo-dialog video:focus-visible{outline-offset:-3px}@keyframes fm-promo-enter{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:600px){.fm-promo-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:14px}.fm-promo-top{padding:18px 16px;gap:12px}.fm-promo-top h2{font-size:21px;line-height:1.2}.fm-promo-eyebrow{font-size:11px}.fm-promo-close{width:34px;height:34px;padding:7px}.fm-promo-bottom{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}.fm-promo-screen video{max-height:calc(100dvh - 260px)}}@media(prefers-reduced-motion:reduce){.fm-promo-dialog{animation:none}}

/* A public opening prefix, with the lesson itself kept behind subscription. */
.fm-gate main{width:min(1120px,calc(100% - 40px))}.fm-gate .fm-course-gate{display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);grid-template-areas:"preview intro" "preview offer";column-gap:42px;padding:36px}.fm-gate-intro{grid-area:intro;align-self:end}.fm-gate-offer{grid-area:offer;align-self:start}.fm-gate .fm-gate-lock{width:40px;height:40px;margin-bottom:18px;border-radius:11px}.fm-gate .fm-gate-lock svg{width:23px;height:23px}.fm-gate .fm-course-gate h1{font-size:clamp(30px,3vw,42px);line-height:1.12;margin:12px 0 20px}.fm-gate .fm-course-gate p{font-size:16px;line-height:1.7;margin:0 0 24px}.fm-gate-preview{grid-area:preview;min-width:0;margin:0;align-self:center}.fm-gate-preview figcaption{display:flex;justify-content:space-between;gap:12px;margin-bottom:13px;font-size:12px;color:#8a7560}.fm-gate-preview figcaption>span:first-child{font-weight:600;color:#625343}.fm-preview-surface{overflow:hidden;border-radius:10px;border:1px solid #cbbda9;box-shadow:0 12px 28px #5d412510}.fm-gate .fm-preview-board{display:block;width:100%;height:auto;aspect-ratio:1}.fm-gate .fm-preview-piece svg{width:92px;height:92px}.fm-preview-coordinates{fill:#725f49;font-family:Inter,Arial,sans-serif;font-size:23px;font-weight:500;pointer-events:none}.fm-preview-piece{pointer-events:none}.fm-preview-controls{display:flex;align-items:center;gap:6px;margin-top:13px}.fm-preview-controls[hidden]{display:none}.fm-preview-controls button{display:grid;place-items:center;width:34px;height:34px;padding:6px;flex:none;border:1px solid #dfd2c2;border-radius:7px;color:#8a6b52;background:#fffefa;cursor:pointer}.fm-preview-controls button:hover:not(:disabled){background:#f1e7da;border-color:#bf9b7b}.fm-preview-controls button:disabled{opacity:.35;cursor:default}.fm-preview-controls button:focus-visible{outline:3px solid #d5b59a;outline-offset:3px}.fm-preview-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.fm-preview-controls .fm-preview-play{color:#a15139;background:#f4ece2}.fm-preview-controls output{margin-left:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#5b4c3e}.fm-preview-controls>span{margin-left:auto;white-space:nowrap;color:#9b8874;font:11px/1.4 Inter,Arial,sans-serif;font-variant-numeric:tabular-nums}.fm-gate .fm-gate-preview .fm-preview-line{margin:12px 0 0;color:#8a7560;font-size:12px;line-height:1.5}.fm-gate .fm-gate-offer small{font-size:12px;line-height:1.6}@media(max-width:760px){.fm-gate .fm-course-gate{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "preview" "offer";gap:24px;padding:26px 22px}.fm-gate .fm-gate-lock{display:none}.fm-gate .fm-course-gate h1{margin-bottom:0;font-size:32px}.fm-gate-preview{width:100%;max-width:420px;justify-self:center}.fm-gate .fm-gate-offer p{font-size:15px;margin-bottom:20px}.fm-gate .fm-primary{font-size:14px;justify-content:center;width:100%}.fm-preview-controls output{font-size:12px;margin-left:4px}.fm-preview-controls>span{font-size:10px}.fm-gate .fm-gate-preview .fm-preview-line{font-size:11px}.fm-gate main{margin-top:26px}}
.fm-gate .fm-primary{box-sizing:border-box;max-width:100%}

.fm-master-dialog{box-sizing:border-box;inset:0;width:min(940px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:28px;border:1px solid #d8c8b7;border-radius:18px;background:#fffefa;color:#302d29;box-shadow:0 28px 100px #2c211b40;font-family:Inter,Arial,sans-serif}.fm-master-dialog::backdrop{background:#30282095;backdrop-filter:blur(4px)}.fm-master-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.fm-master-eyebrow{display:block;margin-bottom:8px;color:#a15139;font-size:11px;letter-spacing:.03em}.fm-master-head h2{margin:0;font:700 30px/1.15 Georgia,serif}.fm-master-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:8px;border:1px solid #dfd2c2;border-radius:50%;background:#f5eee4;color:#89735f;cursor:pointer}.fm-master-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.fm-master-context{margin:0 0 20px;font-size:14px;line-height:1.65;color:#7c6a58}.fm-master-table-wrap{overflow:auto;max-height:52dvh;border-top:1px solid #e5dace;border-bottom:1px solid #e5dace}.fm-master-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;line-height:1.5}.fm-master-table th{position:sticky;top:0;padding:13px 12px;background:#f5f0e8;color:#8a735c;font-size:11px;font-weight:500;white-space:nowrap}.fm-master-table td{padding:15px 12px;border-top:1px solid #ece3d8;vertical-align:top}.fm-master-table td small{display:block;margin-top:3px;color:#9b8874;font-size:11px}.fm-master-table tbody tr:hover{background:#faf6f0}.fm-master-table a{color:#a15139;text-decoration:none;white-space:nowrap;font-weight:500}.fm-master-table a:hover{text-decoration:underline}.fm-master-result{white-space:nowrap;font-variant-numeric:tabular-nums}.fm-master-match{max-width:130px;font-size:10px!important}.fm-master-footnote{margin:16px 0 0;color:#9b8874;font-size:11px;line-height:1.6}.fm-master-message{padding:30px 0;color:#8a735c;line-height:1.6}.fm-master-message button{border:1px solid #ceb69d;border-radius:7px;padding:8px 14px;background:#f4ece1;color:#8e5239;font:inherit;cursor:pointer}.fm-master-dialog :focus-visible{outline:3px solid #d5b59a;outline-offset:3px}@media(max-width:600px){.fm-master-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:20px 16px}.fm-master-head h2{font-size:26px}.fm-master-eyebrow{font-size:10px}.fm-master-context{font-size:13px}.fm-master-table{font-size:12px}.fm-master-table td,.fm-master-table th{padding:12px 9px}.fm-master-table th{font-size:10px}.fm-master-table-wrap{max-height:48dvh}.fm-master-footnote{font-size:10px}}

.fm-reference main{width:min(1160px,calc(100% - 40px));margin:32px auto 60px}.fm-reference .fm-back{font-size:14px;color:#a15139}.fm-reference-layout{display:grid;grid-template-columns:minmax(0,600px) minmax(260px,1fr);gap:42px;margin-top:28px;align-items:start}.fm-reference-intro{grid-column:2;grid-row:1;padding-top:35px}.fm-reference .fm-gate-preview{grid-area:auto;grid-column:1;grid-row:1;max-width:none;width:100%}.fm-reference .fm-preview-board{display:block;width:100%;height:auto;aspect-ratio:1}.fm-reference .fm-preview-piece svg{width:92px;height:92px}.fm-reference h1{margin:12px 0 14px;font:700 clamp(27px,3vw,36px)/1.15 Georgia,serif;overflow-wrap:anywhere}.fm-reference .fm-sub-eyebrow{font-size:11px;letter-spacing:1px;color:#a15139;font-weight:600}.fm-reference-intro>p{font-size:14px;line-height:1.6;color:#8a7560}.fm-reference-result{display:block;margin:20px 0;font:700 40px/1 Georgia,serif;color:#a15139}.fm-reference .fm-reference-match{padding:18px 0;border-top:1px solid #e0d3c2;border-bottom:1px solid #e0d3c2;color:#67523f}.fm-reference dl{font-size:13px;line-height:1.7}.fm-reference dt{color:#9b8874;margin-top:12px}.fm-reference dd{margin:0}.fm-reference-source{display:inline-block;margin:16px 0;color:#a15139;font-size:13px}.fm-reference-intro>small{display:block;max-width:370px;color:#9b8874;font-size:11px;line-height:1.6}.fm-reference .fm-preview-controls svg{width:20px;height:20px}.fm-preview-moves{display:flex;flex-wrap:wrap;gap:5px;max-height:220px;overflow:auto;margin-top:16px;padding:12px;border:1px solid #e3d7c6;border-radius:9px;background:#fffefa}.fm-preview-moves button{padding:5px 7px;border:0;border-radius:4px;background:transparent;color:#78624d;font:12px/1.4 Inter,Arial,sans-serif;cursor:pointer}.fm-preview-moves button:hover,.fm-preview-moves button[aria-current]{background:#eee0cf;color:#934e34}.fm-preview-moves button:focus-visible{outline:2px solid #c39571;outline-offset:1px}@media(max-width:760px){.fm-reference-layout{grid-template-columns:minmax(0,1fr);gap:24px}.fm-reference-intro{grid-column:1;grid-row:1;padding-top:0}.fm-reference .fm-gate-preview{grid-column:1;grid-row:2}.fm-reference h1{font-size:28px}.fm-reference .fm-reference-match{font-size:13px}.fm-reference dl{display:none}.fm-reference-intro>small{font-size:10px}.fm-reference-intro .fm-reference-source{margin:0 0 8px}.fm-reference-result{margin:14px 0;font-size:32px}}
@media(max-width:600px){.fm-master-table thead{display:none}.fm-master-table tbody,.fm-master-table tr{display:block}.fm-master-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 18px;padding:16px 0;border-bottom:1px solid #e5dace}.fm-master-table tr:last-child{border-bottom:0}.fm-master-table td{padding:0;border:0;overflow-wrap:anywhere}.fm-master-table td::before{display:block;margin-bottom:4px;color:#9b8874;font-size:10px}.fm-master-table td:nth-child(1)::before{content:'Белые'}.fm-master-table td:nth-child(2)::before{content:'Чёрные'}.fm-master-table td:nth-child(3)::before{content:'Год'}.fm-master-table td:nth-child(4)::before{content:'Результат'}.fm-master-table td:nth-child(5){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px}.fm-master-table td:nth-child(5) small{margin:0;text-align:right}.fm-master-table td:nth-child(5) a{padding:6px 0}.fm-master-table-wrap{max-height:46dvh}}
.fm-promo-bottom small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:#877768}.fm-promo-bottom small a{display:inline;font:inherit;text-decoration:underline;text-underline-offset:2px}
