/* WL4T CAM — вхід, повідомлення, адмінка (веб- і Android-версія) */
#wauth { position: fixed; inset: 0; z-index: 50; background: #0d141b; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; font: 15px system-ui, sans-serif; color: #e3edf3; }
.wcard { width: 100%; max-width: 380px; background: #18252f; border: 1px solid #36505f; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.wlogo { font-weight: 700; font-size: 20px; color: var(--accent, #ffb66e); display: flex; align-items: baseline; gap: 8px; }
.wlogo span { font-size: 12px; font-weight: 400; color: #8aa3b2; }
.wcard h2 { margin: 0; font-size: 17px; }
.wcard label, .wform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #a6bcc9; }
.wcard input, .wform input { font: 16px system-ui, sans-serif; padding: 10px; border-radius: 6px; border: 1px solid #36505f; background: #0f1a22; color: #e3edf3; min-width: 0; }
.wcard input:focus, .wform input:focus { outline: 2px solid var(--accent, #ffb66e); outline-offset: -1px; }
.wbtn { font: 600 15px system-ui, sans-serif; padding: 11px; border-radius: 6px; border: 0; background: var(--accent, #ffb66e); color: #082129; cursor: pointer; }
.wbtn.sec { background: #2c414f; color: #e3edf3; }
.wbtn:disabled { opacity: .6; }
.wnote { margin: 0; font-size: 13px; color: #a6bcc9; line-height: 1.45; }
.werr { color: #ff9f9f; font-size: 13px; min-height: 0; }
.werr:empty { display: none; }
.wok { background: #1d3a33; border: 1px solid #2f6b5d; border-radius: 6px; padding: 8px 10px; font-size: 14px; margin-bottom: 8px; overflow-wrap: anywhere; }
.wok code { font: 600 15px ui-monospace, monospace; background: #0f1a22; padding: 1px 6px; border-radius: 4px; user-select: all; }
#wbar { position: fixed; left: 8px; right: 8px; top: 8px; z-index: 65; background: #3a2f17; border: 1px solid #7a6330; color: #ffe2a6; border-radius: 8px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font: 14px system-ui, sans-serif; }
#wbar span { flex: 1; min-width: 180px; }
#wbar button { font: 14px system-ui, sans-serif; padding: 6px 10px; border-radius: 6px; border: 1px solid #7a6330; background: #4b3d1e; color: #ffe2a6; }
#wbar button.wx { border: 0; background: none; }
.wov { position: fixed; inset: 0; z-index: 60; background: #000b; display: flex; align-items: center; justify-content: center; padding: 8px; font: 15px system-ui, sans-serif; color: #e3edf3; }
.wbox { background: #18252f; border: 1px solid #36505f; border-radius: 10px; width: 100%; max-width: 480px; max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.wbox.wide { max-width: 720px; }
.wbh { display: flex; align-items: center; padding: 8px 10px; border-bottom: 1px solid #2c414f; font-weight: 600; }
.wbh span { flex: 1; }
.wx { background: none; border: 0; color: #a6bcc9; font-size: 18px; padding: 2px 8px; cursor: pointer; }
.wbb { overflow-y: auto; padding: 10px 12px 16px; }
.wbb h3 { font-size: 15px; margin: 16px 0 8px; color: var(--accent, #ffb66e); }
.wbb h3:first-child, .wok + h3 { margin-top: 4px; }
.wform { display: flex; flex-direction: column; gap: 10px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wchk { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 15px !important; color: #e3edf3 !important; }
.wchk input { width: 20px; height: 20px; }
.wrow { display: flex; flex-wrap: wrap; gap: 8px; }
.wrow .btn { flex: 1 1 180px; }
.wusers { display: flex; flex-direction: column; gap: 8px; }
.wuser { border: 1px solid #2c414f; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.wuser.off { opacity: .6; }
.wun { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wst { font-size: 12px; color: #8aa3b2; border: 1px solid #36505f; border-radius: 10px; padding: 0 8px; }
.wmeta { font-size: 13px; color: #a6bcc9; line-height: 1.5; overflow-wrap: anywhere; }
.wuser .btn { align-self: flex-start; }
.wdanger { color: #ff9f9f !important; }
.wsec { margin-top: 14px; }
.wsec a.btn { text-decoration: none; display: block; }
.wload { padding: 20px; text-align: center; color: #a6bcc9; }
.wsec > .mh { color: var(--accent, #ffb66e); font-size: 12px; margin: 8px 2px 4px; text-transform: uppercase; letter-spacing: .6px; }
/* адмінка: вкладки, період, плитки, таблиці, графіки */
.wtabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid #2c414f; overflow-x: auto; }
.wtabb { font: 600 14px system-ui, sans-serif; background: none; border: 0; color: #a6bcc9; padding: 8px 10px; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.wtabb.on { color: var(--accent, #ffb66e); border-bottom-color: var(--accent, #ffb66e); }
.wbox.wide .wbb { padding: 0; }
.wtab { padding: 10px 12px 16px; overflow-y: auto; }
.wbox.wide { height: 100%; }
.wbox.wide .wbb { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.wbox.wide .wtab { flex: 1; min-height: 0; }
.wper { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.wchip { font: 13px system-ui, sans-serif; padding: 6px 10px; border-radius: 14px; border: 1px solid #36505f; background: #0f1a22; color: #e3edf3; cursor: pointer; }
.wchip.on { background: var(--accent, #ffb66e); color: #082129; border-color: transparent; font-weight: 600; }
.wown { margin: 6px 0; }
.wown input { font: 15px system-ui, sans-serif; padding: 8px; border-radius: 6px; border: 1px solid #36505f; background: #0f1a22; color: #e3edf3; }
.wtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.wtile { background: #0f1a22; border: 1px solid #2c414f; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.wtile span { font-size: 12px; color: #8aa3b2; }
.wtile b { font-size: 17px; }
.wtile.warn b { color: #ff9f9f; }
.wtable { display: flex; flex-direction: column; border: 1px solid #2c414f; border-radius: 8px; overflow: hidden; }
.wtr { display: grid; grid-template-columns: 1.4fr .8fr .6fr .8fr 1.3fr; gap: 6px; padding: 8px 10px; border: 0; border-top: 1px solid #22343f; background: none; color: #e3edf3; font: 13px system-ui, sans-serif; text-align: left; align-items: center; }
.wtr:first-child { border-top: 0; }
button.wtr { cursor: pointer; }
button.wtr:hover { background: #1f303b; }
.wth { background: #0f1a22; color: #8aa3b2; font-size: 12px; }
.wtr > span { position: relative; min-width: 0; overflow-wrap: anywhere; }
.wbar { display: block; height: 3px; background: var(--accent, #ffb66e); border-radius: 2px; margin-top: 4px; opacity: .8; }
.wvis .wtr { grid-template-columns: .9fr .9fr .8fr 1fr 1.6fr; }
@media (max-width: 560px) {
  .wtr { grid-template-columns: 1fr 1fr 1fr; }
  .wtr > span:nth-child(4) { display: none; }
  .wtr > span:nth-child(5) { grid-column: 1 / -1; color: #8aa3b2; font-size: 12px; }
  .wvis .wtr { grid-template-columns: 1fr 1fr 1fr; }
  .wvis .wtr > span:nth-child(4) { display: block; grid-column: 1 / -1; color: #8aa3b2; font-size: 12px; }
  .wth > span:nth-child(5), .wvis .wth > span:nth-child(4) { display: none !important; }
}
.wdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fd68a; margin-right: 6px; box-shadow: 0 0 6px #5fd68a; }
.wst.won { color: #5fd68a; border-color: #2f6b4a; }
.wlist { display: flex; flex-direction: column; gap: 6px; }
.witem { border: 1px solid #2c414f; border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.witem.bad { border-color: #6b3434; background: #2a1a1d; }
.witem > div:first-child { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.wright { margin-left: auto; color: #8aa3b2; font-size: 13px; }
.wdays { display: flex; flex-direction: column; gap: 3px; }
.wday { display: grid; grid-template-columns: 44px 1fr 88px; gap: 8px; align-items: center; font-size: 13px; }
.wday span { color: #8aa3b2; }
.wday i { display: block; height: 12px; background: var(--accent, #ffb66e); border-radius: 3px; min-width: 0; }
.wday b { font-weight: 400; font-size: 12px; color: #a6bcc9; }
.whours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 110px; align-items: end; }
.whours > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.whours i { display: block; background: var(--accent, #ffb66e); border-radius: 2px 2px 0 0; min-height: 1px; }
.whours span { font-size: 10px; color: #8aa3b2; text-align: center; height: 14px; }
.wsum { margin: 6px 0; }
.wbb h3 .wcsv, .wtab h3 .wcsv { float: right; font-size: 12px; padding: 3px 8px; }
.wtab h3 { font-size: 15px; margin: 16px 0 8px; color: var(--accent, #ffb66e); }
/* ліцензія й умови */
.wlic { margin: 4px 0 0; font-size: 12px; color: #8aa3b2; line-height: 1.45; border-top: 1px solid #2c414f; padding-top: 10px; }
.wlic a { color: var(--accent, #ffb66e); }
.wterms { max-height: 42vh; overflow-y: auto; border: 1px solid #36505f; border-radius: 6px; padding: 4px 10px; background: #0f1a22; font-size: 13px; }
.wcard .wchk { font-size: 14px !important; align-items: flex-start; }
.wcard .wchk input { flex: none; margin-top: 2px; }
.lic { font-size: 13px; line-height: 1.5; color: #cfdbe3; user-select: text; -webkit-user-select: text; }
.lic h4 { font-size: 14px; margin: 14px 0 4px; color: var(--accent, #ffb66e); }
.lic p { margin: 6px 0; }
.lic .lic-c { font-size: 14px; }
.about-lic { margin-top: 12px; }
#wauth { align-items: flex-start; }
#wauth .wcard { margin: auto; }
.wlogin { font-size: 12px; color: #8aa3b2; font-weight: 400; }
