:root{font-family:system-ui,sans-serif;color:#172b32;background:#f2f5f5;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header,main{max-width:1100px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d4dfdf}h1{margin:8px 0;font-size:32px}h2{margin-top:0}small{letter-spacing:.1em;color:#48706e}.panel,.wish{background:white;border:1px solid #d4dfdf;border-radius:12px;padding:24px;margin:0 0 20px}#login{max-width:460px}label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;margin-bottom:16px}input,select,button{font:inherit;border-radius:7px;padding:12px;border:1px solid #9cacab}button{cursor:pointer;background:#175d56;color:white;font-weight:600}button:disabled{opacity:.5;cursor:wait}input,select{background:white;color:#172b32;width:100%}input:focus,select:focus,button:focus-visible{outline:3px solid #67bcb2;outline-offset:2px}.toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.toolbar label{margin:0}.search{flex:1;min-width:180px}.actions{display:flex;gap:10px;flex-wrap:wrap}.secondary{color:#175d56;background:#edf5f3}.danger{color:#9f2525;background:#fff4f4;border-color:#dfbcbc}.meta{color:#5c7176;font-size:14px}.wish p{white-space:pre-wrap;overflow-wrap:anywhere}.wish .text{font-size:21px;line-height:1.5}.badge{display:inline-block;border-radius:16px;padding:5px 10px;background:#eaf0f1;font-size:13px;font-weight:600}.approved{background:#d9f2e5}.pending{background:#fff0cb}.rejected{background:#f8dfdf}#feedback{min-height:24px}#feedback.error{color:#a12020}#words{padding:0;list-style:none}#words li{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid #eee;gap:12px}@media(max-width:600px){header,main{padding:16px}.panel,.wish{padding:18px}h1{font-size:25px}.actions button{flex:1}}

/* Moderation table: scroll within the panel on smaller screens. */
header,main{max-width:1440px}
.table-box{background:#fff;border:1px solid #d4dfdf;border-radius:20px;overflow:hidden;margin-bottom:24px;box-shadow:0 5px 20px rgba(23,43,50,.06)}
.table-scroll{overflow-x:auto;background:#fff}
.table-scroll:focus-visible{outline:3px solid #67bcb2;outline-offset:2px}
.wishes-table{width:100%;min-width:1050px;border-collapse:collapse;text-align:left;font-size:14px;color:#212529}
.wishes-table caption{text-align:left;padding:18px;font-size:18px;font-weight:600}
.wishes-table th{background:#e9ecef;padding:12px 16px;font-size:14px;font-weight:600;white-space:nowrap;border:1px solid #dee2e6;border-bottom:2px solid #adb5bd}
.wishes-table td{padding:12px 16px;vertical-align:middle;border:1px solid #dee2e6;overflow-wrap:anywhere;max-width:220px;transition:background-color .12s ease}
.wishes-table th:first-child,.wishes-table td:first-child{border-left:0}
.wishes-table th:last-child,.wishes-table td:last-child{border-right:0}
.wishes-table tbody tr:last-child td{border-bottom:0}
.wishes-table tbody tr:nth-child(odd){background:#f8f9fa}
.wishes-table tbody tr:hover,.wishes-table tbody tr:focus-within{background:#e9ecef}
.wishes-table .wish-text{width:26%;min-width:240px;max-width:380px;white-space:pre-wrap;line-height:1.6;font-size:15px}
.wishes-table .wish-name{min-width:110px}
.wishes-table .action-cell{width:1%;max-width:none;overflow-wrap:normal}
.wishes-table .actions{flex-wrap:nowrap;gap:6px}
.wishes-table .actions button{white-space:nowrap}
.wishes-table .actions button{padding:6px 10px;font-size:13px;font-weight:400;line-height:1.5;border-radius:4px;background:#198754;border-color:#198754;color:#fff;transition:background-color .12s ease}
.wishes-table .actions button:hover:not(:disabled){background:#157347;border-color:#146c43}
.wishes-table .actions .secondary{background:transparent;border-color:#6c757d;color:#495057}
.wishes-table .actions .secondary:hover:not(:disabled){background:#6c757d;border-color:#6c757d;color:#fff}
.wishes-table .actions .danger{background:transparent;border-color:#dc3545;color:#dc3545}
.wishes-table .actions .danger:hover:not(:disabled){background:#dc3545;border-color:#dc3545;color:#fff}
.wishes-table .actions button:disabled{cursor:default;opacity:.55}
.wishes-table .badge{padding:5px 8px;border-radius:6px;font-size:12px;line-height:1;font-weight:600;text-transform:capitalize}
.wishes-table .approved{background:#d1e7dd;color:#0f5132}
.wishes-table .pending{background:#fff3cd;color:#664d03}
.wishes-table .rejected{background:#f8d7da;color:#842029}
.wishes-table .row-number{width:1%;white-space:nowrap;font-weight:600;color:#495057}
.wishes-table .table-empty{text-align:center;padding:32px;color:#5c7176}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid #d4dfdf;background:#f8fbfa;font-size:14px}
.pagination label{flex-direction:row;align-items:center;margin:0;white-space:nowrap}
.pagination select{width:auto;padding:8px}
.pagination p{margin:0;color:#5c7176}
.page-controls{display:flex;align-items:center;gap:12px}
.page-controls button{padding:8px 12px;background:#fff;color:#0d6efd;border:1px solid #dee2e6;border-radius:4px;font-weight:400}
.page-controls button:hover:not(:disabled){background:#e9ecef;color:#0a58ca}
.page-controls button:disabled{color:#6c757d;background:#f8f9fa;opacity:1}
.page-controls button:disabled{cursor:default}
.alert-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#notification-status{font-size:13px;color:#5c7176;flex:1;min-width:200px}
#pending-alert{border-color:#d9b354;background:#fff3cd;color:#664d03}
@media(max-width:600px){.pagination{padding:16px}.page-controls{width:100%;justify-content:space-between}}
