/* GDZ restoration and learning interface, 2026-09-09 */
html{scroll-behavior:smooth}body{--restore-accent:var(--c1,#3156d3)}
@media(min-width:1000px){html body{overflow-x:clip!important;overflow-y:visible!important}.study-layout{align-items:start!important;overflow:visible!important}.study-layout>.study-photo{position:sticky!important;top:24px!important;align-self:start!important;height:auto!important;max-height:calc(100vh - 48px);overflow:auto!important}.study-layout>.study-subjects{position:sticky!important;top:24px;max-height:calc(100vh - 48px);overflow:auto}.study-layout{grid-template-columns:175px minmax(0,1fr) 210px!important}.study-layout>.study-photo{grid-column:auto!important;grid-row:auto!important}}
.restore-task-picker{margin:28px 0!important;padding:24px!important;border:1px solid #dbe3ef!important;border-radius:16px!important;background:#fff!important;color:#18324f}.restore-task-picker h2{margin:0!important;font-size:23px!important;line-height:1.35!important}.restore-picker-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.restore-picker-head p{margin:7px 0 0;font-size:14px;color:#64748b}.restore-picker-head>a{font-size:14px;white-space:nowrap}.restore-picker-controls{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.restore-picker-controls label{display:grid;gap:7px;font-size:13px;font-weight:650;flex:1;min-width:140px}.restore-picker-controls input,.restore-picker-controls select{width:100%;box-sizing:border-box;background:#f8faff;color:#18324f;min-height:46px;border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px;font:inherit}.restore-number-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(64px,1fr)))!important;grid-template-columns:repeat(auto-fill,minmax(64px,1fr))!important;gap:8px!important;list-style:none!important;margin:16px 0!important;padding:0!important}.restore-number-grid li{list-style:none!important;margin:0!important;padding:0!important;border:0!important;min-width:0}.restore-number-grid a{display:flex!important;justify-content:center;align-items:center;min-height:44px;box-sizing:border-box;padding:9px 5px!important;background:#f5f7fc;border:1px solid #dae2f1;border-radius:8px;text-decoration:none!important;color:var(--restore-accent)!important;font-size:14px!important;font-weight:650;overflow-wrap:anywhere}.restore-number-grid a:hover,.restore-number-grid a[aria-current=page]{background:var(--restore-accent);color:white!important;border-color:var(--restore-accent)}.restore-number-grid li[data-long=true]{grid-column:span 2}.restore-picker-bottom{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;font-size:13px;color:#526984}.restore-picker-bottom button,.restore-example-button,.restore-copy,.restore-clear{border:1px solid #cbd5e1;border-radius:8px;padding:10px 14px;background:#fff;color:#24476c;cursor:pointer;font:600 13px/1.4 Inter,system-ui,sans-serif}.restore-picker-bottom button:disabled{opacity:.45;cursor:default}.restore-tool-picture{width:100%;height:108px;object-fit:contain;border-radius:10px;background:#f3f6ff;margin:0 0 16px!important}.tool-catalog .x-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;padding:20px!important;gap:0!important;border-radius:14px!important;transition:transform .16s,border-color .16s}.tool-catalog .x-card:after{display:none!important}.tool-catalog .x-card:hover{transform:translateY(-3px);border-color:var(--restore-accent)!important}.tool-catalog .x-card strong{font-size:17px!important;line-height:1.4!important}.restore-card-description{display:block!important;font-size:13px!important;line-height:1.55!important;margin:9px 0 16px!important;color:#526984!important}.restore-card-action{display:block!important;margin-top:auto!important;padding-top:12px;border-top:1px solid #e5eaf4;font-size:13px!important;color:var(--restore-accent)!important;font-weight:700}.restore-tool-benefits{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 28px}.restore-tool-benefits span{border:1px solid #dce4f2;background:#fff;border-radius:30px;padding:8px 12px;font-size:13px;color:#426082}.restore-tool-guide,.restore-example,.restore-tool-related,.restore-task-facts,.restore-task-help{padding:24px;border:1px solid #dce4ee;border-radius:14px;background:#fff;margin:24px 0;min-width:0;line-height:1.7}.restore-tool-guide h2,.restore-example h2,.restore-tool-related h2,.restore-task-help h2{font-size:22px!important;margin:0 0 16px!important}.restore-example dl,.restore-task-facts dl{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:8px 20px;margin:0}.restore-example dt,.restore-task-facts dt{color:#64748b;font-size:14px}.restore-example dd,.restore-task-facts dd{margin:0;overflow-wrap:anywhere}.restore-example-answer{font-size:20px;font-weight:700;color:#176559;background:#eef9f5;border-radius:9px;padding:14px 16px;margin:18px 0}.restore-example ol{padding-left:22px}.restore-example pre{overflow:auto;white-space:pre;font-size:14px;background:#f4f7fb;padding:16px;border-radius:8px}.restore-form-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.restore-conversion{border:1px solid #cedbf5;border-radius:16px;padding:26px;background:linear-gradient(110deg,#edf3ff,#f5f1ff);margin:28px 0}.restore-conversion h2{font-size:22px!important;margin:0 0 8px!important}.restore-conversion p{font-size:15px;line-height:1.65;color:#526984;margin:8px 0 18px}.restore-conversion a{display:inline-flex;background:var(--restore-accent);color:white!important;border-radius:9px;padding:12px 18px;font-weight:700;text-decoration:none}.restore-conversion small{display:block;margin-top:12px;color:#526984}.restore-tool-related ul{display:flex;gap:12px;flex-wrap:wrap;list-style:none;padding:0!important}.restore-tool-related li{margin:0!important}.restore-tool-related a{display:block;padding:10px 13px;border:1px solid #dce4ee;border-radius:9px;text-decoration:none;font-size:14px}.x-form output:empty,.school-tool output:empty{display:none}.x-form output,.school-tool output{display:block;scroll-margin-top:24px;overflow-wrap:anywhere}.x-form input,.school-tool input,.x-form textarea,.x-form select{font-size:16px!important;box-sizing:border-box;max-width:100%}.x-tools{min-width:0}.restore-task-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:28px;max-width:1240px;margin:28px auto;padding:0 24px 60px;align-items:start}.restore-task-main{min-width:0}.restore-task-aside{position:sticky;top:24px}.restore-task-main h1{font-size:clamp(26px,3vw,36px);line-height:1.3;margin:14px 0 18px}.restore-task-main .catalog-answer,.restore-task-main .catalog-solution{padding:24px;background:#fff;border:1px solid #dce4ee;border-radius:14px;margin:22px 0}.restore-task-main .corpus-task-text{font-size:17px;line-height:1.8}.restore-task-main figure{margin:18px 0}.restore-task-main figure img{max-width:100%;height:auto;border-radius:8px}.restore-task-main figcaption{font-size:13px;color:#64748b}.restore-task-nav{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:22px 0}.restore-task-nav a{padding:12px 16px;border:1px solid #d6e0f0;border-radius:9px;text-decoration:none;background:#fff;font-size:14px}.restore-task-crumbs{font-size:13px;display:flex;gap:8px;flex-wrap:wrap;color:#64748b}.restore-task-lead{font-size:16px;color:#526984;line-height:1.6}.restore-task-aside .restore-conversion{margin:0;padding:20px}.restore-task-aside .restore-conversion h2{font-size:20px!important}.restore-task-main [hidden],.restore-task-picker [hidden]{display:none!important}:focus-visible{outline:3px solid #91b1ff;outline-offset:3px}
@media(max-width:999px){.restore-task-layout{grid-template-columns:1fr;padding:0 16px 36px;gap:18px}.restore-task-aside{position:static}.restore-task-aside .restore-conversion{margin:0}.study-layout>.study-photo{position:static!important}.restore-tool-picture{height:88px}}@media(max-width:600px){.restore-task-picker{padding:16px!important}.restore-picker-head{align-items:flex-start;flex-direction:column;gap:10px}.restore-picker-head h2{font-size:20px!important}.restore-tool-guide,.restore-example,.restore-tool-related,.restore-task-facts,.restore-task-help,.restore-task-main .catalog-answer,.restore-task-main .catalog-solution{padding:17px}.restore-example dl,.restore-task-facts dl{grid-template-columns:1fr;gap:3px}.restore-example dd,.restore-task-facts dd{margin-bottom:9px}.restore-task-nav a{flex:1;font-size:13px}.tool-catalog .x-grid{grid-template-columns:1fr!important}.tool-catalog .x-card{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;column-gap:16px!important;padding:16px!important}.restore-tool-picture{grid-column:1;grid-row:1/4;height:72px;margin:0!important}.tool-catalog .x-card strong,.restore-card-description,.restore-card-action{grid-column:2}.restore-card-description{margin:6px 0 10px!important}.restore-card-action{padding-top:8px}.restore-conversion{padding:20px}.restore-number-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr))!important}}

