:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #292722; background: #f5f3ef; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(780px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 70px; }
.topbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 12px 0 30px; border-bottom: 1px solid #dedad2; }
.eyebrow { display: block; color: #968467; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(27px, 5vw, 38px); margin: 10px 0 0; }
h2 { font-size: clamp(23px, 4vw, 29px); margin: 8px 0 14px; }
p { line-height: 1.55; color: #68645d; }
.intro { margin: 24px 0; }
.panel { background: #fff; border: 1px solid #e3ded5; padding: clamp(22px, 5vw, 38px); margin-top: 28px; }
.login { max-width: 480px; margin: 56px auto 0; }
label { display: block; margin-top: 23px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
input[type=text], input[type=password] { width: 100%; height: 46px; padding: 10px 13px; border: 1px solid #c8c3bb; border-radius: 2px; font: inherit; }
input[type=file] { display: block; width: 100%; padding: 14px; border: 1px dashed #bcb4a8; background: #faf9f6; font: inherit; }
small { display: block; margin-top: 7px; color: #746f67; line-height: 1.45; }
button { cursor: pointer; font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #bb9c68; outline-offset: 3px; }
.primary { display: inline-block; margin-top: 25px; padding: 13px 23px; background: #35312d; border: 1px solid #35312d; color: #fff; font-size: 14px; font-weight: 700; }
.primary:hover { background: #514a42; }
.primary:disabled { opacity: .5; cursor: wait; }
.text-button { border: 0; background: none; padding: 8px 0; color: #635b50; text-decoration: underline; }
.message { padding: 13px 15px; margin: 18px 0 0; border: 1px solid #d9d4ca; }
.message[hidden] { display: none; }
.message.error { color: #8a2828; background: #fff5f4; border-color: #ecc3bf; }
.message.success { color: #326044; background: #f2f8f3; border-color: #c8ddce; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 9px; margin-top: 22px; }
.previews:empty { display: none; }
.previews div { position: relative; height: 120px; background: #eee; overflow: hidden; }
.previews img { display: block; width: 100%; height: 100%; object-fit: cover; }
.previews span { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px; background: #292722d9; color: #fff; font-size: 10px; text-align: center; letter-spacing: .06em; }
.section-heading { margin-bottom: 22px; }
.preview-link { color: #6d573e; font-size: 14px; }
.group-list { display: grid; gap: 10px; }
.group { display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 8px; border: 1px solid #e5e0d8; }
.group img { width: 64px; height: 64px; object-fit: cover; }
.group-info { flex: 1; min-width: 0; }
.group strong, .group span { display: block; }
.group strong { overflow-wrap: anywhere; font-size: 15px; }
.group span { margin-top: 6px; color: #77726b; font-size: 13px; }
.move-form { display: flex; gap: 5px; }
.move-form button { width: 42px; height: 42px; border: 1px solid #c8c3bb; background: #faf9f6; color: #35312d; font-size: 22px; }
.move-form button:disabled { opacity: .35; cursor: default; }
.delete-form button { border: 0; padding: 10px; background: none; color: #8a2828; text-decoration: underline; }
.security-panel form { max-width: 480px; }
@media (max-width: 560px) { .topbar { align-items: start; } .group { flex-wrap: wrap; } .move-form { margin-left: 78px; } }
