:root {
  --bg: #eef3f9;
  --bg-deep: #071426;
  --ink: #10223d;
  --ink-soft: #5f718b;
  --line: #dce5f0;
  --surface: #ffffff;
  --surface-alt: #f6f9fd;
  --nav: #071426;
  --nav-soft: #102a4d;
  --accent: #2563eb;
  --accent-strong: #1548b7;
  --accent-light: #e7efff;
  --open: #ef4b5a;
  --success: #19895f;
  --warning: #d77d15;
  --danger: #c93646;
  --shadow: 0 18px 45px rgba(16, 34, 61, .10);
  --shadow-soft: 0 8px 24px rgba(16, 34, 61, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 4%, rgba(87, 141, 255, .16), transparent 28rem),
    linear-gradient(135deg, #f6f9fe 0%, var(--bg) 56%, #e9f0fa 100%);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--bg-deep);
  color: #e8f0ff;
  font-weight: 600;
  letter-spacing: .01em;
}

.boot-mark {
  position: relative;
  width: 54px;
  height: 82px;
  border: 3px solid #a9c7ff;
  border-radius: 14px;
  background: linear-gradient(160deg, #2d72ff, #0c285d);
  box-shadow: 0 0 0 8px rgba(68, 131, 255, .12), 0 16px 35px rgba(0, 0, 0, .35);
  animation: pulse 1.55s ease-in-out infinite;
}

.boot-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: white;
}

@keyframes pulse {
  50% { transform: translateY(-5px); box-shadow: 0 0 0 16px rgba(68, 131, 255, .04), 0 20px 40px rgba(0, 0, 0, .32); }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(400px, 1.1fr);
  background: var(--bg-deep);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f5f8ff;
  background:
    radial-gradient(circle at 22% 28%, rgba(42, 108, 255, .55), transparent 26rem),
    radial-gradient(circle at 90% 102%, rgba(239, 75, 90, .23), transparent 24rem),
    #071426;
}

.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(178, 206, 255, .16);
  pointer-events: none;
}

.auth-brand::before {
  width: 780px;
  height: 780px;
  top: -455px;
  left: -300px;
}

.auth-brand::after {
  width: 450px;
  height: 450px;
  right: -185px;
  bottom: -215px;
}

.wordmark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
}

.wordmark .samsung {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #f6f9ff;
}

.wordmark .divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .36);
}

.wordmark .open {
  color: #ff6370;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.08em;
}

