/* Culine – postituse modaal. Muud lehe elemendid jäävad puutumata. */
#addDlg{box-sizing:border-box;width:min(640px,calc(100vw - 28px));max-width:640px;max-height:min(92dvh,900px);padding:0!important;border:1px solid #365648!important;border-radius:18px!important;background:#162a21!important;color:#eef6ef!important;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #0007;scrollbar-width:thin;scrollbar-color:#476958 transparent}
#addDlg::backdrop{background:rgba(3,13,9,.78);backdrop-filter:blur(3px)}
#addDlg .culine-post-head{position:sticky;top:0;z-index:4;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:26px 28px 20px;background:#162a21;border-bottom:1px solid #365648}
#addDlg .culine-post-kicker{display:block;color:#a5dfbb;font-size:11px;letter-spacing:.13em;font-weight:800;margin-bottom:8px}
#addDlg h2{font-size:clamp(23px,4vw,29px);letter-spacing:-.04em;line-height:1.12;margin:0 0 7px;color:#f3f8f4}
#addDlg .culine-post-head p{margin:0;color:#a9c8b7;font-size:13px}
#addDlg .x{flex:none;margin:0}#addDlg .x button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #3d5a4c;border-radius:9px;color:#eaf4ec;background:#203b2d;font-size:17px}#addDlg .x button:hover{background:#31523e}
#addDlg #addForm{display:grid;gap:12px;padding:22px 28px 0;min-width:0}
#addDlg .culine-field-label{font-size:13px;font-weight:750;margin-bottom:-5px;color:#e7f3ea}
#addDlg input:not([type=checkbox]):not([type=radio]):not([type=file]),#addDlg select,#addDlg textarea{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:12px 13px;border:1px solid #3a5949;border-radius:10px;background:#10231a;color:#f4f9f5;font:inherit;font-size:14px;outline:none}
#addDlg input::placeholder,#addDlg textarea::placeholder{color:#9cb5a6;opacity:1}
#addDlg input:focus-visible,#addDlg select:focus-visible,#addDlg textarea:focus-visible{border-color:#a7ddba;box-shadow:0 0 0 2px #a7ddba35}
#addDlg input[type=date]{color-scheme:dark}
#addDlg fieldset{min-width:0;margin:8px 0 0;padding:0;border:0}
#addDlg legend{display:block;width:100%;margin-bottom:12px;padding:0;color:#f2f7f2;font-size:14px;font-weight:800}
#addDlg .faces{display:flex;flex-wrap:wrap;gap:10px}
#addDlg .faces label{position:relative;cursor:pointer}
#addDlg .faces input,#addDlg .chips input{position:absolute;opacity:0;width:1px;height:1px}
#addDlg .faces span{display:grid;place-items:center;width:60px;height:56px;padding:0;border:1px solid #3a5949;border-radius:12px;background:#1b3428;font-size:27px;transition:background .12s,border-color .12s,transform .12s}
#addDlg .faces label:hover span{border-color:#94c9a7;transform:translateY(-1px)}
#addDlg .faces input:checked+span{background:#285c45;color:#fff;border-color:#a6e3ba;box-shadow:inset 0 0 0 1px #a6e3ba}
#addDlg .chips{display:flex;flex-wrap:wrap;gap:8px}
#addDlg .chips legend{margin-bottom:11px}
#addDlg .chips label{position:relative;cursor:pointer}
#addDlg .chips span{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:8px 13px;border:1px solid #3c5a4a;border-radius:9px;background:#1b3428;color:#e3efe7;font-size:13px;font-weight:650}
#addDlg .chips input:checked+span{background:#b5e4c6;border-color:#b5e4c6;color:#10251a}
#addDlg .faces input:focus-visible+span,#addDlg .chips input:focus-visible+span{outline:2px solid #e8c16d;outline-offset:3px}
#addDlg .addtag{display:flex;gap:8px}#addDlg .addtag .btn{border:1px solid #4a6b57;border-radius:10px;background:#214735;color:#fff;padding:0 17px}
#addDlg .check{display:flex;align-items:center;gap:9px;color:#e4f1e8;font-size:13px;font-weight:700}
#addDlg .check input{accent-color:#a9e1bd;width:17px;height:17px}
#addDlg textarea{min-height:98px;resize:vertical}
#addDlg .culine-photo-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#addDlg .culine-photo-choices button{min-height:47px;border:1px solid #41624f;border-radius:10px;background:#1a3729;color:#f2f8f3;font-weight:700}
#addDlg .culine-photo-choices button:hover{background:#26513a}
#addDlg .culine-photo-label{font-size:12px;color:#a7c9b5}
#addDlg #prev{max-width:100%;max-height:220px;object-fit:contain;border-radius:10px}
#addDlg .culine-post-submit{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:9px -28px 0;padding:15px 28px;background:#162a21;border-top:1px solid #365648}
#addDlg .culine-post-submit .err{font-size:12px;min-width:0}
#addDlg .culine-post-submit button{min-width:150px;min-height:46px;margin-left:auto;border:0;border-radius:10px;background:#b5e4c6;color:#10251a;font-weight:800;font-size:14px}
#addDlg .culine-post-submit button:hover{background:#d0f2db}
@media(max-width:650px){#addDlg{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border:0!important;border-radius:0!important}#addDlg .culine-post-head{padding:22px 18px 17px}#addDlg #addForm{padding:20px 18px 0}#addDlg .culine-post-submit{margin-left:-18px;margin-right:-18px;padding:12px 18px calc(12px + env(safe-area-inset-bottom))}#addDlg .faces{justify-content:space-between;gap:5px}#addDlg .faces span{width:clamp(46px,14vw,60px);height:52px;font-size:25px}#addDlg .culine-photo-choices{grid-template-columns:1fr 1fr}}
