/* Customisable bottom bar + "Customise shortcuts" screen */
.tabbar > a, .tabbar > button { min-width: 0; }
.tabbar > a > span, .tabbar > button:not(.tab-plus) > span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
@media (max-width: 380px) { .tabbar > a, .tabbar > button { font-size: 10px; } }

/* Live preview inside the page (the real bar is hidden on desktop and fixed on phones) */
.tabbar.tb-preview { display: grid !important; position: relative; left: auto; right: auto; bottom: auto; height: calc(var(--tab-h, 60px) + 40px); padding: 14px 0 22px; box-sizing: border-box; max-width: 420px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 14px; pointer-events: none; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; background: #fff; }
.tabbar.tb-preview a, .tabbar.tb-preview > button { height: var(--tab-h, 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative;
  color: #7a8291; text-decoration: none; font: 600 10.5px/1 var(--body); background: none; border: 0; }
.tabbar.tb-preview svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar.tb-preview .tab-plus { align-self: center; justify-self: center; width: 54px; height: 54px; border-radius: 18px; background: var(--red); color: #fff; margin: -14px 0 18px; box-shadow: 0 10px 22px -8px rgba(208,32,42,.7); }
.tabbar.tb-preview .tab-plus svg { width: 28px; height: 28px; stroke-width: 2.6; }
.tabbar.tb-preview .plus-label { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 10.5px/1 var(--body); color: var(--red); }

.sc-panel { margin-bottom: 14px; }
.sc-slots { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sc-slots li { display: flex; gap: 6px; align-items: stretch; }
.sc-slot { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 600 14px/1.2 var(--body); color: var(--navy); text-align: left; cursor: pointer; min-width: 0; }
.sc-slots li.sel .sc-slot { border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,32,42,.12); }
.sc-slot .n { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 12px/22px var(--body); text-align: center; flex: none; }
.sc-slot .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-slots .btn.icon { flex: 0 0 40px; padding: 0; }
.sc-slot .ico svg, .sc-chip .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.sc-sub { margin: 14px 0 8px; font-size: 14px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sc-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: 600 12px/1.2 var(--body); color: var(--navy); text-align: center; cursor: pointer; }
.sc-chip.used { background: #f6f4ef; }
.sc-chip.cur { border-color: var(--red); }
.sc-chip em { position: absolute; top: 5px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 11px/18px var(--body); font-style: normal; }
.sc-plus { display: grid; gap: 8px; }
.sc-plus label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.sc-plus label.on { border-color: var(--red); background: #fff7f7; }
.sc-plus small { display: block; font-weight: 400; color: var(--muted); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.sc-actions .btn { flex: 1 1 200px; padding: 12px 14px; }
.sc-link { margin: 18px 0 0; }
@media (max-width: 900px) { .sc-actions { margin-bottom: 90px; } }
