.gift-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;border:1px solid #d8d3c7;border-radius:16px;background:#f6f3eb;color:#354b43;margin:12px 0}.gift-entry>span{flex:1;min-width:120px}.gift-entry small{color:#718275}.gift-entry button{font:inherit;cursor:pointer;border:1px solid #bbc8bc;border-radius:10px;background:#fffdf8;color:#354b43;padding:8px 14px}.gift-entry button:focus-visible,.gift-dialog input:focus-visible{outline:3px solid #708f76;outline-offset:3px}.gift-entry button:disabled{opacity:.5;cursor:default}.gift-dialog{box-sizing:border-box;width:min(920px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #d8d3c7;border-radius:22px;padding:0;background:#fffdf7;color:#354b43;box-shadow:0 22px 90px #18291c55}.gift-dialog::backdrop{background:#1f302e80}.gift-dialog header{display:flex;justify-content:space-between;gap:20px;padding:24px 28px 12px}.gift-dialog h2{font-size:26px;margin:0}.gift-dialog p{line-height:1.6}.gift-dialog h3{font-size:16px;margin:22px 0 12px}.gift-dialog header p{color:#778274;margin:8px 0}.gift-dialog nav{padding:0 28px;display:flex;gap:10px;border-bottom:1px solid #e2dfd2}.gift-dialog nav button{border:0;border-radius:0;background:transparent;padding:12px}.gift-dialog nav button[aria-pressed=true]{border-bottom:3px solid #657e69;font-weight:700}.gift-body{padding:20px 28px;min-height:260px}.gift-modes{display:flex;gap:10px}.gift-modes button{flex:1;padding:14px}.gift-dialog button[aria-pressed=true]{background:#e2e9dc;border-color:#69816a}.gift-targets{display:flex;flex-wrap:wrap;gap:12px 20px}.gift-targets label{display:flex;align-items:center;gap:7px}.gift-targets input{accent-color:#657e69;width:18px;height:18px}.gift-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gift-card{border:1px solid #ded9ca;border-radius:14px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:7px;overflow:hidden}.gift-card.selected{border:2px solid #cf603c;background:#fcf2e8;padding:9px}.gift-card>button{height:145px;border:0;background:#f4f1e9;padding:5px}.gift-card img{width:100%;height:100%;object-fit:contain}.gift-card b,.gift-card small{overflow-wrap:anywhere}.gift-actions{display:flex;gap:8px}.gift-caption{margin-top:22px;padding:14px;border-radius:12px;background:#e9eee3}.gift-caption p{margin:6px 0}.gift-dialog footer{position:sticky;bottom:0;background:#fffdf7;padding:16px 28px;display:flex;gap:12px;align-items:center;border-top:1px solid #e2dfd2}.gift-dialog footer small{flex:1}.gift-dialog footer button:last-child{background:#657e69;color:white}.gift-error{margin:12px 28px;color:#af4028}.gift-toolbar{display:flex;gap:10px}.gift-dialog input:not([type=checkbox]){font:inherit;color:inherit;border:1px solid #c5cebf;border-radius:8px;padding:10px;box-sizing:border-box;min-width:0}.gift-edit{margin:0 28px 22px;padding:20px;border:1px solid #cf603c;border-radius:12px;background:#f8f2e8}.gift-edit label{display:flex;flex-direction:column;gap:7px;margin:12px 0}.gift-edit button{margin:8px 8px 0 0}.gift-preview{margin:20px;text-align:center}.gift-preview img{display:block;max-width:100%;max-height:50vh;margin:auto;object-fit:contain}@media(max-width:600px){.gift-entry{gap:8px;padding:12px}.gift-entry>small{display:none}.gift-dialog header,.gift-body{padding:18px}.gift-dialog nav{padding:0 18px}.gift-dialog header{gap:12px}.gift-dialog h2{font-size:22px}.gift-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.gift-card>button{height:115px}.gift-dialog footer{padding:12px;flex-wrap:wrap}.gift-dialog footer small{flex-basis:100%}.gift-modes{gap:6px}.gift-modes button{padding:10px 6px}.gift-toolbar{flex-wrap:wrap}.gift-toolbar input{width:100%}.gift-edit{margin:12px}}
.gift-edit .gift-error{margin:12px 0;font-weight:600}.gift-success{margin:12px 28px;color:#426744;background:#e8f0e2;padding:10px 14px;border-radius:8px}

.gift-entry .gift-state-button{min-width:108px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.gift-state-button::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}.gift-entry .gift-state-button.is-enabled{background:#647f68;color:#fffdf7;border-color:#647f68}.gift-enable-toggle{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #e2dfd2}.gift-enable-toggle span{display:flex;gap:8px;align-items:center}.gift-enable-toggle input{width:18px;height:18px;accent-color:#647f68}.factory-preference-save{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 18px;border:1px solid #d8d3c7;border-radius:14px;background:#fffdf8;color:#354b43;margin:12px 0}.factory-preference-save>div:first-child{flex:1;min-width:150px}.factory-preference-save small{display:block;color:#718275;margin-top:4px}.factory-preference-save button{font:inherit;padding:8px 14px;border:1px solid #bbc8bc;border-radius:10px;background:#fffdf8;color:#354b43;cursor:pointer;min-height:42px}.factory-preference-save button:disabled{opacity:.5;cursor:default}.factory-preference-error{flex-basis:100%;color:#af4028}.factory-preference-error button{margin-left:10px}