.auth-hero {
  position: relative;
  z-index: 1;
  max-width: 610px;
  padding: 72px 0 40px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-brand .eyebrow {
  color: #a8c9ff;
}

.auth-hero h1 {
  max-width: 550px;
  margin: 17px 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.auth-hero p {
  max-width: 480px;
  margin: 0;
  color: #b7c9e5;
  font-size: 17px;
  line-height: 1.65;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.auth-benefit {
  padding: 9px 13px;
  border: 1px solid rgba(173, 204, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #dce9ff;
  font-size: 13px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .96), rgba(245, 249, 255, .98)),
    var(--surface);
}

.login-card {
  width: min(100%, 430px);
  padding: 42px;
  border: 1px solid rgba(220, 229, 240, .8);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 24px 70px rgba(11, 40, 82, .12);
}

.login-card .mobile-mark {
  display: none;
  margin-bottom: 34px;
}

.login-card h2 {
  margin: 0 0 9px;
  font-size: 30px;
  letter-spacing: -.04em;
}

.login-card > p {
  margin: 0 0 29px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: #304462;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #ccd8e7;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #5185ed;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

.field small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #304462;
  font-size: 14px;
  font-weight: 700;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.form-error {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.login-footnote {
  margin: 24px 0 0;
  color: #7c8da4;
  font-size: 12px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 15px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.button:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .56;
  box-shadow: none;
}

.button.full {
  width: 100%;
}

.button.secondary {
  border-color: #cfdbea;
  background: #fff;
  color: #24476f;
}

.button.secondary:hover {
  border-color: #8dadde;
  background: #f5f8fd;
  box-shadow: none;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: #315b8c;
}

.button.ghost:hover {
  background: #edf3fc;
  box-shadow: none;
}

.button.danger {
  background: var(--danger);
}

.button.small {
  min-height: 34px;
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 20;
  top: 0;
  bottom: 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  padding: 27px 16px 17px;
  overflow-y: auto;
  color: #d9e5f8;
  background:
    radial-gradient(circle at 18% 0%, rgba(44, 112, 255, .32), transparent 19rem),
    linear-gradient(165deg, #08182e 0%, #071426 72%);
}

.sidebar .wordmark {
  margin: 0 13px 41px;
}

.sidebar .wordmark .samsung {
  font-size: 12px;
}

.sidebar .wordmark .open {
  font-size: 21px;
}

.nav-title {
  margin: 0 13px 8px;
  color: #8194b3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 3px;
  margin-bottom: 26px;
}

.nav-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b9c8df;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  transition: background .16s, color .16s;
}

.nav-button:hover {
  background: rgba(151, 187, 248, .1);
  color: #fff;
}

.nav-button.active {
  background: linear-gradient(100deg, rgba(61, 125, 255, .27), rgba(61, 125, 255, .13));
  color: #fff;
}

.nav-button.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 23px;
  border-radius: 0 4px 4px 0;
  background: #77a6ff;
}

.nav-icon,
.service-icon,
.section-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 21px;
  height: 21px;
}

.nav-icon svg,
.service-icon svg,
.section-icon svg,
.button svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 10px;
  border-top: 1px solid rgba(183, 210, 255, .13);
}

.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(181, 210, 255, .32);
  border-radius: 50%;
  background: linear-gradient(145deg, #5788f4, #204eaa);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-user strong,
.sidebar-user > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  display: block;
  color: #edf4ff;
  font-size: 12px;
}

.sidebar-user > div > span {
  display: block;
  margin-top: 2px;
  color: #91a7c8;
  font-size: 11px;
}

.workspace {
  grid-column: 2;
  min-width: 0;
  padding: 0 34px 90px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 16px;
  border-bottom: 1px solid rgba(201, 215, 232, .72);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #6f8199;
  font-size: 13px;
}

.crumb strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-banner {
  width: min(100%, 1390px);
  margin: 18px auto -12px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid #f1cf95;
  border-radius: 14px;
  background: #fff7e7;
  color: #80510b;
  font-size: 13px;
  line-height: 1.45;
}

.security-banner svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.security-banner strong {
  margin-right: 4px;
}

.install-button {
  display: none;
}

.install-button.ready {
  display: inline-flex;
}

.mobile-menu-button {
  display: none;
}

.page {
  width: min(100%, 1390px);
  margin: 0 auto;
  padding-top: 36px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.page-head h1 {
  margin: 7px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.05em;
  line-height: 1.06;
}

.page-head p {
  max-width: 600px;
  margin: 9px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  min-height: 220px;
  margin-bottom: 25px;
  padding: 29px 33px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 20%, rgba(141, 188, 255, .38), transparent 12rem),
    linear-gradient(118deg, #0a2145 0%, #123e87 69%, #1d58bd 100%);
  box-shadow: 0 19px 36px rgba(9, 43, 99, .18);
  color: #fff;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: 92px;
  top: -240px;
  width: 465px;
  height: 465px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-copy .eyebrow {
  color: #bcd6ff;
}

.hero-copy h2 {
  max-width: 590px;
  margin: 9px 0 9px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.048em;
}

.hero-copy p {
  max-width: 570px;
  margin: 0;
  color: #cfddf5;
  line-height: 1.52;
}

.phone-visual {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 132px;
  height: 230px;
  border: 4px solid rgba(226, 239, 255, .82);
  border-radius: 23px;
  background: linear-gradient(155deg, #133f85, #061a3a);
  box-shadow: 17px 20px 32px rgba(0, 0, 0, .26), inset 0 0 0 1px rgba(0, 0, 0, .4);
  transform: rotate(8deg);
}

.phone-visual::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 39px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 9px;
  background: #06142a;
}

.phone-screen {
  position: absolute;
  inset: 18px 8px 8px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 83% 25%, rgba(139, 187, 255, .8), transparent 3rem),
    linear-gradient(145deg, #286bdb, #0a1f44 73%);
}

.phone-screen::before,
.phone-screen::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.phone-screen::before {
  right: -23px;
  bottom: 14px;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(255, 255, 255, .3);
}

.phone-screen::after {
  left: 14px;
  top: 42px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 56px 0 rgba(255, 255, 255, .13), 0 112px 0 rgba(255, 255, 255, .1);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 27px;
}

.metric-card {
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(218, 227, 239, .85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 5px 16px rgba(28, 55, 92, .04);
}

.metric-card .metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #69809e;
  font-size: 12px;
  font-weight: 700;
}

.metric-card .metric-value {
  display: block;
  margin-top: 16px;
  font-size: 31px;
  font-weight: 780;
  letter-spacing: -.055em;
}

.metric-card .metric-note {
  display: block;
  margin-top: 4px;
  color: #8091a7;
  font-size: 11px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 22px;
}

.stack {
  display: grid;
  gap: 22px;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(216, 226, 238, .92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 21px 15px;
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.025em;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.panel-head.flush {
  padding: 0 0 17px;
}

.panel-stack {
  padding: 0 16px 16px;
}

.panel-actions {
  padding: 0 16px 17px;
}

.text-button {
  border: 0;
  background: transparent;
  color: #2760c5;
  font-size: 12px;
  font-weight: 750;
}

.text-button:hover {
  text-decoration: underline;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 15px 15px;
}

.service-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f7faff;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform .16s, border-color .16s, background .16s, box-shadow .16s;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #bcd0ed;
  background: #fff;
  box-shadow: 0 8px 17px rgba(35, 74, 124, .08);
}

.service-icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: #e5efff;
  color: #2260cd;
}

.service-card:nth-child(3n+2) .service-icon {
  background: #e9f8f2;
  color: #19875e;
}

.service-card:nth-child(3n) .service-icon {
  background: #fff0f1;
  color: #d84959;
}

.service-card strong {
  display: block;
  overflow: hidden;
  color: #1b3354;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card > span:last-child > span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #71839b;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.announcement-list,
.activity-list,
.request-list {
  display: grid;
}

.announcement {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid #e8eef6;
}

.announcement-tone {
  width: 8px;
  min-height: 36px;
  border-radius: 8px;
  background: #6695ee;
}

.announcement.warning .announcement-tone {
  background: #e5a13a;
}

.announcement.accent .announcement-tone {
  background: #e65161;
}

.announcement strong {
  display: block;
  font-size: 14px;
}

.announcement p {
  margin: 4px 0 0;
  color: #647892;
  font-size: 14px;
  line-height: 1.5;
}

.announcement time,
.activity time,
.request-meta {
  display: block;
  margin-top: 6px;
  color: #95a4b7;
  font-size: 10px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 36px 23px;
  color: #71849e;
  text-align: center;
}

.empty-state .section-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  background: #eaf1fb;
  color: #4776c5;
}

.empty-state strong {
  color: #36516f;
  font-size: 14px;
}

.empty-state p {
  max-width: 280px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.status-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe6f4;
  border-radius: 15px;
  background: linear-gradient(135deg, #f5f9ff, #ecf4ff);
}

.status-card .status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5f7591;
  font-size: 12px;
}

.status-card strong {
  color: #1e4f9d;
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #8da0b7;
}

.dot.ok { background: #20a570; }
.dot.warn { background: #da941e; }
.dot.error { background: #d24453; }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.search-box {
  display: flex;
  flex: 1 1 270px;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid #d5e0ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: #6d86a6;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pill {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #d5e0ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #526c8c;
  font-size: 12px;
  font-weight: 700;
}

.filter-pill.active,
.filter-pill:hover {
  border-color: #4175d4;
  background: #eaf1ff;
  color: #2459b8;
}

.catalog-group {
  margin-bottom: 28px;
}

.catalog-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}

.catalog-group-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.025em;
}

.catalog-group-head span {
  color: #8293a8;
  font-size: 12px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  min-height: 167px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px;
  border: 1px solid #d9e4f1;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 7px 18px rgba(33, 58, 93, .04);
  text-align: left;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: #a9c1e5;
  box-shadow: 0 14px 28px rgba(25, 64, 118, .11);
}

.catalog-card .service-icon {
  margin-bottom: 17px;
}

.catalog-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.02em;
}

.catalog-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 14px;
  color: #71849c;
  font-size: 14px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-card .card-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: #2460c8;
  font-size: 13px;
  font-weight: 700;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  min-height: 255px;
  padding: 21px;
  border: 1px solid #d6e2f0;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 18px rgba(24, 59, 104, .05);
}

.dashboard-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-card h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.025em;
}

