*{box-sizing:border-box}body{margin:0;background:#ecf1ef;color:#19394a;font:16px/1.55 system-ui,sans-serif}header{background:#1b3446;color:#fff9e9;padding:24px max(20px,calc((100vw - 1160px)/2));display:flex;align-items:center;flex-wrap:wrap;gap:24px}header a{color:#eed49a;text-decoration:none;font:italic 28px Georgia}h1{font:26px Georgia;margin:0;flex:1}main{max-width:1160px;margin:auto;padding:28px 20px}h2,h3{margin:0 0 12px}h2{font:25px Georgia}.intro{max-width:820px}.panel,.owner-item{background:#fffdf5;border:1px solid #ccd7d1;border-radius:16px;padding:24px;margin:20px 0}#login{max-width:440px}label{display:flex;flex-direction:column;font-size:14px;font-weight:600;gap:6px;margin:12px 0}input,select,textarea,button,a.action{font:inherit;border:1px solid #b2c5be;border-radius:8px;padding:11px 14px;min-height:46px;max-width:100%;color:#173c36}input,select,textarea{background:white;width:100%;min-width:0}button,a.action{background:#eaf2ed;cursor:pointer;white-space:normal;overflow-wrap:anywhere;text-decoration:none;text-align:center}button[type=submit]{background:#204d3e;color:white}button:disabled{opacity:.55;cursor:default}.toolbar,.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}.actions{justify-content:flex-start}.meta{color:#566b63;font-size:13px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.fields .wide{grid-column:1/-1}details{margin:20px 0}summary{cursor:pointer;font-weight:600}code{overflow-wrap:anywhere}#status{white-space:pre-wrap}input[readonly]{background:#eef3ef}.warning{font-size:13px;color:#875928}.rotate-confirm{padding:14px;background:#fff2dc;border-radius:10px} [hidden]{display:none!important}@media(max-width:600px){.fields{grid-template-columns:1fr}.panel,.owner-item{padding:16px}.actions>*{width:100%}header{gap:12px}.toolbar{align-items:stretch}.toolbar>*{width:100%}}

.discount-panel{margin:22px 0;padding:18px;border:1px solid #c8d6cc;border-radius:12px;background:#f5f7f0}.discount-panel h4{margin:0 0 10px}.discount-panel form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.discount-panel label{flex:1 1 220px;min-width:0}.discount-panel button{min-height:48px;white-space:normal;flex:1 1 200px}.discount-panel p{overflow-wrap:anywhere}.discount-panel form[hidden]{display:none}

.owner-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}.owner-filters label{margin:0}.filter-search{grid-column:1/-1}.filter-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}.filter-actions button{min-height:48px}#result-count{color:#526b61}@media(max-width:600px){.owner-filters{grid-template-columns:1fr}.filter-actions>*{flex:1 1 150px}}
/* Compact editable owner sheet. */
main{max-width:1600px}.sheet-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:16px}.sheet-toolbar label{min-width:190px;margin:0}.sheet-toolbar #pending-count{flex:1;font-size:14px;color:#526b61}.sheet-toolbar button{background:#204d3e;color:white}.sheet-help{font-size:13px;color:#526b61}.sheet-scroll{max-height:68vh;overflow:auto;border:1px solid #bacbc2;border-radius:12px;background:#fffdf5;margin-bottom:20px;isolation:isolate}.owner-sheet{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:14px}.owner-sheet th{position:sticky;top:0;z-index:3;background:#e0eae4;text-align:left;font-size:12px;letter-spacing:.02em;padding:12px 10px;color:#26483c}.owner-sheet td{padding:8px;vertical-align:top;background:#fffdf5}.owner-sheet td,.owner-sheet th{border-right:1px solid #d8e1db;border-bottom:1px solid #d8e1db;min-width:175px;max-width:175px;width:175px}.owner-sheet tbody tr:nth-child(even) td{background:#f5f8f5}.owner-sheet .is-dirty td{background:#fff4d9!important}.owner-sheet [data-column=reference]{position:sticky;left:0;z-index:2;min-width:195px;max-width:195px;width:195px;overflow-wrap:anywhere}.owner-sheet th[data-column=reference]{z-index:4}.owner-sheet [data-column=actions]{min-width:195px;max-width:195px;width:195px}.owner-sheet td[data-column=reference]{border-right:2px solid #b5c9be}.owner-sheet small{display:block;font-size:12px;color:#627269;margin-top:6px}.owner-sheet input,.owner-sheet select,.owner-sheet textarea{font-size:14px;padding:8px;min-height:40px;border:1px solid transparent;border-radius:4px;background:transparent}.owner-sheet input:hover,.owner-sheet select:hover,.owner-sheet textarea:hover{border-color:#a5bcae}.owner-sheet :is(input,select,textarea):focus{border-color:#285b46;background:white;outline:2px solid #c2d8ca;outline-offset:0}.owner-sheet textarea{resize:vertical;min-height:72px}.owner-sheet :is([data-column=message],[data-column=cardMessage],[data-column=url],[data-column=discount]){min-width:290px;max-width:290px;width:290px}.owner-sheet button,.owner-sheet a{font-size:12px;padding:7px 9px;min-height:34px;margin:0 4px 5px 0}.owner-sheet .row-save{background:#204d3e;color:white}.row-status{display:block;font-size:12px;line-height:1.4;max-width:180px;overflow-wrap:anywhere;color:#516c60}.row-preview{display:inline-block;color:#204d3e}.owner-sheet details{margin:5px 0}.owner-sheet p{margin:0 0 8px}.sheet-scroll[data-view=engraving] [data-group=message],.sheet-scroll[data-view=engraving] [data-group=management],.sheet-scroll[data-view=message] [data-group=engraving],.sheet-scroll[data-view=message] [data-group=management],.sheet-scroll[data-view=management] [data-group=engraving],.sheet-scroll[data-view=management] [data-group=message]{display:none}@media(max-width:600px){.sheet-toolbar>*{flex:1 1 100%}.owner-sheet [data-column=reference]{position:static;min-width:150px;max-width:150px;width:150px}.sheet-scroll{max-height:75vh}.owner-sheet th[data-column=reference]{position:sticky}}
.owner-filters{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(135px,1fr)) auto;padding:18px;margin:16px 0;gap:12px}.owner-filters .filter-search{grid-column:auto}.owner-filters .filter-actions{grid-column:auto;align-self:end}.owner-filters .filter-actions button{padding:10px}.owner-sheet [data-column=actions]{position:sticky;right:0;z-index:2;border-left:2px solid #b5c9be}.owner-sheet th[data-column=actions]{z-index:4}.sheet-scroll:focus-visible{outline:2px solid #285b46;outline-offset:2px}@media(max-width:1100px){.owner-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.owner-filters .filter-search,.owner-filters .filter-actions{grid-column:1/-1}}@media(max-width:600px){.owner-filters{grid-template-columns:1fr}.owner-sheet [data-column=actions]{position:static}.owner-sheet th[data-column=actions]{position:sticky}}
/* Uniform controls and multi-row actions. */
.owner-filters input,.owner-filters select,.owner-filters button,.sheet-toolbar select,.selection-toolbar select,.bulk-fields input,.bulk-fields select,.bulk-fields button{height:46px;min-height:46px;box-sizing:border-box;line-height:1.3}.owner-filters label{gap:8px}.owner-filters .filter-actions{align-items:end;flex-wrap:nowrap}.owner-filters{align-items:end}.selection-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.selection-toolbar label{margin:0;min-width:175px}.selection-toolbar span{align-self:center;margin-right:auto;font-size:14px;color:#526b61}.selection-toolbar button{min-height:46px}.danger{color:#923e36!important;border-color:#d5ada6!important;background:#fff4f0!important}.owner-sheet [data-column=select]{width:48px;min-width:48px;max-width:48px;position:sticky;left:0;z-index:3;text-align:center}.owner-sheet th[data-column=select]{z-index:5}.owner-sheet [data-column=reference]{left:48px}.owner-sheet input[type=checkbox]{appearance:auto;width:19px;height:19px;min-height:19px;padding:0;accent-color:#245540;cursor:pointer;margin:10px 0}.owner-sheet tr.is-selected td{background:#e6f1eb}.owner-sheet tr.is-dirty td{background:#fff4d9!important}.owner-sheet input:not([type=checkbox]),.owner-sheet select{height:42px;min-height:42px}.owner-sheet textarea{height:72px}.owner-sheet td{padding-top:10px;padding-bottom:10px}.bulk-fields{display:grid;grid-template-columns:200px minmax(180px,1fr) auto;align-items:end;gap:14px}.bulk-fields label{margin:0}.bulk-fields button{margin:0}#bulk-editor{padding:16px 20px;border:1px solid #c6d6cb;border-radius:12px;background:#f5f9f6}#bulk-editor summary{margin-bottom:8px}#bulk-editor p{font-size:13px;color:#526b61;margin-bottom:0}#delete-dialog{max-width:530px;width:calc(100% - 32px);border:1px solid #becdc3;border-radius:16px;padding:28px;color:#19394a;background:#fffdf5}#delete-dialog::backdrop{background:#18332a66}.dialog-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:end}@media(max-width:700px){.bulk-fields{grid-template-columns:1fr}.selection-toolbar>*{flex:1 1 140px}.owner-filters .filter-actions{flex-wrap:wrap}.owner-sheet [data-column=reference]{left:auto}.owner-sheet td[data-column=select]{position:static}.owner-sheet th[data-column=select]{left:auto}}
/* Compact rows; shared actions live above the sheet. */
.owner-sheet td{padding:5px 9px;vertical-align:middle;height:54px}.owner-sheet td[data-column=reference] strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.owner-sheet td[data-column=reference] small{font-size:11px;margin-top:1px;line-height:16px}.owner-sheet input:not([type=checkbox]),.owner-sheet select{height:34px;min-height:34px;padding:5px 7px}.owner-sheet input[type=checkbox]{margin:0}.owner-sheet textarea{height:34px;min-height:34px;padding:6px;transition:height .15s}.owner-sheet textarea:focus{height:86px}.owner-sheet [data-column=actions]{width:145px;min-width:145px;max-width:145px}.owner-sheet .row-status{font-size:12px;line-height:18px}.owner-sheet tr.is-active td{box-shadow:inset 0 2px #5b8b75,inset 0 -2px #5b8b75}.owner-sheet tr.is-active td[data-column=select]{box-shadow:inset 3px 0 #35654e,inset 0 2px #5b8b75,inset 0 -2px #5b8b75}.selection-toolbar{gap:8px}.selection-toolbar button{min-height:40px;padding:8px 13px}.sheet-toolbar{gap:12px}#active-row-label{font-size:13px;font-weight:600;color:#27583f}#scope-dialog{width:min(520px,calc(100% - 32px));border:1px solid #bdcec3;border-radius:16px;padding:28px;background:#fffdf5;color:#19394a}#scope-dialog::backdrop{background:#18332a66}.scope-options{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.scope-options button{flex:1 1 190px;text-align:left;min-height:54px}#scope-previews a{display:block;padding:10px;color:#204d3e}#scope-cancel{margin-top:12px}#scope-dialog button:focus-visible{outline:2px solid #285b46;outline-offset:2px}
.owner-account summary{font-weight:700;cursor:pointer;padding:8px 0}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}.owner-account form+form{border-top:1px solid #c5d3cc;margin-top:24px;padding-top:16px}.owner-account input,dialog input{box-sizing:border-box;min-height:46px;width:100%;background:#fff;color:#173c34;border:1px solid #b8cac0;border-radius:8px;padding:10px;font:inherit}dialog{max-height:90dvh;overflow:auto}dialog label{display:block;margin:12px 0}#login>button{margin:8px 8px 0 0}
