:root{--cream:#fff8ef;--white:#fffdf9;--ink:#251c28;--berry:#95093f;--dark:#74042f;--blush:#f7e2df;--muted:#786974;--line:#edcec5;--shadow:0 12px 36px #ac6e5315}*{box-sizing:border-box}body{margin:0;background:var(--cream);font-family:Arial,Helvetica,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}a{color:inherit}a,button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}[hidden]{display:none!important}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--berry);outline-offset:4px}img{display:block;max-width:100%}.app-shell{max-width:1500px;margin:auto;padding:0 34px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:25px 7px}.brand{font-size:26px;font-weight:700;color:var(--berry);text-decoration:none;letter-spacing:-.9px;white-space:nowrap}.roles{display:flex;padding:5px;background:#f5e6df;border-radius:40px;gap:3px}.roles a{padding:11px 24px;border-radius:30px;text-decoration:none;font-size:16px;color:#7c5b6a;white-space:nowrap}.roles a[aria-current=true]{color:white;background:var(--berry)}.site-link{color:var(--berry);font-size:15px;text-underline-offset:5px;white-space:nowrap}.layout{display:grid;grid-template-columns:228px minmax(0,1fr);gap:28px;align-items:start}.sidebar{position:sticky;top:20px;background:#fffdf9;border:1px solid white;border-radius:25px;padding:25px 14px;box-shadow:var(--shadow)}.role-caption{padding:0 12px 20px;border-bottom:1px solid #f0ded7;margin-bottom:13px}.role-caption span{display:block;color:var(--berry);font-size:11px;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:8px}.role-caption strong{font-size:23px;letter-spacing:-.5px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{text-decoration:none;font-size:14px;line-height:1.35;padding:11px 13px;border-radius:12px;color:#78616d}.sidebar nav a:hover{background:#faf0e8}.sidebar nav a[aria-current=page]{color:var(--berry);background:#f7e4df;font-weight:600}.sidebar-note{font-size:11px;line-height:1.5;color:#9a8a90;padding:19px 11px 0;margin-top:15px;border-top:1px solid #f1e2da}main{min-width:0;min-height:690px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;margin:6px 0 27px}.eyebrow{font-size:12px;letter-spacing:1.8px;text-transform:uppercase;color:var(--berry);line-height:1.5;margin:0 0 12px}.page-head h1{font-size:48px;line-height:1.08;letter-spacing:-1.8px;margin:0 0 14px}.lead{font-size:18px;line-height:1.5;color:#7a6974;margin:0;max-width:780px}.badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:20px;background:#f7e6e1;color:#9a4d6d;font-size:11px;line-height:1.3;white-space:nowrap}.badge.quiet{background:#efe9e0;color:#7a7175}.badge.good{background:#e8ede1;color:#61714f}.head-note{align-self:flex-start;margin-top:8px;flex:0 0 auto}.hero-panel{background:#f7e8df;border:1px solid #fffaf4;border-radius:29px;display:grid;grid-template-columns:1.2fr 1fr;overflow:hidden;box-shadow:var(--shadow);margin-bottom:24px}.hero-copy{padding:32px 34px}.hero-copy h2{font-size:38px;line-height:1.1;letter-spacing:-1.2px;margin:0 0 18px}.hero-copy p{font-size:18px;line-height:1.55;color:#765e6c;margin:0 0 24px}.hero-panel img{height:340px;width:100%;object-fit:contain;object-position:center}.hero-panel.portrait img{object-fit:contain;mix-blend-mode:multiply}.button{display:inline-flex;justify-content:center;align-items:center;min-height:49px;padding:11px 23px;border:1px solid transparent;border-radius:30px;text-decoration:none;font-size:16px;line-height:1.45;text-align:center;transition:background .18s,transform .18s}.primary{background:var(--berry);color:white}.primary:hover{background:var(--dark);transform:translateY(-1px)}.outline{border-color:var(--berry);color:var(--berry);background:transparent}.outline:hover{background:#f9e8e2}.soft{background:#f6e6df;color:var(--berry)}.small{font-size:14px;min-height:41px;padding:8px 17px}.text-link{color:var(--berry);font-size:14px;text-underline-offset:4px}.button-row{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--white);border:1px solid white;border-radius:25px;padding:26px;box-shadow:var(--shadow);min-width:0}.card h2{font-size:27px;letter-spacing:-.7px;line-height:1.15;margin:0 0 15px}.card h3{font-size:22px;letter-spacing:-.5px;line-height:1.2;margin:0 0 13px}.card p{font-size:16px;line-height:1.5;color:#82707c;margin:0 0 19px}.card p:last-child{margin-bottom:0}.card .badge{margin-bottom:15px}.card .number{font-size:43px;line-height:1;color:var(--berry);letter-spacing:-1.5px;font-weight:600;display:block;margin:0 0 12px}.section-title{font-size:27px;line-height:1.2;letter-spacing:-.8px;margin:30px 0 19px}.note{font-size:13px;line-height:1.55;color:#8b7984;margin:20px 2px}.empty-note{padding:28px;background:#f5e9e0;border-radius:22px;color:#7e6975;font-size:16px;line-height:1.5}.list{display:grid;gap:12px}.list-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 19px;border:1px solid #efdbd2;border-radius:17px;background:#fffaf4}.list-row h3{font-size:18px;margin:0 0 7px;letter-spacing:-.3px}.list-row p{font-size:14px;color:#8a7682;margin:0;line-height:1.4}.list-row .right{display:flex;align-items:center;gap:11px;flex-wrap:wrap;justify-content:flex-end}.form{display:grid;gap:18px}.form label{font-size:14px;color:#795e6e;display:grid;gap:9px}.form input,.form select,.form textarea,.filters input,.filters select{font-size:16px;border:1px solid #dcc5c0;border-radius:13px;background:#fffcf7;padding:13px 15px;color:var(--ink);min-width:0;width:100%;line-height:1.4}.form textarea{resize:vertical;min-height:145px}.form select{cursor:pointer}.form .button{justify-self:start}.check-row{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:12px!important;font-size:16px!important;line-height:1.5;color:#645765!important}.check-row input{width:19px;height:19px;accent-color:var(--berry);flex:0 0 19px;margin-top:3px;padding:0}.steps{list-style:none;display:flex;gap:15px;padding:0;margin:22px 0}.steps li{flex:1;padding:18px 13px;border:1px solid #e8c8be;border-radius:18px;color:#9a808b;font-size:14px;line-height:1.4;background:#fffbf6}.steps li.active{border-color:var(--berry);color:var(--berry);background:#f8e8e2}.steps strong{display:block;font-size:23px;margin-bottom:8px}.inline-image{height:225px;width:100%;object-fit:contain;border-radius:18px;margin-bottom:20px}.inline-image.portrait{height:230px;object-position:50% 32%}.gift-image{width:250px;height:250px;object-fit:contain;border-radius:24px;margin:0 auto 18px}.choice{display:block;width:100%;text-align:left;background:var(--white);border:1px solid #efdacf;border-radius:22px;padding:23px;cursor:pointer;transition:background .18s}.choice strong{display:block;font-size:20px;line-height:1.2;margin-bottom:9px;color:var(--ink)}.choice span{display:block;font-size:15px;line-height:1.5;color:#927583}.choice.selected{background:#f7e4df;border-color:var(--berry)}.filters{display:grid;grid-template-columns:minmax(200px,1.5fr) 1fr 1fr;gap:12px;margin:24px 0 20px}.filters label{font-size:12px;color:#8b7080;display:grid;gap:8px}.filters input,.filters select{font-size:14px;padding:12px 13px}.library-summary{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px;color:#907885;margin:18px 0}.research-notice{font-size:13px;line-height:1.55;color:#876b7b;background:#f4e6df;padding:17px 20px;border-radius:17px;margin:0 0 20px}.table-wrap{overflow:auto;border-radius:22px;border:1px solid #ead4ca;background:var(--white)}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#99798a;background:#f7eae2;padding:15px 16px;white-space:nowrap}td{padding:17px 16px;border-top:1px solid #efdfd6;vertical-align:top;line-height:1.4}td strong{display:block;font-weight:600;font-size:15px;line-height:1.35}td small{display:block;color:#947f8a;margin-top:7px;font-size:12px;line-height:1.45}td .button{white-space:nowrap}tr:hover td{background:#fff8f1}.pagination{display:flex;align-items:center;justify-content:center;gap:17px;margin:23px 0;font-size:14px;color:#866b7a}.profile-top{display:flex;align-items:center;gap:16px;margin-bottom:18px}.avatar{flex:0 0 55px;width:55px;height:55px;border-radius:18px;background:#f4dedb;color:var(--berry);font-size:22px;font-weight:600;display:flex;align-items:center;justify-content:center}.profile-top h3{font-size:20px;line-height:1.2;margin:0 0 7px}.profile-top p{font-size:12px;margin:0}.profile-card{display:flex;flex-direction:column}.profile-card .button-row{margin-top:auto}.profile-card .evidence{font-size:13px;line-height:1.5;margin:0 0 18px;color:#91727f}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.day{background:var(--white);border:1px solid white;border-radius:18px;padding:15px 12px;min-height:217px;display:flex;flex-direction:column}.day>strong{font-size:13px;color:#967788;margin-bottom:18px}.day h3{font-size:14px;line-height:1.3;margin:0 0 15px;overflow-wrap:anywhere}.day p{font-size:12px;color:#a18b95;line-height:1.4;margin:0 0 15px}.day .button{margin-top:auto;padding:7px 9px;font-size:11px;min-height:34px}.editor-tabs{display:flex;background:#f1e2da;border-radius:25px;padding:4px;width:max-content;max-width:100%;margin-bottom:20px}.editor-tabs button{border:0;background:none;border-radius:22px;padding:10px 24px;color:#967285;font-size:15px}.editor-tabs button.active{background:var(--berry);color:white}.timeline{padding:0;list-style:none}.timeline li{display:grid;grid-template-columns:90px 1fr;gap:23px;border-bottom:1px solid #eddbd2;padding:23px 0}.timeline strong{font-size:28px;color:var(--berry)}.timeline h3{font-size:21px;margin:0 0 10px}.timeline p{font-size:16px;line-height:1.5;color:#816e7a;margin:0}.progress-bar{height:7px;background:#efdfd6;border-radius:10px;overflow:hidden;margin:15px 0 10px}.progress-bar span{display:block;height:100%;background:var(--berry);border-radius:10px}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mini-grid .card{padding:22px}.profile-lines{font-size:16px;line-height:1.6;overflow-wrap:anywhere}.profile-lines p{margin:0 0 17px}.profile-lines h3{font-size:22px;margin:26px 0 13px;color:var(--berry)}.source-list{padding-left:20px;font-size:14px;line-height:1.55}.source-list li{margin-bottom:11px}.source-list a{color:var(--berry);overflow-wrap:anywhere}.raw-data{font-size:12px;line-height:1.55;color:#886f7e}.raw-data dl{display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:12px 20px;margin:20px 0}.raw-data dt{font-weight:600;overflow-wrap:anywhere}.raw-data dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.modal-shell{padding:25px 33px 33px}.modal-close{border:0;background:none;color:#9c7c8d;font-size:13px;display:block;margin:-7px -15px 16px auto;padding:10px}.modal-close span{font-size:24px;vertical-align:-2px;margin-left:6px}dialog{border:1px solid white;border-radius:29px;background:var(--white);padding:0;width:min(840px,calc(100% - 32px));max-height:calc(100svh - 32px);color:var(--ink);box-shadow:0 24px 80px #4d263a45}dialog::backdrop{background:#3f263977;backdrop-filter:blur(5px)}dialog h2{font-size:33px;letter-spacing:-1px;line-height:1.12;margin:0 0 20px}dialog>div>div>p{font-size:17px;line-height:1.5;color:#816b79}dialog .form{margin-top:24px}.demo-footer{display:flex;justify-content:space-between;gap:20px;padding:29px 5px;color:#9a808f;font-size:11px;line-height:1.5}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);max-width:calc(100% - 35px);padding:14px 23px;border-radius:18px;box-shadow:0 6px 34px #3f0b2226;background:var(--berry);color:white;font-size:14px;line-height:1.4;z-index:20;text-align:center}.skip{position:fixed;top:10px;left:10px;background:white;padding:12px;z-index:30;transform:translateY(-180%)}.skip:focus{transform:none}.loading{padding:45px;text-align:center;color:#9b7b8a}.tight{margin-top:0}.muted{color:#997f8d}.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.detail-kv{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.detail-kv>div{border-radius:15px;background:#f7eae3;padding:17px}.detail-kv small{display:block;font-size:11px;color:#9c7c8d;margin-bottom:9px}.detail-kv strong{font-size:17px;line-height:1.3}.callout{background:#f4e2dc;border-radius:21px;padding:24px;font-size:16px;line-height:1.5;color:#7d586b}.spaced{margin-top:24px}.field-error{font-size:13px;color:var(--berry);line-height:1.4}.page-head>.button{flex-shrink:0;margin-top:8px}
@media(max-width:1200px){.app-shell{padding:0 25px}.layout{grid-template-columns:210px minmax(0,1fr);gap:23px}.brand{font-size:23px}.topbar{gap:20px}.roles a{padding:10px 18px;font-size:14px}.sidebar{padding:23px 12px}.sidebar nav a{font-size:13px;padding:10px 11px}.page-head h1{font-size:42px}.lead{font-size:17px}.hero-copy{padding:28px}.hero-copy h2{font-size:33px}.hero-copy p{font-size:17px}.hero-panel img{height:360px}.card{padding:23px}.card h2{font-size:25px}.card h3{font-size:20px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar{grid-template-columns:repeat(4,minmax(0,1fr))}.day{min-height:190px}.filters{grid-template-columns:1.2fr 1fr}.filters label:first-child{grid-column:1/-1}.roles{flex-shrink:0}}
@media(max-width:900px){.app-shell{padding:0 20px}.topbar{flex-wrap:wrap;padding:23px 2px 19px;gap:19px}.brand{font-size:24px}.roles{order:2;width:100%;justify-content:center}.roles a{flex:1;text-align:center;font-size:16px;padding:10px 20px}.site-link{margin-left:auto}.layout{grid-template-columns:minmax(0,1fr);gap:21px}.sidebar{position:static;padding:16px 13px;border-radius:20px}.role-caption{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px;padding-bottom:4px;scrollbar-width:thin}.sidebar nav a{flex:0 0 auto;white-space:nowrap;padding:10px 13px;font-size:13px}.sidebar-note{display:none}.page-head{margin:7px 2px 23px}.page-head h1{font-size:43px;letter-spacing:-1.4px}.lead{font-size:18px}.hero-panel img{height:340px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.three .card{padding:21px}.grid.three .card h3{font-size:20px}.grid.three .card p{font-size:15px}.calendar{grid-template-columns:repeat(4,minmax(0,1fr))}.filters{grid-template-columns:1.4fr 1fr 1fr}.filters label:first-child{grid-column:auto}.profile-top{gap:12px}.avatar{width:45px;height:45px;flex-basis:45px;font-size:18px}.profile-top h3{font-size:18px}.demo-footer{padding:24px 2px;flex-direction:column;gap:8px}}
@media(max-width:600px){.app-shell{padding:0 16px}.topbar{padding-top:21px}.brand{font-size:21px;letter-spacing:-.6px}.site-link{font-size:13px}.roles a{font-size:14px;padding:11px 13px}.sidebar{padding:12px 9px;border-radius:17px}.sidebar nav a{font-size:12px;padding:9px 12px}.layout{gap:19px}.page-head{display:block;margin:8px 2px 24px}.page-head h1{font-size:35px;letter-spacing:-1.2px;line-height:1.12;margin-bottom:13px;overflow-wrap:anywhere}.page-head .eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:12px}.lead{font-size:16px;line-height:1.55}.head-note{margin-top:14px}.page-head>.button{margin-top:18px}.hero-panel{grid-template-columns:1fr;border-radius:25px;margin-bottom:21px}.hero-copy{padding:27px 25px 23px}.hero-copy h2{font-size:33px;line-height:1.1;letter-spacing:-1px}.hero-copy p{font-size:17px;line-height:1.5;margin-bottom:23px}.hero-copy .button{width:100%;font-size:17px;min-height:51px}.hero-panel img{height:235px}.hero-panel.portrait img{height:270px}.grid.two,.grid.three{grid-template-columns:minmax(0,1fr);gap:16px}.card,.grid.three .card{padding:25px;border-radius:23px}.card h2{font-size:27px}.card h3,.grid.three .card h3{font-size:22px}.card p,.grid.three .card p{font-size:16px;line-height:1.5}.card .number{font-size:41px}.button{font-size:16px;min-height:49px;padding:11px 21px}.button.small{font-size:14px;min-height:42px;padding:8px 16px}.button-row{gap:12px}.card .button-row>.button{flex:1}.badge{font-size:10px}.section-title{font-size:26px;line-height:1.2;margin:28px 2px 18px}.list-row{padding:18px 17px;align-items:flex-start;flex-direction:column;gap:14px}.list-row h3{font-size:19px;line-height:1.25}.list-row p{font-size:14px;line-height:1.45}.list-row .right{justify-content:flex-start;width:100%;gap:10px}.list-row .right .button{flex:1}.form{gap:18px}.form label{font-size:14px}.form input,.form select,.form textarea{font-size:16px;padding:12px 14px}.form .button{width:100%;justify-self:stretch}.check-row{font-size:16px!important}.steps{flex-direction:column;gap:10px;margin-top:21px}.steps li{padding:14px 18px;font-size:14px;display:flex;align-items:center;gap:17px}.steps strong{font-size:24px;margin:0}.inline-image{height:210px}.gift-image{width:235px;height:235px}.choice{padding:23px}.choice strong{font-size:20px}.choice span{font-size:15px}.filters{grid-template-columns:1fr 1fr;gap:13px;margin-top:21px}.filters label:first-child{grid-column:1/-1}.filters label{font-size:11px}.filters input,.filters select{font-size:13px;padding:12px}.library-summary{font-size:12px;gap:13px;align-items:flex-start;line-height:1.4}.research-notice{font-size:12px;line-height:1.55;padding:16px 18px}.table-wrap{border-radius:18px}table{min-width:620px}th{font-size:10px;padding:13px}td{padding:15px 13px;font-size:13px}td strong{font-size:14px}td small{font-size:11px}.table-wrap:after{content:'Таблицу можно прокручивать вправо';display:block;position:sticky;left:0;padding:11px 14px;font-size:10px;color:#9a7d8b;background:#fff8f1}.pagination{font-size:12px;gap:11px}.pagination .button{font-size:12px;padding:8px 15px;min-height:39px}.profile-top{gap:15px}.avatar{width:55px;height:55px;flex-basis:55px;font-size:22px}.profile-top h3{font-size:22px}.profile-top p{font-size:13px}.profile-card .evidence{font-size:14px;line-height:1.5}.calendar{grid-template-columns:1fr 1fr;gap:12px}.day{padding:18px 15px;min-height:199px;border-radius:19px}.day>strong{font-size:13px}.day h3{font-size:17px;line-height:1.25}.day p{font-size:12px}.day .button{font-size:12px;min-height:36px}.editor-tabs{width:100%;margin-bottom:22px}.editor-tabs button{flex:1;font-size:15px;padding:11px 15px}.timeline li{grid-template-columns:66px 1fr;gap:15px;padding:23px 0}.timeline strong{font-size:25px}.timeline h3{font-size:21px}.timeline p{font-size:16px}.mini-grid{grid-template-columns:1fr 1fr;gap:13px}.mini-grid .card{padding:20px}.mini-grid .card h3{font-size:18px}.mini-grid .card p{font-size:14px}.profile-lines{font-size:16px}.profile-lines h3{font-size:22px}.source-list{font-size:13px;padding-left:18px}.raw-data{font-size:11px}.raw-data dl{grid-template-columns:1fr;gap:5px}.raw-data dd{margin-bottom:12px}.modal-shell{padding:24px}.modal-close{margin:-9px -12px 16px auto}dialog{border-radius:25px;width:calc(100% - 26px);max-height:calc(100svh - 26px)}dialog h2{font-size:29px;line-height:1.13;letter-spacing:-.8px;overflow-wrap:anywhere}dialog>div>div>p{font-size:16px}.detail-kv{grid-template-columns:1fr 1fr;gap:11px}.detail-kv>div{padding:14px}.detail-kv strong{font-size:16px}.detail-kv small{font-size:10px}.toast{bottom:19px;font-size:13px;padding:14px 19px}.note{font-size:12px;line-height:1.5}.callout{font-size:15px;padding:23px}.empty-note{padding:25px;font-size:16px;line-height:1.55}}
@media(max-width:360px){.brand{font-size:19px}.roles a{font-size:13px}.page-head h1{font-size:32px}.hero-copy,.card,.grid.three .card{padding:23px}.filters{grid-template-columns:1fr}.filters label:first-child{grid-column:auto}.mini-grid{grid-template-columns:1fr}.calendar{gap:10px}.day h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}html{scroll-behavior:auto}}
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:0 0 24px;color:var(--muted,#75646c);font-size:14px;line-height:1.6}.breadcrumbs a{color:var(--berry,#95083e);text-underline-offset:3px}.breadcrumbs [aria-current]{color:var(--ink,#24161e)}
/* Route focus is semantic, not a decorative frame around the whole screen. */
#main:focus{outline:none}
/* Keep intrinsic content inside the layout; only tables/nav scroll locally. */
.layout>*,.sidebar,.sidebar nav,#view,.page-head>div,.grid>*,.form,.form label,.filters label,.list-row>*,.profile-top>div,.detail-kv>div,.raw-data dt,.raw-data dd{min-width:0;max-width:100%}
.sidebar nav{overscroll-behavior-x:contain}
.form,.form label{grid-template-columns:minmax(0,1fr)}
.form input,.form select,.form textarea,.filters input,.filters select{max-width:100%}
.table-wrap{width:100%;max-width:100%;min-width:0;overscroll-behavior-x:contain}
.page-head,.card,.list-row,.callout,.research-notice,.empty-note,.profile-top,.detail-kv,.raw-data,.source-list{overflow-wrap:anywhere}
.list-row .right,.button-row{min-width:0;max-width:100%}
.button-row>*{max-width:100%}.button{white-space:normal;overflow-wrap:anywhere}
.editor-tabs{flex-wrap:wrap;gap:4px}.editor-tabs button{min-width:0;max-width:100%;flex:1 1 115px;overflow-wrap:anywhere}
.badge{max-width:100%}
@media(max-width:900px){.sidebar{width:100%}.sidebar nav{width:100%}.filters{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr))}.roles{min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.roles a{min-width:0;padding-left:6px;padding-right:6px}}
@media(max-width:600px){.grid.two,.grid.three{grid-template-columns:minmax(0,1fr)}.filters,.calendar,.mini-grid,.detail-kv{grid-template-columns:repeat(2,minmax(0,1fr))}.filters label:first-child{grid-column:1/-1}.badge{white-space:normal;overflow-wrap:anywhere}.page-head>.button{max-width:100%}.library-summary{flex-wrap:wrap}.timeline li{grid-template-columns:58px minmax(0,1fr)}.raw-data dl{grid-template-columns:minmax(0,1fr)}.roles a{font-size:13px}.topbar .brand{white-space:normal;overflow-wrap:anywhere}.pagination{flex-wrap:wrap}}
@media(max-width:360px){.filters,.mini-grid,.detail-kv{grid-template-columns:minmax(0,1fr)}.roles a{font-size:12px}.card,.grid.three .card{padding:21px}.modal-shell{padding:21px}}

/* Quiet role selection and reset controls after removal of the status banner. */
.role-switcher{min-width:0;max-width:100%;display:grid;gap:6px}.role-switcher-label{font-size:12px;color:#927583;text-align:center}.footer-action{border:0;background:none;padding:0;color:var(--berry);font-size:12px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;cursor:pointer;align-self:flex-start}.demo-footer{flex-wrap:wrap}.demo-footer>*{min-width:0;max-width:100%}
@media(max-width:900px){.role-switcher{order:2;width:100%}.role-switcher .roles{order:initial}}

/* Show the complete approved artwork with a real gap from adjacent text. */
.hero-panel{gap:28px;padding:28px;align-items:center;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.hero-panel .hero-copy{padding:0;min-width:0}
.hero-panel>img{height:auto;width:100%;max-width:100%;object-fit:contain;object-position:center;border-radius:20px;align-self:center}
.hero-panel.portrait>img{width:min(100%,280px);height:auto;justify-self:center}
.inline-image{width:100%;height:auto;object-fit:contain;object-position:center;margin-bottom:24px}
.inline-image.portrait{height:auto;width:min(100%,260px);margin:0 auto 24px;object-fit:contain;object-position:center}
.gift-image{width:min(100%,280px);height:auto;aspect-ratio:1;object-fit:contain;object-position:center;margin:0 auto 24px}
@media(max-width:900px){.hero-panel{grid-template-columns:minmax(0,1fr);gap:26px}.hero-panel>img{max-width:600px;justify-self:center}.hero-panel.portrait>img{max-width:250px}}
@media(max-width:600px){.hero-panel{padding:24px;gap:24px}.hero-panel>img{height:auto}.hero-panel.portrait>img{height:auto;max-width:230px}.inline-image.portrait{max-width:230px}.gift-image{width:min(100%,250px)}}
/* Readable action labels and week cards at narrow and intermediate widths. */
.calendar{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px}.day{min-width:0;padding:20px;min-height:225px}.day>strong{font-size:14px;line-height:1.4}.day h3{font-size:17px;line-height:1.4;letter-spacing:normal;word-break:normal;hyphens:none}.day p{font-size:14px;line-height:1.5}.day .button{font-size:14px;min-height:43px;padding:10px 15px}
@media(max-width:600px){.card .button-row{flex-direction:column;align-items:stretch}.card .button-row>.button{flex:none;width:100%;min-width:0;word-break:normal;hyphens:none}.calendar{grid-template-columns:minmax(0,1fr);gap:16px}.day{min-height:190px;padding:23px}.day>strong{font-size:16px}.day h3{font-size:19px}.day .button{align-self:flex-start;width:auto;min-width:125px;font-size:15px}}