.dashboard-card p {
  margin: 6px 0 0;
  color: #6e819a;
  font-size: 12px;
}

.dashboard-empty {
  display: grid;
  min-height: 152px;
  place-items: center;
  padding: 28px;
  color: #7a8ea9;
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
}

.data-table-wrap {
  overflow-x: auto;
  margin-top: 17px;
  border: 1px solid #e0e9f4;
  border-radius: 12px;
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: #445f80;
  font-size: 13px;
}

.data-table th,
.data-table td {
  max-width: 180px;
  padding: 10px 12px;
  overflow: hidden;
  border-bottom: 1px solid #e8eef6;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table th {
  background: #f6f9fd;
  color: #637a97;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

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

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(270px, .36fr) minmax(0, .64fr);
  gap: 20px;
}

.article-list {
  display: grid;
  gap: 8px;
  padding: 11px;
}

.article-option {
  width: 100%;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.article-option:hover,
.article-option.active {
  border-color: #c5d9f7;
  background: #eef5ff;
}

.article-option .article-category {
  display: block;
  margin-bottom: 5px;
  color: #2b69c8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-option strong {
  display: block;
  font-size: 13px;
}

.article-option p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: #71849c;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-view {
  min-height: 375px;
  padding: 31px;
}

.article-view .article-category {
  color: #2b69c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.article-view h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  letter-spacing: -.045em;
}

