/* Tamm — account dashboard + site manager + ad slots + mobile notifications */

/* ============================== ad slots (public) ============================== */
.sm-slot { width: min(1200px, calc(100% - 48px)); margin: 18px auto; }
.sm-slot[hidden] { display: none !important; }
.sm-slot-inner { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--tamm-line, #dfe7f0); background: #eef3f9; box-shadow: var(--tamm-shadow-soft, 0 10px 30px rgba(20,52,93,.08)); }
.sm-ad { display: none; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: default; font: inherit; }
.sm-ad.is-on { display: block; animation: smFade .5s ease both; }
.sm-ad.is-link { cursor: pointer; }
.sm-ad img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.sm-ad.is-link:hover img { filter: brightness(1.03); }
.sm-ad.is-link:focus-visible { outline: 3px solid rgba(53,198,216,.6); outline-offset: -3px; }
.sm-dots { position: absolute; inset-inline: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.sm-dots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(15,32,64,.18); cursor: pointer; transition: width .25s, background .25s; min-width: 0; min-height: 0; }
.sm-dots button.on { width: 22px; background: #fff; }
@keyframes smFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) { .sm-slot { width: calc(100% - 24px); margin: 12px auto; } .sm-slot-inner { border-radius: 16px; } }

/* ============================== dashboard layout ============================== */
#account.section { max-width: none; padding: 0 0 40px; overflow-x: clip; }
#account .acct-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 24px; }
.acct-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13px; color: var(--tamm-muted, #70819b); }
.acct-crumbs a { color: var(--tamm-blue, #1957a6); text-decoration: underline; text-underline-offset: 3px; }
.acct-crumbs i { font-size: 11px; }
.acct-layout { display: grid; width: 100%; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.acct-side { position: sticky; top: 88px; background: var(--tamm-paper, #fff); border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 20px; padding: 12px; box-shadow: var(--tamm-shadow-soft); }
.acct-user { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: linear-gradient(135deg, #f1f8fb, #e8f6f8); border: 1px solid #d3edf1; min-width: 0; }
.acct-user > div { min-width: 0; }
.acct-user strong { display: block; font-size: 14px; color: var(--tamm-ink, #0f2040); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-user small { display: block; font-size: 11.5px; color: var(--tamm-muted, #70819b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: end; }
.acct-avatar { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 17px; background: linear-gradient(135deg, var(--tamm-blue, #1957a6), var(--tamm-cyan, #35c6d8)); }
.acct-nav { display: flex; flex-direction: column; gap: 2px; }
.acct-nav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 46px; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--tamm-ink, #0f2040); font-size: 14px; font-weight: 600; text-align: start; cursor: pointer; transition: background .2s, color .2s; }
.acct-nav-item i { width: 18px; text-align: center; font-size: 15px; color: var(--tamm-muted, #70819b); transition: color .2s; }
.acct-nav-item:hover { background: #f1f6fb; }
.acct-nav-item.on { background: #eaf3fc; color: var(--tamm-blue, #1957a6); font-weight: 700; }
.acct-nav-item.on i { color: var(--tamm-blue, #1957a6); }
.acct-nav-item.on::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: -12px; width: 4px; border-radius: 4px; background: var(--tamm-cyan, #35c6d8); }
.acct-nav-item.is-admin { margin-top: 6px; border: 1px dashed #c8d6e8; }
.acct-nav-item.is-admin i { color: var(--tamm-gold, #bc8426); }
.acct-logout { width: 100%; margin-top: 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #f3c6c8; border-radius: 12px; background: #fff3f3; color: #d93a3f; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s; }
.acct-logout:hover { background: #ffe6e7; }
.acct-main { min-width: 0; }

.acct-head { margin-bottom: 18px; }
.acct-head h1 { margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; color: var(--tamm-ink, #0f2040); }
.acct-head p { margin: 0; color: var(--tamm-muted, #70819b); font-size: 14px; }

.acct-card { background: var(--tamm-paper, #fff); border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 20px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 3px 14px rgba(20,52,93,.04); }
.acct-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.acct-card-head h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 9px; color: var(--tamm-ink, #0f2040); }
.acct-card-head h2 i { color: var(--tamm-blue, #1957a6); font-size: 14px; }
.acct-link { border: 0; background: none; padding: 2px 0; color: var(--tamm-blue, #1957a6); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acct-ic { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 11px; background: #fff; color: var(--tamm-blue, #1957a6); cursor: pointer; }
.acct-ic:hover { background: #eef5fc; }
.acct-muted { color: var(--tamm-muted, #70819b); font-size: 13.5px; line-height: 1.8; margin: 0 0 12px; }

.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.acct-stats.four { grid-template-columns: repeat(4, 1fr); }
.acct-stat { position: relative; background: var(--tamm-paper, #fff); border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 3px 14px rgba(20,52,93,.04); }
.acct-stat-ic { position: absolute; inset-inline-end: 14px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #eaf3fc; color: var(--tamm-blue, #1957a6); font-size: 14px; }
.acct-stat small { color: var(--tamm-muted, #70819b); font-weight: 600; font-size: 13px; padding-inline-end: 44px; }
.acct-stat strong { font-size: 24px; color: var(--tamm-ink, #0f2040); line-height: 1.2; }
.acct-stat strong em, .acct-balance strong em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--tamm-muted, #70819b); }
.acct-stat .acct-link { align-self: flex-start; margin-top: 2px; }

.acct-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acct-action { background: var(--tamm-paper, #fff); border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.acct-action > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--tamm-cyan-pale, #e3f8fa); color: var(--tamm-blue, #1957a6); margin-bottom: 6px; }
.acct-action h3 { margin: 0; font-size: 15px; }
.acct-action p { margin: 0 0 10px; font-size: 13px; color: var(--tamm-muted, #70819b); flex: 1; }
.acct-action .btn { width: 100%; justify-content: center; }

.acct-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.acct-pills button { min-height: 38px; padding: 6px 14px; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 99px; background: #fff; color: var(--tamm-ink, #0f2040); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.acct-pills button b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-inline-start: 4px; padding: 0 5px; border-radius: 99px; background: #eef3f9; font-size: 11px; }
.acct-pills button.on { background: var(--tamm-blue, #1957a6); border-color: var(--tamm-blue, #1957a6); color: #fff; }
.acct-pills button.on b { background: rgba(255,255,255,.22); }
.acct-orders { display: flex; flex-direction: column; gap: 12px; }
.acct-help-line { margin-top: 14px; font-size: 13px; color: var(--tamm-muted, #70819b); }
.acct-inline-empty { padding: 18px; text-align: center; color: var(--tamm-muted, #70819b); background: #f6f9fc; border-radius: 14px; font-size: 14px; }
.acct-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 16px; text-align: center; color: var(--tamm-muted, #70819b); }
.acct-empty i { font-size: 30px; color: #b5c4d8; }
.acct-empty h3 { margin: 0; font-size: 15px; color: var(--tamm-ink, #0f2040); }

.acct-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.acct-field { padding: 13px 15px; border-radius: 14px; background: #f6f9fc; border: 1px solid #e6edf5; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acct-field small { color: var(--tamm-muted, #70819b); font-size: 12px; }
.acct-field strong { font-size: 14.5px; overflow-wrap: anywhere; }
.acct-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.acct-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--tamm-ink, #0f2040); }
.acct-form label small { font-weight: 400; color: var(--tamm-muted, #70819b); }
.acct-input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfdbe9; border-radius: 12px; background: #fff; color: var(--tamm-ink, #0f2040); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.acct-input:focus { outline: 0; border-color: var(--tamm-cyan, #35c6d8); box-shadow: 0 0 0 4px rgba(53,198,216,.18); }
.acct-input:disabled { background: #f1f4f8; color: #7a8aa0; }
.acct-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff1f1; color: #c62f35; font-size: 13px; }
.acct-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.acct-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #122b54, #1957a6); border: 0; color: #fff; }
.acct-balance small { display: block; opacity: .8; font-size: 13px; }
.acct-balance strong { display: block; font-size: 34px; margin: 4px 0; }
.acct-balance strong em { color: rgba(255,255,255,.75); }
.acct-balance span { font-size: 12.5px; opacity: .8; }
.acct-balance .btn { background: #fff; color: var(--tamm-blue, #1957a6); }
.acct-tx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acct-tx li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f6; }
.acct-tx li:last-child { border-bottom: 0; }
.acct-tx li > div { flex: 1; min-width: 0; }
.acct-tx strong { display: block; font-size: 14px; }
.acct-tx small { color: var(--tamm-muted, #70819b); font-size: 12px; }
.acct-tx b { font-size: 15px; }
.acct-tx b.pos { color: #19896f; } .acct-tx b.neg { color: #d93a3f; }
.acct-tx-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 13px; }
.acct-tx-ic.pos { background: #e5f6f1; color: #19896f; } .acct-tx-ic.neg { background: #fdebec; color: #d93a3f; }
.acct-pay { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf1f6; }
.acct-pay:last-child { border-bottom: 0; }
.acct-pay > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #eaf3fc; color: var(--tamm-blue, #1957a6); font-size: 17px; }
.acct-pay > div { flex: 1; min-width: 0; } .acct-pay strong { display: block; font-size: 14.5px; } .acct-pay small { color: var(--tamm-muted, #70819b); font-size: 12.5px; }
.acct-pay em { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px; }
.acct-pay em.ok { background: #e5f6f1; color: #19896f; } .acct-pay em.off { background: #f1f4f8; color: #7a8aa0; }
.acct-note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; margin-bottom: 16px; border-radius: 14px; background: #f1f8fb; border: 1px solid #d3edf1; font-size: 13px; line-height: 1.8; color: #34506e; }
.acct-note i { margin-top: 5px; color: var(--tamm-blue, #1957a6); }
.acct-admin-bar { margin-bottom: 14px; }

/* ad slot inside the dashboard */
.acct-main .sm-slot { width: 100%; margin: 0 0 18px; }

/* make existing order cards breathe inside the dashboard */
#account .order-item { margin: 0; }

/* ======================== dashboard — tablet / mobile ======================== */
@media (max-width: 900px) {
  #account .acct-wrap { width: calc(100% - 24px); padding-top: 14px; }
  .acct-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .acct-layout > *, .acct-side, .acct-main { min-width: 0; max-width: 100%; }
  .acct-side { position: static; padding: 10px; border-radius: 18px; }
  .acct-user { margin-bottom: 8px; }
  .acct-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav-item { width: auto; flex: 0 0 auto; white-space: nowrap; min-height: 42px; padding: 8px 14px; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 99px; scroll-snap-align: center; }
  .acct-nav-item.on { border-color: #bcd6f1; }
  .acct-nav-item.on::before { display: none; }
  .acct-nav-item.is-admin { margin-top: 0; }
  .acct-logout { margin-top: 8px; min-height: 40px; }
  .acct-stats, .acct-stats.four { grid-template-columns: repeat(2, 1fr); }
  .acct-actions { grid-template-columns: 1fr; }
  .acct-card { padding: 15px; border-radius: 16px; }
  .acct-balance strong { font-size: 28px; }
  .acct-balance .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) { .acct-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .acct-stat { padding: 13px; } .acct-stat strong { font-size: 20px; } .acct-stat-ic { display: none; } .acct-stat small { padding: 0; } }

/* ============================== site manager (admin) ============================== */
.sm-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 16px; border-radius: 14px; background: #f1f6fb; overflow-x: auto; scrollbar-width: none; }
.sm-tabs button { flex: 1 0 auto; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--tamm-muted, #70819b); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.sm-tabs button.on { background: #fff; color: var(--tamm-blue, #1957a6); box-shadow: 0 2px 8px rgba(20,52,93,.1); }
.sm-tabs b, .sm-pills b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-inline-start: 4px; border-radius: 99px; background: #e3ecf6; color: #4b6283; font-size: 11px; }
.sm-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sm-pills button { min-height: 38px; padding: 6px 14px; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--tamm-ink, #0f2040); }
.sm-pills button.on { background: var(--tamm-blue, #1957a6); border-color: var(--tamm-blue, #1957a6); color: #fff; } .sm-pills button.on b { background: rgba(255,255,255,.22); color: #fff; }
.sm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sm-row, .sm-ad-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 14px; background: #fff; }
.sm-row.is-off { opacity: .55; background: #f8fafc; }
.sm-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sm-row-main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-row-main strong i { color: var(--tamm-blue, #1957a6); margin-inline-end: 4px; }
.sm-row-main small { color: var(--tamm-muted, #70819b); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-move { display: flex; flex-direction: column; gap: 2px; }
.sm-move button { width: 28px; height: 22px; padding: 0; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 7px; background: #fff; color: #5a6a82; font-size: 10px; cursor: pointer; min-width: 0; min-height: 0; }
.sm-move button:disabled { opacity: .3; cursor: default; }
.sm-ic { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 10px; background: #fff; color: var(--tamm-blue, #1957a6); cursor: pointer; min-width: 0; min-height: 0; }
.sm-ic.danger { color: #d93a3f; } .sm-ic:hover { background: #f1f6fb; } .sm-ic.danger:hover { background: #fff1f1; }
.sm-switch { position: relative; flex: 0 0 44px; width: 44px; height: 26px; cursor: pointer; }
.sm-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sm-switch span { position: absolute; inset: 0; border-radius: 99px; background: #cfd9e6; transition: background .2s; }
.sm-switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .2s; }
.sm-switch input:checked + span { background: var(--tamm-green, #19896f); } .sm-switch input:checked + span::after { inset-inline-start: 21px; }
.sm-switch input:focus-visible + span { outline: 3px solid rgba(53,198,216,.45); outline-offset: 2px; }
.sm-empty { padding: 26px 14px; text-align: center; color: var(--tamm-muted, #70819b); font-size: 13.5px; border: 1px dashed #cfdbe9; border-radius: 14px; list-style: none; }
.sm-empty i { display: block; font-size: 24px; margin-bottom: 8px; color: #b5c4d8; } .sm-empty.small { padding: 14px; } .sm-empty.small i { display: none; }
.sm-note { padding: 18px; text-align: center; color: var(--tamm-muted, #70819b); font-size: 14px; }
.sm-setup { text-align: center; padding: 26px 16px; border-radius: 16px; background: #fff9ec; border: 1px solid #f0dfb5; color: #6b5316; } .sm-setup i { font-size: 28px; color: var(--tamm-gold, #bc8426); } .sm-setup h3 { margin: 8px 0; font-size: 16px; } .sm-setup p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.9; } .sm-setup small { display: block; opacity: .7; font-size: 11px; }
.sm-form { display: flex; flex-direction: column; gap: 13px; padding: 16px; margin-bottom: 14px; border: 1px solid #bcd6f1; border-radius: 16px; background: #f7fbff; }
.sm-form h4 { margin: 0; font-size: 15px; }
.sm-form label, .sm-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.sm-input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cfdbe9; border-radius: 11px; background: #fff; font-size: 14px; color: var(--tamm-ink, #0f2040); }
.sm-input:focus { outline: 0; border-color: var(--tamm-cyan, #35c6d8); box-shadow: 0 0 0 4px rgba(53,198,216,.18); }
.sm-dest { display: flex; flex-direction: column; gap: 8px; } .sm-err { color: #c62f35; font-weight: 600; }
.sm-check { flex-direction: row !important; align-items: center; gap: 9px !important; font-weight: 600 !important; } .sm-check input { width: 18px; height: 18px; }
.sm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-icons { display: flex; flex-wrap: wrap; gap: 6px; } .sm-icons button { min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid #cfdbe9; border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; } .sm-icons button.on { background: var(--tamm-blue, #1957a6); border-color: var(--tamm-blue, #1957a6); color: #fff; }
.sm-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; margin-bottom: 14px; text-align: center; border: 2px dashed #b9cde3; border-radius: 16px; background: #f7fbff; cursor: pointer; transition: all .2s; }
.sm-drop:hover, .sm-drop.over { border-color: var(--tamm-cyan, #35c6d8); background: #ecfafc; }
.sm-drop i { font-size: 26px; color: var(--tamm-blue, #1957a6); } .sm-drop strong { font-size: 14px; } .sm-drop small { color: var(--tamm-muted, #70819b); font-size: 12px; } .sm-drop em { font-style: normal; font-size: 12.5px; color: var(--tamm-green, #19896f); font-weight: 700; min-height: 1em; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sm-thumb { margin: 0; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sm-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eef3f9; }
.sm-thumb figcaption { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .sm-thumb figcaption b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sm-thumb figcaption small { font-size: 11px; color: var(--tamm-muted, #70819b); }
.sm-thumb-actions { display: flex; gap: 6px; padding: 6px 10px 10px; margin-top: auto; }
.sm-thumb-actions button { min-height: 34px; min-width: 34px; padding: 0 10px; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 9px; background: #fff; color: var(--tamm-blue, #1957a6); font-size: 12px; font-weight: 700; cursor: pointer; } .sm-thumb-actions [data-use] { flex: 1; } .sm-thumb-actions .danger { color: #d93a3f; }
.sm-slot-card { margin-bottom: 14px; padding: 14px; border: 1px solid var(--tamm-line, #dfe7f0); border-radius: 16px; background: #fcfdff; }
.sm-slot-card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; } .sm-slot-card h4 { margin: 0; font-size: 15px; } .sm-slot-card small { color: var(--tamm-muted, #70819b); font-size: 12px; }
.sm-ad-row img { width: 92px; height: 52px; flex: 0 0 92px; object-fit: cover; border-radius: 9px; background: #eef3f9; }
.sm-badge { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; } .sm-badge.on { background: #e5f6f1; color: #19896f; } .sm-badge.off { background: #f1f4f8; color: #7a8aa0; } .sm-badge.wait { background: #fff4de; color: #9a6a12; }
.sm-picker { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; } .sm-picker button { flex: 0 0 96px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #eef3f9; cursor: pointer; min-width: 0; min-height: 0; } .sm-picker button.on { border-color: var(--tamm-cyan, #35c6d8); } .sm-picker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-preview { border-radius: 12px; overflow: hidden; background: #eef3f9; text-align: center; } .sm-preview img { display: block; width: 100%; max-height: 180px; object-fit: cover; } .sm-preview small { display: block; padding: 18px; }
@media (max-width: 640px) {
  .sm-two { grid-template-columns: 1fr; }
  .sm-ad-row { flex-wrap: wrap; } .sm-ad-row img { width: 100%; height: auto; aspect-ratio: 16 / 6; flex-basis: 100%; }
  .sm-ad-row .sm-row-main { flex: 1 1 60%; }
  .sm-grid { grid-template-columns: repeat(2, 1fr); }
  .sm-row { gap: 8px; padding: 9px; }
}

/* ===================== notifications — mobile fix (floating panel) ===================== */
.notification-button { display: inline-grid; place-items: center; font-size: 16px; padding: 0; }
.notification-button:focus-visible { outline: 3px solid rgba(53,198,216,.5); outline-offset: 2px; }
.notification-button.has-unread i { animation: bellRing 1.4s ease 1; transform-origin: 50% 0; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
.notification-backdrop { position: fixed; inset: 0; z-index: 10055; background: rgba(15,32,64,.32); opacity: 0; pointer-events: none; transition: opacity .2s; }
.notification-backdrop.open { opacity: 1; pointer-events: auto; }
.notification-panel.is-floating { position: fixed; z-index: 10060; top: var(--np-top, 68px); inset-inline: 10px; width: auto; max-width: 440px; margin-inline: auto; max-height: calc(100dvh - var(--np-top, 68px) - 84px); display: none; flex-direction: column; }
.notification-panel.is-floating.open { display: flex; animation: npIn .22s ease both; }
.notification-panel.is-floating .notification-list { max-height: none; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.notification-login { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 20px; text-align: center; color: var(--tamm-muted, #64748b); }
.notification-login i { font-size: 28px; color: #b5c4d8; }
@keyframes npIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .notification-button { width: 42px; height: 42px; border-radius: 13px; }
  .notification-badge { top: -6px; right: auto; inset-inline-start: -5px; }
}

@media (max-width: 560px) {
  #account .order-item-top { flex-wrap: wrap; }
  #account .order-item-info { flex: 1 1 calc(100% - 60px); min-width: 0; }
  #account .order-item-right { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}
