/* Calm-sea mode (מצב צב): the "deep" theme, turtles, top-bar button and the extra tiles and form fields.
   Everything is scoped to html.dd-calm except the button, which only the admin sees. */
/* side-menu row (shares the language row's look) and the small turtle beside the app name in swimming mode */
.menu-mode .menu-lang-seg button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.menu-mode .menu-lang-seg img{width:24px;height:20px;object-fit:contain}
.menu-mode-desc{font-size:13px;color:var(--muted);line-height:1.4}
.dd-mode-mark{width:26px;height:19px;object-fit:contain;vertical-align:middle;margin-inline-start:6px}

/* first-run card (modal) and one-time news (bottom card) */
.dd-welcome{position:fixed;z-index:1200;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:#0009}
.dd-welcome.dd-news{inset:auto 0 0 0;background:transparent;padding:0 12px calc(84px + env(safe-area-inset-bottom,0px))}
.dd-welcome-card{width:min(380px,100%);box-sizing:border-box;background:var(--panel);color:var(--text);border:1px solid var(--accent);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 30px #0007;direction:rtl}
.dd-welcome-card h2{margin:0;font-size:18px;display:flex;align-items:center;gap:6px}
.dd-welcome-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
.dd-welcome-opt{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:9px 10px}
.dd-welcome-opt img{width:40px;height:32px;object-fit:contain;flex:none}
.dd-welcome-opt b{display:block;font-size:15px}.dd-welcome-opt small{color:var(--muted);font-size:13px;line-height:1.4}
.dd-inline-turtle{width:30px;height:24px;object-fit:contain}
.dd-welcome-btns{display:flex;gap:8px}
.dd-welcome-btns button{flex:1;min-height:44px;font:inherit;font-size:15px;border-radius:10px;border:1px solid var(--line);background:var(--soft);color:var(--text);cursor:pointer}
.dd-welcome-btns button:last-child{background:var(--accent);border-color:var(--accent);color:var(--bg);font-weight:700}
.dd-welcome-btns button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* deep theme, dark */
html.dd-calm body{--bg:#070f2b;--panel:#0e1a3f;--soft:#15245a;--line:#2a3a7a;--text:#e8edff;--muted:#9aa6d1;--accent:#8fd3ff;--button:#15245a;--sand:#a9c8ff;--row-hover:#12204d;
 --rating-1:#8e7fa8;--rating-2:#9fb0d0;--rating-3:#8fd3e8;--rating-4:#5aa8f0;--rating-5:#3d7ff0}
/* deep theme, light */
html.dd-calm body.light{--bg:#eef2fb;--panel:#ffffff;--soft:#dbe4f7;--line:#b9c6ea;--text:#12204a;--muted:#55618c;--accent:#2457c5;--button:#e6ecf9;--sand:#2457c5;--row-hover:#e3eaf8;
 --rating-1:#7a6a96;--rating-2:#8494b8;--rating-3:#4fa7c4;--rating-4:#2f6fd0;--rating-5:#1d4fb5}
html.dd-calm body{background:var(--bg);color:var(--text)}

/* turtles in place of ducks (approved 9.11, option א: teal shell, sand body). Empty slots use the grey-blue turtle at 0.4, no grayscale filter */
html.dd-calm .bath-slot .bath-duck,html.dd-calm .bath-horns .bath-slot .bath-duck{background-image:url('/surf/turtle-v2.png')}
html.dd-calm .bath-slot .bath-empty .bath-duck,html.dd-calm .bath-horns .bath-slot .bath-empty .bath-duck{background-image:url('/surf/turtle-empty-v2.png')}
html.dd-calm .bath-slot .bath-filled{filter:none}
html.dd-calm .bath-slot .bath-empty{opacity:.4;filter:none}
html.dd-calm .calm-stormy{color:var(--rating-1);font-weight:700}

/* dashboard: the swell tile is surfer data; calm tiles follow the existing tile look */
html.dd-calm #dashTiles .dash-tile:nth-child(2):not(.calm-tile){display:none}
.calm-tile .tbig small{font-size:.6em;color:var(--muted)}
.calm-tag{display:inline-block;margin-top:4px;font-size:12px;padding:1px 7px;border-radius:999px;background:var(--soft);color:var(--muted)}
.calm-warn{grid-column:1/-1;background:color-mix(in srgb,var(--pending,#ec944c) 18%,var(--panel));border-color:color-mix(in srgb,var(--pending,#ec944c) 55%,var(--line));font-size:14px;line-height:1.4}
.calm-note{grid-column:1/-1;font-size:13px;color:var(--muted);text-align:center;background:transparent;border-style:dashed}

/* report form, screen 2 */
.calm-fields{display:flex;flex-direction:column;gap:12px;margin:8px 0 14px;padding:10px 0;border-block:1px dashed var(--line)}
.calm-fields-note{margin:0;font-size:13px;color:var(--muted)}
.calm-chips{display:flex;flex-wrap:wrap;gap:6px}
.calm-chips button{font:inherit;font-size:14px;color:var(--text);background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:8px 14px;min-height:44px;cursor:pointer}
.calm-chips button[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--bg);font-weight:600}
.calm-chips button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
