:root {
  --ink: #20251f;
  --muted: #767b72;
  --subtle: #a7aaa2;
  --line: #e8e6df;
  --paper: #fffdf9;
  --canvas: #f7f6f1;
  --cream: #f3eadc;
  --orange: #ce6537;
  --orange-dark: #ad4e29;
  --orange-soft: #f7e6dc;
  --green: #405543;
  --green-soft: #e7eee5;
  --shadow: 0 20px 50px rgba(52, 45, 34, .1);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(206, 101, 55, .22); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 max(28px, calc((100vw - 1400px)/2)); display: flex; align-items: center; gap: 44px; background: rgba(255, 253, 249, .94); border-bottom: 1px solid rgba(226, 224, 216, .8); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(64, 85, 67, .2); }
.brand-mark svg { width: 27px; stroke-width: 1.65; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 4px; }
.brand strong { font-size: 20px; letter-spacing: .06em; }
.brand small { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 32px; }
.nav-link { position: relative; padding: 0 2px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: #747970; cursor: pointer; }
.nav-link::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; background: var(--orange); border-radius: 3px 3px 0 0; transition: .22s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after { left: 0; right: 0; }
.nav-count { min-width: 18px; height: 18px; padding: 0 5px; margin-left: 3px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--orange-soft); color: var(--orange-dark); font-size: 10px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.notification-button, .icon-button { width: 38px; height: 38px; border: 0; border-radius: 12px; display: grid; place-items: center; background: transparent; color: #565c54; cursor: pointer; position: relative; }
.notification-button:hover, .icon-button:hover { background: #f0eee8; }
.notification-button svg, .icon-button svg { width: 21px; }
.notification-button i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); border: 2px solid var(--paper); top: 7px; right: 7px; }
.profile-button { display: flex; align-items: center; gap: 10px; border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0 0 0 18px; cursor: pointer; text-align: left; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600; background: linear-gradient(145deg, #d5845d, #9d4d32); }
.profile-copy { display: grid; gap: 2px; min-width: 92px; }
.profile-copy b { font-size: 13px; }
.profile-copy small { font-size: 10px; color: var(--muted); }
.profile-button > svg { width: 16px; }
.mobile-search { display: none; }

.view { display: none; }
#libraryView, #favoritesView { display: none !important; }
.view.active { display: block; animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } }

.hero { min-height: 386px; background: #f0e7da; overflow: hidden; position: relative; display: flex; align-items: center; padding: 64px max(28px, calc((100vw - 1240px)/2)); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .42; background-image: radial-gradient(#bfb3a1 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 48%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 360px; height: 360px; background: rgba(224, 147, 102, .17); right: 15%; top: -180px; }
.orb-two { width: 250px; height: 250px; border: 1px solid rgba(143, 116, 84, .16); left: -70px; bottom: -170px; }
.hero-content { position: relative; z-index: 2; width: min(690px, 62%); }
.eyebrow { display: inline-flex; align-items: center; padding: 6px 11px; gap: 6px; border-radius: 99px; background: rgba(255,255,255,.62); color: #675e53; font-size: 12px; font-weight: 500; letter-spacing: .03em; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(206,101,55,.13); }
.eyebrow b { color: var(--orange-dark); }
.hero h1 { font-size: clamp(36px, 4vw, 55px); letter-spacing: -.055em; line-height: 1.18; margin: 19px 0 14px; font-weight: 800; }
.hero h1 em { color: var(--orange); font-style: normal; position: relative; }
.hero h1 em::after { content: ''; position: absolute; bottom: -6px; right: 5%; width: 76%; height: 9px; border-top: 2px solid rgba(206,101,55,.5); border-radius: 50%; transform: rotate(-1deg); }
.hero-content > p { color: #6f6b63; font-size: 15px; line-height: 1.8; margin: 0 0 23px; }
.hero-search { width: min(650px, 100%); height: 58px; padding: 6px 7px 6px 18px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid rgba(139, 126, 108, .14); border-radius: 16px; box-shadow: 0 12px 32px rgba(85, 66, 43, .1); }
.hero-search > svg { width: 22px; color: #777a74; flex: 0 0 auto; }
.hero-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.hero-search input::placeholder { color: #a1a19c; }
.hero-search kbd { color: #a4a49e; background: #f5f4f0; border: 1px solid #e8e6df; border-radius: 6px; padding: 4px 7px; font-size: 10px; }
.hero-search button { height: 44px; border: 0; border-radius: 11px; padding: 0 23px; color: #fff; font-weight: 600; font-size: 13px; background: var(--orange); cursor: pointer; box-shadow: 0 8px 16px rgba(190,86,45,.2); }
.hero-search button:hover { background: var(--orange-dark); }
.quick-searches { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; color: #817d75; }
.quick-searches span { margin-right: 3px; }
.quick-searches button { border: 0; background: transparent; color: #686861; padding: 2px; cursor: pointer; }
.quick-searches button:hover { color: var(--orange); }
.hero-visual { position: absolute; z-index: 1; width: 430px; height: 310px; right: max(35px, calc((100vw - 1280px)/2)); top: 48px; }
.visual-card { position: absolute; border-radius: 20px; box-shadow: 0 24px 55px rgba(71, 52, 32, .18); overflow: hidden; }
.vc-back { width: 190px; height: 240px; right: 10px; top: 8px; transform: rotate(11deg); background: #496351; border: 7px solid #f9f6f0; }
.vc-back::before, .vc-back::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.13); }
.vc-back::before { width: 160px; height: 160px; left: -50px; top: 50px; }
.vc-back::after { width: 110px; height: 110px; right: -55px; top: -30px; }
.vc-back span { position: absolute; right: 18px; bottom: 20px; font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.8); }
.vc-mid { width: 200px; height: 250px; left: 38px; top: 25px; transform: rotate(-8deg); background: linear-gradient(#dba77d 0 51%, #6c846d 51%); border: 7px solid #faf7f1; }
.vc-mid::before { content: ''; width: 160px; height: 70px; position: absolute; left: 12px; bottom: 18px; border-radius: 60% 60% 0 0; background: #425d49; clip-path: polygon(0 100%, 22% 36%, 38% 68%, 55% 8%, 72% 59%, 100% 31%, 100% 100%); }
.mini-sun { width: 36px; height: 36px; background: #f5d09b; border-radius: 50%; position: absolute; right: 20px; top: 38px; box-shadow: 0 0 0 9px rgba(245,208,155,.14); }
.vc-front { width: 210px; height: 270px; left: 130px; top: 35px; transform: rotate(2deg); color: #fff; background: #ca6b42; border: 7px solid #fffaf3; display: flex; flex-direction: column; justify-content: space-between; }
.vc-front svg { width: 100%; height: 180px; padding: 25px; stroke-width: 0; fill: rgba(255, 236, 212, .88); }
.vc-front > div { display: flex; gap: 5px; padding: 17px; }
.vc-front i { width: 31px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.45); }
.vc-front i:first-child { background: #fff; }

.content-wrap { max-width: 1288px; margin: 0 auto; padding: 50px 24px 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.03em; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.section-kicker { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.filter-bar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.filter-tabs { display: flex; align-self: stretch; gap: 28px; }
.filter-tab { align-self: stretch; display: flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #858880; font-size: 13px; font-weight: 600; cursor: pointer; }
.filter-tab svg { width: 18px; }
.filter-tab span { min-width: 19px; padding: 2px 5px; border-radius: 8px; color: var(--muted); background: #eae8e2; font-size: 9px; }
.filter-tab:hover, .filter-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.filter-tab.active span { color: var(--orange-dark); background: var(--orange-soft); }
.select-filters { display: flex; gap: 9px; }
.select-filters label { position: relative; }
.select-filters label > span { display: none; }
.select-filters select, .manage-toolbar select { appearance: none; min-width: 119px; height: 36px; padding: 0 31px 0 12px; border: 1px solid #e2e0d9; border-radius: 9px; color: #5f635c; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23838680' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 10px center/14px no-repeat; font-size: 11px; cursor: pointer; }
.results-meta { min-height: 20px; color: var(--muted); font-size: 11px; margin-bottom: 14px; }
.results-meta b { color: var(--ink); }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.asset-card { min-width: 0; background: var(--paper); border: 1px solid #ebe9e2; border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.asset-card:hover { transform: translateY(-4px); border-color: #dfd9ce; box-shadow: 0 18px 38px rgba(55, 48, 39, .1); }
.asset-cover { height: 242px; position: relative; overflow: hidden; background: #ddd; cursor: zoom-in; }
.asset-cover img, .asset-cover video { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.asset-card:hover .asset-cover img { transform: scale(1.035); }
.asset-badges { position: absolute; top: 13px; left: 13px; display: flex; gap: 6px; }
.media-badge, .category-badge { display: inline-flex; align-items: center; gap: 4px; height: 25px; padding: 0 8px; border-radius: 7px; color: #fff; background: rgba(28, 31, 27, .7); backdrop-filter: blur(8px); font-size: 9px; font-weight: 600; }
.media-badge svg { width: 13px; }
.category-badge { background: rgba(255,255,255,.86); color: #4f554e; }
.favorite-button { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #535851; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); cursor: pointer; opacity: 0; transform: translateY(-4px); transition: .2s ease; }
.asset-card:hover .favorite-button, .favorite-button.active { opacity: 1; transform: translateY(0); }
.favorite-button svg { width: 16px; }
.favorite-button.active { color: #bd4e3d; }
.favorite-button.active svg { fill: currentColor; }
.duration-badge { position: absolute; right: 12px; bottom: 11px; height: 23px; padding: 0 7px; border-radius: 6px; display: flex; align-items: center; color: white; background: rgba(22,24,22,.72); font-size: 9px; }
.play-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 50px; height: 50px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.52); display: grid; place-items: center; backdrop-filter: blur(5px); box-shadow: 0 7px 25px rgba(0,0,0,.16); }
.play-button svg { width: 21px; fill: #fff; stroke: none; margin-left: 3px; }
.asset-body { padding: 17px 17px 15px; }
.asset-title-row { display: flex; align-items: start; gap: 10px; }
.asset-title-row h3 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-chip { padding: 3px 6px; border-radius: 5px; color: #66705f; background: #edf0e9; white-space: nowrap; font-size: 8px; }
.asset-description { margin: 8px 0 13px; min-height: 34px; color: #858880; font-size: 10px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.copy-preview { padding: 10px 11px; border-radius: 9px; display: flex; gap: 10px; align-items: center; background: #f7f5f0; border: 1px solid #eeece6; }
.copy-preview p { flex: 1; min-width: 0; margin: 0; color: #666a62; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-button { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #e0ddd4; background: #fff; color: #70746c; cursor: pointer; }
.copy-button:hover { color: var(--orange); border-color: #e3b59f; }
.copy-button svg { width: 13px; }
.asset-footer { height: 38px; border-top: 1px solid #efede7; padding-top: 12px; margin-top: 13px; display: flex; justify-content: space-between; align-items: center; color: #969991; font-size: 9px; }
.asset-footer > div { display: flex; gap: 12px; }
.asset-footer span { display: flex; align-items: center; gap: 4px; }
.asset-footer svg { width: 13px; }
.download-button { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 0; border-radius: 7px; color: var(--orange-dark); background: var(--orange-soft); font-size: 9px; font-weight: 600; cursor: pointer; }
.download-button:hover { color: white; background: var(--orange); }
.download-button svg { width: 13px; }
.load-more { margin: 40px auto 0; min-width: 160px; height: 42px; padding: 0 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #656961; background: #fff; border: 1px solid #dfdcd4; font-size: 11px; cursor: pointer; }
.load-more:hover { border-color: #c8c3b8; box-shadow: 0 8px 20px rgba(60,50,38,.07); }
.load-more svg { width: 14px; }
.empty-state { padding: 80px 20px; text-align: center; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 50%; color: #94978f; background: #ebe9e3; }
.empty-icon svg { width: 30px; }
.empty-icon.heart { color: #c06449; background: var(--orange-soft); }
.empty-icon.heart svg { fill: currentColor; stroke-width: 0; }
.empty-state h3 { margin: 0 0 7px; font-size: 18px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }

.simple-view { min-height: calc(100vh - 76px); }
.page-header { background: #f0e7da; padding: 48px max(30px, calc((100vw - 1240px)/2)); }
.page-header.compact { display: flex; justify-content: space-between; align-items: center; }
.page-header h1 { margin: 5px 0 7px; font-size: 32px; }
.page-header p { margin: 0; color: var(--muted); font-size: 13px; }
.favorites-content { min-height: 480px; }

.primary-button, .secondary-button, .danger-button { min-height: 42px; padding: 0 17px; border-radius: 10px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s ease; }
.primary-button { color: #fff; background: var(--orange); box-shadow: 0 7px 15px rgba(184,78,37,.15); }
.primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.primary-button svg, .secondary-button svg { width: 17px; }
.secondary-button { background: #fff; border: 1px solid #dedbd3; color: #575c55; }
.secondary-button:hover { border-color: #c7c3ba; background: #fbfaf7; }
.danger-button { color: #fff; background: #c5483e; }
.danger-button:hover { background: #a7352e; }

.admin-view { min-height: calc(100vh - 76px); background: #f4f3ee; }
.admin-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); max-width: 1440px; min-height: calc(100vh - 76px); margin: 0 auto; }
.admin-sidebar { padding: 35px 20px 30px; border-right: 1px solid #e4e2db; background: #fbfaf7; display: flex; flex-direction: column; }
.admin-title { padding: 0 10px 24px; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); }
.admin-title span { font-weight: 700; font-size: 15px; }
.admin-title small { font-size: 7px; color: var(--subtle); letter-spacing: .12em; }
.admin-sidebar nav { display: grid; gap: 6px; margin-top: 23px; }
.admin-nav-item { width: 100%; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 9px; color: #71766d; background: transparent; font-size: 12px; font-weight: 500; cursor: pointer; text-align: left; }
.admin-nav-item svg { width: 18px; }
.admin-nav-item:hover { background: #f2f0ea; color: var(--ink); }
.admin-nav-item.active { color: var(--orange-dark); background: var(--orange-soft); font-weight: 600; }
.admin-tip { margin-top: auto; padding: 16px; background: #eef0e9; border-radius: 13px; }
.admin-tip span { font-size: 11px; font-weight: 700; color: #566051; }
.admin-tip p { font-size: 9px; color: #777e73; line-height: 1.7; margin: 8px 0; }
.admin-tip button { border: 0; padding: 0; background: transparent; color: #687863; font-size: 9px; font-weight: 600; cursor: pointer; }
.admin-main { min-width: 0; padding: 44px clamp(28px, 4vw, 56px) 70px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: viewIn .3s ease; }
.admin-page-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }
.admin-page-title > div > span { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.admin-page-title h1 { margin: 5px 0 6px; font-size: 28px; letter-spacing: -.035em; }
.admin-page-title p { margin: 0; color: var(--muted); font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.stat-card { min-width: 0; padding: 21px; display: flex; align-items: center; gap: 15px; background: #fff; border: 1px solid #e7e5de; border-radius: 15px; box-shadow: 0 6px 18px rgba(60,52,43,.03); }
.stat-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; }
.stat-icon svg { width: 21px; }
.stat-icon.green { color: #5f765e; background: #e8eee5; }.stat-icon.orange { color: #b8643f; background: #f6e5da; }.stat-icon.blue { color: #54748c; background: #e4edf2; }.stat-icon.purple { color: #756990; background: #ece8f2; }
.stat-card > div:last-child { min-width: 0; display: grid; }
.stat-card span { color: #7d8179; font-size: 9px; }
.stat-card b { font-size: 25px; margin: 1px 0; letter-spacing: -.03em; }
.stat-card small { color: #a0a39c; font-size: 8px; }
.stat-card small i { color: #5d7c60; font-style: normal; font-weight: 600; }
.overview-grid { display: grid; grid-template-columns: minmax(400px, .9fr) minmax(440px, 1.1fr); gap: 20px; margin-top: 20px; }
.panel-card { min-width: 0; background: #fff; border: 1px solid #e7e5de; border-radius: 15px; padding: 22px; }
.panel-card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.panel-card-header h2 { margin: 0 0 3px; font-size: 14px; }
.panel-card-header p { margin: 0; color: #999c95; font-size: 9px; }
.panel-card-header button { border: 0; background: transparent; color: var(--orange); font-size: 9px; cursor: pointer; }
.recent-list { display: grid; }
.recent-item { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #f0eee8; }
.recent-thumb { width: 48px; height: 39px; border-radius: 7px; overflow: hidden; background: #eee; }
.recent-thumb img, .recent-thumb video { width: 100%; height: 100%; object-fit: cover; }
.recent-item > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.recent-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.recent-item small { color: #9a9d96; font-size: 8px; }
.recent-item > span { padding: 3px 6px; border-radius: 6px; color: #64755f; background: #edf1ea; font-size: 7px; }
.chart-legend { color: #8e918a; font-size: 8px; display: flex; gap: 5px; align-items: center; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.chart { height: 225px; position: relative; padding-top: 8px; }
.chart-lines { position: absolute; inset: 10px 0 26px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-lines i { border-top: 1px dashed #eceae4; }
.chart > svg { position: absolute; inset: 7px 0 27px; width: 100%; height: calc(100% - 34px); overflow: visible; }
.chart-area { fill: url(#chartFill); stroke: none; }
.chart-line { fill: none; stroke: var(--orange); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart circle { fill: white; stroke: var(--orange); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart-labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; color: #a0a39b; font-size: 8px; }

.upload-title { margin-bottom: 29px; }
.upload-form { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 22px; align-items: start; }
.form-main { display: grid; gap: 18px; }
.form-section { padding: 25px 27px 28px; background: #fff; border: 1px solid #e6e4dc; border-radius: 15px; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.form-section-title > b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); font-size: 9px; }
.form-section-title h2 { margin: 0 0 3px; font-size: 13px; }
.form-section-title p { margin: 0; color: #969991; font-size: 9px; }
.drop-zone { min-height: 220px; border: 1.5px dashed #d6d2c8; border-radius: 13px; background: #faf9f6; display: grid; place-items: center; padding: 18px; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: #d18a68; background: #fff9f5; }
.drop-prompt { text-align: center; }
.upload-cloud { width: 53px; height: 53px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); }
.upload-cloud svg { width: 28px; }
.drop-prompt h3 { margin: 0 0 8px; color: #62665f; font-size: 11px; font-weight: 500; }
.drop-prompt h3 span { color: var(--orange); font-weight: 600; }
.drop-prompt p { margin: 0; color: #aaa9a4; font-size: 8px; }
.file-preview { width: 100%; display: flex; align-items: center; gap: 18px; }
.preview-media { width: 190px; height: 150px; flex: 0 0 auto; border-radius: 11px; overflow: hidden; background: #ebe9e3; }
.preview-media img, .preview-media video { width: 100%; height: 100%; object-fit: cover; }
.preview-file-info { display: grid; gap: 6px; text-align: left; }
.preview-file-info strong { max-width: 300px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-file-info span { color: #93968f; font-size: 9px; }
.preview-file-info button { width: fit-content; border: 0; padding: 3px 0; background: transparent; color: var(--orange); font-size: 9px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; display: grid; gap: 7px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field > span { color: #555a53; font-size: 10px; font-weight: 600; }
.field > span i { color: var(--orange); font-style: normal; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #dedbd3; border-radius: 9px; color: var(--ink); background: #fff; outline: 0; font-size: 10px; transition: .2s ease; }
.field input, .field select { height: 40px; padding: 0 12px; }
.field textarea { min-height: 80px; resize: vertical; padding: 11px 12px; line-height: 1.7; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23838680' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #ce8a68; box-shadow: 0 0 0 3px rgba(206,101,55,.08); }
.field input::placeholder, .field textarea::placeholder { color: #adada8; }
.field > small { position: absolute; right: 10px; bottom: 10px; color: #a5a69f; font-size: 8px; font-style: normal; }
.field > small em { font-style: normal; }
.field > small.field-hint { position: static; text-align: right; margin-top: -3px; }
.copy-field textarea { min-height: 155px; padding-bottom: 27px; }
.publish-card { position: sticky; top: 96px; padding: 22px; border-radius: 15px; border: 1px solid #e5e2da; background: #fff; }
.publish-card > h2 { margin: 0 0 21px; font-size: 14px; }
.publish-switch { display: flex; justify-content: space-between; align-items: center; padding: 19px 0; margin: 19px 0; border-top: 1px solid #eeeae4; border-bottom: 1px solid #eeeae4; }
.publish-switch > div { display: grid; gap: 3px; }
.publish-switch strong { font-size: 10px; }
.publish-switch span { color: #92958e; font-size: 8px; }
.switch { cursor: pointer; }
.switch input { display: none; }
.switch i { width: 34px; height: 19px; display: block; border-radius: 12px; background: #d7d8d3; position: relative; transition: .2s ease; }
.switch i::after { content: ''; width: 15px; height: 15px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s ease; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(15px); }
.library-save-note { display: flex; gap: 10px; padding: 14px; margin: 19px 0; border-radius: 10px; color: #586654; background: #edf2ea; }
.library-save-note > svg { width: 22px; flex: 0 0 auto; }
.library-save-note > div { display: grid; gap: 4px; }
.library-save-note strong { font-size: 10px; }
.library-save-note span { color: #7d8679; font-size: 8px; line-height: 1.6; }
.checklist { padding: 14px; border-radius: 10px; background: #f6f6f2; }
.checklist > span { display: block; color: #757a71; margin-bottom: 8px; font-size: 8px; font-weight: 600; }
.checklist p { margin: 6px 0; color: #80847c; font-size: 8px; }
.checklist p i { font-style: normal; color: #667b61; margin-right: 5px; }
.publish-button { width: 100%; margin: 20px 0 7px; }
.publish-button[disabled] { opacity: .65; cursor: wait; transform: none; }
.text-button { width: 100%; border: 0; background: transparent; color: #858981; padding: 7px; font-size: 9px; cursor: pointer; }
.text-button:hover { color: var(--orange); }

.manage-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.table-search { width: 280px; height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dedbd3; border-radius: 9px; }
.table-search svg { width: 17px; color: #90938c; }
.table-search input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 10px; }
.manage-table-wrap { overflow-x: auto; border: 1px solid #e6e3dc; border-radius: 14px; background: #fff; }
.manage-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.manage-table th { height: 42px; padding: 0 14px; color: #878a83; background: #f8f7f3; font-size: 8px; font-weight: 600; text-align: left; letter-spacing: .04em; }
.manage-table td { height: 65px; padding: 9px 14px; border-top: 1px solid #efede7; color: #686d65; font-size: 9px; }
.table-asset { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.table-thumb { width: 54px; height: 40px; flex: 0 0 auto; border-radius: 7px; overflow: hidden; background: #eee; }
.table-thumb img, .table-thumb video { width: 100%; height: 100%; object-fit: cover; }
.table-asset div { min-width: 0; display: grid; gap: 3px; }
.table-asset strong { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3f443e; font-size: 10px; }
.table-asset small { color: #a0a39c; font-size: 8px; }
.table-type { display: flex; gap: 5px; }
.table-type span { padding: 3px 6px; border-radius: 5px; background: #f0efeb; font-size: 7px; }
.table-type span:first-child { color: #5e735d; background: #eaf0e7; }
.asset-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; color: #8b725d; background: #f3ede5; font-size: 7px; white-space: nowrap; }
.asset-status.public { color: #5e765d; background: #e8f0e5; }
.asset-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.table-actions button.visibility { width: auto; padding: 0 8px; font-size: 7px; }
.table-actions { display: flex; gap: 5px; }
.table-actions button { width: 27px; height: 27px; border-radius: 7px; border: 1px solid #e0ded7; background: #fff; color: #747871; display: grid; place-items: center; cursor: pointer; }
.table-actions button:hover { color: var(--orange); border-color: #ddb09a; }
.table-actions button.delete:hover { color: #bd443b; border-color: #e5aca7; background: #fff8f7; }
.table-actions svg { width: 13px; }

/* Live-code platform */
.live-code-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.live-code-stats > div { padding: 18px 20px; border: 1px solid #e5e2da; border-radius: 13px; background: #fff; display: grid; gap: 4px; }
.live-code-stats span { color: #898d85; font-size: 9px; }
.live-code-stats b { font-size: 24px; letter-spacing: -.03em; }
.live-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.allocation-note { display: flex; align-items: center; gap: 6px; color: #66745f; font-size: 9px; }
.allocation-note i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #e4ede1; font-size: 8px; font-style: normal; }
.live-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.live-code-card { min-width: 0; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 19px; padding: 20px; border: 1px solid #e4e1d9; border-radius: 15px; background: #fff; transition: .2s ease; }
.live-code-card:hover { border-color: #d4cfc4; box-shadow: 0 12px 28px rgba(57, 48, 38, .07); }
.code-qr-wrap { min-width: 0; }
.code-qr { width: 132px; height: 132px; padding: 7px; border-radius: 11px; border: 1px solid #e9e6df; background: #fff; }
.code-qr svg { display: block; width: 100%; height: 100%; stroke: none; }
.code-link-copy { width: 100%; height: 26px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 7px; color: #676c64; background: #f2f1ed; font-size: 8px; cursor: pointer; }
.code-link-copy:hover { color: var(--orange); }
.code-link-copy svg { width: 11px; }
.code-card-content { min-width: 0; display: flex; flex-direction: column; }
.code-card-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.code-card-head > div { min-width: 0; }
.code-card-head h3 { margin: 1px 0 5px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card-head p { margin: 0; color: #9a9d96; font-size: 8px; }
.code-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 6px; color: #5f785d; background: #e8f0e5; font-size: 7px; }
.code-status.paused { color: #8b725a; background: #f1ebe2; }
.code-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.code-metrics div { padding: 8px; border-radius: 8px; background: #f7f6f2; display: grid; gap: 2px; }
.code-metrics span { color: #999c95; font-size: 7px; }
.code-metrics b { font-size: 10px; }
.code-material-summary { margin-bottom: 13px; }
.code-material-summary > span { display: block; color: #888c84; font-size: 8px; margin-bottom: 6px; }
.material-progress { height: 5px; border-radius: 4px; overflow: hidden; background: #eceae5; }
.material-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d67449, #e89b70); }
.code-material-summary small { display: flex; justify-content: space-between; margin-top: 5px; color: #9b9e97; font-size: 7px; }
.code-card-actions { margin-top: auto; display: flex; gap: 6px; }
.code-card-actions button { height: 29px; padding: 0 9px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 7px; border: 1px solid #dfdcd5; color: #696e66; background: #fff; font-size: 8px; cursor: pointer; }
.code-card-actions button:first-child { flex: 1; color: var(--orange-dark); border-color: #e7bca9; background: #fff9f6; }
.code-card-actions button:hover { border-color: #c9c4ba; }
.code-card-actions button.delete-code:hover { color: #bd443b; border-color: #e5aca7; }
.code-card-actions svg { width: 12px; }

.code-modal { padding: 20px; }
.code-dialog { position: relative; z-index: 1; width: min(820px, 95vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #f8f7f3; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: modalIn .25s ease; }
.code-dialog-header { padding: 22px 25px; display: flex; align-items: start; justify-content: space-between; color: #fff; background: #34483a; }
.code-dialog-header span { color: #d6b19d; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.code-dialog-header h2 { margin: 4px 0; font-size: 20px; }
.code-dialog-header p { margin: 0; color: rgba(255,255,255,.6); font-size: 9px; }
.code-dialog-header > button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.1); cursor: pointer; }
.code-dialog-header > button svg { width: 17px; }
.code-form-body { min-height: 0; overflow-y: auto; padding: 23px 25px; display: grid; gap: 20px; }
.code-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.distribution-rule-field { padding: 14px 16px; display: grid; grid-template-columns: minmax(0,1fr) 90px; align-items: center; gap: 8px 16px; border-radius: 11px; color: #526252; background: #edf2ea; border: 1px solid #dbe5d7; }
.distribution-rule-field > span { display: grid; gap: 3px; }.distribution-rule-field b { font-size: 10px; }.distribution-rule-field small { color: #818b7d; font-size: 8px; }
.distribution-rule-field input { width: 90px; height: 38px; padding: 0 10px; border: 1px solid #cbd6c7; border-radius: 8px; outline: 0; background: white; font-size: 11px; font-weight: 700; }
.distribution-rule-field em { grid-column: 1 / -1; color: #687764; font-size: 8px; font-style: normal; line-height: 1.6; }
.process-editor { padding: 18px; display: grid; gap: 14px; border-radius: 12px; background: #f0ede6; }
.material-pool-editor { padding: 17px; border: 1px solid #dfdcd4; border-radius: 12px; background: #fff; }
.pool-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.pool-title h3 { margin: 0 0 3px; font-size: 11px; }
.pool-title h3 i { color: var(--orange); font-style: normal; }
.pool-title p { margin: 0; color: #959890; font-size: 8px; }
.pool-actions { display: flex; align-items: center; gap: 7px; }
.choose-library-button { height: 31px; padding: 0 10px; display: flex; align-items: center; gap: 5px; border-radius: 8px; color: #526452; border: 1px solid #bfcbbb; background: #f7faf5; font-size: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.choose-library-button svg { width: 13px; }
.add-material-button { height: 31px; padding: 0 10px; display: flex; align-items: center; gap: 5px; border-radius: 8px; color: var(--orange-dark); border: 1px solid #e0b39e; background: #fff8f4; font-size: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.add-material-button svg { width: 13px; }
.material-editor-list { display: grid; gap: 8px; }
.pending-list:not(:empty) { margin-top: 8px; }
.material-editor-row { min-width: 0; min-height: 52px; padding: 7px 9px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 124px 28px; gap: 9px; align-items: center; border-radius: 9px; background: #f7f6f2; border: 1px solid #ebe9e3; }
.material-mini-thumb { width: 40px; height: 38px; border-radius: 6px; overflow: hidden; background: #ddd; }
.material-mini-thumb img, .material-mini-thumb video { width: 100%; height: 100%; object-fit: cover; }
.material-file-copy { min-width: 0; display: grid; gap: 3px; }
.material-file-copy strong { font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-file-copy span { color: #9b9e97; font-size: 7px; }
.material-limit { display: flex; align-items: center; gap: 5px; color: #858981; font-size: 7px; }
.material-limit input { width: 67px; height: 28px; padding: 0 7px; border: 1px solid #dcd9d1; border-radius: 6px; outline: 0; background: #fff; font-size: 8px; }
.material-usage { justify-self: end; padding: 5px 8px; border-radius: 6px; color: #62745f; background: #e8f0e5; font-size: 7px; white-space: nowrap; }
.material-usage.exhausted { color: #8b6d5b; background: #f2e8e1; }
.material-remove { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #a26a64; background: #f8ecea; cursor: pointer; }
.material-remove svg { width: 12px; }
.pool-empty { padding: 22px; border: 1px dashed #dcd9d1; border-radius: 9px; color: #a0a29c; background: #faf9f6; text-align: center; font-size: 8px; }
.code-dialog-footer { padding: 14px 25px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid #dfdcd4; background: #fff; }
.material-source-badge { color: #63745f; }
.picker-modal { z-index: 130; }
.asset-picker-dialog { position: relative; z-index: 1; width: min(760px, 94vw); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 17px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.28); animation: modalIn .22s ease; }
.picker-header { padding: 20px 23px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid #ebe8e1; }
.picker-header h2 { margin: 0 0 4px; font-size: 18px; }.picker-header p { margin: 0; color: #92958e; font-size: 9px; }
.picker-header button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #666b63; background: #f2f1ed; cursor: pointer; }.picker-header button svg { width: 16px; }
.picker-toolbar { padding: 13px 23px; display: flex; align-items: center; justify-content: space-between; background: #faf9f6; }
.picker-toolbar span { color: #737970; font-size: 9px; }
.asset-picker-grid { min-height: 180px; overflow-y: auto; padding: 16px 23px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-content: start; }
.picker-asset { min-width: 0; padding: 9px; display: grid; grid-template-columns: 68px minmax(0,1fr) 22px; gap: 10px; align-items: center; border: 1px solid #e5e2db; border-radius: 10px; background: #fff; cursor: pointer; transition: .18s ease; }
.picker-asset:hover { border-color: #c9c5bb; }.picker-asset.selected { border-color: #d37a51; background: #fff9f5; box-shadow: 0 0 0 2px rgba(206,101,55,.08); }
.picker-thumb { width: 68px; height: 52px; border-radius: 7px; overflow: hidden; background: #ddd; }.picker-thumb img, .picker-thumb video { width: 100%; height: 100%; object-fit: cover; }
.picker-copy { min-width: 0; display: grid; gap: 4px; }.picker-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.picker-copy span { color: #9a9d96; font-size: 7px; }
.picker-check { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #d7d4cc; border-radius: 6px; color: white; font-size: 10px; }.picker-asset.selected .picker-check { border-color: var(--orange); background: var(--orange); }
.asset-picker-dialog > .pool-empty { margin: 20px 23px; }
.picker-footer { padding: 13px 23px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #ebe8e1; }

/* Three-step mobile distribution page */
body.share-open { background: #eef2fc; }
body.share-open .topbar, body.share-open .footer { display: none; }
.share-view { min-height: 100vh; background: #edf2ff; }
.share-page { width: min(680px, 100%); min-height: 100vh; margin: 0 auto; background: linear-gradient(180deg, #eaf0ff 0, #f5f7fd 520px, #f8f9fc 100%); box-shadow: 0 0 50px rgba(52, 65, 96, .1); }
.share-header { height: 72px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; background: rgba(239,244,255,.82); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.share-header > button { width: 38px; height: 38px; border: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.75); color: #34383e; cursor: pointer; }
.share-header > button svg { width: 19px; }
.share-header > div { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.share-brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: white; background: linear-gradient(145deg, #7558d8, #9a62e8); }
.share-brand-mark svg { width: 21px; }
.share-more { letter-spacing: 2px; font-size: 14px; }
.share-loading { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; gap: 12px; color: #73788b; font-size: 13px; }
.share-loading i { width: 23px; height: 23px; border: 2px solid #d9d8ee; border-top-color: #7656dc; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.share-error { padding: 120px 30px; text-align: center; }
.share-error > div { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: #b4554c; background: #f8dfdd; font-weight: 800; font-size: 24px; }
.share-error h2 { margin: 0 0 8px; font-size: 20px; }.share-error p { color: #818695; font-size: 12px; }.share-error button { margin-top: 10px; padding: 10px 18px; border: 0; border-radius: 9px; color: white; background: #7656dc; cursor: pointer; }
.share-content { padding: 4px 24px 28px; }
.share-step { margin-bottom: 16px; }
.share-step-head { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-step-head h2 { margin: 0; font-size: 18px; font-weight: 500; }
.share-step-head h2 b { position: relative; font-size: 18px; margin-right: 10px; }
.share-step-head h2 b::after { content: ''; position: absolute; z-index: -1; height: 7px; left: 0; right: 0; bottom: -1px; border-radius: 5px; background: linear-gradient(90deg, #9b64ee, #df72dd); }
.share-step-head h2 em { font-style: normal; }
.share-step-head button { height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #7656dc; font-size: 14px; cursor: pointer; white-space: nowrap; }
.share-step-head button svg { width: 21px; }
.share-copy-card { min-height: 0; padding: 16px 18px 14px; display: flex; flex-direction: column; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(82, 85, 117, .05); }
.share-copy-card p { margin: 0; color: #686c76; white-space: pre-line; font-size: 13px; line-height: 1.6; }
.share-copy-card span { margin-top: 10px; padding-top: 10px; color: #a0a3ad; font-size: 10px; }
.share-media { height: 260px; min-height: 0; border-radius: 14px; overflow: hidden; background: #d9dbe3; position: relative; box-shadow: 0 8px 25px rgba(63,68,88,.08); }
.share-media img, .share-media video { width: 100%; height: 100%; max-height: none; min-height: 0; display: block; object-fit: contain; }
.share-video-shell { width: 100%; height: 100%; position: relative; overflow: hidden; isolation: isolate; background: #d9dbe3; }
.share-video-shell::before { content: ''; position: absolute; z-index: 0; inset: -24px; background-image: var(--share-poster); background-position: center; background-size: cover; filter: blur(20px); opacity: 0; transform: scale(1.08); transition: opacity .2s ease; }
.share-video-shell.has-poster::before { opacity: .62; }
.share-video-shell video { position: relative; z-index: 1; background: transparent; }
.share-video-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 72px; height: 72px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(75,77,87,.72); box-shadow: 0 4px 15px rgba(38,40,52,.18); transform: translate(-50%, -50%); cursor: pointer; }
.share-video-play svg { width: 31px; fill: currentColor; transform: translateX(2px); }
.share-video-shell.playing .share-video-play { display: none; }
.third-step { padding-bottom: 8px; }
.instruction-card { padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(82,85,117,.05); }
.instruction-card ol { list-style: none; counter-reset: instruction; margin: 0; padding: 0; display: grid; gap: 10px; }
.instruction-card li { counter-increment: instruction; display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 10px; color: #5f6470; font-size: 13px; line-height: 1.65; }
.instruction-card li::before { content: counter(instruction); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #7656dc; background: #eee9ff; font-size: 10px; font-weight: 700; }
.instruction-tip { display: none; }
.instruction-tip svg { width: 17px; flex: 0 0 auto; }
.share-footer { padding: 25px 0 5px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #a1a5b0; }
.share-footer .small { width: 25px; height: 25px; border-radius: 7px; }.share-footer .small svg { width: 16px; }.share-footer p { margin: 0; font-size: 9px; }

.footer { min-height: 112px; padding: 26px max(28px, calc((100vw - 1240px)/2)); display: flex; justify-content: space-between; align-items: center; background: #272e28; color: white; }
.footer .brand { color: white; }
.footer .brand-mark { width: 32px; height: 32px; color: #27302a; background: #f2e8da; box-shadow: none; }
.footer .brand-mark svg { width: 22px; }
.footer .brand strong { font-size: 15px; }
.footer .brand small { color: rgba(255,255,255,.55); font-size: 8px; }
.footer p { margin: 7px 0 0 43px; color: rgba(255,255,255,.45); font-size: 8px; }
.footer-links { display: flex; align-items: center; gap: 25px; font-size: 9px; }
.footer-links a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-links span { color: rgba(255,255,255,.33); padding-left: 10px; border-left: 1px solid rgba(255,255,255,.15); }
.admin-view + .footer { display: none; }
body.admin-open .footer { display: none; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(25, 27, 23, .65); backdrop-filter: blur(7px); animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.preview-dialog { position: relative; z-index: 1; width: min(1020px, 94vw); max-height: min(720px, 90vh); display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.97) translateY(8px); } }
.modal-close { position: absolute; z-index: 3; top: 13px; right: 13px; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #555a53; background: rgba(255,255,255,.88); cursor: pointer; }
.modal-close svg { width: 18px; }
.modal-media { min-height: 590px; background: #deddd7; display: grid; place-items: center; overflow: hidden; }
.modal-media img, .modal-media video { width: 100%; height: 100%; max-height: 90vh; object-fit: cover; }
.demo-video-notice { width: 80%; padding: 16px; border-radius: 10px; position: absolute; left: 10%; bottom: 22px; color: white; background: rgba(26,28,25,.67); backdrop-filter: blur(6px); font-size: 10px; text-align: center; }
.modal-details { max-height: 90vh; overflow-y: auto; padding: 42px 32px 30px; }
.modal-meta-row { display: flex; align-items: center; justify-content: space-between; }
.modal-meta-row > div { display: flex; gap: 6px; }
.modal-meta-row .media-badge { color: #5a6855; background: #e8eee5; }
.modal-meta-row .category-badge { color: #a9502e; background: #faeae1; }
.modal-favorite { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: #747971; background: #fff; border: 1px solid #e2dfd7; cursor: pointer; }
.modal-favorite svg { width: 16px; }
.modal-favorite.active { color: #bd4e3d; background: #fff7f5; border-color: #ecc0ba; }
.modal-favorite.active svg { fill: currentColor; }
.modal-details h2 { margin: 16px 0 7px; font-size: 22px; line-height: 1.35; }
.modal-description { margin: 0; color: #80837c; font-size: 10px; line-height: 1.7; }
.modal-info { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 20px 0; padding: 13px 0; border-top: 1px solid #eeece6; border-bottom: 1px solid #eeece6; }
.modal-info span { display: grid; gap: 2px; color: #969991; font-size: 8px; }
.modal-info b { color: #5a5f57; font-size: 9px; font-weight: 500; }
.copy-box { padding: 14px; border-radius: 11px; background: #f7f5f0; border: 1px solid #ebe8e0; }
.copy-box-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.copy-box-title span { color: #5f645c; font-size: 9px; font-weight: 700; }
.copy-box-title button { border: 0; display: flex; gap: 4px; align-items: center; background: transparent; color: var(--orange); font-size: 8px; cursor: pointer; }
.copy-box-title svg { width: 13px; }
.copy-box p { margin: 0; color: #61655e; font-size: 10px; white-space: pre-line; line-height: 1.8; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.modal-tags span { padding: 4px 7px; border-radius: 6px; color: #7b7f77; background: #f2f1ed; font-size: 8px; }
.modal-download { width: 100%; margin-top: 19px; min-height: 45px; }
.modal-download span { color: rgba(255,255,255,.68); font-size: 8px; margin-left: 3px; }
.confirm-dialog { position: relative; z-index: 1; width: 370px; padding: 33px; border-radius: 18px; background: #fff; text-align: center; box-shadow: var(--shadow); animation: modalIn .25s ease; }
.confirm-icon { width: 53px; height: 53px; margin: 0 auto 16px; display: grid; place-items: center; color: #b94339; border-radius: 50%; background: #fbe9e7; }
.confirm-icon svg { width: 25px; }
.confirm-dialog h2 { margin: 0 0 8px; font-size: 18px; }
.confirm-dialog p { margin: 0 0 23px; color: #858981; font-size: 10px; line-height: 1.6; }
.confirm-dialog > div:last-child { display: flex; gap: 10px; justify-content: center; }

.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: grid; gap: 9px; }
.toast { min-width: 250px; max-width: 380px; padding: 13px 16px; border-radius: 11px; display: flex; align-items: center; gap: 10px; color: #fff; background: #333b34; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 11px; animation: toastIn .25s ease; }
.toast.error { background: #a43b34; }
.toast i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-style: normal; }
.toast.leaving { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1050px) {
  .hero-visual { right: -30px; opacity: .78; transform: scale(.87); }
  .hero-content { width: 68%; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .upload-form { grid-template-columns: 1fr; }
  .publish-card { position: static; }
  .admin-layout { grid-template-columns: 185px minmax(0, 1fr); }
  .live-code-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .topbar { height: 64px; padding: 0 16px; gap: 12px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .brand strong { font-size: 17px; }.brand small { display: none; }
  .main-nav { gap: 15px; margin-left: auto; }
  .nav-link { font-size: 11px; }.nav-link:nth-child(2) { display: none; }
  .top-actions { margin-left: 0; gap: 3px; }.profile-copy, .profile-button > svg, .notification-button { display: none; }
  .profile-button { padding-left: 4px; border: 0; }.avatar { width: 33px; height: 33px; }
  .mobile-search { display: grid; }
  .hero { min-height: 400px; padding: 48px 20px; }
  .hero-content { width: 100%; }.hero-visual { display: none; }
  .hero h1 { font-size: 37px; }.hero-search kbd { display: none; }.hero-search { height: 54px; }.hero-search button { padding: 0 16px; }
  .quick-searches { flex-wrap: wrap; }
  .content-wrap { padding: 38px 16px 64px; }
  .section-heading > p { display: none; }
  .filter-bar { display: block; padding-bottom: 12px; }
  .filter-tabs { height: 48px; }.select-filters { display: grid; grid-template-columns: 1fr 1fr; }.select-filters label:last-child { grid-column: 1 / -1; }.select-filters select { width: 100%; }
  .asset-grid { grid-template-columns: 1fr; gap: 18px; }.asset-cover { height: 58vw; max-height: 340px; }.favorite-button { opacity: 1; transform: none; }
  .footer { padding: 27px 20px; display: block; }.footer-links { margin-top: 25px; flex-wrap: wrap; gap: 15px; }.footer p { margin-left: 43px; }
  .page-header.compact { padding: 34px 20px; align-items: end; }.page-header .secondary-button { font-size: 0; width: 42px; padding: 0; }
  .admin-layout { display: block; }.admin-sidebar { padding: 10px 12px; position: sticky; top: 64px; z-index: 20; border: 0; border-bottom: 1px solid var(--line); }.admin-title, .admin-tip { display: none; }.admin-sidebar nav { margin: 0; display: flex; overflow-x: auto; }.admin-nav-item { white-space: nowrap; justify-content: center; }.admin-main { padding: 29px 16px 60px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.stat-card { padding: 14px; gap: 10px; }.stat-icon { width: 37px; height: 37px; }.stat-card b { font-size: 20px; }
  .overview-grid { display: block; }.chart-panel { margin-top: 14px; }.recent-panel { display: none; }
  .admin-page-title { align-items: center; }.admin-page-title h1 { font-size: 23px; }.admin-page-title > .primary-button { min-width: 41px; padding: 0 12px; font-size: 0; }
  .form-section { padding: 20px 17px; }.form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.file-preview { display: grid; }.preview-media { width: 100%; height: 180px; }
  .manage-toolbar { align-items: center; }.table-search { flex: 1; min-width: 0; width: auto; }
  .live-code-stats { grid-template-columns: 1fr 1fr; }.live-toolbar { gap: 10px; }.allocation-note { display: none; }
  .live-code-card { grid-template-columns: 110px minmax(0, 1fr); padding: 14px; gap: 13px; }.code-qr { width: 110px; height: 110px; }
  .code-form-grid { grid-template-columns: 1fr; }.material-editor-row { grid-template-columns: 38px minmax(0, 1fr) 100px 27px; }.code-dialog { max-height: 95vh; }.code-dialog-header { padding: 18px; }.code-form-body { padding: 18px; }.code-dialog-footer { padding: 12px 18px; }
  .asset-picker-grid { grid-template-columns: 1fr; }
  .preview-dialog { width: 95vw; max-height: 92vh; display: block; overflow-y: auto; }.modal-media { min-height: 350px; height: 45vh; }.modal-details { max-height: none; overflow: visible; padding: 28px 20px; }.modal-close { position: fixed; top: calc(4vh + 13px); right: calc(2.5vw + 13px); }
}

@media (max-width: 430px) {
  .admin-link { max-width: 64px; }
  .hero h1 { font-size: 33px; }
  .hero-content > p { font-size: 13px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { justify-content: start; }
  .section-heading h2 { font-size: 24px; }
  .preview-dialog { border-radius: 15px; }
  .live-code-card { display: block; }.code-qr-wrap { width: 112px; float: left; margin: 0 13px 9px 0; }.code-card-actions { clear: both; padding-top: 9px; }.code-metrics { margin-top: 12px; }
  .material-editor-row { grid-template-columns: 35px minmax(0, 1fr) 27px; }.material-limit { grid-column: 2 / 3; }.material-remove { grid-column: 3; grid-row: 1; }.pool-title { align-items: end; }
  .pool-title { display: block; }.pool-actions { margin-top: 10px; }.picker-toolbar { gap: 10px; }.picker-toolbar .table-search { width: auto; flex: 1; }
  .share-header { height: 60px; padding: 0 16px; }.share-header > button { width: 34px; height: 34px; }.share-content { padding: 2px 16px 20px; }.share-step { margin-bottom: 10px; }.share-step-head { min-height: 30px; }.share-step-head h2, .share-step-head h2 b { font-size: 16px; }.share-step-head button { font-size: 13px; }.share-copy-card { min-height: 0; padding: 13px 15px 11px; }.share-media { height: 220px; }.share-media img, .share-media video { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Account, membership and platform management */
.logout-button { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 11px; cursor: pointer; }
.logout-button:hover { color: var(--orange-dark); border-color: #dfb6a2; }
body.auth-open .topbar, body.auth-open .footer { display: none; }
.auth-view { min-height: 100vh; background: radial-gradient(circle at 18% 15%, rgba(222,174,137,.2), transparent 35%), #f5f3ed; }
.auth-shell { min-height: 100vh; max-width: 1180px; margin: 0 auto; padding: 56px 36px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr); align-items: center; gap: 90px; }
.auth-intro { padding: 32px 0; }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 74px; }
.auth-logo strong { font-size: 22px; letter-spacing: .05em; }
.auth-kicker { color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.auth-intro h1 { max-width: 560px; margin: 16px 0 20px; font-size: clamp(38px, 5vw, 61px); line-height: 1.16; letter-spacing: -.055em; }
.auth-intro > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.auth-features { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.auth-features span { padding: 9px 12px; border: 1px solid #e1ddd3; border-radius: 9px; color: #5f695c; background: rgba(255,255,255,.6); font-size: 11px; }
.auth-card { padding: 30px 34px 34px; background: #fff; border: 1px solid #e4e0d7; border-radius: 24px; box-shadow: 0 30px 80px rgba(72,59,42,.12); }
.auth-tabs { height: 44px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 11px; background: #f2f0ea; }
.auth-tabs button { border: 0; border-radius: 8px; color: #82867e; background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.auth-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(50,44,36,.08); }
.auth-form { display: none; margin-top: 31px; }
.auth-form.active { display: grid; gap: 17px; }
.auth-form > div:first-child { margin-bottom: 7px; }
.auth-form > div:first-child > span { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.auth-form h2 { margin: 5px 0 6px; font-size: 25px; }
.auth-form > div:first-child > p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-form label { display: grid; gap: 7px; }
.auth-form label > span { font-size: 11px; font-weight: 600; }
.auth-form input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #dedbd2; border-radius: 10px; background: #fff; outline: 0; font-size: 12px; }
.auth-form input:focus { border-color: #cc8a6c; box-shadow: 0 0 0 3px rgba(206,101,55,.1); }
.auth-submit { width: 100%; height: 47px; margin-top: 5px; }
.demo-accounts { padding: 13px; display: grid; gap: 4px; border-radius: 10px; background: #f6f5f0; color: #7d8179; font-size: 9px; line-height: 1.5; }
.demo-accounts strong { color: #4f574f; }
.auth-agreement { margin: -4px 0 0; text-align: center; color: #a0a29d; font-size: 9px; }

.membership-banner { margin: -12px 0 20px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; border-radius: 16px; background: linear-gradient(120deg, #314637, #516853); box-shadow: 0 12px 30px rgba(43,65,48,.17); }
.membership-banner > div:first-child { flex: 1; min-width: 0; }
.membership-banner > div:first-child > span { display: inline-flex; padding: 4px 7px; border-radius: 6px; color: #26352a; background: #e6d2a7; font-size: 8px; font-weight: 700; }
.membership-banner h2 { margin: 8px 0 4px; font-size: 17px; }
.membership-banner p { margin: 0; color: rgba(255,255,255,.68); font-size: 9px; }
.membership-progress { width: min(440px, 100%); height: 5px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.14); }
.membership-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #e8c985; transition: width .3s ease; }
.membership-banner > div:last-child { display: grid; justify-items: end; gap: 9px; }
.membership-banner strong { font-size: 18px; }
.membership-banner .primary-button { background: #f7efe0; color: #34483a; box-shadow: none; }
.membership-banner.member { background: linear-gradient(120deg, #654c2d, #9a7544); }
.membership-banner.member .membership-progress { display: none; }

.platform-view { min-height: calc(100vh - 76px); background: #f3f2ed; }
.platform-layout { max-width: 1440px; min-height: calc(100vh - 76px); margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.platform-sidebar { padding: 35px 22px; display: flex; flex-direction: column; border-right: 1px solid #e3e1d9; background: #28372e; color: #fff; }
.platform-sidebar > div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.platform-sidebar .brand-mark { background: rgba(255,255,255,.12); box-shadow: none; }
.platform-sidebar nav { margin-top: 38px; display: grid; }
.platform-sidebar nav button { height: 43px; padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: rgba(255,255,255,.12); text-align: left; font-size: 11px; }
.platform-sidebar > p { margin-top: auto; color: rgba(255,255,255,.45); font-size: 9px; line-height: 1.8; }
.platform-main { min-width: 0; padding: 44px clamp(28px, 4vw, 58px) 70px; }
.platform-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.platform-stats article { padding: 20px; display: grid; gap: 4px; border: 1px solid #e4e1d9; border-radius: 14px; background: #fff; }
.platform-stats span { color: #777c74; font-size: 9px; }
.platform-stats b { font-size: 26px; }
.platform-stats small { color: #aaa9a3; font-size: 8px; }
.platform-price-card { margin-top: 18px; padding: 23px 25px; display: flex; justify-content: space-between; align-items: center; gap: 25px; border-radius: 15px; background: #fff; border: 1px solid #e4e1d9; }
.platform-price-card > div > span { color: var(--orange); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.platform-price-card h2 { margin: 5px 0 4px; font-size: 17px; }
.platform-price-card p { margin: 0; color: var(--muted); font-size: 9px; }
.platform-price-card form { display: flex; align-items: center; gap: 10px; }
.platform-price-card label { height: 43px; padding: 0 12px; display: flex; align-items: center; border: 1px solid #ddd9cf; border-radius: 10px; }
.platform-price-card label > span { color: var(--orange); font-weight: 700; }
.platform-price-card input { width: 105px; border: 0; outline: 0; text-align: center; font-size: 16px; font-weight: 700; }
.platform-price-card small { color: var(--muted); font-size: 9px; }
.platform-account-card { margin-top: 18px; padding: 23px; border-radius: 15px; background: #fff; border: 1px solid #e4e1d9; }
.table-search.compact { width: 245px; }
.platform-table td { vertical-align: middle; }
.platform-user { display: flex; align-items: center; gap: 10px; }
.platform-user i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-style: normal; font-size: 12px; }
.platform-user div { display: grid; gap: 2px; }
.platform-user strong { font-size: 10px; }.platform-user small { color: #969992; font-size: 8px; }
.membership-state { display: grid; justify-items: start; gap: 5px; }.membership-state small { color: #93978f; font-size: 7px; white-space: nowrap; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 99px; color: #61725e; background: #eaf0e7; font-size: 8px; font-weight: 600; }
.status-pill.trial { color: #9a603f; background: #f6e7dd; }.status-pill.disabled { color: #8a8d88; background: #ececea; }
.platform-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.platform-actions button { padding: 5px 7px; border: 1px solid #dfdcd4; border-radius: 6px; color: #62675f; background: #fff; font-size: 8px; cursor: pointer; }
.platform-actions button.primary { color: #fff; border-color: var(--orange); background: var(--orange); }
.platform-actions button:hover { border-color: #c99b85; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; gap: 22px; padding: 28px 20px; }
  .auth-intro { padding: 0; }.auth-logo { margin-bottom: 35px; }.auth-intro h1 { font-size: 39px; }.auth-card { min-height: 0; }
  .platform-layout { display: block; }.platform-sidebar { display: none; }.platform-main { padding: 30px 18px 60px; }.platform-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .logout-button { display: none; }
  .auth-intro > p, .auth-features { display: none; }.auth-logo { margin-bottom: 24px; }.auth-intro h1 { margin-bottom: 0; font-size: 34px; }.auth-card { padding: 22px 19px; border-radius: 18px; }
  .membership-banner { align-items: start; padding: 18px; }.membership-banner > div:last-child { min-width: 95px; }.membership-banner strong { font-size: 14px; }
  .platform-stats { grid-template-columns: 1fr 1fr; }.platform-price-card { align-items: stretch; flex-direction: column; }.platform-price-card form { flex-wrap: wrap; }.platform-price-card label { flex: 1; }.platform-account-card { padding: 17px 13px; }.platform-account-card .panel-card-header { display: block; }.table-search.compact { width: 100%; margin-top: 12px; }
}

/* Header notifications and account menu */
.top-actions { position: relative; }
.notification-button.active, .profile-button.active { color: var(--orange-dark); }
.notification-button > span { position: absolute; min-width: 16px; height: 16px; padding: 0 4px; right: 1px; top: 1px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 99px; color: #fff; background: var(--orange); font-size: 8px; line-height: 1; }
.header-popover { position: absolute; z-index: 80; top: 52px; border: 1px solid #e4e1d9; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px rgba(44,39,32,.16); animation: viewIn .18s ease both; }
.notification-popover { right: 182px; width: 350px; max-height: 470px; overflow: hidden; }
.popover-head { min-height: 65px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #efede7; }
.popover-head > div { display: grid; gap: 3px; }.popover-head strong { font-size: 13px; }.popover-head small { color: var(--muted); font-size: 9px; }
.popover-head button { border: 0; color: var(--orange); background: transparent; font-size: 9px; cursor: pointer; }
.notification-list { max-height: 395px; overflow-y: auto; }
.notification-item { width: 100%; padding: 14px 16px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 7px; gap: 10px; align-items: start; border: 0; border-bottom: 1px solid #f1efe9; background: #fff; text-align: left; cursor: pointer; }
.notification-item:hover { background: #fbfaf7; }.notification-item.unread { background: #fffaf6; }
.notification-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #5d765e; background: #e8eee5; font-size: 13px; font-weight: 700; }
.notification-icon.warning { color: #aa633f; background: #f7e8de; }.notification-icon.info { color: #58758b; background: #e6eef2; }
.notification-item > div { min-width: 0; display: grid; gap: 4px; }.notification-item strong { font-size: 10px; }.notification-item p { margin: 0; color: #7d8179; font-size: 9px; line-height: 1.55; }.notification-item time { color: #aaa; font-size: 8px; }
.notification-item > i { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--orange); }.notification-item:not(.unread) > i { visibility: hidden; }
.notification-empty { padding: 42px 20px; text-align: center; color: #969991; font-size: 10px; }
.profile-popover { right: 0; width: 225px; padding: 10px; }
.profile-popover-head { padding: 10px 9px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #efede7; margin-bottom: 6px; }.profile-popover-head .avatar { width: 36px; height: 36px; }.profile-popover-head > div { display: grid; gap: 2px; }.profile-popover-head strong { font-size: 11px; }.profile-popover-head small { color: var(--muted); font-size: 9px; }
.profile-popover > button { width: 100%; height: 37px; padding: 0 9px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px; color: #5e645c; background: transparent; font-size: 10px; cursor: pointer; }.profile-popover > button:hover { background: #f5f3ee; color: var(--ink); }.profile-popover > button svg { width: 16px; }.profile-popover > .profile-logout { margin-top: 5px; border-top: 1px solid #efede7; border-radius: 0 0 8px 8px; color: #b8553b; }

/* Account dialogs */
.account-dialog { position: relative; z-index: 1; width: min(440px, 92vw); padding: 27px; display: grid; gap: 17px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.account-dialog-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 3px; }.account-dialog-head span { color: var(--orange); font-size: 8px; font-weight: 700; letter-spacing: .14em; }.account-dialog-head h2 { margin: 5px 0 4px; font-size: 21px; }.account-dialog-head p { margin: 0; color: var(--muted); font-size: 9px; }.account-dialog-head > button, .payment-close { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f3f1ec; cursor: pointer; }.account-dialog-head > button svg, .payment-close svg { width: 17px; }
.account-dialog-actions { margin-top: 5px; display: flex; justify-content: flex-end; gap: 9px; }

/* Manual membership activation */
.customer-service-card { margin-top: 18px; padding: 23px 25px; border-radius: 15px; background: #fff; border: 1px solid #e4e1d9; }
.customer-service-card .panel-card-header > div > span { color: var(--orange); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.customer-service-form { display: grid; gap: 18px; }
.customer-service-fields { padding-top: 17px; border-top: 1px solid #f0eee8; }
.customer-service-fields textarea { line-height: 1.65; resize: vertical; }
.customer-qr-editor { padding: 16px; display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 18px; align-items: center; border-radius: 13px; background: #f7f6f2; border: 1px solid #ebe8df; }
.customer-qr-preview { width: 126px; height: 126px; overflow: hidden; display: grid; place-items: center; border: 1px dashed #d4d0c6; border-radius: 11px; background: #fff; }
.customer-qr-preview > div { padding: 12px; display: grid; justify-items: center; gap: 8px; color: #a1a49d; text-align: center; font-size: 8px; }.customer-qr-preview svg { width: 34px; }.customer-qr-preview.has-image { border-style: solid; }.customer-qr-preview img { width: 100%; height: 100%; object-fit: contain; }
.customer-qr-editor > div:last-child > strong { font-size: 12px; }.customer-qr-editor > div:last-child > p { max-width: 520px; margin: 6px 0 14px; color: var(--muted); font-size: 9px; line-height: 1.65; }.customer-qr-editor > div:last-child > div { display: flex; align-items: center; gap: 7px; }.customer-qr-editor .text-button { width: auto; }.text-button.danger { color: #a85943; }
.customer-service-note { padding: 12px 14px; display: flex; gap: 10px; align-items: center; border-radius: 10px; color: #59705b; background: #edf2ea; font-size: 9px; line-height: 1.6; }.customer-service-note svg { width: 20px; flex: 0 0 auto; }
.customer-service-actions { display: flex; justify-content: flex-end; }

.membership-benefits { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px 18px; }.membership-benefits span { color: rgba(255,255,255,.85); font-size: 8px; }
.membership-banner > div:last-child > small { color: rgba(255,255,255,.6); font-size: 8px; }
.membership-banner > div:last-child .primary-button { min-width: 132px; }

.contact-dialog { position: relative; z-index: 1; width: min(520px, 94vw); max-height: 92vh; overflow-y: auto; padding: 29px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.payment-close { position: absolute; top: 18px; right: 18px; }
.contact-dialog-head { padding-right: 35px; }.contact-dialog-head > span { display: inline-flex; padding: 4px 8px; border-radius: 99px; color: #8b6236; background: #f2e4c9; font-size: 8px; font-weight: 700; }.contact-dialog-head h2 { margin: 8px 0 6px; font-size: 23px; }.contact-dialog-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.contact-membership-price { margin: 20px 0 16px; padding: 19px; display: grid; justify-items: center; border-radius: 15px; color: #fff; background: linear-gradient(125deg, #314637, #657b64); }.contact-membership-price small { color: rgba(255,255,255,.68); font-size: 8px; }.contact-membership-price em { font-style: normal; }.contact-membership-price strong { margin: 3px 0; display: flex; align-items: baseline; }.contact-membership-price i { font-size: 18px; font-style: normal; }.contact-membership-price b { font-size: 38px; letter-spacing: -.04em; }.contact-membership-price > span { color: rgba(255,255,255,.72); font-size: 8px; }
.contact-service-body { padding: 16px; display: grid; grid-template-columns: 146px minmax(0,1fr); gap: 17px; align-items: center; border: 1px solid #e7e3d9; border-radius: 14px; background: #fbfaf7; }.contact-service-body:has(.contact-qr[hidden]) { grid-template-columns: 1fr; }.contact-qr { display: grid; justify-items: center; gap: 6px; }.contact-qr img { width: 146px; height: 146px; padding: 5px; object-fit: contain; border: 1px solid #e4e0d6; border-radius: 10px; background: #fff; }.contact-qr small { color: var(--muted); font-size: 8px; }
.contact-details { display: grid; gap: 10px; }.contact-details > span { color: var(--orange); font-size: 9px; font-weight: 700; }.contact-details > div { display: grid; gap: 4px; }.contact-details small { color: var(--muted); font-size: 8px; }.contact-details strong { overflow-wrap: anywhere; font-size: 16px; }.contact-details .primary-button { width: 100%; }.contact-details p { margin: 0; color: #8c8f88; font-size: 8px; text-align: center; }
.contact-process { margin-top: 16px; display: grid; grid-template-columns: 26px minmax(0,1fr) 18px 26px minmax(0,1fr) 18px 26px minmax(0,1fr); gap: 7px; align-items: center; }.contact-process > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); font-size: 9px; font-weight: 700; }.contact-process p { margin: 0; display: grid; gap: 2px; }.contact-process strong { font-size: 8px; }.contact-process small { color: #9b9e98; font-size: 7px; line-height: 1.35; }.contact-process > i { height: 1px; background: #ddd9cf; }

@media (max-width: 780px) {
  .notification-popover { position: fixed; top: 64px; left: 10px; right: 10px; width: auto; }.profile-popover { position: fixed; top: 64px; right: 10px; }
  .customer-service-card { padding: 20px 17px; }.customer-qr-editor { grid-template-columns: 100px minmax(0,1fr); }.customer-qr-preview { width: 100px; height: 100px; }
}

@media (max-width: 560px) {
  .membership-banner { flex-direction: column; }.membership-banner > div:last-child { width: 100%; align-items: start; justify-items: start; }.membership-banner > div:last-child .primary-button { width: 100%; }
  .customer-qr-editor { grid-template-columns: 1fr; }.customer-qr-preview { width: 126px; height: 126px; }
  .contact-dialog { padding: 24px 18px; }.contact-service-body { grid-template-columns: 1fr; }.contact-process { grid-template-columns: 26px 1fr; }.contact-process > i { display: none; }
}

/* Normal and URL image live codes */
.display-code-card { align-items: start; }
.display-code-title-preview { margin: 11px 0 9px; padding: 9px 11px; display: grid; gap: 3px; border-radius: 8px; background: #f6f4ef; }.display-code-title-preview span { color: #999b95; font-size: 7px; }.display-code-title-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.display-code-thumbs { min-height: 43px; display: flex; align-items: center; gap: 6px; }.display-code-thumbs img { width: 42px; height: 42px; padding: 2px; object-fit: cover; border: 1px solid #e4e1d9; border-radius: 7px; background: #fff; }.display-code-thumbs > span { color: #aaa; font-size: 8px; }.display-code-thumbs > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: #6f766d; background: #ebece7; font-size: 8px; font-style: normal; }
.display-code-card .code-material-summary { margin-top: 11px; }.display-code-card .code-material-summary small b, .display-code-card .code-material-summary small em { font-size: inherit; font-style: normal; font-weight: 500; }
.display-allocation-settings { padding: 15px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; border: 1px solid #e2dfd7; border-radius: 12px; background: #f7f5f0; }.display-allocation-settings .field > small { position: static; min-height: 25px; color: #8e918a; line-height: 1.55; }.display-allocation-settings #displayAllocationHint { color: #687764; }
.display-code-settings { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 16px; align-items: center; }
.lock-toggle { min-height: 62px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid #dfe6dc; border-radius: 11px; background: #f0f4ee; cursor: pointer; }.lock-toggle input { display: none; }.lock-toggle > i { width: 42px; height: 24px; padding: 3px; flex: 0 0 auto; border-radius: 99px; background: #c8cbc5; transition: .2s; }.lock-toggle > i::after { content: ''; width: 18px; height: 18px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: .2s; }.lock-toggle input:checked + i { background: #45604c; }.lock-toggle input:checked + i::after { transform: translateX(18px); }.lock-toggle > span { display: grid; gap: 4px; }.lock-toggle b { font-size: 10px; }.lock-toggle small { color: #7e877c; font-size: 8px; line-height: 1.45; }
.display-image-editor { padding: 17px; border: 1px solid #e4e1d9; border-radius: 12px; background: #fff; }
.display-image-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }.display-image-grid:empty { display: none; }
.display-image-item { min-width: 0; padding: 8px; display: grid; grid-template-columns: 55px minmax(0,1fr) 28px; gap: 9px; align-items: center; border: 1px solid #e8e5de; border-radius: 9px; background: #faf9f6; }.display-image-item.pending { border-style: dashed; background: #fffaf6; }.display-image-item img { width: 55px; height: 55px; object-fit: contain; border-radius: 6px; background: #fff; }.display-image-item > div { min-width: 0; display: grid; gap: 4px; }.display-image-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }.display-image-item small { color: #999c95; font-size: 7px; }.display-image-item button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #aa6650; background: #f5e9e3; cursor: pointer; }.display-image-item button svg { width: 14px; }

body.display-code-open .topbar, body.display-code-open .footer { display: none; }
.display-code-view { min-height: 100vh; background: #f7f7f7; }
.display-public-page { width: min(760px, 100%); min-height: 100vh; margin: 0 auto; padding-bottom: 80px; background: #fafafa; }
.display-public-page > header { min-height: 112px; padding: 45px 24px 20px; display: grid; place-items: center; }.display-public-page h1 { margin: 0; color: #111; font-size: 22px; font-weight: 700; text-align: center; }
.display-public-content { padding: 28px 58px; }.display-public-image-card { padding: 46px; display: grid; place-items: center; border-radius: 24px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.08); }.display-public-image-card img { display: block; width: 100%; max-height: 66vh; object-fit: contain; }.display-public-content > p { margin: 18px 0 0; color: #b0b0b0; font-size: 9px; text-align: center; }
.display-public-loading { min-height: 420px; display: grid; align-content: center; justify-items: center; gap: 13px; color: #999; font-size: 10px; }.display-public-loading i { width: 31px; height: 31px; border: 3px solid #e5e5e5; border-top-color: #333; border-radius: 50%; animation: spin .8s linear infinite; }
.display-public-error { min-height: 430px; padding: 70px 25px; text-align: center; }.display-public-error > div { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: #a85843; background: #f5e6df; font-size: 20px; font-weight: 700; }.display-public-error h2 { margin: 0 0 7px; }.display-public-error p { color: #999; font-size: 10px; }.display-public-error button { height: 38px; padding: 0 18px; border: 0; border-radius: 9px; color: #fff; background: #34483a; cursor: pointer; }

@media (max-width: 780px) {
  .display-allocation-settings, .display-code-settings { grid-template-columns: 1fr; }.display-image-grid { grid-template-columns: 1fr; }
  .display-public-page > header { min-height: 88px; padding: 34px 18px 14px; }.display-public-page h1 { font-size: 19px; }.display-public-content { padding: 22px 24px; }.display-public-image-card { padding: 25px; border-radius: 20px; }
}
