:root{font-family:system-ui,'Yu Gothic',sans-serif;font-size:16px;color:#17323e;background:#f4f7f9;line-height:1.65}*{box-sizing:border-box}body{margin:0}header{background:#133f50;color:white}.header-inner{max-width:1100px;margin:auto;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:16px}header h1{font-size:1.5rem;margin:0}header p{margin:3px 0 0;color:#d9e9ee}main{max-width:1100px;margin:auto;padding:24px}h2{font-size:1.4rem;line-height:1.4;margin:10px 0 20px}p{margin:12px 0}button,input{font:inherit}button{min-height:44px;padding:11px 17px;border:1px solid transparent;border-radius:8px;background:#17664f;color:white;cursor:pointer}button:disabled{opacity:.55;cursor:wait}.secondary{background:white;color:#17323e;border-color:#b6c8d1}.quiet{background:transparent;color:white;border-color:#a2beca}.danger{background:#ab2d37}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #d79517;outline-offset:3px}input{width:100%;padding:12px;border:1px solid #aebfc9;border-radius:7px;background:white;margin-bottom:12px}label{display:block;font-weight:600;margin:12px 0 6px}.panel{background:white;border:1px solid #ccdbe2;border-radius:12px;padding:24px}.narrow{max-width:490px;margin:24px auto}.muted{color:#536a76}.eyebrow{color:#17664f;font-weight:600;margin:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0}.actions{display:flex;gap:10px;flex-wrap:wrap}.bottom{margin-top:28px}.capacity{background:#e7eff3;padding:18px;border-radius:10px;margin-bottom:20px}.capacity>div{display:flex;justify-content:space-between;gap:12px}.capacity p{font-size:.9rem;margin:4px 0 0;color:#47616e}progress{width:100%;height:12px;accent-color:#17664f}.album-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:18px 0}.album-card{background:white;color:#17323e;text-align:left;padding:22px;border:1px solid #cbdbe2;border-left:5px solid #17664f;border-radius:10px;min-height:140px}.album-card strong{display:block;font-size:1.15rem;margin:8px 0}.album-card span{font-size:.9rem;color:#536a76}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:20px 0}.photo{padding:10px;background:white;border:1px solid #cbdbe2;border-radius:10px;margin:0;overflow:hidden}.photo img{width:100%;height:220px;object-fit:cover;border-radius:6px;background:#e4ecf0}.photo figcaption{font-size:.9rem;overflow-wrap:anywhere;margin:8px 0}.photo button{padding:8px 12px}.photo .actions{justify-content:space-between}.empty{padding:36px 20px;text-align:center;border:2px dashed #bdcdd7;color:#536a76}.message{padding:14px 18px;background:#e2efea;border:1px solid #7ba792;border-radius:8px;white-space:pre-line}.message.error{background:#fff0ec;border-color:#d19a8b;color:#862f23}dialog{max-width:600px;width:calc(100% - 32px);max-height:85vh;border:1px solid #b6c8d1;border-radius:12px;padding:24px}dialog::backdrop{background:#123b5280}dialog form{margin-bottom:20px}.member-row{border-top:1px solid #d5e0e5;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;overflow-wrap:anywhere}.member-row p{margin:0;font-size:.9rem}.hidden{display:none!important}a{color:#17664f}#more-photos,#more-albums{display:block;margin:20px auto}#upload-progress{margin-top:16px}@media(max-width:580px){main{padding:18px}.header-inner{padding:20px 18px}.toolbar{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions button{flex:1}.capacity>div{flex-direction:column;gap:2px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo img{height:150px}.photo .actions{flex-direction:column}.member-row{align-items:flex-start;flex-direction:column}header h1{font-size:1.25rem}}
:where(#album) .toolbar .actions button{white-space:nowrap}
@media(max-width:580px){#album .toolbar .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#upload{grid-column:1 / -1}}