.restore-static-header .header-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;padding:18px 24px!important;max-width:1240px!important;margin:auto!important;flex-wrap:wrap!important}.restore-static-header .logo-title{font-size:22px!important}.restore-static-header .logo-sub{font-size:12px!important;display:block!important}.restore-static-nav{display:flex;gap:20px;flex-wrap:wrap;font:600 14px/1.5 Inter,system-ui,sans-serif}.restore-static-nav a{color:#315070;text-decoration:none}.restore-static-footer{border-top:1px solid #dce4ee;background:white;padding:28px 24px;display:flex;gap:20px;flex-wrap:wrap;justify-content:center;font-size:14px}.restore-static-footer a{color:#526984}@media(max-width:600px){.restore-static-header .header-inner{padding:14px 16px!important;gap:14px!important}.restore-static-nav{gap:12px;font-size:12px}.restore-static-header .logo-title{font-size:20px!important}.restore-static-header .logo{max-width:none!important}}
@media(min-width:1000px){html body .study-layout{max-width:1440px!important}html body.gdz-home .study-layout>aside.study-photo,html body .study-layout>aside.study-photo{display:block!important;position:sticky!important;top:24px!important;align-self:start!important}html body.gdz-home .fab{display:none!important}}

@media(min-width:1000px){html body:has(.study-photo) a.fab{display:none!important}}

html body [hidden]{display:none!important}

html body .tool-catalog .x-card[hidden]{display:none!important}

/* Compact assignment header: override inherited three-column navigation layout. */
html body.corpus-page header.header.restore-static-header>.header-inner{display:flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:space-between!important;gap:16px 24px!important;height:auto!important;min-height:72px!important;padding:16px 24px!important;flex-wrap:wrap!important}
html body.corpus-page .restore-static-header .header-inner>.logo{display:flex!important;flex:0 1 auto!important;width:auto!important;max-width:100%!important;min-width:0!important;gap:10px!important;margin:0!important;height:auto!important}
html body.corpus-page .restore-static-header .logo-icon,html body.corpus-page .restore-static-header .logo-icon img{width:40px!important;height:40px!important;flex:0 0 40px!important;object-fit:contain!important}
html body.corpus-page .restore-static-header .logo-text{display:flex!important;flex-direction:column!important;width:auto!important;max-width:100%!important;min-width:0!important;height:auto!important;gap:3px!important}
html body.corpus-page .restore-static-header .logo-title{display:block!important;white-space:normal!important;overflow:visible!important;font-size:20px!important;line-height:1.25!important}
html body.corpus-page .restore-static-header .logo-sub{display:block!important;white-space:normal!important;font-size:12px!important;line-height:1.4!important}
html body.corpus-page .restore-static-header .restore-static-nav{display:flex!important;flex:0 1 auto!important;flex-wrap:wrap!important;width:auto!important;gap:12px 20px!important}
@media(max-width:600px){html body.corpus-page header.header.restore-static-header>.header-inner{flex-direction:column!important;align-items:flex-start!important;padding:14px 16px!important;gap:14px!important}html body.corpus-page .restore-static-header .header-inner>.logo,html body.corpus-page .restore-static-header .restore-static-nav{width:100%!important}html body.corpus-page .restore-static-header .restore-static-nav{gap:10px 16px!important}}
