/* Gifts are rows ordered by catalogue cost; editing stays next to the selection. */
.effects-page{--effects-border:var(--border);--effects-muted:var(--muted)}
.effects-page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:28px}
.effects-page-heading h1{font-size:30px;line-height:1.25;letter-spacing:-.7px;margin:0 0 10px}.effects-page-heading p{font-size:13px;color:var(--muted);line-height:1.7}
.effects-server-picker{width:300px;flex-shrink:0}.effects-server-picker>label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.effects-server-picker .badge{display:block;width:fit-content;margin-top:9px;font-size:10px}
.effects-controls{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-bottom:22px;flex-wrap:wrap}
.effects-search{display:flex;align-items:center;gap:10px;flex:1;max-width:420px;padding:0 13px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.effects-search>svg{width:17px;height:17px;color:var(--muted);flex-shrink:0}.effects-search input{border:0;background:none;padding:12px 0;width:100%;min-width:0;color:var(--text);font-size:13px;outline:0;box-shadow:none}
.effects-search:focus-within{border-color:var(--accent)}
.effects-filters{display:flex;gap:4px}.effects-filters button{display:flex;align-items:center;gap:8px;border:0;border-radius:6px;padding:10px 12px;background:none;color:var(--muted);font:inherit;font-size:12px}.effects-filters button.active{background:var(--raised);color:var(--text)}.effects-filters button span{font-size:11px;color:var(--muted)}
.effects-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:26px;align-items:start}.effects-catalog{min-width:0}
.effects-catalog-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:15px}.effects-catalog-heading h2{font-size:14px;line-height:1.5}.effects-catalog-heading p{color:var(--muted);font-size:11px}.effects-sort-note{display:block;font-weight:400;font-size:11px;color:var(--muted);margin-top:4px}
.effects-list-columns{display:grid;grid-template-columns:minmax(130px,1.3fr) 95px minmax(110px,1fr);padding:12px 37px 12px 14px;font-size:10px;color:var(--muted);border-bottom:1px solid var(--border)}
.effects-list{display:flex;flex-direction:column;gap:0;border:1px solid var(--border);border-top:0;border-radius:0 0 9px 9px;overflow:auto;max-height:620px;scrollbar-width:thin;scrollbar-color:#444a54 transparent}
.effect-tile{position:relative;display:grid;grid-template-columns:minmax(130px,1.3fr) 95px minmax(110px,1fr) 16px;align-items:center;gap:10px;width:100%;min-height:76px;border:0;border-bottom:1px solid var(--border);background:transparent;padding:12px 14px;color:var(--text);text-align:left;font:inherit}
.effect-tile:last-child{border-bottom:0}.effect-tile:hover{background:var(--surface)}.effect-tile.selected{background:var(--raised);box-shadow:inset 0 0 0 1px var(--accent)}.effect-tile:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.effect-row-identity{display:flex;align-items:center;gap:12px;min-width:0}.effect-tile-media{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;overflow:hidden}.effect-tile-media img{display:block;width:100%;height:100%;object-fit:contain}.effect-tile-media>svg{width:25px;height:25px;color:var(--muted)}
.effect-tile-name{font-size:12px;line-height:1.5;overflow-wrap:anywhere;font-weight:550}.effect-row-cost{font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}.effect-row-rule{min-width:0;display:grid;gap:5px}.effect-tile-caption{font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:var(--muted)}.configured .effect-tile-caption{color:var(--text)}.effect-row-rule small{font-size:10px;color:var(--muted);line-height:1.4}.effect-row-rule small.effect-row-pending{color:var(--accent)}.effect-row-edit svg{width:16px;height:16px;color:var(--muted)}
.effects-editor{position:sticky;top:24px;min-width:0;padding:22px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.effects-editor-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.effects-editor-title h2{font-size:13px}.effects-editor-title .icon-button{margin:-5px}.effects-editor-title svg{width:17px;height:17px}
.effects-editor-gift{display:flex;align-items:center;gap:14px;margin-bottom:24px}.effects-editor-gift .effect-tile-media{width:56px;height:56px}.effects-editor-gift h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.effects-editor-gift p{font-size:11px;color:var(--muted);margin-top:6px}
.effects-field{display:block;font-size:12px;color:var(--text)}.effects-field select,.effects-field>.portal-select,.effects-field>input{display:block;width:100%;margin-top:10px}.effects-field input{min-height:44px}.effects-rules{margin-top:22px;padding-top:22px;border-top:1px solid var(--border)}
.effects-combo-toggle{display:flex;align-items:flex-start;gap:11px;margin-bottom:18px;cursor:pointer}.effects-combo-toggle input{width:17px;height:17px;min-height:0;margin:2px 0 0;accent-color:var(--accent);flex-shrink:0}.effects-combo-toggle strong{display:block;font-size:12px;font-weight:550}.effects-combo-toggle small{display:block;font-size:11px;line-height:1.6;margin-top:5px;color:var(--muted)}
.effects-editor-help{font-size:11px;line-height:1.7;color:var(--muted);margin-top:12px}.effects-editor-help.error-text{color:var(--red)}.effects-editor-remove{border:0;padding:8px 0;margin-top:15px;background:none;color:var(--red);font-size:11px;text-align:left}.effects-editor-remove:hover{text-decoration:underline;text-underline-offset:3px}
.effects-editor-actions{margin-top:22px;padding-top:20px;border-top:1px solid var(--border)}.effects-editor-actions>.button{width:100%;justify-content:center;min-height:44px}
.effects-editor-empty{padding:40px 5px;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.effects-editor-empty>svg{width:30px;height:30px;color:var(--muted);margin-bottom:20px}.effects-editor-empty h2{font-size:14px;margin-bottom:10px}.effects-editor-empty p{font-size:12px;line-height:1.8;color:var(--muted);max-width:230px}
.effects-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:25px}.effects-empty>svg{width:28px;height:28px;color:var(--muted)}.effects-empty h3{font-size:14px}.effects-empty p{max-width:320px;font-size:12px;color:var(--muted);line-height:1.8}
.effects-pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:16px;color:var(--muted);font-size:11px}.effects-pagination>div{display:flex;align-items:center;gap:12px}.effects-pagination .icon-button{width:36px;height:36px;border:1px solid var(--border);background:var(--surface)}.effects-pagination svg{width:16px;height:16px}
.effects-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 20px;margin-top:22px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}.effects-footer #effects-save-note{font-size:12px;color:var(--muted)}.effects-footer .error-text{font-size:11px;margin:5px 0 0}.effects-footer .error-text:empty{display:none}.effects-footer .saved{color:var(--accent)}.effects-footer .button{min-width:150px}
.effects-skeleton{height:76px;flex-shrink:0;border-bottom:1px solid var(--border);background:var(--surface)}
.effects-edit-dialog{width:min(480px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 30px);padding:0;border:1px solid var(--border);background:var(--surface);border-radius:12px}.effects-edit-dialog::backdrop{background:#05070bd9;backdrop-filter:none}.effects-edit-dialog .effects-editor{position:static;border:0;padding:24px}.effects-edit-dialog .effects-editor-actions{position:sticky;bottom:0;background:var(--surface);padding-bottom:5px}
@media(max-width:1250px){.effects-workspace{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.effects-list-columns{grid-template-columns:minmax(100px,1.3fr) 75px minmax(95px,1fr)}.effect-tile{grid-template-columns:minmax(100px,1.3fr) 75px minmax(95px,1fr) 16px;gap:8px;padding-inline:12px}.effect-row-identity{gap:8px}}
@media(max-width:1020px){.effects-workspace{grid-template-columns:1fr}.effects-workspace>.effects-editor{display:none}.effects-list{max-height:660px}.effects-list-columns{grid-template-columns:minmax(130px,1.3fr) 95px minmax(110px,1fr)}.effect-tile{grid-template-columns:minmax(130px,1.3fr) 95px minmax(110px,1fr) 16px}}
@media(max-width:650px){.effects-page-heading{align-items:stretch;flex-direction:column;gap:22px}.effects-page-heading h1{font-size:26px}.effects-server-picker{width:100%}.effects-controls{gap:14px}.effects-search{flex-basis:100%;max-width:none}.effects-list-columns{grid-template-columns:minmax(110px,1fr) 80px;padding-right:35px}.effects-list-columns>span:last-child{display:none}.effect-tile{grid-template-columns:minmax(110px,1fr) 80px 14px;row-gap:8px;min-height:82px}.effect-row-identity{grid-column:1;grid-row:1}.effect-row-cost{grid-column:2;grid-row:1;text-align:right}.effect-row-rule{grid-column:1/3;grid-row:2;padding-left:52px;display:flex;flex-wrap:wrap;gap:7px}.effect-row-edit{grid-column:3;grid-row:1/3}.effect-tile-caption{font-size:11px}.effect-row-rule small{line-height:1.5}.effects-list{max-height:620px}.effects-sort-note{font-size:10px}.effects-catalog-heading p{font-size:10px}.effects-footer{padding:15px;gap:12px;align-items:flex-start;flex-direction:column}.effects-footer .button{width:100%;justify-content:center}.effects-editor-gift p{font-size:12px}.effects-edit-dialog{margin:auto auto 10px;max-height:85dvh}}
