:root{
  --orange:#ff7a00;--orange2:#ff9a3d;--peach:#fff1e7;--text:#252525;--muted:#777;
  --border:#eadfd7;--white:#fff;--green:#e6f6e8;--red:#ffe9e9;
}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:linear-gradient(135deg,#fff8f3,#ffe9dc);min-height:100vh}
button,input,textarea,select{font:inherit}button{cursor:pointer}
.topbar{height:76px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20}
.brand,.auth-brand{display:flex;align-items:center;gap:14px;font-weight:700}.brand img{width:48px;height:48px}.brand span{font-size:22px}.icon-btn{display:none;border:0;background:transparent;font-size:26px}
.layout{display:flex;max-width:1500px;margin:auto}.sidebar{width:220px;padding:24px 14px}.sidebar nav{display:grid;gap:8px}.nav-item{width:100%;text-align:left;border:1px solid transparent;background:#fff;padding:14px 16px;border-radius:12px;color:#444}.nav-item.active,.nav-item:hover{background:#fff0e5;border-color:#ffd2b0;color:#f36d00}.content{flex:1;padding:28px;min-width:0}
.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;max-width:1100px;margin:20px auto}.auth-card,.panel{background:rgba(255,255,255,.94);border:1px solid var(--border);border-radius:16px;padding:26px}.auth-card{box-shadow:0 8px 30px rgba(100,50,20,.06)}.auth-brand img{width:58px;height:58px}.auth-brand h1{color:#f36d00;font-size:26px}.auth-card h2{margin:8px 0 22px}
form{display:grid;gap:16px}label{display:grid;gap:7px;font-weight:600;font-size:14px}input,textarea,select{width:100%;border:1px solid #d9d1cb;border-radius:9px;padding:12px;background:#fff;color:#222;min-height:44px}textarea{min-height:100px;resize:vertical}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check{display:flex;align-items:center;grid-template-columns:auto 1fr;font-weight:400}.check input{width:18px;min-height:18px}.primary,.secondary{border-radius:9px;padding:12px 18px;border:1px solid var(--orange);font-weight:700;min-height:44px}.primary{background:var(--orange);color:#fff}.primary:hover{background:#ed6900}.secondary{background:#fff;color:#333;border-color:#ccc}.switch{text-align:center;border-top:1px solid var(--border);padding-top:16px;color:var(--muted)}.switch button{border:0;background:transparent;color:#e96900;text-decoration:underline}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.page-head h1{margin:0 0 4px}.page-head p{margin:0;color:var(--muted)}.page-head>div:last-child{display:flex;gap:10px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid #eee}th{background:#fff8f2;font-size:13px}.status{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}.status.active{background:var(--green);color:#23732c}.status.inactive{background:#eee;color:#666}.actions{display:flex;gap:6px}.action{border:0;background:transparent;font-size:18px;padding:8px}.action.delete{color:#d44}.empty{text-align:center;padding:30px;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.span-2{grid-column:span 2}.form-grid h2{margin-top:0;font-size:18px}.hint{color:var(--muted);font-size:13px}#map{height:300px;border-radius:10px;overflow:hidden;border:1px solid var(--border);margin-top:8px}.current-image img{max-width:220px;border-radius:10px}.profile-form{max-width:850px}.profile-form hr{border:0;border-top:1px solid var(--border);width:100%}
#toast{position:fixed;right:22px;bottom:22px;background:#222;color:#fff;padding:13px 18px;border-radius:10px;opacity:0;transform:translateY(10px);transition:.2s;z-index:100;pointer-events:none}#toast.show{opacity:1;transform:none}
[hidden]{display:none!important}
@media(max-width:900px){.auth-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.sidebar{position:fixed;left:-240px;top:76px;bottom:0;background:#fff;z-index:30;transition:.2s}.sidebar.open{left:0}.icon-btn{display:block}.content{padding:18px}.two{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.page-head>div:last-child{width:100%}.page-head button{flex:1}}

/* Menyn är dold när användaren är utloggad. */
