/* Import Hub — page styles on top of the portal's v2 design (cross-sell-v2.css). */
html, body { margin: 0; padding: 0; background: #F6F7F9; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
#xs-v2-root .sidebar { overflow: hidden; }
#xs-v2-root .side-scroll { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; min-height: 0; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: #2a3245 transparent; }
#xs-v2-root .nav-item { text-decoration: none; }
#xs-v2-root .topbar .hamburger { display: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); place-items: center; }
#xs-v2-root .ih-lang { display: flex; gap: 4px; margin-right: 8px; }
#xs-v2-root .ih-lang form { margin: 0; }
#xs-v2-root .v2-user { position: relative; display: inline-flex; }
#xs-v2-root .v2-user-btn { width: 32px; height: 32px; border: 0; cursor: pointer; }
#xs-v2-root .v2-user-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; z-index: 1200; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 32px rgba(11,18,32,.12), 0 2px 6px rgba(11,18,32,.06); }
#xs-v2-root .v2-user-menu[hidden] { display: none !important; }
#xs-v2-root .v2-user-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
#xs-v2-root .v2-user-name { font-size: 13px; font-weight: 700; }
#xs-v2-root .v2-user-mail { font-size: 11.5px; color: var(--muted); word-break: break-all; }
#xs-v2-root .v2-user-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 9px; border: none; background: none; font: 500 13px/1.2 var(--font-sans); cursor: pointer; text-align: left; }
#xs-v2-root .v2-user-out { color: var(--red); }
#xs-v2-root .v2-user-out:hover { background: var(--red-soft); }

#ih .ih-flash { padding: 10px 14px; border-radius: 12px; font-size: 13px; border: 1px solid var(--line); background: #fff; }
#ih .ih-flash.err { background: var(--red-soft); border-color: #f5c6c8; color: #8f1d22; }
#ih .ih-flash.ok { background: var(--green-soft); border-color: #bfe8d6; color: var(--green-ink); }
#ih .pill { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; display: inline-block; }
#ih .pill:hover { border-color: #9CA3AF; }
#ih .pill.on, #xs-v2-root .ih-lang .pill.on { background: #0B1220; border-color: #0B1220; color: #fff; }
#xs-v2-root .ih-lang .pill { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; }
#ih .card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0; }
#ih .card h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
#ih .card .sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
#ih .muted { color: var(--muted); }
#ih .mono { font-family: var(--font-mono); }
#ih .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
#ih .head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
#ih .head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 760px; }
#ih .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; font: 600 13px/1 var(--font-sans); text-decoration: none; cursor: pointer; border: 0; }
#ih .btn[disabled] { opacity: .5; cursor: not-allowed; }
#ih .btn-primary { background: var(--blue); color: #fff; }
#ih .btn-primary:hover { background: #0070E0; color: #fff; }
#ih .btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
#ih .btn-danger { background: #fff; color: var(--red); border: 1px solid #f2c1c3; }
#ih .grid { display: grid; gap: 14px; }
#ih .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#ih .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#ih .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#ih .kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
#ih .kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; border-top: 3px solid var(--col, #8A94A6); }
#ih .kpi-card .k { font-size: 12px; font-weight: 700; color: var(--col, #6B7280); }
#ih .kpi-card .n { font-size: 26px; font-weight: 800; line-height: 1.1; }
#ih .kpi-card .v { font-size: 12px; color: var(--muted); }
#ih a.ent { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; }
#ih a.ent:hover { border-color: #C9CED8; }
#ih .ent .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; flex-shrink: 0; }
#ih .ent .t { font-weight: 700; font-size: 14px; }
#ih .ent .d { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
#ih .drop { border: 2px dashed #C9CED8; border-radius: 14px; padding: 28px; text-align: center; background: #FBFBFD; transition: border-color .15s, background .15s; }
#ih .drop.over { border-color: var(--blue); background: #F5FAFF; }
#ih .drop .big { font-weight: 700; font-size: 15px; margin: 6px 0 2px; }
#ih .drop input[type=file] { display: none; }
#ih .opts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13px; }
#ih .opts label { display: flex; gap: 6px; align-items: center; }
#ih table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
#ih table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#ih table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
#ih table.t tr:hover td { background: #FBFBFD; }
#ih table.t th a { color: inherit; text-decoration: none; }
#ih .scroll-x { overflow-x: auto; }
#ih .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); }
#ih .badge.green { background: var(--green-soft); color: var(--green-ink); }
#ih .badge.blue { background: var(--blue-soft); color: var(--blue-ink); }
#ih .badge.amber { background: var(--amber-soft); color: var(--amber); }
#ih .badge.red { background: var(--red-soft); color: var(--red); }
#ih .steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
#ih .steps .s { padding: 4px 12px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
#ih .steps .s.done { background: var(--green-soft); color: var(--green-ink); }
#ih .steps .s.now { background: var(--blue); color: #fff; }
#ih .bar { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
#ih .bar i { display: block; height: 100%; background: var(--blue); transition: width .4s; }
#ih .q { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
#ih .q .qt { font-weight: 700; font-size: 13.5px; }
#ih .q .qh { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
#ih .q .opt { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: 13px; }
#ih .q .opt:hover { background: var(--surface-2); }
#ih .q .opt.sug { background: #F5FAFF; }
#ih .q .opt .smp { color: var(--muted); font-size: 12px; }
#ih .note { padding: 10px 14px; border-radius: 12px; font-size: 13px; background: var(--amber-soft); color: #7a5a06; }
#ih .note.blue { background: var(--blue-soft); color: var(--blue-ink); }
#ih .fieldrow td:first-child { font-weight: 600; white-space: nowrap; }
#ih .tb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#ih .tb input[type=search], #ih .tb select, #ih .tb input[type=text] { height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 13px; background: #fff; min-width: 0; }
#ih .pager { display: flex; gap: 6px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
#ih .empty { text-align: center; padding: 30px; color: var(--muted); }
#ih .login { max-width: 400px; margin: 10vh auto; }
#ih details > summary { cursor: pointer; font-weight: 600; font-size: 13px; }
@media (max-width: 1100px) { #ih .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } #ih .grid.c4, #ih .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  #xs-v2-root .app { grid-template-columns: 1fr; }
  #xs-v2-root .sidebar { position: fixed; z-index: 1000; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  #xs-v2-root.ih-drawer-open .sidebar { transform: none; }
  #xs-v2-root .topbar .hamburger { display: grid; }
  #xs-v2-root .topbar { padding: 0 16px; }
  #xs-v2-root .page { padding: 16px; }
  #xs-v2-root .mobile-drawer-backdrop { display: none; }
  #xs-v2-root.ih-drawer-open .mobile-drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(11,18,32,.45); z-index: 900; }
  #ih .kpis, #ih .grid.c4, #ih .grid.c3, #ih .grid.c2 { grid-template-columns: 1fr; }
}