.article-view .article-summary {
  margin: 0 0 26px;
  color: #6d8098;
  line-height: 1.55;
}

.article-body {
  color: #3e5877;
  font-size: 16px;
  line-height: 1.72;
  white-space: pre-line;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
}

.document-list {
  display: grid;
}

.document-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px 19px;
  border-top: 1px solid #e8eef6;
}

.document-row:first-child {
  border-top: 0;
}

.document-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #edf3fc;
  color: #346dc4;
}

.document-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.document-row strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-row > div > span {
  display: block;
  margin-top: 4px;
  color: #8192a7;
  font-size: 11px;
}

.documents-side {
  padding: 21px;
}

.documents-side h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.documents-side p {
  margin: 0 0 18px;
  color: #71849e;
  font-size: 14px;
  line-height: 1.55;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(320px, .5fr);
  gap: 20px;
}

.request-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 17px;
}

.request-type {
  display: flex;
  gap: 12px;
  min-height: 130px;
  padding: 15px;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  background: #fbfdff;
  color: inherit;
  text-align: left;
}

.request-type:hover,
.request-type.active {
  border-color: #7fa7e8;
  background: #f0f6ff;
}

.request-type strong {
  display: block;
  font-size: 13px;
}

.request-type p {
  margin: 5px 0 0;
  color: #71849e;
  font-size: 11px;
  line-height: 1.45;
}

.request-form {
  padding: 21px;
}

.request-form h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.request-list .request-item {
  padding: 16px 19px;
  border-top: 1px solid #e8eef6;
}

.request-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.request-item strong {
  display: block;
  font-size: 14px;
}

.request-item p {
  margin: 6px 0 0;
  color: #71849c;
  font-size: 14px;
  line-height: 1.45;
}

.status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf1f6;
  color: #637990;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status.new { background: #e8f0ff; color: #3066c6; }
