@layer algorithm-guide{:is(body.platform-body:has(.algorithm-guide-page),body.platform-body:has(.algorithm-guide-index)){background:#f3f7f6}:is(body.platform-body:has(.algorithm-guide-page) .footer,body.platform-body:has(.algorithm-guide-index) .footer){color:#40556b}:is(body.platform-body:has(.algorithm-guide-page) .footer span,body.platform-body:has(.algorithm-guide-index) .footer span){color:#526579;opacity:1}main.container.platform-main:has(.algorithm-guide-page){background:#f3f7f6}main.container.platform-main:has(.algorithm-guide-index){background:#f3f7f6}main.container:has(.algorithm-guide-page){background:#f3f7f6}main.container:has(.algorithm-guide-index){background:#f3f7f6}.algorithm-guide-index,.algorithm-guide-page{--guide-ink:#10243a;--guide-muted:#526579;--guide-primary:#0f8d83;--guide-primary-dark:#0a625c;--guide-primary-soft:#eaf8f5;--guide-blue-soft:#edf5fb;--guide-gold-soft:#fff8e7;--guide-border:#d9e4e2;--guide-surface:#fff;width:min(1040px,100%);color:var(--guide-ink);text-align:right;direction:rtl;background:0 0;gap:18px;margin:0 auto;padding:20px 0 46px;display:grid}.algorithm-guide-index *,.algorithm-guide-page *{text-shadow:none}.algorithm-guide-page .card,.algorithm-guide-index .card{color:var(--guide-ink);background:var(--guide-surface);border:1px solid var(--guide-border);box-shadow:0 10px 28px #14313c12}.algorithm-guide-hero,.algorithm-guide-index-hero{border:1px solid var(--guide-border);background:radial-gradient(circle at 8% 0,#4cc4b730,#0000 30%),linear-gradient(135deg,#fff 0%,#f7fbfa 70%,#eef8f6 100%);border-radius:22px;gap:11px;padding:clamp(24px,4vw,38px);display:grid;position:relative;overflow:hidden;box-shadow:0 14px 36px #14313c14}.algorithm-guide-hero:after,.algorithm-guide-index-hero:after{content:"";inset-inline-start:-62px;pointer-events:none;border:28px solid #0f8d830f;border-radius:50%;width:190px;height:190px;position:absolute;top:-68px}.algorithm-guide-eyebrow,.algorithm-card-label,.algorithm-step-heading>span,.algorithm-example-sentence>span,.algorithm-example-target>span,.algorithm-example-result>span,.algorithm-start-point>span{color:var(--guide-primary-dark);letter-spacing:.01em;font-size:12px;font-weight:850}.algorithm-guide-hero h1,.algorithm-guide-index-hero h1{z-index:1;max-width:820px;color:var(--guide-ink);margin:0;font-size:clamp(29px,4.2vw,40px);font-weight:850;line-height:1.32;position:relative}.algorithm-guide-hero>p,.algorithm-guide-index-hero>p{z-index:1;max-width:800px;color:var(--guide-muted);margin:0;font-size:16px;line-height:1.85;position:relative}.algorithm-guide-breadcrumbs{z-index:1;color:var(--guide-muted);align-items:center;gap:8px;font-size:13px;display:flex;position:relative}.algorithm-guide-breadcrumbs a{color:var(--guide-primary-dark);font-weight:800;text-decoration:none}.algorithm-guide-breadcrumbs a:hover{text-decoration:underline}.algorithm-reading-map,.algorithm-index-flow{border:1px solid var(--guide-border);background:#fff;border-radius:14px;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;display:flex;box-shadow:0 8px 20px #14313c0d}.algorithm-reading-map a,.algorithm-index-flow span{color:#315060;background:#f8fbfa;border:1px solid #d9e9e6;border-radius:999px;justify-content:center;align-items:center;min-height:36px;padding:7px 12px;font-size:13px;font-weight:750;text-decoration:none;display:inline-flex}.algorithm-reading-map a:hover{color:var(--guide-primary-dark);background:var(--guide-primary-soft);border-color:#9bd4ce}.algorithm-rule-summary{grid-template-columns:76px minmax(0,1fr);align-items:start;gap:20px;padding:clamp(20px,3vw,28px);display:grid}.algorithm-summary-icon{color:#fff;background:linear-gradient(145deg, var(--guide-primary), #32b9aa);border-radius:18px;place-items:center;width:68px;height:68px;font-size:13px;font-weight:850;display:grid;box-shadow:0 10px 20px #0f8d8333}.algorithm-summary-content{gap:10px;min-width:0;display:grid}.algorithm-summary-content h2{color:var(--guide-ink);margin:0;font-size:clamp(21px,3vw,26px);line-height:1.45}.algorithm-summary-content>p{color:var(--guide-ink);margin:0;font-size:17px;line-height:1.95}.algorithm-start-point{background:var(--guide-primary-soft);border:1px solid #bfe4de;border-radius:12px;gap:5px;margin-top:4px;padding:14px 16px;display:grid}.algorithm-start-point strong{color:var(--guide-ink);font-size:16px;line-height:1.8}.algorithm-guide-section{gap:12px;scroll-margin-top:20px;display:grid}.algorithm-guide-section-heading{align-items:center;gap:12px;padding:2px 4px;display:flex}.algorithm-section-kicker{color:#fff;background:#163746;border-radius:999px;place-items:center;min-width:58px;min-height:34px;padding:6px 11px;font-size:12px;font-weight:850;display:inline-grid}.algorithm-guide-section-heading h2{color:var(--guide-ink);margin:0 0 3px;font-size:clamp(22px,3vw,27px);line-height:1.4}.algorithm-guide-section-heading p{color:var(--guide-muted);margin:0;line-height:1.7}.algorithm-steps-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.algorithm-step-card{border-radius:16px;grid-template-columns:52px minmax(0,1fr);align-items:stretch;gap:16px;padding:18px 20px;display:grid}.algorithm-step-card:hover{border-color:#b8d9d4;box-shadow:0 14px 34px #14313c1a}.algorithm-step-rail{flex-direction:column;align-items:center;min-height:100%;display:flex}.algorithm-step-number{width:42px;height:42px;color:var(--guide-primary-dark);background:var(--guide-primary-soft);border:1px solid #9dd8d1;border-radius:13px;flex:0 0 42px;place-items:center;font-size:13px;font-weight:900;display:grid}.algorithm-step-line{background:linear-gradient(#8bd1ca,#dcebe8);border-radius:99px;flex:auto;width:2px;min-height:28px;margin-top:8px}.algorithm-step-content{gap:10px;min-width:0;display:grid}.algorithm-step-heading{flex-wrap:wrap;align-items:baseline;gap:9px;display:flex}.algorithm-step-heading h3{color:var(--guide-ink);margin:0;font-size:20px;line-height:1.5}.algorithm-step-block{border:1px solid #0000;border-radius:11px;gap:5px;padding:13px 15px;display:grid}.algorithm-step-block>span{font-size:12px;font-weight:900}.algorithm-step-block p{color:var(--guide-ink);margin:0;line-height:1.82}.algorithm-step-question-block{background:#f0faf8;border-color:#bedfdc}.algorithm-step-question-block>span{color:var(--guide-primary-dark)}.algorithm-step-question-block p{font-size:16px;font-weight:800}.algorithm-step-explanation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.algorithm-step-why{background:var(--guide-blue-soft);border-color:#d8e4ea}.algorithm-step-why>span{color:#2e6178}.algorithm-step-direction{background:var(--guide-gold-soft);border-color:#eadfbf}.algorithm-step-direction>span{color:#8a641a}.algorithm-step-example{background:#fbfdfc;border-color:#cfe3df}.algorithm-step-example>span{color:var(--guide-primary-dark)}.algorithm-step-branches{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;display:grid}.algorithm-step-branch{background:#fbfdfc;border:1px solid #cfe3df;border-radius:10px;gap:4px;padding:11px 13px;display:grid}.algorithm-step-branch strong{color:var(--guide-primary-dark);font-size:13px}.algorithm-step-branch p{color:var(--guide-ink);margin:0;font-size:14px;line-height:1.75}.algorithm-example-card{border-radius:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:clamp(18px,3vw,28px);display:grid}.algorithm-example-sentence,.algorithm-example-target{border:1px solid var(--guide-border);background:#f9fbfb;border-radius:11px;gap:6px;padding:14px 16px;display:grid}.algorithm-example-sentence strong,.algorithm-example-target strong{color:var(--guide-ink);font-size:19px;line-height:1.7}.algorithm-example-walkthrough{grid-column:1/-1;gap:9px;margin:2px 0 0;padding:4px 0 0;list-style:none;display:grid}.algorithm-example-walkthrough li{background:#f7faf9;border-radius:10px;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:10px;padding:10px 12px;display:grid}.algorithm-example-walkthrough li>span{color:#fff;background:var(--guide-primary-dark);border-radius:50%;place-items:center;width:28px;height:28px;font-size:12px;font-weight:850;display:grid}.algorithm-example-walkthrough p{color:var(--guide-ink);margin:0;line-height:1.8}.algorithm-example-result{background:#fff9e9;border:1px solid #e8d49a;border-radius:11px;grid-column:1/-1;gap:5px;padding:15px 17px;display:grid}.algorithm-example-result>span{color:#80601a}.algorithm-example-result p{color:var(--guide-ink);margin:0;font-size:16px;font-weight:800;line-height:1.85}.algorithm-mistakes-card{border-radius:16px;gap:9px;margin:0;padding:19px 46px 19px 22px;display:grid}.algorithm-mistakes-card li{color:var(--guide-ink);line-height:1.8}.algorithm-mistakes-card li::marker{color:#b36b15}.algorithm-guide-actions{border-radius:16px;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;display:flex}.algorithm-guide-actions h2{color:var(--guide-ink);margin:4px 0;font-size:22px}.algorithm-guide-actions p{color:var(--guide-muted);margin:0}.algorithm-guide-action-buttons{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.algorithm-guide-open-link,.algorithm-primary-action,.algorithm-secondary-action{text-align:center;border-radius:9px;justify-content:center;align-items:center;min-height:43px;padding:9px 15px;font-weight:800;text-decoration:none;display:inline-flex}.algorithm-guide-open-link,.algorithm-primary-action{color:#fff;background:var(--guide-primary);border:1px solid var(--guide-primary)}.algorithm-guide-open-link:hover,.algorithm-primary-action:hover{background:var(--guide-primary-dark);border-color:var(--guide-primary-dark)}.algorithm-secondary-action{color:var(--guide-ink);background:#fff;border:1px solid #aebdc5}.algorithm-secondary-action:hover{border-color:var(--guide-primary);background:var(--guide-primary-soft)}.algorithm-guide-grid{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:13px;display:grid}.algorithm-guide-topic-card{border-radius:16px;grid-template-rows:auto 1fr auto;gap:14px;min-height:245px;padding:21px;display:grid;position:relative;overflow:hidden}.algorithm-guide-topic-card:after{content:"";inset-inline-end:-46px;pointer-events:none;background:#0f8d830e;border-radius:50%;width:132px;height:132px;position:absolute;top:-48px}.algorithm-topic-card-number{z-index:1;width:42px;height:42px;color:var(--guide-primary-dark);background:var(--guide-primary-soft);border:1px solid #b8ded9;border-radius:12px;place-items:center;font-size:12px;font-weight:900;display:grid;position:relative}.algorithm-topic-card-copy{z-index:1;position:relative}.algorithm-guide-topic-card h2{color:var(--guide-ink);margin:6px 0 8px;font-size:21px;line-height:1.45}.algorithm-guide-topic-card p{color:var(--guide-muted);margin:0;line-height:1.8}.algorithm-guide-open-link{z-index:1;width:100%;position:relative}.keys-compact-hero{gap:8px}.keys-workspace{border-radius:20px;gap:11px;padding:clamp(16px,2.4vw,24px);scroll-margin-top:18px;display:grid}.keys-workspace-top{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.keys-question-signal{color:#8a641a;align-items:center;gap:7px;margin-top:4px;font-size:12.5px;font-weight:900;display:inline-flex}.keys-question-signal i{background:#d99a24;border-radius:50%;width:9px;height:9px;box-shadow:0 0 0 5px #d99a2421}.keys-workspace h2{color:var(--guide-ink);margin:0;font-size:clamp(24px,3vw,30px)}.keys-step-pill{color:var(--guide-primary-dark);white-space:nowrap;background:#f5fbfa;border:1px solid #cfe3df;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:850}.keys-workspace-instruction{color:var(--guide-muted);margin:0;line-height:1.8}.keys-start-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.keys-start-choice{min-height:92px;color:var(--guide-ink);text-align:right;cursor:pointer;background:#fff;border:1px solid #cfe3df;border-radius:13px;align-content:center;gap:5px;padding:14px;display:grid}.keys-start-choice:hover{background:var(--guide-primary-soft);border-color:#79c8bf}.keys-start-choice strong{font-size:17px}.keys-start-choice span{color:var(--guide-muted);font-size:13px}.keys-example-focus{background:#f8fbfd;border:1px solid #d8e4ea;border-radius:13px;gap:3px;padding:12px 15px;display:grid}.keys-example-focus span,.keys-question-focus span{color:var(--guide-primary-dark);font-size:12px;font-weight:900}.keys-example-focus strong{color:var(--guide-ink);font-size:22px;line-height:1.7}.keys-question-focus{background:#f0faf8;border:1px solid #bfe4de;border-radius:13px;padding:11px 14px;display:block}.keys-question-focus h3{color:var(--guide-ink);margin:0;font-size:18px;line-height:1.6}.keys-question-focus h3 span{color:var(--guide-primary-dark);font-size:12px;font-weight:900}.keys-answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.keys-answer-grid button{min-height:50px;color:var(--guide-ink);cursor:pointer;background:#fff;border:1px solid #b9d8d4;border-radius:11px;padding:10px 14px;font-size:15px;font-weight:850}.keys-answer-grid button:hover:not(:disabled){background:#f1faf8;border-color:#64b8ae}.keys-answer-grid button.is-correct{background:#edf9f2;border-color:#70b88e}.keys-answer-grid button.is-wrong{background:#fff2f2;border-color:#d6a0a0}.keys-answer-feedback{border-radius:13px;gap:9px;padding:15px 17px;display:grid}.keys-answer-feedback.success{background:#f0faf4;border:1px solid #b7dec8}.keys-answer-feedback.hint{background:#fff9ea;border:1px solid #ead7a8}.keys-answer-feedback p{color:var(--guide-ink);margin:0;font-size:15.5px;line-height:1.85}.keys-feedback-actions{flex-wrap:wrap;gap:9px;display:flex}.keys-feedback-actions a,.keys-feedback-actions button,.keys-change-start{min-height:42px;color:var(--guide-primary-dark);cursor:pointer;background:#fff;border:1px solid #afd3ce;border-radius:10px;padding:8px 14px;font-weight:850;text-decoration:none}.keys-feedback-actions a{background:var(--guide-primary);border-color:var(--guide-primary);color:#fff}.keys-change-start{justify-self:start}.keys-more-details{background:#fff;border:1px solid #d6e4e1;border-radius:11px;padding:0 13px 11px}.keys-more-details summary{color:var(--guide-ink);cursor:pointer;padding:11px 0;font-weight:850}.keys-more-details p{margin:5px 0 0;font-size:14.5px;line-height:1.8}@media (max-width:700px){.keys-workspace-top{flex-direction:column}.keys-start-grid,.keys-answer-grid{grid-template-columns:1fr}.keys-step-pill{white-space:normal}.keys-answer-grid button{width:100%}}}
@layer algorithm-guide{@media (max-width:820px){.algorithm-step-explanation-grid{grid-template-columns:1fr}.algorithm-guide-actions{flex-direction:column;align-items:stretch}.algorithm-guide-action-buttons{justify-content:stretch}}@media (max-width:720px){:is(body.platform-body:has(.algorithm-guide-page),body.platform-body:has(.algorithm-guide-index)){background:#f3f7f6}.algorithm-guide-index,.algorithm-guide-page{gap:14px;padding-top:12px}.algorithm-guide-hero,.algorithm-guide-index-hero{border-radius:17px;padding:21px 17px}.algorithm-reading-map,.algorithm-index-flow{gap:6px;padding:9px}.algorithm-reading-map a,.algorithm-index-flow span{flex:calc(50% - 6px)}.algorithm-rule-summary{grid-template-columns:1fr;gap:13px;padding:18px}.algorithm-summary-icon{border-radius:15px;width:54px;height:54px}.algorithm-guide-section-heading{align-items:flex-start}.algorithm-step-card{grid-template-columns:38px minmax(0,1fr);gap:10px;padding:15px 13px}.algorithm-step-number{border-radius:10px;flex-basis:35px;width:35px;height:35px}.algorithm-step-block{padding:11px 12px}.algorithm-example-card{grid-template-columns:1fr;padding:15px}.algorithm-example-sentence,.algorithm-example-target,.algorithm-example-walkthrough,.algorithm-example-result{grid-column:1}.algorithm-guide-action-buttons,.algorithm-guide-action-buttons a{width:100%}.algorithm-mistakes-card{padding:17px 36px 17px 18px}}@media (prefers-reduced-motion:no-preference){.algorithm-step-card,.algorithm-guide-topic-card{transition:border-color .18s,box-shadow .18s,transform .18s}.algorithm-step-card:hover,.algorithm-guide-topic-card:hover{transform:translateY(-2px)}}@media (max-width:520px){.algorithm-guide-page,.algorithm-guide-index,.algorithm-guide-section,.algorithm-steps-list,.algorithm-step-content,.algorithm-step-explanation-grid,.algorithm-step-branches{width:100%;min-width:0}.algorithm-step-card{width:100%;padding:13px 10px 14px;display:block;position:relative;overflow:visible}.algorithm-step-rail{top:12px;z-index:2;width:35px;height:35px;min-height:0;display:block;position:absolute;inset-inline-end:10px}.algorithm-step-line{display:none}.algorithm-step-content{gap:8px;display:grid}.algorithm-step-heading{align-items:center;min-height:35px;padding-inline-end:45px}.algorithm-step-heading h3{font-size:18px}.algorithm-step-block,.algorithm-step-question-block,.algorithm-step-why,.algorithm-step-direction,.algorithm-step-branch{box-sizing:border-box;width:100%;min-width:0}.algorithm-step-explanation-grid,.algorithm-step-branches{grid-template-columns:minmax(0,1fr)}.algorithm-step-block p,.algorithm-step-branch p,.algorithm-example-card p,.algorithm-mistakes-card li{overflow-wrap:break-word;word-break:normal}.algorithm-guide-section-heading{gap:8px}.algorithm-section-kicker{min-width:52px;padding-inline:9px}}}
