/* 1.1.578 owner: Settings -> Permissions redrawn. Flat rows, one switch per item (Notifications, Vibration, Camera, Microphone), same look as Settings. */
.perm-sheet{--pm-ink:#16222d;--pm-mute:#657484;--pm-line:#e4eaf0;--pm-card:#fff;--pm-track:#cfd8e0;
 position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:92dvh;overflow:auto;overscroll-behavior:contain;border:0;border-radius:26px 26px 0 0;padding:10px 16px calc(18px + env(safe-area-inset-bottom));
 background:#f4f6f9;color:var(--pm-ink);box-shadow:0 -12px 40px #0b1a1233;font:16px/1.4 system-ui,-apple-system,"Segoe UI","Noto Sans Myanmar",sans-serif}
.perm-sheet::backdrop{background:#0b1a1259}
:root[data-theme="dark"] .perm-sheet{--pm-ink:#eaf2ec;--pm-mute:#a3b3a9;--pm-line:#2a3a30;--pm-card:#17231c;--pm-track:#3a4a40;background:#101a14}
.perm-grab{width:40px;height:5px;margin:2px auto 12px;border-radius:3px;background:#cdd6de}
:root[data-theme="dark"] .perm-grab{background:#3a4a40}
.perm-sheet h2{margin:0 4px 2px;font-size:22px;font-weight:800;letter-spacing:-.3px}
.perm-sub{margin:0 4px 14px;color:var(--pm-mute);font-size:13.5px;line-height:1.45}
.perm-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.perm-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:0 12px;align-items:center;min-height:64px;padding:10px 12px;border:1px solid var(--pm-line);border-radius:16px;background:var(--pm-card)}
.perm-row[hidden]{display:none}
.perm-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--bg,#eef2f6);color:var(--c,#475569)}
.perm-ico svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.perm-ico[data-k=notif]{--c:#d97706;--bg:#fff1d9}
.perm-ico[data-k=vib]{--c:#7c3aed;--bg:#f1eaff}
.perm-ico[data-k=cam]{--c:#2563eb;--bg:#e6eeff}
.perm-ico[data-k=mic]{--c:#0d9488;--bg:#dcf6f2}
:root[data-theme="dark"] .perm-ico[data-k=notif]{--c:#fbbf24;--bg:#3a2d14}
:root[data-theme="dark"] .perm-ico[data-k=vib]{--c:#b9a0ff;--bg:#2b2342}
:root[data-theme="dark"] .perm-ico[data-k=cam]{--c:#8db4ff;--bg:#1b2a4a}
:root[data-theme="dark"] .perm-ico[data-k=mic]{--c:#5eead4;--bg:#143531}
.perm-row.is-off .perm-ico{filter:grayscale(.7);opacity:.75}
.perm-copy{display:flex;flex-direction:column;gap:1px;min-width:0}
.perm-copy b{font-size:16px;font-weight:700;line-height:1.25}
.perm-copy small{color:var(--pm-mute);font-size:12.5px;line-height:1.35}
.perm-state{font-style:normal;font-size:12.5px;font-weight:700;line-height:1.3;color:var(--pm-mute)}
.perm-state[data-tone=on]{color:#157a2f}
.perm-state[data-tone=bad]{color:#b3261e}
:root[data-theme="dark"] .perm-state[data-tone=on]{color:#7ae495}
:root[data-theme="dark"] .perm-state[data-tone=bad]{color:#ff8a80}
.perm-switch{position:relative;display:block;width:52px;height:30px;flex:none;cursor:pointer}
.perm-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.perm-switch span{position:absolute;inset:0;border-radius:999px;background:var(--pm-track);transition:background-color .22s}
.perm-switch span::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .22s cubic-bezier(.22,.75,.25,1)}
.perm-switch input:checked+span{background:linear-gradient(180deg,#2aa845,#17852f)}
.perm-switch input:checked+span::after{transform:translateX(22px)}
.perm-switch input:disabled{cursor:not-allowed}
.perm-switch input:disabled+span{opacity:.45}
.perm-switch input:focus-visible+span{outline:3px solid #98d94d;outline-offset:2px}
.perm-hint{margin:12px 0 0;padding:12px 14px;border-radius:14px;background:#fff4e5;color:#6b4300;font-size:14px;line-height:1.45}
.perm-hint[hidden]{display:none}
.perm-hint p{margin:0}
.perm-hint button{display:block;margin:8px 0 0;padding:8px 16px;border:0;border-radius:999px;background:#17852f;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.perm-done{display:block;width:100%;margin:14px 0 0;padding:14px;border:0;border-radius:16px;background:linear-gradient(180deg,#2aa845,#17852f);color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
.perm-done:active{filter:brightness(.95)}
@media(min-width:700px){.perm-sheet{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(460px,92vw);border-radius:24px;padding-bottom:20px}.perm-grab{display:none}}
@media(prefers-reduced-motion:reduce){.perm-switch span,.perm-switch span::after{transition:none}}