.status.in_progress { background: #fff3df; color: #a76a13; }
.status.done { background: #e5f7ef; color: #19875f; }
.status.closed { background: #eff2f5; color: #627488; }
.status.high { background: #fff0f1; color: #c23c4c; }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.profile-card {
  padding: 27px;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.profile-user .avatar {
  width: 62px;
  height: 62px;
  font-size: 18px;
}

.profile-user h2 {
  margin: 0;
  font-size: 21px;
}

.profile-user p {
  margin: 4px 0 0;
  color: #71849c;
  font-size: 13px;
}

.profile-details {
  display: grid;
  gap: 0;
}

.profile-details div {
  display: flex;
  justify-content: space-between;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid #e8eef6;
  color: #72839b;
  font-size: 14px;
}

.profile-details strong {
  color: #294663;
  font-size: 14px;
  text-align: right;
}

.admin-tabs {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  margin-bottom: 20px;
  padding-bottom: 2px;
}

.admin-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d5e0ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #58708d;
  font-size: 12px;
  font-weight: 750;
}

.admin-tab.active,
.admin-tab:hover {
  border-color: #4f7fd7;
  background: #eaf1ff;
  color: #275ebc;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.admin-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 20px;
}

.admin-form {
  padding: 21px;
}

.admin-form h2 {
  margin: 0 0 17px;
  font-size: 18px;
}

.admin-form .form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 670px;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  border-top: 1px solid #e7edf5;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  border-top: 0;
  color: #768ba5;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-table td {
  color: #526b86;
}

.admin-table td strong {
  color: #2d4a68;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-actions.spread {
  justify-content: space-between;
  align-items: center;
}

.activity {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 19px;
  border-top: 1px solid #e8eef6;
}

.activity:first-child {
  border-top: 0;
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #edf3fb;
  color: #4775bb;
  font-size: 13px;
}

.activity strong {
  display: block;
  color: #3d5775;
  font-size: 12px;
}

.activity p {
  margin: 3px 0 0;
  color: #7b8fa7;
  font-size: 11px;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 16, 35, .53);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(100%, 540px);
  max-height: min(92vh, 730px);
  overflow-y: auto;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 25px 74px rgba(0, 0, 0, .28);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid #e6edf6;
}

.modal-head h2 {
  margin: 0;
  font-size: 19px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: #edf2f8;
  color: #526982;
}

.modal .admin-form {
  padding: 21px 22px 23px;
}

.muted {
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

#toast-root {
  position: fixed;
  z-index: 110;
  right: 18px;
  bottom: 20px;
  display: grid;
  gap: 9px;
  width: min(390px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #cfe0f8;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 45, 83, .18);
  color: #2f4d6e;
  font-size: 13px;
  line-height: 1.4;
  animation: toast-in .22s ease-out;
}

.toast.error {
  border-color: #f2c3c8;
  color: #a82d3b;
}

.toast.success {
  border-color: #b9e4d2;
  color: #167651;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav {
  display: none;
}

@media (max-width: 1160px) {
  .metric-grid,
  .admin-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-panel {
    grid-template-columns: minmax(0, 1fr) 180px;
  }
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    min-height: 350px;
  }
  .auth-panel {
    min-height: 480px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-105%);
    width: min(294px, 84vw);
    box-shadow: 14px 0 45px rgba(0, 0, 0, .3);
    transition: transform .2s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    grid-column: auto;
    padding: 0 24px 90px;
  }
  .mobile-menu-button {
    display: inline-flex;
  }
  .content-grid,
  .document-layout,
  .request-layout,
  .profile-grid,
  .admin-content-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-layout {
    grid-template-columns: 1fr;
  }
  .article-view {
    min-height: 0;
  }
  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #d8e2ef;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -7px 22px rgba(27, 55, 92, .09);
    backdrop-filter: blur(16px);
  }
  .mobile-nav button {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 48px;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7a8ea9;
    font-size: 10px;
    font-weight: 700;
  }
  .mobile-nav button.active {
    background: #edf4ff;
    color: #255dbc;
  }
  .mobile-nav .nav-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 640px) {
  .auth-brand {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    padding: 20px;
    background:
      radial-gradient(circle at 90% 0%, rgba(88, 145, 255, .18), transparent 15rem),
      #f6f9fe;
  }
  .login-card {
    padding: 26px 21px;
    border-radius: 22px;
    box-shadow: none;
  }
  .login-card .mobile-mark {
    display: inline-flex;
  }
  .workspace {
    padding: 0 15px 83px;
  }
  .topbar {
    min-height: 66px;
  }
  .install-label,
  .logout-label {
    display: none;
  }
  .top-actions .button.secondary:not(.mobile-menu-button):not(.install-button) {
    display: none;
  }
  .page {
    padding-top: 24px;
  }
  .page-head {
    display: block;
    margin-bottom: 18px;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .page-head-actions {
    margin-top: 14px;
  }
  .hero-panel {
    grid-template-columns: minmax(0, 1fr) 98px;
    min-height: 180px;
    padding: 22px;
    border-radius: 20px;
  }
  .hero-copy h2 {
    font-size: 24px;
  }
  .hero-copy p {
    font-size: 12px;
  }
  .phone-visual {
    width: 82px;
    height: 144px;
    border-width: 3px;
    border-radius: 15px;
  }
  .phone-visual::before {
    top: 6px;
    width: 25px;
    height: 5px;
  }
  .phone-screen {
    inset: 12px 5px 5px;
    border-radius: 9px;
  }
  .metric-grid,
  .admin-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-card {
    min-height: 103px;
    padding: 14px;
    border-radius: 15px;
  }
  .metric-card .metric-value {
    margin-top: 12px;
    font-size: 26px;
  }
  .content-grid,
  .stack {
    gap: 14px;
  }
  .panel-head {
    padding: 17px 16px 13px;
  }
  .service-grid,
  .request-types {
    grid-template-columns: 1fr;
    padding: 0 11px 11px;
  }
  .request-types {
    padding: 12px;
  }
  .catalog-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card {
    min-height: 142px;
  }
  .knowledge-layout {
    gap: 14px;
  }
  .article-view,
  .profile-card,
  .admin-form,
  .documents-side,
  .request-form {
    padding: 20px 17px;
  }
  .document-row {
    grid-template-columns: 39px minmax(0, 1fr);
    padding: 14px;
  }
  .document-row .button {
    grid-column: 2;
    justify-self: start;
    margin-top: -5px;
  }
  .admin-form .form-grid.two {
    grid-template-columns: 1fr;
  }
}
