/* DeepOcean Media Portal – portal.css (login + dashboard + vessel) */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#f6f8f8;color:#13262b;font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:#d9664b;text-decoration:none}a:hover{color:#b9533b}
input::placeholder{color:#8aa3a7}
input:focus{outline:none;border-color:#d9664b;box-shadow:0 0 0 4px rgba(217,102,75,.15)}
.serif{font-family:Newsreader,Georgia,serif;font-weight:400}

/* ===== LOGIN ===== */
.login{min-height:100vh;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr))}
.panel{position:relative;overflow:hidden;background:#1e4650;color:#f6f8f8;min-height:560px;display:flex;flex-direction:column;justify-content:space-between;padding:40px 48px}
.panel-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.panel-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(30,70,80,.55) 0%,rgba(30,70,80,.15) 40%,rgba(30,70,80,.88) 100%)}
.panel-top{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{height:28px;width:auto;display:block}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(30,70,80,.35);font-size:12px;font-weight:500;letter-spacing:1px;text-transform:uppercase}
.dot{width:8px;height:8px;border-radius:50%;background:#d9664b;display:inline-block}
.panel-bottom{position:relative;display:flex;flex-direction:column;gap:24px;max-width:520px}
.panel-bottom h1{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:48px;line-height:1.05;letter-spacing:-1.2px;margin:0;text-wrap:pretty}
.panel-bottom p{margin:0;font-size:16px;line-height:1.6;color:#cfe0e2;text-wrap:pretty}
.panel-foot{padding-top:24px;border-top:1px solid rgba(255,255,255,.2);font-size:13px;color:#a9c3c7}
.login-main{display:flex;align-items:center;justify-content:center;padding:48px 24px}
.card{width:100%;max-width:440px;display:flex;flex-direction:column;gap:32px;padding:40px;background:#fff;border-radius:16px;box-shadow:0 1px 3px rgba(19,38,43,.08),0 24px 48px -16px rgba(19,38,43,.18)}
.head{display:flex;flex-direction:column;gap:8px}
.eyebrow{font-size:12px;font-weight:500;letter-spacing:1px;text-transform:uppercase;color:#d9664b}
.head h2{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:36px;line-height:1.1;letter-spacing:-.8px;margin:0}
.head p{margin:0;color:#4e6a70;font-size:15px;line-height:1.5}
.fields{display:flex;flex-direction:column;gap:16px}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}
.field input[type=text],.field input[type=password]{height:48px;padding:0 14px;border:1px solid #d9e3e5;border-radius:8px;background:#fff;font:inherit;font-weight:400;font-size:15px;color:#13262b;width:100%}
.pw{position:relative}.pw input{padding-right:72px !important}
.pw-toggle{position:absolute;right:6px;top:6px;height:36px;padding:0 10px;border:0;background:transparent;color:#4e6a70;font:inherit;font-size:13px;font-weight:500;cursor:pointer;border-radius:6px}
.error{font-size:14px;color:#b3261e;background:#f7e9e6;border-radius:8px;padding:10px 14px}
.actions{display:flex;flex-direction:column;gap:16px}
.check{display:flex;align-items:center;gap:10px;font-size:14px;color:#2b4a51;cursor:pointer}
.check input{width:18px;height:18px;accent-color:#d9664b;margin:0}
.btn{height:48px;border:0;border-radius:8px;background:#d9664b;color:#fff;font:inherit;font-size:15px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px}
.btn:active{background:#b9533b}
.help{margin:0;font-size:13px;color:#6f8a8f;line-height:1.5;text-wrap:pretty}

/* ===== APP SHELL (dashboard + vessel) ===== */
.app{min-height:100vh;display:flex;flex-direction:column}
.topbar{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#1e4650;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.topbar-left{display:flex;align-items:center;gap:16px}
.menu-toggle{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer;margin-left:-8px}
.menu-toggle:hover{background:rgba(255,255,255,.1)}
.topbar-right{display:flex;align-items:center;gap:24px;font-size:13px;color:#cfe0e2}
.logout{color:#fff;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px}
.logout:hover{background:rgba(255,255,255,.1);color:#fff}
.body{flex:1;display:grid;grid-template-columns:280px minmax(0,1fr)}
.app.menu-closed .body{grid-template-columns:0 minmax(0,1fr)}
.sidebar{background:#1e4650;color:#fff;display:flex;flex-direction:column;position:sticky;top:0;height:calc(100vh - 60px);overflow:hidden;min-width:0;border-right:1px solid rgba(255,255,255,.08)}
.app.menu-closed .sidebar{width:0;border:0}
.side-head{padding:20px 16px 8px;display:flex;flex-direction:column;gap:16px}
.search{position:relative}
.search svg{position:absolute;left:12px;top:11px}
.search input{height:38px;padding:0 12px 0 36px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:14px;width:100%}
.side-label{display:flex;align-items:center;justify-content:space-between;padding:0 12px}
.side-label span:first-child{font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#a9c3c7}
.side-label .count{font-size:11px;color:#cfe0e2;background:rgba(255,255,255,.1);padding:2px 8px;border-radius:999px}
.side-nav{flex:1;overflow-y:auto;padding:0 16px 16px;display:flex;flex-direction:column;gap:1px}
.side-nav a,.side-foot a{display:flex;align-items:center;gap:10px;flex:none;height:36px;padding:0 12px;border-radius:10px;font-size:14px;color:#cfe0e2}
.side-nav a:hover,.side-foot a:hover{background:rgba(255,255,255,.08);color:#fff}
.side-nav a.active{background:rgba(255,255,255,.12);color:#fff;font-weight:500}
.side-nav a.active:hover{background:rgba(255,255,255,.16)}
.side-nav a .dot{width:6px;height:6px;background:rgba(255,255,255,.25);flex:none}
.side-nav a.active .dot{background:#d9664b}
.side-nav a .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-empty{padding:12px;font-size:13px;color:#a9c3c7}
.side-foot{padding:12px 16px 16px;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:1px}
.main{padding:72px 64px;display:flex;flex-direction:column;gap:48px;min-width:0}
@media (max-width:900px){.main{padding:32px 24px}}

/* dashboard */
.hero{position:relative;border-radius:16px;overflow:hidden;background:#1e4650;aspect-ratio:16/7;max-width:1280px;display:flex;align-items:flex-start;padding:40px}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hero-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(30,70,80,.75) 0%,rgba(30,70,80,0) 55%)}
.hero-text{position:relative;display:flex;flex-direction:column;gap:12px;color:#fff;max-width:640px}
.hero-text .eyebrow{font-size:13px;color:#f0a089}
.hero-text .title{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:44px;line-height:1.05;letter-spacing:-1.2px}
.intro{display:flex;flex-direction:column;gap:16px;max-width:560px}
.intro h1{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:44px;line-height:1.1;letter-spacing:-1.2px;margin:0;text-wrap:pretty}
.intro p{margin:0;color:#4e6a70;font-size:17px;line-height:1.6;text-wrap:pretty}
.foot{display:flex;flex-direction:column;gap:12px;max-width:560px;padding-top:32px;border-top:1px solid #d9e3e5;font-size:14px;color:#4e6a70;line-height:1.6}
.foot p{margin:0}.foot .copy{font-size:13px;color:#6f8a8f}

/* vessel */
.vessel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.crumbs{display:flex;gap:8px;font-size:13px;color:#4e6a70}.crumbs .cur{color:#13262b}
.vessel-head h1{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:44px;line-height:1.1;letter-spacing:-1.2px;margin:0}
.vessel-head p{margin:0;color:#4e6a70;font-size:16px;line-height:1.5}
.vessel-actions{display:flex;align-items:center;gap:12px}
.live{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#e4eeef;font-size:12px;font-weight:500;letter-spacing:1px;text-transform:uppercase}
.btn-secondary{height:40px;padding:0 16px;border:1px solid #d9e3e5;border-radius:8px;background:#fff;font:inherit;font-size:14px;font-weight:500;color:#13262b;cursor:pointer}
.player-wrap{display:flex;flex-direction:column;gap:12px;max-width:1280px}
.player{aspect-ratio:16/9;border-radius:12px;background:#1e4650;overflow:hidden;position:relative}
.player iframe,.player video,.player img{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.player-note{margin:0;font-size:13px;color:#6f8a8f}

/* ---------------------------------------------------------------------------------------------------------
   Legacy admin views (auth/*, vessel_admin) — Bootstrap-era markup rendered inside the new frame (DOIT 2026-10-22).
   Scoped to .main.legacy so it never touches the designed pages. Plain, matching, no third-party CSS.
   --------------------------------------------------------------------------------------------------------- */
.main.legacy{display:flex;flex-direction:column;gap:24px;max-width:1100px}
.main.legacy .page-content{display:flex;flex-direction:column;gap:24px}
.main.legacy .row{display:block}
.main.legacy .page-title{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:36px;line-height:1.1;letter-spacing:-.8px;margin:0 0 8px}
.main.legacy .page-title small{display:block;font-family:Inter,system-ui,sans-serif;font-size:15px;letter-spacing:0;color:#4e6a70;margin-top:6px}
.main.legacy .page-breadcrumb{display:none}
.main.legacy h1{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:36px;line-height:1.1;letter-spacing:-.8px;margin:0 0 8px}
.main.legacy h3{font-size:18px;font-weight:500;margin:0 0 8px}
.main.legacy p{margin:0 0 12px;color:#4e6a70;line-height:1.6}
.main.legacy .fa{display:none}
.main.legacy .portlet{background:#fff;border:1px solid #d9e3e5;border-radius:12px;overflow:hidden;margin-bottom:24px}
.main.legacy .portlet-title{padding:14px 20px;border-bottom:1px solid #d9e3e5;font-weight:500;display:flex;align-items:center;justify-content:space-between}
.main.legacy .portlet-title .tools,.main.legacy .portlet-title .actions{display:none}
.main.legacy .portlet-body{padding:20px}
.main.legacy .table-responsive{overflow-x:auto}
.main.legacy table{width:100%;border-collapse:collapse;font-size:14px;background:#fff;border:1px solid #d9e3e5;border-radius:12px;overflow:hidden}
.main.legacy th{text-align:left;font-size:12px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#4e6a70;padding:12px 14px;border-bottom:1px solid #d9e3e5;background:#f0f4f5}
.main.legacy td{padding:12px 14px;border-bottom:1px solid #e7eeef;vertical-align:middle}
.main.legacy tr:last-child td{border-bottom:0}
.main.legacy .table-hover tbody tr:hover td{background:#f6f8f8}
.main.legacy .form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;max-width:560px}
.main.legacy .form-horizontal .form-group{flex-direction:column}
.main.legacy .control-label,.main.legacy label{font-size:14px;font-weight:500;color:#13262b}
.main.legacy .col-md-3,.main.legacy .col-md-9,.main.legacy .col-md-2,.main.legacy .col-md-offset-3{width:auto;margin:0;padding:0}
.main.legacy input[type=text],.main.legacy input[type=password],.main.legacy input[type=email],.main.legacy select,.main.legacy textarea,.main.legacy .form-control{height:44px;padding:0 14px;border:1px solid #d9e3e5;border-radius:8px;background:#fff;font:inherit;font-size:15px;color:#13262b;width:100%;max-width:560px}
.main.legacy textarea{height:auto;padding:12px 14px}
.main.legacy input:focus,.main.legacy select:focus,.main.legacy textarea:focus{outline:none;border-color:#d9664b;box-shadow:0 0 0 4px rgba(217,102,75,.15)}
.main.legacy .checkbox{display:flex;align-items:center;gap:10px;font-weight:400}
.main.legacy .checkbox input{width:18px;height:18px;accent-color:#d9664b}
.main.legacy .help-block{font-size:13px;color:#6f8a8f}
.main.legacy .form-actions{padding-top:8px}
.main.legacy .btn,.main.legacy button[type=submit],.main.legacy input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;border:0;border-radius:8px;background:#d9664b;color:#fff;font:inherit;font-size:14px;font-weight:500;cursor:pointer;text-decoration:none}
.main.legacy .btn:hover,.main.legacy button[type=submit]:hover{background:#b9533b;color:#fff}
.main.legacy .btn.default,.main.legacy .btn-default{background:#fff;color:#13262b;border:1px solid #d9e3e5}
.main.legacy .btn.default:hover{background:#f6f8f8;color:#13262b}
.main.legacy .label{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:500;background:#e4eeef;color:#13262b}
.main.legacy .label-danger,.main.legacy .label-danger a{background:#f7e9e6;color:#b3261e}
.main.legacy .label a{color:inherit}
.main.legacy .alert,.main.legacy #infoMessage p{font-size:14px;color:#b3261e;background:#f7e9e6;border-radius:8px;padding:10px 14px;margin:0 0 16px;max-width:560px}
.main.legacy #infoMessage:empty{display:none}
.main.legacy .dropdown-menu{display:none}
.main.legacy a{color:#d9664b}

/* Dashboard notice — personal access (DOIT 2026-10-22) */
.notice{max-width:720px;padding:24px 28px;border-radius:12px;background:#e4eeef;display:flex;flex-direction:column;gap:8px}
.notice-title{font-size:15px;font-weight:500;color:#13262b}
.notice p{margin:0;font-size:14px;line-height:1.6;color:#4e6a70;text-wrap:pretty}
.player-notice{margin-top:4px;max-width:1280px}
.player-notice p+p{margin-top:4px}
/* vessel page: head aligned with the player (DOIT 2026-10-22) */
.vessel-head{max-width:1280px}
.live.is-starting,.live.is-offline{background:#f8ecd4;color:#7a4e0a}
.live.is-starting .dot,.live.is-offline .dot{background:#d99a2b}
/* status dot pulse (Ronny 22.10): working states breathe, offline blinks slowly */
@keyframes pill-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}
.live.is-starting .dot{animation:pill-pulse 1.2s ease-in-out infinite}
.live.is-offline .dot{animation:pill-pulse 2.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.live .dot{animation:none}}
/* legacy admin tables v2 (DOIT 2026-10-22): wide tables, mono identifiers, quiet delete, working add-form */
.main.legacy{max-width:1480px}
.main.legacy .page-actions{display:flex;justify-content:flex-start;gap:12px;margin:4px 0 8px}
.main.legacy .portlet-body{padding:0}
.main.legacy .portlet-body.form{padding:20px}
.main.legacy .portlet>.portlet-body>.table-responsive{overflow-x:auto}
.main.legacy table{border:0;border-radius:0;font-size:13.5px}
.main.legacy th,.main.legacy td{white-space:nowrap}
.main.legacy td:nth-child(5),.main.legacy th:nth-child(5){white-space:normal;min-width:160px}
.main.legacy .label.label-danger{background:transparent;padding:0}
.main.legacy .label.label-danger a{display:inline-flex;align-items:center;height:30px;padding:0 10px;border:1px solid #e6c7c2;border-radius:8px;background:#fff;color:#b3261e;font-size:13px;font-weight:500;white-space:nowrap}
.main.legacy .label.label-danger a:hover{background:#f7e9e6}
.main.legacy .form-horizontal .form-group{max-width:640px}
.main.legacy select.form-control{max-width:320px;height:44px}
.main.legacy .form-actions{display:flex;gap:10px;padding-top:4px}
.main.legacy .form-actions .col-md-offset-3{display:flex;gap:10px}
.main.legacy .btn.green{background:#d9664b;color:#fff}
.main.legacy .btn.blue{background:#1e4650;color:#fff}
.main.legacy .table-hover tbody tr:hover td{background:#f6f8f8}
/* topbar Administration menu (Ronny 22.10); sidebar holds vessels only */
.admin-menu{position:relative}
.admin-toggle{display:flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.06);color:#f6f8f8;font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.admin-toggle:hover,.admin-toggle[aria-expanded=true]{background:rgba(255,255,255,.14)}
.admin-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:240px;padding:8px;border-radius:12px;background:#fff;color:#13262b;box-shadow:0 1px 3px rgba(20,20,19,.08),0 16px 40px -12px rgba(20,20,19,.25);display:flex;flex-direction:column;gap:2px;z-index:50}
.admin-dropdown[hidden]{display:none}
.admin-dropdown-label{padding:8px 12px 4px;font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#6f8a8f}
.admin-dropdown a{display:flex;align-items:center;height:36px;padding:0 12px;border-radius:8px;font-size:14px;color:#13262b}
.admin-dropdown a:hover{background:#f0f4f5;color:#13262b}
.admin-dropdown a.active{background:#e4eeef;font-weight:500}
/* mono identifiers only in the vessel table, not in every legacy table */
.main.legacy table td:first-child{font-family:inherit;font-size:inherit;color:inherit;letter-spacing:0}
.main.legacy table.table-vessels td:first-child{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:#4e6a70;letter-spacing:.2px}

/* frame stays put while the page scrolls (Ronny 22.10): sticky topbar, sidebar pinned below it */
.topbar{position:sticky;top:0;z-index:40}
.sidebar{top:60px}

/* logo smaller, sitting over the sidebar column (Ronny 22.10) */
.topbar{padding:0 32px 0 0}
.topbar-left{width:280px;flex:none;box-sizing:border-box;padding:0 16px 0 20px;gap:12px}
.app.menu-closed .topbar-left{width:auto;padding-left:20px;padding-right:24px}
.topbar .logo{height:18px}

/* air between the action buttons and what follows (Ronny 22.10) */
.main.legacy .page-actions{margin:8px 0 28px}
.main.legacy #infoMessage:not(:empty){margin-bottom:16px}

/* legacy auth forms (create/edit user, groups, change password) as a card with chips for groups (Ronny 22.10) */
.main.legacy form{display:block;max-width:760px;padding:28px;background:#fff;border:1px solid #d9e3e5;border-radius:12px}
.main.legacy form>p{display:flex;flex-direction:column;gap:6px;margin:0 0 18px;max-width:560px;color:#13262b}
.main.legacy form>p br{display:none}
.main.legacy form>p label{font-size:14px;font-weight:500}
.main.legacy form>p:has(input[type=submit]){margin:24px 0 0;max-width:none}
.main.legacy form h3{margin:8px 0 12px;font-size:15px;font-weight:500}
.main.legacy label.checkbox{display:inline-flex;align-items:center;gap:8px;margin:0 8px 8px 0;padding:6px 12px 6px 8px;border:1px solid #d9e3e5;border-radius:999px;background:#fff;font-size:13.5px;font-weight:400;cursor:pointer;line-height:1.2}
.main.legacy label.checkbox input{width:16px;height:16px;margin:0}
.main.legacy label.checkbox:hover{border-color:#9fbfc4}
.main.legacy label.checkbox:has(input:checked){background:#e4eeef;border-color:#9fbfc4;font-weight:500}
.main.legacy form input[type=submit]{margin-top:4px}

/* help page (user guide) — DOIT 2026-10-22 */
.help{display:flex;flex-direction:column;gap:40px;max-width:760px}
.help-head{display:flex;flex-direction:column;gap:12px}
.help-head h1{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:44px;line-height:1.1;letter-spacing:-1.2px;margin:0;text-wrap:pretty}
.help-head p{margin:0;color:#4e6a70;font-size:17px;line-height:1.6}
.help-actions{padding-top:4px}
.help-steps{margin:0;padding:0 0 0 28px;display:flex;flex-direction:column;gap:28px;counter-reset:none}
.help-steps li::marker{font-family:Newsreader,Georgia,serif;font-size:22px;color:#d9664b}
.help-steps h2{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:26px;line-height:1.15;letter-spacing:-.5px;margin:0 0 8px}
.help-steps p{margin:0 0 8px;color:#4e6a70;font-size:15px;line-height:1.6}
.help-status{list-style:none;margin:8px 0 12px;padding:0;display:flex;flex-direction:column;gap:10px;font-size:14px;color:#4e6a70}
.help-status li{display:flex;align-items:center;gap:12px}
.help-status .live{flex:none}
/* print: the guide alone, no frame */
@media print{
  .topbar,.sidebar,.help-actions,.menu-toggle{display:none !important}
  .body{display:block}
  .main{padding:0}
  .help{max-width:none}
  a{color:#13262b;text-decoration:none}
  .live{border:1px solid #999}
}

/* edit user: groups in three columns; submit button its own width (Ronny 22.10) */
.main.legacy .group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 8px}
.main.legacy .group-grid label.checkbox{margin:0;width:100%;overflow:hidden}
.main.legacy .group-grid label.checkbox span,.main.legacy .group-grid label.checkbox{white-space:nowrap;text-overflow:ellipsis}
.main.legacy form>p:has(input[type=submit]){align-items:flex-start}
@media (max-width:900px){.main.legacy .group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* users: delete action + confirm dialog (DOIT 2026-10-22) */
.main.legacy .actions-cell{white-space:nowrap}
.main.legacy .actions-cell a{margin-right:12px}
.inline-form{display:inline}
.btn-link{border:0;background:transparent;padding:0;font:inherit;font-size:inherit;color:#d9664b;cursor:pointer}
.btn-link.danger{color:#b3261e}
.btn-link:hover{text-decoration:underline}
.dialog{border:0;border-radius:16px;padding:0;width:min(92vw,460px);background:#fff;color:#13262b;box-shadow:0 1px 3px rgba(20,20,19,.08),0 24px 48px -16px rgba(20,20,19,.25)}
.dialog::backdrop{background:rgba(19,38,43,.45)}
.dialog-form{display:flex;flex-direction:column;gap:18px;padding:28px}
.dialog-head{display:flex;flex-direction:column;gap:6px}
.dialog-head h2{font-family:Newsreader,Georgia,serif;font-weight:400;font-size:28px;line-height:1.1;letter-spacing:-.6px;margin:0}
.dialog-head p{margin:0;color:#4e6a70;font-size:14px;line-height:1.5}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px}
.dialog .btn{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 18px;border:0;border-radius:8px;background:#d9664b;color:#fff;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.dialog .btn.default{background:#fff;color:#13262b;border:1px solid #d9e3e5}
.dialog .btn.danger{background:#b3261e}

/* vessel page: status pill under the subtitle, a size up (Ronny 22.10) */
.vessel-head .live{align-self:flex-start;margin-top:4px;padding:8px 14px;font-size:13px;letter-spacing:1.2px;gap:10px}
.vessel-head .live .dot{width:10px;height:10px}

/* the inline delete form in the users table is not a card (Ronny 22.10) */
.main.legacy form.inline-form{display:inline;padding:0;margin:0;border:0;border-radius:0;background:transparent;max-width:none}
.main.legacy .actions-cell{white-space:nowrap;vertical-align:middle}

/* vessel administration: Edit per row, edit page with delete below the form, saved/deleted message (Ronny 22.10) */
.main.legacy .row-btn{display:inline-flex;align-items:center;height:30px;padding:0 10px;border:1px solid #d9e3e5;border-radius:8px;background:#fff;color:#13262b;font:inherit;font-size:13px;font-weight:500;white-space:nowrap;text-decoration:none;cursor:pointer}
.main.legacy .row-btn:hover{background:#f6f8f8}
.main.legacy .row-btn.danger{border-color:#e6c7c2;color:#b3261e}
.main.legacy .row-btn.danger:hover{background:#f7e9e6}
.main.legacy #infoMessage.ok p{color:#1e4650;background:#e4eeef}
.main.legacy .page-title .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;letter-spacing:.2px}
.main.legacy form.vessel-form .help-block{font-weight:400}
.main.legacy form.vessel-form select{max-width:320px}
.main.legacy .form-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:24px}
.main.legacy form.delete-zone{margin-top:24px;border-color:#e6c7c2}
.main.legacy form.delete-zone h3{margin:0 0 6px;color:#b3261e}
.main.legacy form.delete-zone p{margin:0 0 16px;max-width:560px}
.main.legacy form.delete-zone .row-btn.danger{height:42px;padding:0 16px;font-size:14px}

/* coloured Edit button (vessels + users), active switch with date, user status line (Ronny 22.10) */
.main.legacy .row-btn{position:relative}
.main.legacy .row-btn::after{content:"";position:absolute;inset:-7px -4px}
.main.legacy .row-btn.edit{background:#e4eeef;border-color:#9fbfc4;color:#1e4650}
.main.legacy .row-btn.edit:hover{background:#d3e3e5;border-color:#7fa9af}
.main.legacy .row-btn:focus-visible,.main.legacy form.switch-form button.switch:focus-visible{outline:2px solid #1e4650;outline-offset:2px}
.main.legacy table.table-users tr[id]{scroll-margin-top:84px}
.main.legacy .status-cell{white-space:nowrap}
.main.legacy form.switch-form button.switch{display:inline-flex;align-items:center;gap:10px;position:relative;min-height:34px;height:auto;padding:0;border:0;border-radius:0;background:transparent;color:#4e6a70;font:inherit;font-size:13.5px;font-weight:400;cursor:pointer;text-align:left}
.main.legacy form.switch-form button.switch:hover{background:transparent;color:#13262b}
.main.legacy form.switch-form button.switch.on{color:#13262b}
.main.legacy form.switch-form button.switch[disabled]{cursor:not-allowed;opacity:.6}
.main.legacy .switch .track{position:relative;flex:none;width:40px;height:22px;border-radius:999px;background:#c9d6d8;transition:background .15s ease}
.main.legacy .switch .knob{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(19,38,43,.25);transition:transform .15s ease}
.main.legacy .switch.on .track{background:#1e4650}
.main.legacy .switch.on .knob{transform:translateX(18px)}
.main.legacy .switch:not([disabled]):hover .track{background:#b3c5c8}
.main.legacy .switch.on:not([disabled]):hover .track{background:#2b5a66}
.main.legacy .switch-text{display:flex;flex-direction:column;line-height:1.25;font-weight:500}
.main.legacy .switch .since{font-size:12px;font-weight:400;color:#6f8a8f}
@media (prefers-reduced-motion:reduce){.main.legacy .switch .track,.main.legacy .switch .knob{transition:none}}
.main.legacy .user-status{display:flex;align-items:center;gap:8px;font-size:14px;color:#13262b}
.main.legacy .status-dot{width:10px;height:10px;border-radius:50%;background:#c9d6d8}
.main.legacy .status-dot.on{background:#1e4650}
.main.legacy form.switch-form button.switch::after{content:"";position:absolute;inset:-5px -4px}
/* a confirmation is not an error: teal, like the vessel list (Ronny 22.10) */
.main.legacy #infoMessage p.ok{color:#1e4650;background:#e4eeef}

/* ===== AUDIT LOG (Administration → Audit log, DOIT 2026-10-22) ===== */
.main.legacy .audit{display:flex;flex-direction:column;gap:24px;max-width:1480px}
.main.legacy .audit .page-title{margin:0}
.audit-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.main.legacy a.audit-stat{display:flex;flex-direction:column;gap:4px;padding:18px 20px;background:#fff;border:1px solid #d9e3e5;border-radius:12px;color:#13262b;text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease}
.main.legacy a.audit-stat:hover{border-color:#9fbfc4;box-shadow:0 1px 3px rgba(19,38,43,.06);color:#13262b}
.main.legacy a.audit-stat:focus-visible{outline:2px solid #1e4650;outline-offset:2px}
.audit-stat-label{font-size:12px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#4e6a70}
.audit-stat-value{font-family:Newsreader,Georgia,serif;font-size:36px;line-height:1.1;letter-spacing:-.6px;color:#13262b}
.audit-stat.is-bad .audit-stat-value{color:#b3261e}
.audit-stat-sub{font-size:13px;color:#6f8a8f}

.audit-tabs{display:flex;gap:4px;border-bottom:1px solid #d9e3e5;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.main.legacy a.audit-tab{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;margin-bottom:-1px;border-bottom:2px solid transparent;color:#4e6a70;font-size:14px;font-weight:500;white-space:nowrap;text-decoration:none}
.main.legacy a.audit-tab:hover{color:#13262b;border-bottom-color:#c9d6d8}
.main.legacy a.audit-tab[aria-current=page]{color:#13262b;border-bottom-color:#d9664b}
.main.legacy a.audit-tab:focus-visible{outline:2px solid #1e4650;outline-offset:-2px}
.audit-tab .count{display:inline-block;min-width:22px;padding:2px 8px;border-radius:999px;background:#e4eeef;color:#1e4650;font-size:12px;font-weight:500;text-align:center}
.audit-tab[aria-current=page] .count{background:#1e4650;color:#fff}

.main.legacy form.audit-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;max-width:none;padding:0;margin:0;background:transparent;border:0;border-radius:0}
.audit-field{display:flex;flex-direction:column;gap:6px}
.main.legacy .audit-field>span{font-size:12px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#4e6a70}
.audit-search{flex:1 1 280px;min-width:0}
.main.legacy .audit-filter input[type=search]{height:44px;width:100%;padding:0 14px 0 40px;border:1px solid #d9e3e5;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f8a8f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;font:inherit;font-size:15px;color:#13262b}
.main.legacy .audit-filter input[type=search]:focus{outline:none;border-color:#d9664b;box-shadow:0 0 0 4px rgba(217,102,75,.15)}
.main.legacy .audit-filter select{height:44px;width:auto;min-width:170px;max-width:none}
.audit-filter-actions{display:flex;flex-wrap:wrap;gap:10px;flex:1 1 auto}
.main.legacy .audit-filter-actions .btn{height:44px}
.main.legacy .audit-filter-actions .audit-export{margin-left:auto}
.main.legacy .audit-export[aria-disabled=true]{opacity:.5;pointer-events:none}

.audit-card{background:#fff;border:1px solid #d9e3e5;border-radius:12px;overflow:hidden}
.audit-card-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;padding:14px 20px;border-bottom:1px solid #d9e3e5}
.main.legacy .audit-card-head h4{margin:0;font-size:15px;font-weight:500;color:#13262b}
.audit-range{font-size:13px;color:#4e6a70}
.main.legacy table.audit-table{border:0;border-radius:0}
.main.legacy .audit-table td{white-space:normal;vertical-align:top}
.main.legacy .audit-table td.audit-when,.main.legacy .audit-table td:nth-child(2){white-space:nowrap}
.main.legacy .audit-table td.audit-details{min-width:240px;color:#2b4a51}
.main.legacy .audit-table td.audit-who,.main.legacy .audit-table td.audit-target{min-width:150px}
.audit-when .t{display:block;color:#13262b}
.audit-when .sub{display:block;font-size:12px;color:#6f8a8f;margin-top:2px}
.main.legacy .audit-table td.audit-ip{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:#4e6a70;white-space:nowrap}
.audit-table .muted{color:#8aa3a7}
.audit-pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:500;white-space:nowrap}
.audit-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.8}
.audit-pill.tone-ok{background:#e4eeef;color:#1e4650}
.audit-pill.tone-bad{background:#f7e9e6;color:#b3261e}
.audit-pill.tone-warn{background:#f8ecd4;color:#7a4e0a}
.audit-pill.tone-change{background:#eef0ea;color:#3f5a3a}
.audit-empty{padding:56px 24px;text-align:center}
.main.legacy .audit-empty p{margin:0 auto;max-width:460px;color:#4e6a70}
.main.legacy .audit-empty .audit-empty-title{font-family:Newsreader,Georgia,serif;font-size:24px;color:#13262b;margin-bottom:6px}
.audit-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid #d9e3e5}
.audit-page{font-size:13px;color:#4e6a70}
.main.legacy .audit-pager .btn{height:40px}
.main.legacy .audit-pager .is-disabled{opacity:.45;cursor:default}
@media (max-width:700px){
  .audit-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .main.legacy a.audit-stat{padding:14px}
  .audit-stat-value{font-size:28px}
  .main.legacy .audit-filter-actions .audit-export{margin-left:0}
  .main.legacy .audit-filter select{min-width:0;width:100%}
  .audit-field{flex:1 1 140px}
  .main.legacy .audit-table thead{display:none}
  .main.legacy .audit-table,.main.legacy .audit-table tbody,.main.legacy .audit-table tr,.main.legacy .audit-table td{display:block;width:100%}
  .main.legacy .audit-table tr{padding:12px 16px;border-bottom:1px solid #e7eeef}
  .main.legacy .audit-table tr:last-child{border-bottom:0}
  .main.legacy .audit-table td{display:flex;gap:12px;padding:4px 0;border:0;min-width:0}
  .main.legacy .audit-table td::before{content:attr(data-label);flex:none;width:64px;font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#6f8a8f;padding-top:3px}
  .main.legacy .audit-table td.audit-details,.main.legacy .audit-table td.audit-who,.main.legacy .audit-table td.audit-target{min-width:0}
  .audit-when .t,.audit-when .sub{display:inline}
  .audit-when .sub::before{content:" · "}
}
@media (prefers-reduced-motion:reduce){.main.legacy a.audit-stat{transition:none}}

/* ===== ACCOUNT SCHEDULE (Administration → Users → Account schedule, DOIT 2026-10-22) ===== */
.main.legacy .schedule{display:flex;flex-direction:column;gap:24px}
.main.legacy .schedule .page-title{margin:0}
.sched-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,400px);gap:24px;align-items:start}
.sched-side{display:flex;flex-direction:column;gap:24px;min-width:0}
.sched-card{background:#fff;border:1px solid #d9e3e5;border-radius:12px;overflow:hidden}
.sched-cal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}
.main.legacy .sched-cal-head h4{margin:0;font-family:Newsreader,Georgia,serif;font-weight:400;font-size:26px;letter-spacing:-.4px;color:#13262b}
.sched-cal-nav{display:flex;gap:8px}
.main.legacy .sched-cal-nav .btn{height:40px;min-width:44px;padding:0 12px}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #e7eeef}
.cal-wd{padding:8px;font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#6f8a8f;border-bottom:1px solid #e7eeef}
.cal-day{min-height:104px;min-width:0;padding:6px;display:flex;flex-direction:column;gap:4px;border-right:1px solid #e7eeef;border-bottom:1px solid #e7eeef}
.cal-grid>:nth-child(7n){border-right:0}
.cal-day.is-out{background:#fafbfb}
.cal-day.is-out .cal-num{color:#b6c6c9}
.cal-day.is-past:not(.is-out){background:#fcfdfd}
.cal-num{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;font-size:12px;font-weight:500;color:#4e6a70}
.cal-day.is-today .cal-num{background:#d9664b;color:#fff}
.cal-ev{display:block;max-width:100%;padding:3px 6px;border-radius:6px;font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
.cal-ev .t{font-weight:500}
.main.legacy a.cal-ev:hover{filter:brightness(.96)}
.main.legacy .cal-ev.is-activate{background:#e4eeef;color:#1e4650}
.main.legacy .cal-ev.is-deactivate{background:#f8ecd4;color:#7a4e0a}
.main.legacy .cal-ev.status-done{opacity:.6}
.main.legacy .cal-ev.status-failed{background:#f7e9e6;color:#b3261e}
.cal-agenda{display:none}
.ag-day{display:flex;gap:12px;padding:10px 16px;border-top:1px solid #e7eeef}
.ag-day.is-today .ag-date{color:#d9664b}
.ag-date{flex:none;width:88px;font-size:13px;font-weight:500;color:#13262b;padding-top:3px}
.ag-events{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.main.legacy .cal-empty{margin:0;padding:16px;color:#4e6a70}
.cal-legend{display:flex;flex-wrap:wrap;gap:8px;padding:10px 16px;border-top:1px solid #e7eeef}
.cal-legend .cal-ev{display:inline-block}

.main.legacy form.sched-form{max-width:none;padding:22px}
.main.legacy form.sched-form h4{margin:0 0 16px;font-size:15px;font-weight:500;color:#13262b}
.main.legacy form.sched-form>p{max-width:none}
.sched-when{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.main.legacy .sched-when p{display:flex;flex-direction:column;gap:6px;margin:0;color:#13262b}
.main.legacy .sched-form .help-block{display:block;margin:6px 0 16px}
.main.legacy .sched-form input[type=datetime-local],.main.legacy .sched-form input[type=search]{height:44px;width:100%;padding:0 12px;border:1px solid #d9e3e5;border-radius:8px;background:#fff;font:inherit;font-size:15px;color:#13262b}
.main.legacy .sched-form input[type=datetime-local]:focus,.main.legacy .sched-form input[type=search]:focus{outline:none;border-color:#d9664b;box-shadow:0 0 0 4px rgba(217,102,75,.15)}
.main.legacy #sched-filter{margin-bottom:6px;height:40px;font-size:14px}
.main.legacy .sched-form select{max-width:none}
.main.legacy .sched-form .form-buttons{margin-top:8px}

.main.legacy .sched-upcoming h4{display:flex;align-items:center;gap:8px;margin:0;padding:14px 16px;font-size:15px;font-weight:500;color:#13262b;border-bottom:1px solid #e7eeef}
.sched-upcoming h4 .count,.sched-user .count{display:inline-block;min-width:22px;padding:2px 8px;border-radius:999px;background:#e4eeef;color:#1e4650;font-size:12px;text-align:center}
.sched-list{list-style:none;margin:0;padding:0}
.sched-item{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;border-top:1px solid #e7eeef}
.sched-list .sched-item:first-child{border-top:0}
.sched-item-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13.5px;color:#13262b}
.sched-item-main a{overflow-wrap:anywhere}
.sched-meta{font-size:12px;color:#6f8a8f;overflow-wrap:anywhere}
.sched-item .audit-pill{margin-top:1px}

.main.legacy .sched-user{max-width:760px;margin-top:24px;background:#fff;border:1px solid #d9e3e5;border-radius:12px;overflow:hidden}
.sched-user-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid #e7eeef}
.main.legacy .sched-user-head h3{margin:0;font-size:15px;font-weight:500}
.main.legacy .sched-user p.muted{margin:0;padding:16px 20px;color:#4e6a70}
.main.legacy .sched-user .sched-item{padding:12px 20px}
.main.legacy a.next-change{display:block;margin-top:2px;font-size:12px;color:#1e4650;white-space:nowrap}

@media (max-width:1180px){.sched-layout{grid-template-columns:minmax(0,1fr)}}
@media (max-width:700px){
  .cal-grid{display:none}
  .cal-agenda{display:block}
  .sched-when{grid-template-columns:1fr}
  .main.legacy .sched-cal-head h4{font-size:22px}
}

/* audit: air between the figures and the tabs, Refresh in the log's header (Ronny 22.10) */
.audit-stats{margin-bottom:16px}
.audit-card-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.main.legacy .audit-card-head .audit-refresh{height:36px;padding:0 12px;gap:6px;font-size:13px}

/* ===== 24-hour date/time picker (portal.js, data-dt) — Ronny 22.10: «bedre kalender velger», «24 timers» ===== */
.dt{position:relative;width:100%}
.main .dt-field{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:44px;padding:0 12px 0 14px;border:1px solid #d9e3e5;border-radius:8px;background:#fff;color:#13262b;font:inherit;font-size:15px;font-weight:400;text-align:left;cursor:pointer}
.main .dt-field:hover{border-color:#9fbfc4;background:#fff;color:#13262b}
.main .dt-field:focus-visible,.dt.is-open .dt-field{outline:none;border-color:#d9664b;box-shadow:0 0 0 4px rgba(217,102,75,.15)}
.dt-field.is-empty .dt-text{color:#8aa3a7}
.dt-field svg{flex:none;color:#6f8a8f}
.dt-pop{position:absolute;z-index:60;top:calc(100% + 6px);left:0;width:min(320px,calc(100vw - 32px));padding:14px;background:#fff;border:1px solid #d9e3e5;border-radius:12px;box-shadow:0 1px 3px rgba(19,38,43,.08),0 24px 48px -16px rgba(19,38,43,.25);color:#13262b}
.dt-pop.to-left{left:auto;right:0}
.dt-pop.to-top{top:auto;bottom:calc(100% + 6px)}
.dt-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.dt-title{font-family:Newsreader,Georgia,serif;font-size:19px}
.main .dt-nav{width:36px;height:36px;padding:0;border:1px solid #d9e3e5;border-radius:8px;background:#fff;color:#13262b;font:inherit;font-size:20px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.main .dt-nav:hover{background:#f6f8f8;color:#13262b}
.main .dt-nav:disabled{opacity:.35;cursor:default}
.dt-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.dt-wd{padding:4px 0;font-size:11px;font-weight:500;text-align:center;color:#6f8a8f;text-transform:uppercase;letter-spacing:.5px}
.main .dt-day{height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#13262b;font:inherit;font-size:14px;font-weight:400;cursor:pointer}
.main .dt-day:hover{background:#e4eeef;color:#13262b}
.main .dt-day.is-today{box-shadow:inset 0 0 0 1px #d9664b;font-weight:500}
.main .dt-day.is-sel,.main .dt-day.is-sel:hover{background:#1e4650;color:#fff;font-weight:500}
.main .dt-day:disabled{color:#c3d0d2;background:transparent;cursor:default}
.main .dt-day:focus-visible{outline:2px solid #1e4650;outline-offset:1px}
.dt-time{display:flex;align-items:center;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid #e7eeef}
.dt-time-label{font-size:12px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#4e6a70;margin-right:auto}
.main select.dt-sel{width:72px;max-width:none;height:40px;padding:0 8px;border:1px solid #d9e3e5;border-radius:8px;background:#fff;font:inherit;font-size:15px;font-variant-numeric:tabular-nums;color:#13262b}
.dt-colon{font-size:16px;font-weight:500}
.dt-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.main .dt-chip{height:30px;padding:0 10px;border:1px solid #d9e3e5;border-radius:999px;background:#fff;color:#1e4650;font:inherit;font-size:12.5px;font-weight:500;cursor:pointer}
.main .dt-chip:hover{background:#e4eeef;color:#1e4650}
.dt-foot{display:flex;justify-content:space-between;margin-top:12px}
.main .dt-clear{height:36px;padding:0 12px;border:0;background:transparent;color:#4e6a70;font:inherit;font-size:14px;cursor:pointer}
.main .dt-clear:hover{color:#b3261e;background:transparent}
.main .dt-done{height:36px;padding:0 16px;border:0;border-radius:8px;background:#d9664b;color:#fff;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.main .dt-done:hover{background:#b9533b;color:#fff}
@media (max-width:600px){
  .dt-pop,.dt-pop.to-left,.dt-pop.to-top{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;border-radius:16px 16px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
  .main .dt-day{height:42px}
}

/* schedule: stacked fields, jobs table with actions, Edit dialog (Ronny 22.10) */
.main.legacy form.sched-form .help-block{display:block;margin-top:6px;font-weight:400}
.sched-jobs-head{padding:0 16px;border-bottom:1px solid #e7eeef}
.sched-tabs{border-bottom:0}
.main.legacy table.jobs-table{border:0;border-radius:0}
.main.legacy .jobs-table td{white-space:normal;vertical-align:top}
.main.legacy .jobs-table td:first-child{white-space:nowrap}
.jobs-table .sub{display:block;font-size:12px;color:#6f8a8f;margin-top:2px}
.jobs-table .muted{color:#8aa3a7}
.main.legacy .jobs-table td.jobs-actions{white-space:nowrap;text-align:right}
.jobs-actions .inline-form,.jobs-actions .row-btn{margin-left:6px}
.main.legacy .jobs-actions .row-btn{height:32px}
.rem{font-size:12.5px;color:#4e6a70}
.rem-ok{color:#1e4650;font-weight:500}
.rem-bad{color:#b3261e}
.rem-off{color:#8aa3a7}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.main.legacy form.dialog-form{max-width:none;padding:28px;border:0;border-radius:0;background:transparent}
.main.legacy form.dialog-form>p.dialog-field{max-width:none;margin:0}
.dialog .dialog-field input[type=text]{height:44px;width:100%;padding:0 14px;border:1px solid #d9e3e5;border-radius:8px;font:inherit;font-size:15px}
.dialog{overflow:visible}
@media (max-width:900px){
  .main.legacy .jobs-table thead{display:none}
  .main.legacy .jobs-table,.main.legacy .jobs-table tbody,.main.legacy .jobs-table tr,.main.legacy .jobs-table td{display:block;width:100%}
  .main.legacy .jobs-table tr{padding:12px 16px;border-bottom:1px solid #e7eeef}
  .main.legacy .jobs-table td{display:flex;gap:12px;padding:3px 0;border:0}
  .main.legacy .jobs-table td::before{content:attr(data-label);flex:none;width:86px;font-size:11px;font-weight:500;letter-spacing:.8px;text-transform:uppercase;color:#6f8a8f;padding-top:3px}
  .main.legacy .jobs-table td:first-child{white-space:normal}
  .main.legacy .jobs-table td.jobs-actions{flex-wrap:wrap;justify-content:flex-start;gap:6px;padding-top:8px;text-align:left}
  .main.legacy .jobs-table td.jobs-actions::before{display:none}
  .jobs-actions .inline-form,.jobs-actions .row-btn{margin-left:0}
}

/* mail settings (Ronny 22.10) */
.main.legacy .mail-settings{display:flex;flex-direction:column;gap:20px;max-width:760px}
.main.legacy .mail-settings .page-title{margin:0}
.mail-status{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:10px;font-size:14px}
.mail-status.is-on{background:#e4eeef;color:#1e4650}
.mail-status.is-off{background:#f8ecd4;color:#7a4e0a}
.mail-status .status-dot{background:#d99a2b}
.mail-status .status-dot.on{background:#1e4650}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}
.main.legacy form.mail-form{max-width:none}
.main.legacy form.mail-form>p.mail-from{display:block;font-size:13px;color:#4e6a70}
.main.legacy .mail-form label.checkbox{margin:0 0 18px}
.main.legacy form.mail-test{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;max-width:none}
.main.legacy .mail-test h4{margin:0 0 4px;font-size:15px;font-weight:500}
.main.legacy .mail-test p{margin:0}
.main.legacy .mail-test button[type=submit]{background:#e4eeef;color:#1e4650;border:1px solid #9fbfc4}
.main.legacy .mail-test button[type=submit]:hover{background:#d3e3e5;color:#1e4650}
.main.legacy .mail-test button[disabled]{opacity:.5;cursor:not-allowed}

/* login: a confirmation is not an error; the forgot-password link (Ronny 22.10) */
.error.is-ok{color:#1e4650;background:#e4eeef}
.help a.forgot{font-weight:500}
