/* REPPTRADE v4.3.34 — Archive Desk visual system
   Purpose: move the app away from generic rounded-card SaaS styling without
   touching library/catalogue persistence or record semantics. The redesign is
   the Modern/Archive theme; Classic remains available as a visual fallback. */

body[data-ui-theme="modern"]{
  --bg:#0b0a09;
  --panel:#11100f;
  --panel2:#171512;
  --line:#39342d;
  --text:#f0ece4;
  --muted:#aaa298;
  --gold:#b99655;
  --gold2:#dcc27f;
  --wine:#681b2a;
  --wine2:#8d273a;
  --green:#6b9a78;
  --red:#b65058;
  --archive-paper:#efe7d7;
  --archive-ink:#17130f;
  --archive-rule:#685b46;
  --shadow:0 18px 48px rgba(0,0,0,.34);
  background:
    linear-gradient(90deg,rgba(198,168,109,.025) 1px,transparent 1px),
    linear-gradient(rgba(198,168,109,.018) 1px,transparent 1px),
    #0b0a09!important;
  background-size:64px 64px!important;
  background-attachment:fixed!important;
  color:var(--text);
  font-family:"Segoe UI",Arial,sans-serif;
}
body[data-ui-theme="modern"] *{scrollbar-color:#5c5040 #11100e}
body[data-ui-theme="modern"] ::selection{background:#b99655;color:#17130f}

/* --- Header / wordmark -------------------------------------------------- */
body[data-ui-theme="modern"] .top{
  position:sticky;top:0;
  background:#0b0a09!important;
  backdrop-filter:none!important;
  border-top:1px solid #b99655!important;
  border-bottom:1px solid #40382d!important;
  box-shadow:0 7px 24px rgba(0,0,0,.32)!important;
}
body[data-ui-theme="modern"] .top::before{display:none!important}
body[data-ui-theme="modern"] .top::after{
  content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:#1d1a16;
}
body[data-ui-theme="modern"] .topin{max-width:1560px;padding:11px 20px!important;gap:17px!important}
body[data-ui-theme="modern"] .brand{min-width:225px;padding-right:17px;border-right:1px solid #332e27}
body[data-ui-theme="modern"] .brand .eyebrow{
  color:#b99655!important;font:700 8px/1.1 Consolas,"Courier New",monospace!important;
  letter-spacing:2.1px!important;
}
body[data-ui-theme="modern"] .brand h1{
  margin:5px 0 0!important;color:#f2ede4!important;
  font:700 20px/1 Georgia,"Times New Roman",serif!important;
  letter-spacing:.5px!important;text-transform:uppercase;
}
body[data-ui-theme="modern"] .brand h1 span{color:#7f776d!important;font-family:Consolas,"Courier New",monospace!important;font-weight:400!important}

body[data-ui-theme="modern"] .mainnav{display:flex;gap:0!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;align-self:stretch}
body[data-ui-theme="modern"] .navbtn{
  position:relative;border:0!important;border-left:1px solid transparent!important;background:transparent!important;
  color:#989087!important;border-radius:0!important;padding:11px 9px 10px!important;
  font:700 9px/1 Consolas,"Courier New",monospace!important;letter-spacing:.7px!important;text-transform:uppercase!important;
}
body[data-ui-theme="modern"] .navbtn:hover{color:#f0ece4!important;background:#12100e!important}
body[data-ui-theme="modern"] .navbtn.active{color:#f6f1e8!important;background:#15120f!important}
body[data-ui-theme="modern"] .navbtn.active::after{left:8px!important;right:8px!important;bottom:5px!important;height:1px!important;background:#b99655!important}

body[data-ui-theme="modern"] .global-search input{
  height:38px;background:#0e0d0c!important;border:1px solid #3a342c!important;border-radius:0!important;
  color:#eee8de!important;padding:9px 38px 9px 11px!important;font-size:11px!important;
}
body[data-ui-theme="modern"] .global-search input:focus{border-color:#9f824c!important;box-shadow:inset 3px 0 0 #b99655!important}
body[data-ui-theme="modern"] .global-search span{color:#8f816e!important}
body[data-ui-theme="modern"] .quicklinks{gap:0!important;border:1px solid #393229}
body[data-ui-theme="modern"] .quicklink{
  min-height:36px!important;border:0!important;border-right:1px solid #393229!important;background:#0f0e0c!important;
  color:#bcb4aa!important;border-radius:0!important;padding:8px 9px!important;font:700 9px/1 Consolas,"Courier New",monospace!important;
  text-transform:uppercase;letter-spacing:.45px;transform:none!important;
}
body[data-ui-theme="modern"] .quicklink:last-child{border-right:0!important}
body[data-ui-theme="modern"] .quicklink:hover{background:#17130e!important;color:#e6cf95!important}
body[data-ui-theme="modern"] .quicklink .ql-icon{display:none}
body[data-ui-theme="modern"] .theme-toggle,
body[data-ui-theme="modern"] .pack-chip{
  min-height:36px!important;border:1px solid #40382d!important;background:#11100e!important;border-radius:0!important;color:#c9c0b4!important;
  font:700 9px/1 Consolas,"Courier New",monospace!important;letter-spacing:.5px;text-transform:uppercase;
}
body[data-ui-theme="modern"] .pack-chip{color:#e2c783!important;border-color:#725d37!important;padding:9px 11px!important}
body[data-ui-theme="modern"] .theme-dot{border-radius:0!important;background:#b99655!important;box-shadow:none!important}

/* --- Page frame / editorial headers ----------------------------------- */
body[data-ui-theme="modern"] .wrap{max-width:1560px;padding:30px 20px 84px!important}
body[data-ui-theme="modern"] .hero{
  position:relative;display:flex!important;align-items:flex-end!important;
  margin:0 0 18px!important;padding:24px 0 18px!important;
  background:transparent!important;border:0!important;border-top:1px solid #6d5b40!important;border-bottom:1px solid #39322a!important;
  border-radius:0!important;overflow:visible!important;
}
body[data-ui-theme="modern"] .hero::before{display:none!important}
body[data-ui-theme="modern"] .hero::after{
  position:absolute;right:0;top:7px;color:#73695d;font:700 8px/1 Consolas,"Courier New",monospace;letter-spacing:1.5px;
}
body[data-ui-theme="modern"] #page-library .hero::after{content:"LIBRARY / 01"}
body[data-ui-theme="modern"] #page-master .hero::after{content:"CATALOGUE / 02"}
body[data-ui-theme="modern"] #page-nft .hero::after{content:"RESTRICTIONS / 03"}
body[data-ui-theme="modern"] #page-packs .hero::after{content:"PACK DESK / 04"}
body[data-ui-theme="modern"] #page-add .hero::after{content:"INTAKE / 05"}
body[data-ui-theme="modern"] #page-setup .hero::after{content:"LIBRARY SETUP / 06"}
body[data-ui-theme="modern"] .hero h2{
  margin:0 0 7px!important;color:#f1ece4!important;font:700 39px/.96 Georgia,"Times New Roman",serif!important;
  letter-spacing:-.7px!important;
}
body[data-ui-theme="modern"] .hero p{max-width:760px!important;color:#aaa298!important;font-size:11px!important;line-height:1.55!important}
body[data-ui-theme="modern"] .stats{align-items:stretch!important;gap:0!important;border-left:1px solid #39322a}
body[data-ui-theme="modern"] .stat{
  min-width:82px!important;background:transparent!important;border:0!important;border-right:1px solid #39322a!important;border-radius:0!important;
  padding:4px 14px 2px!important;
}
body[data-ui-theme="modern"] .stat b{color:#e0c47f!important;font:700 19px/1.1 Georgia,"Times New Roman",serif!important;font-variant-numeric:tabular-nums}
body[data-ui-theme="modern"] .stat span{margin-top:5px!important;color:#847b70!important;font:700 7px/1 Consolas,"Courier New",monospace!important;letter-spacing:1.4px!important}

/* --- Filter/control desks --------------------------------------------- */
body[data-ui-theme="modern"] .toolbar{
  position:relative;gap:6px!important;margin:0 0 18px!important;padding:12px 0 11px!important;border-top:1px solid #28231e;border-bottom:1px solid #332d26;
}
body[data-ui-theme="modern"] #page-library>.toolbar::before,
body[data-ui-theme="modern"] #page-master>.toolbar::before,
body[data-ui-theme="modern"] #page-nft>.toolbar::before{
  content:"FILTER / SORT";align-self:center;margin-right:6px;color:#73695e;font:700 7px/1 Consolas,"Courier New",monospace;letter-spacing:1.2px;
}
body[data-ui-theme="modern"] #page-master>.toolbar::before{content:"CATALOGUE FILTERS"}
body[data-ui-theme="modern"] #page-nft>.toolbar::before{content:"NFT FILTERS"}
body[data-ui-theme="modern"] .master-toolbar-secondary{margin:-11px 0 18px!important;padding:0 0 11px!important;border-bottom:1px solid #332d26!important}
body[data-ui-theme="modern"] .control,
body[data-ui-theme="modern"] textarea.field,
body[data-ui-theme="modern"] input.field,
body[data-ui-theme="modern"] select.field{
  background:#100f0d!important;border:1px solid #3a342c!important;color:#e2ddd5!important;border-radius:0!important;
}
body[data-ui-theme="modern"] .control{min-height:36px!important;padding:8px 9px!important;font-size:10px!important}
body[data-ui-theme="modern"] .control:focus,
body[data-ui-theme="modern"] textarea.field:focus,
body[data-ui-theme="modern"] input.field:focus,
body[data-ui-theme="modern"] select.field:focus{border-color:#9d814d!important;box-shadow:inset 3px 0 0 #b99655!important;outline:0!important}
body[data-ui-theme="modern"] .seg{background:transparent!important;border:1px solid #3a342c!important;border-radius:0!important;padding:0!important;overflow:hidden}
body[data-ui-theme="modern"] .seg button{border-radius:0!important;border-right:1px solid #3a342c!important;padding:9px 10px!important;font:700 9px/1 Consolas,"Courier New",monospace!important;text-transform:uppercase;letter-spacing:.4px;color:#8f877d!important}
body[data-ui-theme="modern"] .seg button:last-child{border-right:0!important}
body[data-ui-theme="modern"] .seg button.active{background:#221c16!important;color:#f1e7d4!important;box-shadow:inset 0 -2px 0 #b99655}
body[data-ui-theme="modern"] .resultcount{color:#857d73!important;font:700 8px/1.2 Consolas,"Courier New",monospace!important;letter-spacing:.4px!important;text-transform:uppercase}

body[data-ui-theme="modern"] .btn{
  border:1px solid #40382f!important;background:#151310!important;color:#d4cec5!important;border-radius:0!important;
  padding:8px 10px!important;font:700 9px/1 Consolas,"Courier New",monospace!important;text-transform:uppercase;letter-spacing:.35px;
  box-shadow:none!important;transform:none!important;
}
body[data-ui-theme="modern"] .btn:hover{background:#211c16!important;border-color:#6b5941!important;color:#fff2db!important}
body[data-ui-theme="modern"] .btn.primary{background:#651a29!important;border-color:#8b2d3d!important;color:#fff!important}
body[data-ui-theme="modern"] .btn.gold{background:#211b11!important;border-color:#705b34!important;color:#e4ca87!important}
body[data-ui-theme="modern"] .btn.green{background:#121d16!important;border-color:#3f6049!important;color:#b6d7be!important}
body[data-ui-theme="modern"] .btn.danger{background:#251216!important;border-color:#6d343b!important;color:#e7a5aa!important}

/* --- Library index: archive cards, not generic SaaS cards ------------- */
body[data-ui-theme="modern"] #libraryTiles.grid{
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr))!important;gap:1px!important;background:#29241f!important;
  border:1px solid #39322a!important;
}
body[data-ui-theme="modern"] #libraryTiles .showtile{
  min-height:118px!important;height:auto!important;display:flex!important;align-items:center!important;gap:14px!important;
  padding:14px 15px!important;margin:0!important;border:0!important;border-radius:0!important;
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--show-solid) 19%,#11100f) 0%,#11100f 48%,#0f0e0c 100%)!important;
  box-shadow:none!important;transform:none!important;overflow:hidden!important;
}
body[data-ui-theme="modern"] #libraryTiles .showtile::before{
  content:""!important;display:block!important;position:absolute;left:0;top:0;bottom:0;width:4px!important;background:var(--show-solid)!important;
}
body[data-ui-theme="modern"] #libraryTiles .showtile::after{
  content:""!important;display:block!important;position:absolute;left:4px;right:0;bottom:0;height:1px!important;
  background:linear-gradient(90deg,var(--show-accent),transparent 64%)!important;opacity:.9!important;
}
body[data-ui-theme="modern"] #libraryTiles .showtile:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--show-solid) 25%,#17140f) 0%,#17140f 48%,#11100f 100%)!important;box-shadow:inset 0 0 0 1px #4b4236!important;transform:none!important}
body[data-ui-theme="modern"] #libraryTiles .showlogo{
  width:68px!important;height:68px!important;flex:0 0 68px!important;padding:4px!important;border-radius:1px!important;
  background-color:#090807!important;border:1px solid var(--show-title-ink)!important;box-shadow:4px 4px 0 rgba(0,0,0,.23)!important;
}
body[data-ui-theme="modern"] #libraryTiles .showtile .content{padding:0!important;display:block!important}
body[data-ui-theme="modern"] #libraryTiles .showtile .eyebrow.recording-count-chip{
  display:inline-block!important;margin:0 0 6px!important;padding:3px 5px!important;background:#15120f!important;border:1px solid var(--show-title-ink)!important;border-radius:0!important;
  color:#c4bbb0!important;font:700 8px/1 Consolas,"Courier New",monospace!important;letter-spacing:1px!important;text-transform:uppercase;
}
body[data-ui-theme="modern"] #libraryTiles .showtile h3{
  margin:0 0 9px!important;color:var(--show-title-ink)!important;font:700 17px/1.16 Georgia,"Times New Roman",serif!important;
  letter-spacing:.1px!important;text-shadow:none!important;text-transform:uppercase;
}
body[data-ui-theme="modern"] #libraryTiles .tilemeta{gap:5px!important}
body[data-ui-theme="modern"] #libraryTiles .tilemeta .pill{
  padding:3px 6px!important;border:1px solid var(--show-title-ink)!important;border-left-width:2px!important;border-radius:0!important;
  background:#1a1713!important;color:#c7bfb4!important;font:700 8px/1 Consolas,"Courier New",monospace!important;text-transform:uppercase;
}

/* Recently added uses a filing-ledger rhythm. */
body[data-ui-theme="modern"] .recent-grid{grid-template-columns:repeat(auto-fill,minmax(470px,1fr))!important;gap:1px!important;background:#29241f!important;border:1px solid #39322a!important}
body[data-ui-theme="modern"] #libraryRecent .recent-card{
  min-height:104px!important;padding:13px!important;border:0!important;border-radius:0!important;border-left:4px solid var(--show-solid)!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--show-solid) 14%,#11100f),#11100f 58%)!important;box-shadow:none!important;
}
body[data-ui-theme="modern"] #libraryRecent .recent-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,var(--show-accent),transparent 68%)}
body[data-ui-theme="modern"] #libraryRecent .recent-logo{border-radius:1px!important;background-color:#090807!important;border:1px solid var(--show-title-ink)!important}
body[data-ui-theme="modern"] #libraryRecent .recent-show{font-family:Consolas,"Courier New",monospace!important;letter-spacing:1px!important;color:#928a80!important}
body[data-ui-theme="modern"] #libraryRecent .recent-title{font-family:Georgia,"Times New Roman",serif!important;letter-spacing:.1px!important;text-shadow:none!important}
body[data-ui-theme="modern"] #libraryRecent .recent-meta span,
body[data-ui-theme="modern"] #libraryRecent .recent-added,
body[data-ui-theme="modern"] #libraryRecent .recent-actions a,
body[data-ui-theme="modern"] #libraryRecent .recent-actions button{border-radius:0!important}
body[data-ui-theme="modern"] #libraryRecent .recent-meta span{background:#191612!important;border:1px solid var(--show-title-ink)!important;border-left-width:2px!important;font-family:Consolas,"Courier New",monospace!important}
body[data-ui-theme="modern"] #libraryRecent .recent-added{top:8px!important;right:9px!important;background:#e9dfcd!important;color:#2c251d!important;border:1px solid var(--show-title-ink)!important;font:700 7px/1 Consolas,"Courier New",monospace!important;text-transform:uppercase;box-shadow:none!important}
body[data-ui-theme="modern"] #libraryRecent .recent-actions a,
body[data-ui-theme="modern"] #libraryRecent .recent-actions button{background:#17130f!important;border:1px solid var(--show-title-ink)!important;color:#eee5d8!important;font-family:Consolas,"Courier New",monospace!important}

/* Easy Readability remains deliberately neutral, but inherits the archive geometry. */
body[data-ui-theme="modern"].easy-readability #libraryTiles .showtile,
body[data-ui-theme="modern"].easy-readability #libraryRecent .recent-card{border-radius:0!important;box-shadow:none!important}
body[data-ui-theme="modern"].easy-readability #libraryTiles .showtile h3,
body[data-ui-theme="modern"].easy-readability #libraryRecent .recent-title{font-family:Georgia,"Times New Roman",serif!important}

/* --- Master Catalogue: index slips instead of rounded tiles ----------- */
body[data-ui-theme="modern"] .mastercards.v43{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1px!important;background:#2b2620!important;border:1px solid #3a332a!important;
}
body[data-ui-theme="modern"] .mastercard.v43-card{
  min-height:148px!important;padding:15px 15px 13px!important;border:0!important;border-left:3px solid #6b6257!important;border-radius:0!important;
  background:#11100f!important;box-shadow:none!important;
}
body[data-ui-theme="modern"] .mastercard.v43-card.is-owned{border-left-color:#7aa087!important;background:linear-gradient(90deg,#111712,#11100f 42%)!important}
body[data-ui-theme="modern"] .mastercard.v43-card.is-unreleased{background:linear-gradient(90deg,#1b1114,#11100f 38%)!important}
body[data-ui-theme="modern"] .mastercard.v43-card h4{padding-right:94px!important;margin:3px 0 10px!important;color:#f0ebe2!important;font:700 13px/1.4 Georgia,"Times New Roman",serif!important;letter-spacing:.05px}
body[data-ui-theme="modern"] .catalogue-source-tag{color:#9b8c78!important;font:700 7px/1.2 Consolas,"Courier New",monospace!important;letter-spacing:1.1px!important}
body[data-ui-theme="modern"] .catalogue-state{top:12px!important;right:12px!important;border-radius:0!important;background:#191612!important;border:1px solid #4b4236!important;font-family:Consolas,"Courier New",monospace!important}
body[data-ui-theme="modern"] .catalogue-meta{gap:4px!important}
body[data-ui-theme="modern"] .catalogue-meta span{border-radius:0!important;background:#181511!important;border:0!important;border-left:2px solid #4e463c!important;color:#beb5aa!important;font:700 8px/1.15 Consolas,"Courier New",monospace!important}
body[data-ui-theme="modern"] .catalogue-meta .nft{border-left-color:#b48945!important;background:#21190f!important;color:#e7ca88!important}
body[data-ui-theme="modern"] .catalogue-actions{padding-top:4px!important;border-top:1px solid #2c2822!important}
body[data-ui-theme="modern"] .master-shows-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;gap:1px!important;background:#2b2620;border:1px solid #3a332a}
body[data-ui-theme="modern"] .master-show-card{
  min-height:116px!important;padding:13px!important;border:0!important;border-left:4px solid var(--show-accent)!important;border-radius:0!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--show-solid) 15%,#11100f),#11100f 55%)!important;box-shadow:none!important;
}
body[data-ui-theme="modern"] .master-show-logo{border-radius:1px!important;background-color:#090807!important;border-color:var(--show-title-ink)!important}
body[data-ui-theme="modern"] .master-show-name{font-family:Georgia,"Times New Roman",serif!important;color:var(--show-title-ink)!important;letter-spacing:.1px!important}
body[data-ui-theme="modern"] .master-show-counts span{border-radius:0!important;background:#191612!important;border:0!important;border-left:2px solid var(--show-title-ink)!important;font-family:Consolas,"Courier New",monospace!important}
body[data-ui-theme="modern"] .catalogue-banner{border-radius:0!important;background:#14110e!important;border-color:#4b4032!important}

/* --- Show collection / detail drawer --------------------------------- */
body[data-ui-theme="modern"] .drawer{background:#0e0d0b!important;border-left:1px solid #5b4b36!important;box-shadow:-20px 0 55px rgba(0,0,0,.52)!important}
body[data-ui-theme="modern"] .drawerhead{
  background:linear-gradient(90deg,color-mix(in srgb,var(--show-solid) 32%,#0d0c0b),#0d0c0b 58%)!important;
  border-bottom:1px solid #4b4034!important;padding:17px 20px!important;
}
body[data-ui-theme="modern"] .drawerhead h2{font:700 26px/1.05 Georgia,"Times New Roman",serif!important;letter-spacing:0!important;text-transform:uppercase}
body[data-ui-theme="modern"] .drawerlogo{border-radius:1px!important;border:1px solid var(--show-title-ink)!important;background-color:#090807!important;box-shadow:4px 4px 0 rgba(0,0,0,.25)!important}
body[data-ui-theme="modern"] .drawerhead .close,
body[data-ui-theme="modern"] .drawer-edit{border-radius:0!important;background:#15120f!important;border-color:#4a4034!important}
body[data-ui-theme="modern"] .production-tabs{gap:0!important;border-bottom:1px solid #3b342b!important}
body[data-ui-theme="modern"] .production-tab{border-radius:0!important;border:0!important;border-right:1px solid #342e27!important;background:transparent!important;font-family:Consolas,"Courier New",monospace!important;text-transform:uppercase}
body[data-ui-theme="modern"] .production-tab.active{background:#211b14!important;box-shadow:inset 0 -2px 0 var(--show-accent)!important}
body[data-ui-theme="modern"] .production-heading{border-radius:0!important;font-family:Consolas,"Courier New",monospace!important;text-transform:uppercase;letter-spacing:.7px!important}
body[data-ui-theme="modern"] .boot{
  margin-bottom:1px!important;border:0!important;border-left:4px solid var(--show-accent)!important;border-radius:0!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--show-solid) 20%,#11100f),#11100f 50%)!important;box-shadow:none!important;
}
body[data-ui-theme="modern"] .bootmain{padding:15px 16px!important}
body[data-ui-theme="modern"] .boottitle{font:700 13px/1.45 Georgia,"Times New Roman",serif!important;letter-spacing:.05px!important;text-transform:uppercase}
body[data-ui-theme="modern"] .boot .pill:not(.nft-pill){border-radius:0!important;background:#191612!important;border:0!important;border-left:2px solid var(--show-title-ink)!important;color:#d7d0c7!important;font-family:Consolas,"Courier New",monospace!important}
body[data-ui-theme="modern"] .boot .info:not(.nft-info),
body[data-ui-theme="modern"] .boot .cast.detailbox,
body[data-ui-theme="modern"] .boot .format-picker{
  border-radius:0!important;background:#0d0c0a!important;border:1px solid #373128!important;box-shadow:none!important;
}
body[data-ui-theme="modern"] .boot .label{font-family:Consolas,"Courier New",monospace!important;letter-spacing:1px!important}
body[data-ui-theme="modern"] .bootactions{background:#0c0b0a!important;border-top:1px solid #373128!important}
body[data-ui-theme="modern"] .bootactions .secondary,
body[data-ui-theme="modern"] .bootactions .primary{border-radius:0!important;font-family:Consolas,"Courier New",monospace!important;text-transform:uppercase!important}
body[data-ui-theme="modern"] .format-choice{border-radius:0!important;font-family:Consolas,"Courier New",monospace!important}

/* --- Work surfaces / forms / modals ---------------------------------- */
body[data-ui-theme="modern"] .panel,
body[data-ui-theme="modern"] .ledger,
body[data-ui-theme="modern"] .reviewcard,
body[data-ui-theme="modern"] .setup-show-row,
body[data-ui-theme="modern"] .setup-text-row,
body[data-ui-theme="modern"] .import-stat,
body[data-ui-theme="modern"] .duplicate-match-card,
body[data-ui-theme="modern"] .catalogue-detail-box,
body[data-ui-theme="modern"] .catalogue-title-preview,
body[data-ui-theme="modern"] .record-title-preview,
body[data-ui-theme="modern"] .format-preview,
body[data-ui-theme="modern"] .cast-normalizer,
body[data-ui-theme="modern"] .from-catalogue-row,
body[data-ui-theme="modern"] .dropzone,
body[data-ui-theme="modern"] .notice,
body[data-ui-theme="modern"] .output{
  border-radius:0!important;background:#11100f!important;border-color:#3a342c!important;box-shadow:none!important;
}
body[data-ui-theme="modern"] .panel{padding:17px!important;border-top-color:#695a44!important}
body[data-ui-theme="modern"] .sectiontitle{font:700 20px/1.1 Georgia,"Times New Roman",serif!important;letter-spacing:0!important}
body[data-ui-theme="modern"] .sectionsub{line-height:1.5!important}
body[data-ui-theme="modern"] .tabbar{gap:0!important;border-bottom:1px solid #3a342c!important}
body[data-ui-theme="modern"] .subtab{border-radius:0!important;border:0!important;border-right:1px solid #342e27!important;background:transparent!important;padding:9px 12px!important;font:700 9px/1 Consolas,"Courier New",monospace!important;text-transform:uppercase;letter-spacing:.45px}
body[data-ui-theme="modern"] .subtab.active{background:#211b14!important;color:#f1e5cf!important;box-shadow:inset 0 -2px 0 #b99655!important}
body[data-ui-theme="modern"] .showmodal{background:#0f0e0c!important;border:1px solid #5b4d3a!important;border-radius:0!important;box-shadow:0 28px 80px rgba(0,0,0,.62)!important}
body[data-ui-theme="modern"] .showmodal-head,
body[data-ui-theme="modern"] .showmodal-actions{background:#0c0b0a!important;border-color:#393129!important}
body[data-ui-theme="modern"] .showmodal-head h3{font-family:Georgia,"Times New Roman",serif!important;letter-spacing:0!important}
body[data-ui-theme="modern"] .close{border-radius:0!important}
body[data-ui-theme="modern"] .packitem{border-radius:0!important;background:#12100e!important;border-color:#393129!important}
body[data-ui-theme="modern"] .packbar{border-radius:0!important;background:#15110e!important;border-color:#6e593b!important}
body[data-ui-theme="modern"] .nft-style-toggle{border-radius:0!important;background:#100e0c!important;border-color:#40382f!important;padding:0!important}
body[data-ui-theme="modern"] .nft-style-toggle button{border-radius:0!important}
body[data-ui-theme="modern"] .nft-style-toggle button.active{background:#211b14!important;border-color:#6e593b!important;box-shadow:none!important}

/* --- Login surface ----------------------------------------------------- */
body[data-ui-theme="modern"] .cloud-auth{background:rgba(7,6,5,.92)!important;backdrop-filter:blur(3px)!important}
body[data-ui-theme="modern"] .cloud-card{
  border-radius:0!important;background:#0e0d0b!important;border:1px solid #6c5a40!important;box-shadow:10px 10px 0 #080706,0 24px 70px rgba(0,0,0,.55)!important;
}
body[data-ui-theme="modern"] .cloud-card::before{content:"PRIVATE ARCHIVE / AUTH";display:block;margin-bottom:12px;color:#8d7d67;font:700 8px/1 Consolas,"Courier New",monospace;letter-spacing:1.5px}
body[data-ui-theme="modern"] .cloud-card h1{font-family:Georgia,"Times New Roman",serif!important;text-transform:uppercase;letter-spacing:.5px}
body[data-ui-theme="modern"] .cloud-offline{border-radius:0!important;color:#998d7d!important}

/* --- Responsive -------------------------------------------------------- */
@media(max-width:1250px){
  body[data-ui-theme="modern"] .topin{flex-wrap:wrap!important}
  body[data-ui-theme="modern"] .brand{min-width:205px}
  body[data-ui-theme="modern"] .global-search{order:3;flex-basis:100%}
  body[data-ui-theme="modern"] .mainnav{overflow:auto;flex:1}
}
@media(max-width:920px){
  body[data-ui-theme="modern"] .hero{align-items:flex-start!important;flex-direction:column!important;padding-top:28px!important}
  body[data-ui-theme="modern"] .stats{border-left:0!important;border-top:1px solid #39322a;width:100%;padding-top:10px}
  body[data-ui-theme="modern"] .stat:first-child{border-left:1px solid #39322a!important}
  body[data-ui-theme="modern"] .mastercards.v43{grid-template-columns:1fr!important}
  body[data-ui-theme="modern"] #libraryTiles.grid{grid-template-columns:1fr!important}
  body[data-ui-theme="modern"] .recent-grid{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  body[data-ui-theme="modern"] .wrap{padding:20px 11px 74px!important}
  body[data-ui-theme="modern"] .topin{padding:10px 11px!important}
  body[data-ui-theme="modern"] .brand{width:100%;border-right:0;padding-right:0}
  body[data-ui-theme="modern"] .brand h1{font-size:18px!important}
  body[data-ui-theme="modern"] .hero h2{font-size:32px!important}
  body[data-ui-theme="modern"] .stats{overflow:auto}
  body[data-ui-theme="modern"] .stat{min-width:72px!important;padding-left:10px!important;padding-right:10px!important}
  body[data-ui-theme="modern"] #libraryTiles .showtile{min-height:106px!important;padding:12px!important;gap:11px!important}
  body[data-ui-theme="modern"] #libraryTiles .showlogo{width:58px!important;height:58px!important;flex-basis:58px!important}
  body[data-ui-theme="modern"] #libraryTiles .showtile h3{font-size:15px!important}
  body[data-ui-theme="modern"] .recent-card{grid-template-columns:40px minmax(0,1fr)!important}
  body[data-ui-theme="modern"] .recent-actions{grid-column:1/-1!important;flex-direction:row!important}
}
