/* Layout refinements for server-rendered Django pages. */
header .nav-actions a,.cta a,.panel a.primary,.panel a.outline,.feature-section a.primary{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:12px 20px;font-weight:650;line-height:1.3}
header .nav-actions form{display:flex;align-items:center;margin:0}
.nav-actions{flex-shrink:0}
.cta a.large{padding:15px 21px}
.signed-in header{max-width:none;width:100%;padding-inline:28px;border-bottom:1px solid var(--border)}
.notice{margin:14px auto;padding:12px 18px;border:1px solid #c9e9dc;background:#edf9f3;color:#16734f;font-size:14px;border-radius:10px;max-width:calc(100% - 56px);width:1184px}
#dashboard{grid-template-columns:250px minmax(0,1fr)}
#dashboard aside{padding:24px 16px;min-width:0}
#dashboard .side{display:block;border-radius:9px;width:100%;padding:13px 14px;line-height:1.4;font-weight:600}
#dashboard aside form{display:block;margin:0}
.aside-bottom{min-width:0;overflow-wrap:anywhere;flex-direction:column;align-items:flex-start;gap:3px}
.dash-content{margin:0;max-width:1280px;padding:36px 40px;width:100%;min-width:0}
.page-head{gap:16px;align-items:center}
.page-head .outline{white-space:normal;flex-shrink:0}
.panel{padding:26px;margin-bottom:20px}
.panel form>p,form.panel>p{display:grid;gap:8px;margin:0;min-width:0;color:#53647d;line-height:1.5}
.panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.panel select,.panel textarea{display:block;width:100%;max-width:100%;border:1px solid #cdd8eb;border-radius:9px;padding:13px 14px;background:#fff;min-height:46px;line-height:1.4;font-size:16px;box-sizing:border-box}
.panel input:focus{border-color:#5271f1;outline:3px solid #e1e8ff;outline-offset:0}
.panel label{margin:0;color:#293b59;font-size:15px;font-weight:650}
.panel form,.panel.form,form.panel{display:grid;gap:18px}
.panel form button{justify-self:start}
.panel .helptext{display:block;font-size:13px;font-weight:400;color:#68788f;line-height:1.5}
.panel .helptext ul{padding-left:18px;margin:5px 0 0}
.panel ul.errorlist{list-style:none;margin:0;padding:9px 12px;background:#fff1f1;border-radius:8px;color:#a52525;font-size:14px}
.panel h2{font-size:28px;margin:0 0 22px}
.panel>p:last-child{margin-bottom:0}
.narrow{width:min(100%,500px);padding:44px 20px;margin:0 auto}
.narrow .panel{box-shadow:0 12px 45px #213a7010}
.narrow .panel form button{width:100%}
.narrow .panel>p{font-size:14px;margin-top:22px}
.narrow .panel>p a{color:var(--blue);font-weight:600}
.site-card .meta{display:block;overflow-wrap:anywhere;color:#65748c}
.site-card{min-width:0}
.site-card h3{font-size:19px;line-height:1.4}
.site-card .status{font-weight:650}
#dashboard .cabinet-sidebar .side{display:flex;align-items:center;gap:11px;text-align:left;width:100%;min-height:44px;border:0;line-height:1.4;white-space:normal}
.cabinet-sidebar .menu-icon{flex:0 0 20px;width:20px;height:20px;color:inherit}
.cabinet-sidebar .side span{min-width:0}
.cabinet-sidebar .side.active{font-weight:700}
.cabinet-sidebar form .side{font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.profile-panel{max-width:720px;width:100%;margin-bottom:18px}
.profile-panel h3{margin-bottom:18px}
.profile-panel form button{justify-self:start}
.profile-panel .profile-action{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:9px;font-weight:650;line-height:1.4}
.profile-panel .profile-back{color:var(--blue);font-weight:600}
.delete-page .profile-panel{max-width:560px}
@media(max-width:880px){#dashboard .cabinet-sidebar .side{width:auto;gap:8px;min-height:40px} .cabinet-sidebar .menu-icon{flex-basis:18px;width:18px;height:18px}}
@media(max-width:540px){#dashboard .cabinet-sidebar .side{gap:6px;padding:10px 8px}.cabinet-sidebar .menu-icon{flex-basis:17px;width:17px;height:17px}.profile-panel .profile-action,.profile-panel form button{width:100%}}
.danger-outline{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border:1px solid #f2b4b4;color:#b42328;background:#fff7f7;border-radius:10px;font-weight:650;margin-left:auto;line-height:1.3}
.danger-outline:hover{background:#fdecec}
.danger{background:#bc3039;color:white;border:1px solid #bc3039}
.delete-page .delete-icon{width:46px;height:46px;background:#fdebec;color:#bc3039;display:grid;place-items:center;border-radius:12px;font-size:28px;font-weight:800;margin-bottom:18px}
.delete-page .delete-site-url{font-weight:700;color:#17243c;overflow-wrap:anywhere}
.delete-page .panel .delete-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}
.delete-page .delete-actions a,.delete-page .delete-actions button{width:100%;text-align:center}
@media(max-width:880px){#dashboard{grid-template-columns:minmax(0,1fr)}#dashboard aside{border-right:none;border-bottom:1px solid var(--border);padding:10px 16px;gap:5px}.signed-in header{padding-inline:16px}#dashboard .side{width:auto;display:inline-block;font-size:14px}.dash-content{padding:24px 20px}.page-head{align-items:flex-start}.notice{max-width:calc(100% - 32px)}.panel{padding:20px}.narrow{padding-top:28px}}
@media(max-width:540px){header .nav-actions{gap:5px}header .nav-actions a,header .nav-actions button{padding:9px 10px;font-size:13px}.nav-actions a.primary{display:inline-flex}.signed-in header .nav-actions a{display:none}.dash-content{padding:20px 14px}#dashboard aside{padding:8px 12px}#dashboard .side{font-size:12px;padding:10px 8px}.panel{padding:17px}.page-head .outline{font-size:14px}.cta a.large{padding:13px 16px;font-size:14px}}
