.guestbook-shell{max-width:1280px;margin:0 auto 28px;padding:0 25px;color:var(--ink)}
.guestbook-shell[hidden]{display:none}
.guestbook-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border:1px solid var(--line);border-radius:13px;background:var(--theme-surface,#fff);color:var(--ink);text-align:left;box-shadow:0 5px 20px #20284a0a}
.guestbook-toggle>span:first-child{display:grid;gap:4px}.guestbook-toggle strong{font-size:16px}.guestbook-toggle small,.guestbook-heading p{color:var(--muted);font-size:12px;line-height:1.6}.guestbook-toggle>span:last-child{color:var(--blue);font-size:12px;white-space:nowrap}
.guestbook-body{margin-top:10px;padding:22px;border:1px solid var(--line);border-radius:13px;background:var(--theme-surface,#fff);box-shadow:0 5px 20px #20284a0a}
.guestbook-body[hidden]{display:none}.guestbook-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.guestbook-heading h2{margin:0 0 5px;font-size:19px}.guestbook-heading p{margin:0}.guestbook-count{flex:none;padding:6px 10px;border-radius:999px;background:var(--theme-soft,#f2f5fb);font-size:11px;color:var(--muted)}
.guestbook-form{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:11px;background:var(--theme-soft,#f8f9fc)}.guestbook-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:var(--ink)}.guestbook-form input,.guestbook-form textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--theme-surface,#fff);color:var(--ink);padding:10px 12px;font:inherit;font-size:13px}.guestbook-form textarea{resize:vertical;min-height:82px;line-height:1.6}.guestbook-form-footer{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:14px}.guestbook-actions{display:flex;gap:8px}.guestbook-actions button,.guestbook-entry-actions button{min-height:38px;padding:0 15px;border-radius:8px;font-size:12px;font-weight:700}.guestbook-actions .primary{background:var(--blue);color:#fff}.guestbook-actions .secondary,.guestbook-entry-actions button{border:1px solid var(--line);background:var(--theme-surface,#fff);color:var(--ink)}.guestbook-status{min-height:18px;margin:0;color:var(--muted);font-size:12px}.guestbook-status[data-kind="error"]{color:#c74343}.guestbook-status[data-kind="success"]{color:#228854}
.guestbook-list{display:grid;gap:10px;max-height:540px;overflow:auto;overscroll-behavior:contain;margin-top:17px;padding-right:5px}.guestbook-empty{padding:24px 10px;border:1px dashed var(--line);border-radius:10px;text-align:center;color:var(--muted);font-size:13px}.guestbook-entry{display:grid;gap:10px;padding:15px 16px;border:1px solid var(--line);border-radius:10px;background:var(--theme-surface,#fff)}.guestbook-entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.guestbook-entry-author{font-weight:700;font-size:13px}.guestbook-entry-date{color:var(--muted);font-size:11px}.guestbook-entry-message{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}.guestbook-entry-actions{display:flex;justify-content:flex-end;gap:7px}.guestbook-entry-actions button{min-height:31px;padding:0 11px;font-size:11px}.guestbook-entry-actions button:hover,.guestbook-actions .secondary:hover{border-color:var(--blue);color:var(--blue)}
@media(max-width:720px){.guestbook-shell{padding:0 17px;margin-bottom:20px}.guestbook-body{padding:15px}.guestbook-form{padding:12px}.guestbook-form-footer{grid-template-columns:1fr}.guestbook-actions{justify-content:flex-end}.guestbook-heading h2{font-size:17px}.guestbook-heading p{font-size:11px}}

.guestbook-heading-tools{display:flex;align-items:center;gap:8px;flex:none}.guestbook-retry{min-height:32px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:var(--theme-surface,#fff);color:var(--ink);font-size:11px;font-weight:700}.guestbook-retry:hover:not(:disabled){border-color:var(--blue);color:var(--blue)}.guestbook-retry:disabled{opacity:.55;cursor:wait}
@media(max-width:720px){.guestbook-heading-tools{gap:6px}.guestbook-retry{min-height:30px;padding:0 8px;font-size:10px}}
