/* WB card composition. All colours follow the shared light / dark palette. */
.groups-screen,.groups-modal{--gr-radius:13px;--gr-accent:var(--blue);color:var(--ink);min-width:0}
.groups-screen *,.groups-modal *{box-sizing:border-box}
.groups-screen .icon,.groups-modal .icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.groups-screen .btn,.groups-modal .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;font-size:12px;font-weight:550;line-height:1.4;max-width:100%}
.groups-screen :is(button,a,input,select,summary):focus-visible,.groups-modal :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.groups-screen button:disabled,.groups-modal button:disabled{opacity:.46;cursor:default}
.gr-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:24px}
.gr-eyebrow{font-size:10px;letter-spacing:.095em;font-weight:650;color:var(--blue)}
.gr-page-head h1{font-size:30px;font-weight:650;letter-spacing:-.045em;line-height:1.2;margin:7px 0 9px}
.gr-page-head p{font-size:12px;line-height:1.7;color:var(--muted);max-width:570px}
.gr-head-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding-top:17px;flex:none}
.gr-overview{display:flex;align-items:center;gap:36px;padding:19px 23px;margin-bottom:20px;border:1px solid var(--line);border-radius:var(--gr-radius);background:var(--surface)}
.gr-overview>div{display:flex;align-items:baseline;gap:9px;min-width:0}
.gr-overview>div+div{padding-left:28px;border-left:1px solid var(--line)}
.gr-overview strong{font-size:29px;line-height:1.15;letter-spacing:-.055em;font-weight:650;font-variant-numeric:tabular-nums}
.gr-overview>div>span{font-size:11px;line-height:1.5;color:var(--muted);max-width:95px}
.gr-overview>p{display:flex;flex-direction:column;align-items:flex-end;gap:7px;margin-left:auto;text-align:right}
.gr-overview>p>span:last-child{font-size:10px;color:var(--muted)}
.gr-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:4px 8px;max-width:100%;border:1px solid var(--line);border-radius:6px;background:var(--surface-soft);color:var(--muted);font-size:10px;font-weight:550;line-height:1.35;overflow-wrap:anywhere}
.gr-badge .icon{width:12px;height:12px;stroke-width:2}
.gr-badge-good{color:var(--green);background:var(--green-soft);border-color:transparent}
.gr-badge-blue{color:var(--blue);background:var(--blue-soft);border-color:transparent}
.gr-badge-warn{color:var(--amber);background:var(--amber-soft);border-color:transparent}
.gr-badge-bad{color:var(--red);background:var(--red-soft);border-color:transparent}
.gr-notice{display:flex;align-items:center;gap:12px;padding:13px 16px;margin:0 0 18px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:11px;line-height:1.65;min-width:0}
.gr-notice>.icon{width:18px;height:18px;align-self:flex-start;margin-top:2px}
.gr-notice>div,.gr-notice>p{min-width:0;flex:1;overflow-wrap:anywhere}
.gr-notice strong{display:block;font-size:12px;font-weight:600;margin:0 0 3px}
.gr-notice p{margin:0;font-size:11px;line-height:1.65}
.gr-notice .btn{flex:none;min-height:32px;font-size:11px;background:var(--surface);color:inherit;border-color:currentColor}
.gr-notice-blue{background:var(--blue-soft);color:var(--blue);border-color:transparent}
.gr-notice-warn{background:var(--amber-soft);color:var(--amber);border-color:transparent}
.gr-notice-error{background:var(--red-soft);color:var(--red);border-color:transparent}
.gr-notice-neutral{background:var(--surface-soft)}
.gr-tabs{display:flex;align-items:center;gap:27px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-x:auto;scrollbar-width:thin}
.gr-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 0 14px;color:var(--muted);border:0;border-bottom:2px solid transparent;font-size:12px;line-height:1.5;white-space:nowrap;font-weight:500;background:none}
.gr-tabs button>span{min-width:20px;padding:1px 5px;border-radius:5px;background:var(--surface-soft);font-size:10px;font-variant-numeric:tabular-nums}
.gr-tabs button.active{border-bottom-color:var(--blue);color:var(--ink);font-weight:650}
.gr-tabs button.active>span{background:var(--blue-soft);color:var(--blue)}
.gr-toolbar{display:flex;gap:9px;align-items:center;margin-bottom:15px;min-width:0}
.groups-screen :is(input:not([type=checkbox]),select),.groups-modal :is(input:not([type=checkbox]),select){min-width:0;max-width:100%;min-height:39px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:9px 11px;font-family:inherit;font-size:12px;line-height:1.4}
.groups-screen input::placeholder,.groups-modal input::placeholder{color:var(--muted);opacity:1}
.gr-search{display:flex;align-items:center;position:relative;min-width:120px;flex:1}
.gr-search>.icon{position:absolute;left:12px;color:var(--muted);pointer-events:none}
.gr-search input:not([type=checkbox]){width:100%;padding-left:38px}
.gr-toolbar select{width:190px;max-width:23%;flex:0 1 auto}
.gr-toolbar .gr-text-button{margin-left:3px}
.gr-text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:var(--blue);font-size:11px;font-weight:500;padding:5px 0;text-align:left;line-height:1.4;white-space:normal}
.gr-text-button:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}
.gr-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:33px;height:33px;min-width:33px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);padding:0}
.gr-icon-button:hover:not(:disabled){background:var(--surface-soft);color:var(--blue)}
.gr-list-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);line-height:1.6;margin:0 1px 11px}
.gr-list-caption strong{color:var(--ink);font-weight:600}
.gr-group-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.gr-group{border:1px solid var(--line);background:var(--surface);border-radius:var(--gr-radius);min-width:0;overflow:hidden;transition:border-color .16s ease}
.gr-group:hover{border-color:color-mix(in srgb,var(--line) 65%,var(--blue) 35%)}
.gr-group.is-open{border-color:color-mix(in srgb,var(--line) 45%,var(--blue) 55%)}
.gr-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 19px 13px}
.gr-group-heading{min-width:0}
.gr-group-label{display:flex;gap:7px;align-items:center;font-size:9px;letter-spacing:.085em;font-weight:600;line-height:1.5;color:var(--muted)}
.gr-group-label>span{font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:.01em;color:var(--blue);font-weight:550;overflow-wrap:anywhere}
.gr-group-heading h2{font-size:16px;letter-spacing:-.02em;font-weight:600;line-height:1.4;margin:4px 0 3px;overflow-wrap:anywhere}
.gr-group-heading p{font-size:10px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere;max-width:550px}
.gr-group-meta{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding-top:3px}
.gr-group-rating{display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap;margin-top:9px;min-width:0;font-size:10px;line-height:1.5}
.gr-group-rating-label,.gr-rating-coverage,.gr-rating-missing{color:var(--muted)}
.gr-group-rating-label{font-weight:500}.gr-group-rating .gr-rating-score{font-size:14px}
.gr-ratings-note{font-size:10px;line-height:1.6;color:var(--muted);margin:0 1px 13px;max-width:720px}
.gr-rating{display:inline-flex;align-items:center;gap:4px 5px;flex-wrap:wrap;font-size:10px;line-height:1.5;min-width:0;max-width:100%}
.gr-rating-score{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:var(--ink);font-variant-numeric:tabular-nums}
.gr-rating-score>strong{font-size:inherit;font-weight:650;line-height:inherit}.gr-rating-star{color:var(--amber);font-size:1.15em;line-height:1}
.gr-rating-source,.gr-rating.is-unavailable{color:var(--muted)}.gr-rating-source{font-size:9px}
.gr-rating-state{font-size:9px;color:var(--amber);line-height:1.4}
.gr-rating-compact{font-size:10px;gap:3px 4px}.gr-rating-compact .gr-rating-source,.gr-rating-compact .gr-rating-state{font-size:8px}
.gr-single .gr-rating{margin-top:5px}.gr-picker-product .gr-rating{margin:1px 0}
.gr-filmstrip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:11px;padding:0 19px 17px;max-width:800px;min-width:0}
.gr-film-item{display:flex;flex-direction:column;min-width:0;gap:4px}
.gr-photo{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:57px;height:auto;aspect-ratio:3/4;background:var(--surface-soft);border-radius:7px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.gr-photo img{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;object-fit:contain;background:#fff;min-width:0}
.gr-photo img[hidden]{display:none}
.gr-photo-fallback{display:flex;position:absolute;inset:0;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:var(--muted)}
.gr-photo-fallback .icon{width:22px;height:22px;opacity:.48}
.gr-photo.is-missing:after{content:'Нет фото';font-size:8px;color:var(--muted);position:absolute;bottom:10px;letter-spacing:.01em}
.gr-photo.is-missing .gr-photo-fallback{padding-bottom:10px}
.gr-film-item .gr-photo{width:100%;border-radius:8px;background:var(--surface-soft)}
.gr-film-item>strong{font-size:10px;font-weight:600;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.gr-film-item>span:last-child{font-size:9px;color:var(--muted);line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gr-film-more{display:flex;flex-direction:column;justify-content:center;align-items:center;align-self:start;width:100%;height:auto;aspect-ratio:3/4;gap:5px;border:1px dashed var(--line);border-radius:8px;background:var(--surface-soft);color:var(--muted)}
.gr-film-more b{font-size:20px;font-weight:500;color:var(--ink);letter-spacing:-.05em}.gr-film-more span{font-size:10px}
.gr-film-more.is-mobile-only,.gr-film-count-small{display:none}
.gr-group-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 19px;border-top:1px solid var(--line);background:var(--surface-soft)}
.gr-group-stamp{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;line-height:1.5}
.gr-group-stamp .icon{width:13px;height:13px}
.gr-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none;flex-wrap:wrap}
.gr-actions .btn{min-height:32px;font-size:10px;padding:6px 10px;background:var(--surface)}
.gr-actions .icon{width:13px;height:13px}
.gr-actions .gr-add-button{color:var(--blue);border-color:color-mix(in srgb,var(--line) 60%,var(--blue) 40%)}
.gr-group.is-open [data-gr-action=expand]>.icon{transform:rotate(180deg)}
.gr-composition{border-top:1px solid var(--line);padding:16px 19px 18px;background:var(--surface)}
.gr-composition-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.gr-composition-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.gr-composition-head strong{font-size:12px;font-weight:600}.gr-composition-head span{font-size:10px;color:var(--muted);line-height:1.5}
.gr-composition-head .btn{min-height:32px;font-size:10px;padding:6px 10px}
.gr-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.gr-product-tile{display:flex;align-items:center;gap:10px;min-width:0;padding:11px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.gr-product-tile.is-selected{background:var(--blue-soft);border-color:var(--blue)}
.gr-product-pick{display:flex;align-items:center;gap:10px;min-width:0;flex:1;cursor:pointer}
.gr-product-pick>input{flex:none;margin:0}.gr-product-pick>.gr-photo{width:42px;border-radius:5px}
.gr-product-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.gr-product-copy>strong{font-size:11px;line-height:1.5;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gr-product-copy>small{font-size:9px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.gr-product-facts{display:flex;gap:3px 8px;flex-wrap:wrap;align-items:center;font-size:9px;line-height:1.6;color:var(--muted)}
.gr-product-facts>span:first-child{color:var(--ink)}
.gr-product-tile>.gr-text-button{font-size:10px;align-self:flex-end;flex:none}
.gr-more{display:flex;align-items:center;justify-content:center;gap:13px;margin:22px 0 0}.gr-more>span{font-size:11px;color:var(--muted)}
.gr-singles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.gr-single{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:11px}
.gr-single>div{min-width:0;flex:1}.gr-single>.gr-photo{width:59px}
.gr-single-category{display:block;font-size:9px;color:var(--blue);line-height:1.5;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gr-single h2{font-size:12px;font-weight:600;line-height:1.5;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gr-single p,.gr-single small{display:block;font-size:9px;color:var(--muted);line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.gr-single .gr-product-facts{margin-top:5px}.gr-single>.gr-icon-button{width:27px;min-width:27px;height:27px;color:var(--blue)}.gr-single>.gr-icon-button .icon{width:14px;height:14px}
.gr-single .gr-badge{margin-top:7px;font-size:9px;text-align:left;justify-content:flex-start}
.gr-unknown-heading{margin:24px 0 12px}.gr-unknown-heading h2{font-size:13px;font-weight:600;letter-spacing:0;line-height:1.5}.gr-unknown-heading h2>span{font-size:10px;color:var(--amber);padding:2px 6px;margin-left:5px;border-radius:5px;background:var(--amber-soft)}.gr-unknown-heading p{font-size:11px;color:var(--muted);line-height:1.7;margin-top:5px}
.gr-empty{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;text-align:center;border:1px solid var(--line);border-radius:var(--gr-radius);background:var(--surface);padding:36px 24px}
.gr-empty h2{font-size:19px;font-weight:600;letter-spacing:-.025em;margin:0}
.gr-empty p{max-width:500px;color:var(--muted);font-size:12px;line-height:1.8;margin:0}
.gr-empty .btn{margin-top:7px}
.gr-empty-art{width:104px;height:80px;position:relative;margin-bottom:7px;display:flex;align-items:center;justify-content:center}
.gr-empty-art>span,.gr-empty-art>i{position:absolute;display:flex;align-items:center;justify-content:center;width:47px;height:58px;border-radius:9px;border:1px solid var(--line);background:var(--surface-soft);transform:rotate(-13deg) translateX(-23px)}
.gr-empty-art>span{z-index:2;transform:none;background:var(--blue-soft);color:var(--blue);border-color:color-mix(in srgb,var(--blue) 25%,var(--line));box-shadow:0 5px 12px #00000008}
.gr-empty-art>span .icon{width:23px;height:23px}.gr-empty-art>i:last-child{transform:rotate(13deg) translateX(23px)}
.gr-page-foot{display:flex;align-items:center;gap:7px;font-size:10px;line-height:1.7;color:var(--muted);padding:22px 1px 0}.gr-page-foot>.icon{width:13px;height:13px}
.gr-history{border:1px solid var(--line);border-radius:var(--gr-radius);background:var(--surface);overflow:hidden}
.gr-history-item+.gr-history-item{border-top:1px solid var(--line)}
.gr-history-main{display:flex;align-items:center;gap:13px;padding:16px 18px}
.gr-history-icon{display:grid;place-items:center;width:35px;height:35px;background:var(--surface-soft);border:1px solid var(--line);border-radius:9px;flex:none;color:var(--blue)}
.gr-history-main>div{min-width:0;flex:1}.gr-history-main h2{font-size:12px;font-weight:600;letter-spacing:0;line-height:1.5;overflow-wrap:anywhere}.gr-history-main p{font-size:10px;color:var(--muted);margin-top:4px}
.gr-history-detail{padding:0 18px 18px}.gr-history-detail>.btn{margin-top:15px}
.gr-skeleton-list{display:grid;gap:14px}.gr-skeleton{padding:21px;border:1px solid var(--line);border-radius:var(--gr-radius);background:var(--surface)}
.gr-skeleton>i{display:block;width:150px;height:12px;border-radius:5px;background:var(--surface-soft)}.gr-skeleton>i+i{width:220px;height:17px;margin-top:10px}
.gr-skeleton>div{display:flex;gap:11px;margin-top:22px}.gr-skeleton b{display:block;width:90px;aspect-ratio:3/4;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;position:relative;overflow:hidden}
.gr-skeleton b:after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent,color-mix(in srgb,var(--surface) 75%,transparent),transparent);transform:translateX(-100%);animation:gr-shimmer 1.6s ease-in-out infinite}
@keyframes gr-shimmer{to{transform:translateX(100%)}}

/* The existing native dialog provides focus trapping and Escape support. */
.groups-modal{width:min(1120px,calc(100vw - 48px));max-width:1120px;max-height:calc(100svh - 40px);padding:0;background:var(--surface);color:var(--ink);border-radius:14px}
.groups-modal .modal-head{padding:18px 22px;margin:0;border-bottom:1px solid var(--line)}
.groups-modal .modal-head h2{font-size:17px;font-weight:600;line-height:1.45;overflow-wrap:anywhere;max-width:calc(100% - 35px)}
.groups-modal .modal-body{padding:22px;max-height:calc(100svh - 214px);overflow:auto;scrollbar-width:thin}
.groups-modal .modal-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 22px;border-top:1px solid var(--line);margin:0;background:var(--surface)}
.gr-editor{min-width:0}.gr-editor-intro{margin-bottom:21px}.gr-step-label{font-size:9px;letter-spacing:.08em;font-weight:650;color:var(--blue)}
.gr-editor-intro h3{font-size:19px;letter-spacing:-.025em;font-weight:600;line-height:1.4;margin:7px 0 7px}
.gr-editor-intro p{font-size:12px;color:var(--muted);line-height:1.7;max-width:800px}
.gr-picker-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:22px;align-items:start;min-width:0}
.gr-picker-catalog{min-width:0}.gr-picker-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gr-picker-filters>*{width:100%;min-width:0}
.gr-picker-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:44px;padding:10px 0;font-size:10px;color:var(--muted)}
.gr-picker-toolbar>span{margin-right:auto}.gr-picker-toolbar b{font-weight:600;color:var(--ink)}
.gr-picker-toolbar>label{display:flex;align-items:center;gap:5px;cursor:pointer}.gr-picker-toolbar input{width:13px;height:13px;margin:0}
.gr-picker-toolbar>.gr-text-button{font-size:10px}
.gr-picker-list{border:1px solid var(--line);border-radius:9px;max-height:400px;overflow:auto;scrollbar-width:thin;min-height:145px;background:var(--surface)}
.gr-picker-row{display:flex;align-items:center;gap:11px;padding:12px;cursor:pointer;min-width:0;background:var(--surface);transition:background .12s ease}
.gr-picker-row+.gr-picker-row{border-top:1px solid var(--line)}.gr-picker-row:hover{background:var(--surface-soft)}.gr-picker-row.is-selected{background:var(--blue-soft)}
.gr-picker-row.is-unavailable{cursor:default}.gr-picker-row.is-unavailable .gr-photo{opacity:.65}
.gr-picker-row>input{width:16px;height:16px;margin:0;flex:none}.gr-picker-row>.gr-photo{width:48px;border-radius:6px}
.gr-picker-product{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.gr-picker-product>strong{font-size:11px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gr-picker-product>small{font-size:9px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.gr-origin{display:inline-flex;align-items:center;gap:4px;font-size:9px;line-height:1.5;color:var(--muted);margin-top:2px}.gr-origin>.icon{width:11px;height:11px}.gr-origin.is-move{color:var(--amber)}
.gr-pick-reason{font-size:9px;color:var(--muted);text-align:right;max-width:95px;line-height:1.6;overflow-wrap:anywhere}
.gr-pick-mark{display:flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none;border-radius:50%;background:var(--blue);color:var(--surface)}.gr-pick-mark .icon{width:13px;height:13px;stroke-width:2}
.gr-picker-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:38px 20px;min-height:170px;font-size:11px;color:var(--muted)}
.gr-picker-empty>.icon{width:23px;height:23px;color:var(--blue)}.gr-picker-empty>strong{font-size:12px;color:var(--ink);font-weight:600}.gr-picker-empty>span{max-width:290px;font-size:11px;line-height:1.7}
.gr-pagination{display:flex;align-items:center;gap:7px;padding:12px 0 0;color:var(--muted);font-size:10px}.gr-pagination>span{margin-right:auto}.gr-pagination .btn{font-size:10px;min-height:31px;padding:5px 10px}
.gr-pick-summary{border:1px solid var(--line);background:var(--surface-soft);border-radius:11px;padding:17px;min-width:0;position:sticky;top:0}
.gr-small-label{font-size:9px;font-weight:600;letter-spacing:.07em;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.gr-selection-total{display:flex;align-items:center;gap:11px;margin:11px 0 12px}.gr-selection-total>strong{font-size:36px;font-weight:600;letter-spacing:-.06em;line-height:1.1;color:var(--blue);font-variant-numeric:tabular-nums}
.gr-selection-total>span{font-size:10px;color:var(--muted);line-height:1.6;max-width:120px}
.gr-target-note{font-size:10px;line-height:1.7;color:var(--muted);margin:-2px 0 12px;overflow-wrap:anywhere}
.gr-selected-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0 9px;border-top:1px solid var(--line)}.gr-selected-heading>strong{font-size:10px;font-weight:600}.gr-selected-heading>.gr-text-button{font-size:10px;padding:0}
.gr-selected-list{max-height:260px;overflow:auto;scrollbar-width:thin}.gr-selected-list>div{display:flex;align-items:center;gap:7px;padding:7px 0;min-width:0}.gr-selected-list>div+div{border-top:1px solid var(--line)}
.gr-selected-list .gr-photo{width:30px;border-radius:4px}.gr-selected-list .gr-photo-fallback>.icon{width:15px;height:15px}.gr-selected-list .gr-photo.is-missing:after{display:none}.gr-selected-list .gr-photo.is-missing .gr-photo-fallback{padding:0}
.gr-selected-list>div>span:nth-child(2){flex:1;min-width:0}.gr-selected-list strong,.gr-selected-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6}.gr-selected-list strong{font-size:10px;font-weight:600}.gr-selected-list small{font-size:9px;color:var(--muted)}
.gr-selected-list .gr-icon-button{width:22px;min-width:22px;height:24px;border:0;background:transparent}.gr-selected-list .gr-icon-button>.icon{width:12px;height:12px}
.gr-selection-placeholder{font-size:11px;line-height:1.8;color:var(--muted);padding:18px 0;max-width:170px}
.gr-selection-hint{display:flex;align-items:flex-start;gap:6px;font-size:9px;line-height:1.7;color:var(--muted);padding:13px 0 0;margin-top:11px;border-top:1px solid var(--line)}.gr-selection-hint>.icon{width:12px;height:12px;margin-top:2px}
.gr-footer-note{font-size:10px;color:var(--muted);line-height:1.7;max-width:390px;flex:1;min-width:160px}
.gr-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.gr-dialog-actions>.btn{font-size:11px;min-height:38px;white-space:normal}
.gr-comparison{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:12px;align-items:start}
.gr-comparison>section{min-width:0}.gr-comparison h4,.gr-change-list h4{font-size:11px;font-weight:600;line-height:1.5;color:var(--muted);margin:0 0 10px}
.gr-comparison>section:last-child>h4{color:var(--blue)}.gr-comparison-arrow{display:grid;place-items:center;color:var(--muted);margin-top:43px}
.gr-preview-group{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}.gr-preview-group+.gr-preview-group{margin-top:9px}
.gr-preview-group>summary{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 12px;cursor:pointer;list-style:none;background:var(--surface-soft)}.gr-preview-group>summary::-webkit-details-marker{display:none}
.gr-preview-group>summary>span{display:flex;align-items:center;gap:7px;min-width:0;font-size:9px;color:var(--muted);line-height:1.5}.gr-preview-group>summary>span:last-child{flex:none;text-align:right}
.gr-preview-group summary strong{font-size:11px;font-weight:600;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}.gr-preview-group summary .icon{width:13px;height:13px}.gr-preview-group[open] summary>span:last-child>.icon{transform:rotate(180deg)}
.gr-preview-members{max-height:235px;overflow:auto;scrollbar-width:thin;padding:3px 11px}
.gr-preview-members>div{display:flex;align-items:center;gap:9px;padding:8px 0;min-width:0}.gr-preview-members>div+div{border-top:1px solid var(--line)}.gr-preview-members>div>span:last-child{flex:1;min-width:0}
.gr-preview-members .gr-photo{width:33px;border-radius:4px}.gr-preview-members .gr-photo.is-missing:after{display:none}.gr-preview-members .gr-photo.is-missing .gr-photo-fallback{padding:0}.gr-preview-members .gr-photo .icon{width:17px;height:17px}
.gr-preview-members strong,.gr-preview-members small{display:block;font-size:10px;line-height:1.6;overflow-wrap:anywhere}.gr-preview-members strong{font-weight:550}.gr-preview-members small{font-size:9px;color:var(--muted)}.gr-preview-members .is-affected strong{color:var(--blue)}
.gr-change-list{margin-top:21px;border-top:1px solid var(--line);padding-top:17px}.gr-change-list>div{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 0;border-bottom:1px solid var(--line)}.gr-change-list>div:last-child{border-bottom:0}
.gr-change-list .gr-photo{width:33px;border-radius:4px}.gr-change-list .gr-photo.is-missing:after{display:none}.gr-change-list .gr-photo.is-missing .gr-photo-fallback{padding:0}.gr-change-list .gr-photo .icon{width:17px;height:17px}
.gr-change-list>div>span:nth-child(2){flex:1;min-width:0}.gr-change-list strong,.gr-change-list small{display:block;font-size:10px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}.gr-change-list small{font-size:9px;color:var(--muted);font-weight:400}
.gr-change-route{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:10px;line-height:1.6;color:var(--muted);max-width:55%}.gr-change-route>strong{color:var(--blue)}.gr-change-route>.icon{width:14px;height:14px}
.gr-review-note{display:flex;align-items:flex-start;gap:7px;color:var(--muted);font-size:10px;line-height:1.8;margin-top:18px}.gr-review-note>.icon{width:13px;height:13px;margin-top:3px}
.gr-muted{color:var(--muted);font-size:11px;padding:12px;line-height:1.6}
.gr-operation-status{display:flex;align-items:flex-start;gap:12px;padding:17px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);margin-bottom:18px;color:var(--muted)}
.gr-operation-status>span{display:grid;place-items:center;width:32px;height:32px;border:1px solid currentColor;border-radius:50%;flex:none}.gr-operation-status>span>.icon{width:16px;height:16px}
.gr-operation-status>div{flex:1;min-width:0}.gr-operation-status strong{display:block;font-size:15px;font-weight:600;line-height:1.5;margin:0 0 4px}.gr-operation-status p{font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.gr-operation-good{background:var(--green-soft);color:var(--green);border-color:transparent}.gr-operation-warn{background:var(--amber-soft);color:var(--amber);border-color:transparent}.gr-operation-bad{background:var(--red-soft);color:var(--red);border-color:transparent}.gr-operation-blue{background:var(--blue-soft);color:var(--blue);border-color:transparent}
.gr-result-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.gr-result-meta strong{font-size:12px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.gr-result-meta span{font-size:10px;color:var(--muted);line-height:1.6}
.gr-result-intro{display:flex;align-items:center;flex-direction:column;gap:12px;text-align:center;padding:16px 22px 26px}.gr-result-intro>.icon{width:35px;height:35px;color:var(--amber)}.gr-result-intro h3{font-size:20px;font-weight:600;line-height:1.5}.gr-result-intro p{max-width:600px;color:var(--muted);font-size:12px;line-height:1.8}

@media(min-width:1550px){.gr-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.gr-group.is-open{grid-column:1/-1}.gr-group.is-open .gr-filmstrip{max-width:800px}.gr-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gr-filmstrip{gap:8px}.gr-singles-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1170px){.gr-page-head{gap:16px}.gr-head-actions{padding-top:10px;max-width:340px}.gr-page-head p{max-width:400px}.gr-overview{gap:22px;padding:18px}.gr-overview>div+div{padding-left:21px}.gr-overview strong{font-size:26px}.gr-overview>div>span{font-size:10px}.gr-overview>p>span:last-child{max-width:160px}.gr-singles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gr-product-tile{flex-wrap:wrap}.gr-product-tile>.gr-text-button{margin-left:auto;padding:0}.gr-picker-layout{grid-template-columns:minmax(0,1fr) 215px;gap:15px}.gr-pick-summary{padding:14px}.gr-pick-reason{max-width:75px}.gr-toolbar select{width:170px}}
@media(max-width:760px){
  .gr-page-head{flex-direction:column;gap:15px;margin-bottom:18px}.gr-page-head h1{font-size:28px;margin:6px 0 8px}.gr-page-head p{max-width:none;font-size:11px}.gr-head-actions{width:100%;max-width:none;padding:0;justify-content:stretch}.gr-head-actions>.btn{flex:1;min-height:41px;font-size:11px;padding:9px 10px}.gr-head-actions>.btn:last-child{flex:1.2}
  .gr-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:16px 13px 12px;margin-bottom:16px}.gr-overview>div{flex-direction:column;align-items:flex-start;gap:5px;padding:0 12px}.gr-overview>div:first-child{padding-left:0}.gr-overview>div+div{padding-left:14px}.gr-overview strong{font-size:26px}.gr-overview>div>span{font-size:9px;max-width:none;line-height:1.5}.gr-overview>p{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-top:14px;padding-top:11px;border-top:1px solid var(--line);text-align:left}.gr-overview>p>span:last-child{font-size:9px;max-width:none;text-align:right}.gr-overview .gr-badge{font-size:9px;padding:3px 6px}
  .gr-tabs{gap:21px;margin-bottom:14px}.gr-tabs button{font-size:11px;gap:6px;padding:10px 0 12px}.gr-tabs button>span{font-size:9px}
  .gr-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:13px}.gr-toolbar>.gr-search{grid-column:1/-1}.gr-toolbar select{width:100%;max-width:100%;font-size:11px}.gr-toolbar .gr-text-button{grid-column:1/-1;justify-self:end;padding:0}
  .groups-screen input:not([type=checkbox]),.groups-modal input:not([type=checkbox]){font-size:16px;min-height:41px}.groups-screen input::placeholder,.groups-modal input::placeholder{font-size:11px}.groups-screen select,.groups-modal select{font-size:12px;min-height:40px}
  .gr-list-caption{font-size:9px;margin-bottom:10px;align-items:flex-start}.gr-list-caption>span:last-child{max-width:140px;text-align:right}
  .gr-group-grid{gap:12px}.gr-group-head{padding:14px 13px 12px;gap:10px}.gr-group-heading h2{font-size:14px}.gr-group-label{font-size:8px;gap:5px}.gr-group-label>span{font-size:9px}.gr-group-heading p{font-size:9px}.gr-group-meta{flex-direction:column;align-items:flex-end;gap:5px}.gr-group-meta .gr-badge{font-size:9px;padding:3px 6px;white-space:nowrap}
  .gr-filmstrip{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 13px 14px;gap:8px;max-width:none}.gr-film-item:nth-child(n+4){display:none}.gr-film-item>strong{font-size:9px}.gr-film-item>span:last-child{font-size:8px}.gr-film-more.is-mobile-only{display:flex}.gr-film-count-wide{display:none}.gr-film-count-small{display:block}.gr-film-more b{font-size:18px}.gr-film-more span{font-size:9px}
  .gr-group-footer{padding:10px 13px;gap:8px;flex-wrap:wrap}.gr-group-stamp{font-size:9px;flex:1}.gr-actions{gap:6px}.gr-actions .btn{font-size:10px;min-height:34px;padding:6px 8px}.gr-actions .icon{width:12px;height:12px}
  .gr-composition{padding:14px 12px}.gr-composition-head{align-items:flex-start;gap:10px;margin-bottom:12px}.gr-composition-head strong{font-size:11px}.gr-composition-head span{font-size:9px;max-width:150px}.gr-composition-head>.btn{font-size:9px;min-height:36px;max-width:145px;padding:6px 8px;white-space:normal}
  .gr-product-grid{grid-template-columns:minmax(0,1fr);gap:8px}.gr-product-tile{padding:10px;flex-wrap:nowrap;gap:8px}.gr-product-pick{gap:8px}.gr-product-copy>strong{font-size:11px}.gr-product-copy>small{font-size:9px}.gr-product-tile>.gr-text-button{font-size:10px}.gr-product-facts{font-size:9px;gap:2px 7px}
  .gr-singles-grid{grid-template-columns:minmax(0,1fr);gap:9px}.gr-single{padding:13px;gap:12px}.gr-single>.gr-photo{width:59px}.gr-single h2{font-size:12px}.gr-single p,.gr-single small,.gr-single-category{font-size:10px}
  .gr-notice{padding:12px;gap:9px;flex-wrap:wrap}.gr-notice>div{flex-basis:calc(100% - 30px)}.gr-notice strong{font-size:11px}.gr-notice p{font-size:10px}.gr-notice>.btn{margin-left:27px;font-size:10px;min-height:32px}
  .gr-empty{min-height:300px;padding:28px 18px}.gr-empty h2{font-size:17px}.gr-empty p{font-size:11px}.gr-empty .btn{font-size:11px}.gr-page-foot{font-size:9px;align-items:flex-start;padding-top:18px}.gr-page-foot>.icon{margin-top:2px}
  .gr-history-main{display:grid;grid-template-columns:32px minmax(0,1fr) 28px;gap:8px 10px;padding:14px 12px}.gr-history-main>.gr-badge{grid-column:2;justify-self:start;font-size:9px}.gr-history-main>.gr-icon-button{grid-column:3;grid-row:1/3;width:28px;min-width:28px;height:30px}.gr-history-icon{width:31px;height:33px;grid-row:1/3}.gr-history-main h2{font-size:11px}.gr-history-main p{font-size:9px}.gr-history-detail{padding:0 12px 14px}
  .gr-skeleton{padding:16px}.gr-skeleton b{width:22%}.gr-skeleton b:nth-child(5){display:none}
  .groups-modal{width:calc(100vw - 14px);max-height:calc(100svh - 14px);border-radius:12px}.groups-modal .modal-head{padding:15px}.groups-modal .modal-head h2{font-size:15px}.groups-modal .modal-body{padding:16px 14px;max-height:calc(100svh - 225px)}.groups-modal .modal-footer{padding:13px 14px;gap:9px;flex-direction:column;align-items:stretch}.gr-footer-note{max-width:none;font-size:9px;min-width:0}.gr-dialog-actions{gap:7px;justify-content:stretch}.gr-dialog-actions>.btn{flex:1;font-size:10px;min-height:40px;padding:8px 10px}.groups-modal .modal-footer>.btn{font-size:11px}
  .gr-editor-intro{margin-bottom:16px}.gr-editor-intro h3{font-size:17px;margin:6px 0}.gr-editor-intro p{font-size:11px}.gr-step-label{font-size:8px}
  .gr-picker-layout{grid-template-columns:minmax(0,1fr);gap:16px}.gr-pick-summary{position:static;padding:12px 13px;grid-row:1}.gr-small-label{font-size:8px}.gr-selection-total{display:inline-flex;margin:0 0 0 12px;gap:7px;vertical-align:middle}.gr-selection-total>strong{font-size:25px}.gr-selection-total>span{font-size:9px;max-width:155px}.gr-target-note{display:inline-block;font-size:9px;line-height:1.6;margin:7px 0 0;width:100%}.gr-selected-heading{margin-top:9px;padding:9px 0 5px}.gr-selected-list{max-height:108px}.gr-selected-list>div{padding:5px 0}.gr-selected-list .gr-photo{width:25px}.gr-selected-list strong{font-size:10px}.gr-selection-placeholder{padding:7px 0;max-width:none;font-size:10px}.gr-selection-hint{padding-top:9px;margin-top:7px;font-size:9px}.gr-picker-filters{gap:7px}.gr-picker-toolbar{gap:8px;min-height:42px;font-size:9px}.gr-picker-toolbar .gr-text-button{font-size:9px}.gr-picker-toolbar>label{font-size:9px}.gr-picker-list{max-height:350px}.gr-picker-row{padding:10px 8px;gap:8px;flex-wrap:wrap}.gr-picker-row>.gr-photo{width:42px}.gr-picker-row>input{width:15px;height:15px}.gr-picker-product>strong{font-size:11px}.gr-picker-product>small{font-size:9px}.gr-origin{font-size:9px}.gr-pick-reason{flex-basis:100%;max-width:none;text-align:left;padding-left:72px;font-size:9px}.gr-pick-mark{width:17px;height:17px}.gr-pick-mark>.icon{width:11px;height:11px}.gr-pagination{font-size:9px}.gr-pagination .btn{font-size:9px;min-height:32px}
  .gr-comparison{grid-template-columns:minmax(0,1fr);gap:11px}.gr-comparison-arrow{margin:0;transform:rotate(90deg);height:19px}.gr-comparison h4{font-size:10px;margin-bottom:8px}.gr-preview-group>summary{padding:10px}.gr-preview-group summary strong{font-size:10px}.gr-preview-group>summary>span{font-size:9px}.gr-preview-members{max-height:180px;padding:2px 10px}.gr-preview-members>div{padding:7px 0}.gr-preview-members strong{font-size:10px}.gr-preview-members small{font-size:9px}.gr-change-list{margin-top:17px;padding-top:14px}.gr-change-list>div{gap:8px;flex-wrap:wrap}.gr-change-list>div>span:nth-child(2){flex-basis:calc(100% - 43px)}.gr-change-route{max-width:none;width:100%;padding-left:41px;justify-content:flex-start;gap:8px;font-size:9px}.gr-change-route>strong{font-size:9px}.gr-review-note{font-size:9px;margin-top:15px}
  .gr-operation-status{padding:14px;gap:10px}.gr-operation-status>span{width:28px;height:28px}.gr-operation-status strong{font-size:13px}.gr-operation-status p{font-size:10px}.gr-result-meta{align-items:flex-start;flex-direction:column;gap:4px;margin-bottom:16px}.gr-result-meta strong{font-size:11px}.gr-result-meta span{font-size:9px}.gr-result-intro{padding:12px 7px 20px}.gr-result-intro h3{font-size:18px}.gr-result-intro p{font-size:11px}
}
@media(max-width:390px){.gr-head-actions .btn{font-size:10px;gap:5px}.gr-head-actions .icon{width:14px;height:14px}.gr-tabs{gap:16px}.gr-tabs button{font-size:10px;gap:5px}.gr-group-stamp{flex-basis:100%;padding-bottom:2px}.gr-actions{width:100%;justify-content:flex-end}.gr-actions .btn:last-child{flex:1}.gr-filmstrip{gap:7px}.gr-overview>div{padding-right:6px}.gr-overview>div+div{padding-left:10px}.gr-overview strong{font-size:24px}.gr-overview>div>span{font-size:8px}.gr-product-tile{flex-wrap:wrap}.gr-product-tile>.gr-text-button{margin-left:auto}.gr-selection-total{margin-left:8px;gap:5px}.gr-selection-total>span{max-width:125px}.gr-picker-toolbar>span{flex-basis:100%;margin:0}.gr-picker-toolbar>.gr-text-button{margin-right:auto}}
@media(prefers-reduced-motion:reduce){.groups-screen *,.groups-modal *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
