:root {
  --ink: #14201b;
  --ink-soft: #3d4a43;
  --mist: #eef2ef;
  --paper: #f7f9f7;
  --leaf: #2f6b4f;
  --leaf-deep: #1e4634;
  --leaf-soft: #d7e8de;
  --sand: #e6ebe4;
  --line: rgba(20, 32, 27, 0.1);
  --danger: #a33b2d;
  --warn: #8a6a1f;
  --ok: #2f6b4f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 36px rgba(20, 32, 27, 0.07);
  --font: "Figtree", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --nav-w: 200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 107, 79, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(180, 196, 170, 0.28), transparent 50%),
    linear-gradient(180deg, #f4f7f4 0%, var(--mist) 45%, #e9efe9 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 0;
}

a {
  color: var(--leaf-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0.85rem 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-right: 1px solid var(--line);
  background: rgba(247, 249, 247, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: #f4faf6;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 14px rgba(30, 70, 52, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.62rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.nav-label {
  margin: 0.35rem 0.5rem 0.2rem;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  background: rgba(47, 107, 79, 0.08);
  color: var(--ink);
  text-decoration: none;
  transform: translateX(2px);
}

.nav-link.is-active {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.nav-link.is-active .nav-dot {
  opacity: 1;
  background: var(--leaf);
}

.sidebar-foot {
  margin-top: auto;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.quota-label {
  font-size: 0.6rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quota-value {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0.05rem;
}

.main {
  min-width: 0;
  padding: 0.85rem 1.1rem 1.5rem;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  animation: rise 0.45s ease both;
}

.topbar > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.page-kicker {
  margin: 0 0 0.1rem;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

.page-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-sub {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 0.85rem 0.95rem;
  animation: rise 0.5s ease both;
}

.panel + .panel {
  margin-top: 0.7rem;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.search-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iocl-search-extra {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.4fr);
  gap: 0.55rem 0.75rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.iocl-search-extra select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.field label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 107, 79, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.7rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.82rem;
  border-radius: 9px;
  padding: 0.48rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(160deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: #f5faf7;
  box-shadow: 0 10px 24px rgba(30, 70, 52, 0.22);
}

.btn-primary:hover {
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-danger {
  background: #f6e8e5;
  color: var(--danger);
}

.btn-sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 7px;
}

.refine-bar {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.refine-bar input {
  flex: 1;
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
}

.cooldown {
  font-size: 0.75rem;
  color: var(--warn);
  min-height: 1em;
}

.source-block {
  margin-top: 1.25rem;
  animation: rise 0.55s ease both;
}

.smart-tabs {
  margin-top: 1rem;
  padding-top: 1rem;
}

.smart-tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.smart-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.smart-tab:hover {
  background: rgba(47, 107, 79, 0.08);
  color: var(--ink);
}

.smart-tab.is-active {
  background: var(--leaf-soft);
  border-color: rgba(47, 107, 79, 0.35);
  color: var(--leaf-deep);
}

.smart-tab__count {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(20, 32, 27, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
}

.smart-tab.is-active .smart-tab__count {
  background: var(--leaf);
  color: #f5faf7;
}

.smart-tab__count--err {
  background: #f6e8e5;
  color: var(--danger);
}

.smart-tabs__refine {
  margin-bottom: 0.85rem;
}

.smart-pane[hidden] {
  display: none !important;
}

.smart-pane.is-active {
  animation: rise 0.35s ease both;
}

/* Compact results — denser so less scrolling */
.compact-results,
.compact-results .iocl-contact,
.compact-results .paytm-card,
.compact-results .result-item {
  font-size: 0.62rem;
}

.compact-results .source-title {
  font-size: 0.82rem;
}

.compact-results .iocl-contact__name {
  font-size: 0.88rem;
}

.compact-results .iocl-dedup-btn {
  font-size: 0.68rem;
  padding: 0.22rem 0.55rem;
}

.compact-results .iocl-field label {
  font-size: 0.58rem;
}

.compact-results .iocl-control input,
.compact-results table.data,
.compact-results .kv,
.compact-results .result-meta,
.compact-results .help,
.compact-results .badge {
  font-size: 0.6rem;
}

.compact-results .iocl-list-table {
  min-width: 920px;
  font-size: 0.58rem;
}

.compact-results .iocl-list-table th,
.compact-results .iocl-list-table td {
  padding: 0.18rem 0.28rem;
  font-size: 0.58rem;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-results .iocl-form-grid {
  gap: 0.22rem 0.4rem;
}

.compact-results .iocl-field {
  grid-template-columns: minmax(64px, 36%) 1fr;
}

.compact-results .iocl-control input {
  height: 1.25rem;
  padding: 0.1rem 0.28rem;
}

.compact-results .iocl-control--find input {
  padding-right: 1.35rem;
}

.compact-results .iocl-find-btn {
  width: 1rem;
  height: 1rem;
  font-size: 0.62rem;
}

.compact-results .paytm-amount {
  font-size: 0.82rem;
}

.compact-results .paytm-card__logo {
  width: 40px;
  height: 40px;
}

.compact-results table.data th,
.compact-results table.data td {
  padding: 0.28rem 0.35rem;
  font-size: 0.6rem;
}

.compact-results .iocl-contact {
  padding: 0.55rem 0.65rem 0.75rem;
}

.compact-results .iocl-modal__panel {
  font-size: 0.68rem;
}

.source-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.source-title {
  margin: 0;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.source-meta {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-ok {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.badge-err {
  background: #f6e8e5;
  color: var(--danger);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(238, 242, 239, 0.8);
  position: sticky;
  top: 0;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tr:hover td {
  background: rgba(47, 107, 79, 0.04);
}

.result-cards {
  display: grid;
  gap: 0.85rem;
}

.result-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.result-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-bottom: 0.65rem;
}

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.45rem 0.85rem;
  font-size: 0.86rem;
}

.kv div span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.messages {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.msg {
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  animation: rise 0.35s ease both;
}

.msg-success {
  border-color: rgba(47, 107, 79, 0.25);
  background: rgba(215, 232, 222, 0.65);
}

.msg-error {
  border-color: rgba(163, 59, 45, 0.25);
  background: rgba(246, 232, 229, 0.85);
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-frame {
  width: min(440px, 100%);
  animation: rise 0.55s ease both;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.4rem;
}

.auth-brand .brand-mark {
  margin: 0 auto 0.85rem;
  width: 52px;
  height: 52px;
  font-size: 1.35rem;
  border-radius: 16px;
}

.auth-brand h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.auth-brand p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.auth-panel {
  padding: 1.4rem 1.35rem 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-panel .field {
  margin-bottom: 0.85rem;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
}

.landing-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

.landing-hero .brand-name {
  font-family: var(--display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin: 0;
}

.landing-hero .lead {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.landing-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.landing-atmosphere {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(55vw, 620px);
  height: min(55vw, 620px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(47, 107, 79, 0.28), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(180, 196, 170, 0.45), transparent 50%);
  filter: blur(8px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.form-grid-2 .full {
  grid-column: 1 / -1;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.source-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.source-access-field .check-row {
  margin-top: 0.55rem;
}

.help {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.empty {
  padding: 1.5rem 0.25rem;
  color: var(--ink-soft);
  text-align: center;
}

.paytm-card__main {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.paytm-card__logo {
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.paytm-card__body {
  flex: 1;
  min-width: 0;
}

.paytm-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.paytm-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.paytm-amount {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.paytm-modal .paytm-list {
  margin-top: 0.15rem;
}

.paytm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.paytm-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.paytm-list time,
.paytm-list strong {
  color: var(--ink-soft);
  white-space: nowrap;
}

.iocl-cell-with-find {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.iocl-results {
  display: grid;
  gap: 1.25rem;
}

.iocl-list-wrap {
  border: 1px solid #c5c8c5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.iocl-list-scroll {
  overflow: auto;
  border: 0;
  border-radius: 0;
  max-height: min(42vh, 360px);
}

.iocl-list-table {
  min-width: 920px;
  font-size: 0.58rem;
}

.iocl-list-table th {
  background: #d8dbd8 !important;
  color: #222;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.2rem 0.3rem;
  border-bottom: 1px solid #b8bcb9;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.58rem;
}

.iocl-list-table td {
  white-space: nowrap;
  padding: 0.18rem 0.3rem;
  color: #1a4f8c;
  border-bottom: 1px solid #e4e7e4;
  font-size: 0.58rem;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iocl-list-table tbody tr {
  background: #eef5fb;
  cursor: pointer;
}

.iocl-list-table tbody tr:hover,
.iocl-list-table tbody tr.is-active {
  background: #d9ebf8;
}

.iocl-contact {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f4f3;
  padding: 0.85rem 1rem 1.1rem;
  animation: rise 0.45s ease both;
}

.iocl-contact__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(20, 32, 27, 0.08);
}

.iocl-contact__name {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #3a3f3c;
}

.iocl-dedup-btn {
  appearance: none;
  border: 0;
  background: #4a7c3f;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.95;
}

.iocl-dedup-btn:hover {
  background: #3d6834;
}

.iocl-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.iocl-col {
  display: grid;
  gap: 0.38rem;
  align-content: start;
}

.iocl-field {
  display: grid;
  grid-template-columns: minmax(88px, 42%) 1fr;
  gap: 0.35rem;
  align-items: center;
}

.iocl-field label {
  margin: 0;
  text-align: right;
  font-size: 0.68rem;
  font-weight: 600;
  color: #333;
  line-height: 1.15;
}

.iocl-field .req {
  color: #c0392b;
  margin-left: 1px;
}

.iocl-control {
  position: relative;
  min-width: 0;
}

.iocl-control input {
  width: 100%;
  border: 1px solid #b8bcb9;
  background: #e8e9e8;
  border-radius: 2px;
  padding: 0.18rem 0.35rem;
  font: inherit;
  font-size: 0.68rem;
  color: #222;
  height: 1.4rem;
}

.iocl-control input.is-muted {
  background: #d8dad8;
}

.iocl-control--find input {
  padding-right: 1.85rem;
}

.iocl-control--find .iocl-find-btn {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
}

.iocl-control--date input {
  padding-right: 0.45rem;
}

.iocl-find-btn {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 1px solid #3b6ea5;
  border-radius: 2px;
  background: #4f83b8;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.iocl-find-btn:hover {
  background: #3b6ea5;
}

.iocl-modal[hidden] {
  display: none !important;
}

.iocl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.iocl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 27, 0.45);
}

.iocl-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(247, 249, 247, 0.98);
  padding: 0.85rem 1rem 1rem;
  box-shadow: var(--shadow);
  margin: auto;
}

.iocl-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 1100px) {
  .iocl-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .iocl-form-grid {
    grid-template-columns: 1fr;
  }

  .iocl-field {
    grid-template-columns: 1fr;
  }

  .iocl-field label {
    text-align: left;
  }
}

.mobile-toggle {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-18px, -22px) scale(1.05);
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, var(--nav-w));
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.is-open {
    transform: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .search-grid,
  .search-grid--4,
  .form-grid-2,
  .iocl-search-extra {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 0.75rem 0.85rem 1.25rem;
  }

  .backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 27, 0.28);
    z-index: 30;
  }
}
