:root {
    --brand-primary: #920000;
    --brand-primary-dark: #710000;
    --brand-primary-soft: #f8e7e7;
    --brand-slate: #3f434a;
    --brand-gray: #7c7f84;
    --ink: #172029;
    --muted: #6e7882;
    --line: #eee7e7;
    --surface: #ffffff;
    --surface-soft: #f8f6f6;
    --surface-brand: #f8eded;
    --danger: #c94141;
    --amber: #ca8b23;
    --blue: #3f79b7;
    --shadow-sm: 0 8px 30px rgba(65, 35, 38, .06);
    --shadow-lg: 0 28px 70px rgba(65, 35, 38, .13);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --sidebar-width: 274px;
    --font-ui-caption: 11px;
    --font-ui-small: 12px;
    --font-ui-body: 14px;
    --text-secondary: #655d5e;
    --text-muted: #797071;
}

/* Paket 13 · Lisans Takip Merkezi */
.license-heading,
.license-list-heading,
.license-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.license-heading {
    margin-bottom: 22px;
}

.license-heading h2,
.license-list-heading h3,
.license-panel-heading h3 {
    margin: 5px 0 7px;
}

.license-heading p,
.license-panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

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

.license-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(43, 61, 48, .06);
    transition: transform .18s ease, border-color .18s ease;
}

.license-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(146, 0, 0, .28);
}

.license-metric-card > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}

.license-metric-card.green > span { background: #f8e7e7; color: #8b2b31; }
.license-metric-card.amber > span { background: #fff3d9; color: #a3690a; }
.license-metric-card.red > span { background: #fde9e5; color: #b64c3e; }
.license-metric-card.blue > span { background: #e7f0fa; color: #426f9b; }

.license-metric-card div {
    display: grid;
    gap: 2px;
}

.license-metric-card strong {
    font-size: 24px;
    line-height: 1;
}

.license-metric-card small {
    color: var(--muted);
    font-size: 12px;
}

.license-filter-form {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) minmax(210px, .8fr) minmax(210px, .8fr) auto auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
}

.license-search-field {
    align-self: stretch;
}

.license-search-field input {
    height: 100%;
    min-height: 52px;
}

.license-list-heading {
    margin: 27px 2px 14px;
}

.license-reminder-note {
    padding: 9px 13px;
    border-radius: 999px;
    background: #f8eded;
    color: #7d3131;
    font-size: 12px;
    font-weight: 700;
}

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

.license-card {
    display: grid;
    gap: 17px;
    padding: 21px;
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.license-card:hover {
    transform: translateY(-3px);
    border-color: rgba(146, 0, 0, .32);
    box-shadow: 0 20px 44px rgba(42, 60, 47, .1);
}

.license-card-top,
.license-card-title,
.license-card-footer,
.license-usage-summary > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.license-card-avatar,
.license-document-icon,
.license-history-list article > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8e7e7;
    color: #7d3131;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
}

.license-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8e7e7;
    color: #7d3131;
    font-size: 12px;
    font-weight: 750;
}

.license-status.upcoming { background: #fff3d9; color: #9a650d; }
.license-status.urgent,
.license-status.expired { background: #fde9e5; color: #ad4a3f; }
.license-status.archived { background: #edf0ed; color: #69736c; }
.license-status.perpetual { background: #e7f0fa; color: #426f9b; }

.license-card-title h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

.license-card-title p,
.license-card-date small,
.license-card-footer {
    color: var(--muted);
    font-size: 12px;
}

.license-card-title p {
    margin: 0;
}

.license-card-title > span {
    color: var(--brand-primary-dark);
    font-size: 22px;
}

.license-card-date {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 14px 0 2px;
    border-top: 1px solid var(--line);
}

.license-card-date strong {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.license-card-date em {
    color: #8a2727;
    font-size: 12px;
    font-style: normal;
}

.license-usage-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1ed;
}

.license-usage-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c54b53, #920000);
}

.license-card-footer {
    flex-wrap: wrap;
}

.license-card-footer b {
    color: var(--ink);
}

.license-empty-state {
    grid-column: 1 / -1;
    min-height: 280px;
}

.license-form-dialog,
.license-detail-dialog {
    width: min(100%, 1220px);
}

.license-form-dialog-shell,
.license-detail-dialog-shell {
    width: min(1160px, calc(100vw - 34px));
    max-height: calc(100vh - 32px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.license-dialog-header {
    flex: 0 0 auto;
}

.license-dialog-header h3,
.license-detail-title h3 {
    margin: 3px 0 5px;
}

.license-dialog-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.license-dialog-form {
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.license-dialog-scroll,
.license-detail-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(84, 105, 90, .36) transparent;
}

.license-dialog-scroll {
    padding: 18px 24px 26px;
}

.license-form-section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
}

.license-form-section + .license-form-section {
    margin-top: 16px;
}

.license-form-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.license-form-section-title > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f8e7e7;
    color: #4c8c3d;
    font-size: 12px;
    font-weight: 850;
}

.license-form-section-title h4 {
    margin: 0 0 3px;
    font-size: 16px;
}

.license-form-section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

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

.license-form-wide {
    grid-column: 1 / -1;
}

.license-form-grid .field,
.license-renew-form .field {
    margin: 0;
}

.license-form-grid select,
.license-renew-form select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.license-form-grid .field > small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.license-toggle-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f9fbf9;
    cursor: pointer;
}

.license-toggle-card input {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-primary);
}

.license-toggle-card span {
    display: grid;
    gap: 3px;
}

.license-toggle-card b { font-size: 13px; }
.license-toggle-card small { color: var(--muted); font-size: 12px; }

.license-dialog-footer,
.license-detail-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
}

.license-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-detail-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fbf5f5;
}

.license-reminder-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    color: #7a3434;
    font-size: 12px;
    font-weight: 700;
}

.license-reminder-state i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b32d35;
    box-shadow: 0 0 0 5px rgba(179, 45, 53, .13);
}

.license-reminder-state.disabled { color: #7d847e; }
.license-reminder-state.disabled i { background: #a8afaa; box-shadow: none; }
.license-inline-form { margin: 0; }

.license-detail-content {
    padding: 18px 24px 28px;
}

.license-detail-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(112deg, #fff 40%, #f8eded);
}

.license-detail-hero-mark {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 24px;
    background: #f8e7e7;
    color: #7f2424;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: .09em;
}

.license-detail-hero-copy h3 {
    margin: 5px 0;
    font-size: 25px;
}

.license-detail-hero-copy p,
.license-detail-cost span {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.license-detail-cost {
    display: grid;
    min-width: 190px;
    gap: 5px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, .8);
    text-align: right;
}

.license-detail-cost small { color: var(--muted); font-size: 12px; }
.license-detail-cost strong { font-size: 19px; }

.license-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.license-info-panel,
.license-document-panel,
.license-history-panel {
    padding: 22px;
}

.license-document-panel,
.license-history-panel {
    margin-top: 16px;
}

.license-detail-list {
    margin: 12px 0 0;
}

.license-detail-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.license-detail-list dt { color: var(--muted); font-size: 12px; }
.license-detail-list dd { margin: 0; text-align: right; font-size: 13px; font-weight: 700; }

.license-usage-summary {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.license-usage-summary span,
.license-usage-summary small { color: var(--muted); font-size: 12px; }

.license-notes {
    margin-top: 17px;
    padding: 14px;
    border-radius: 14px;
    background: #f5f8f5;
}

.license-notes strong { font-size: 12px; }
.license-notes p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.license-document-upload {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px dashed #d8bebe;
    border-radius: 17px;
    background: #fbf7f7;
}

.license-document-upload label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.license-document-upload input[type="file"] {
    max-width: 250px;
    font-size: 12px;
}

.license-document-upload label span { display: grid; gap: 2px; }
.license-document-upload label b { font-size: 13px; }
.license-document-upload label small { color: var(--muted); font-size: 12px; }

.license-document-empty {
    margin-top: 14px;
    padding: 24px;
    border-radius: 15px;
    background: #f7f9f7;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.license-document-list,
.license-history-list {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.license-document-list > div,
.license-history-list article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.license-document-list a {
    display: grid;
    gap: 3px;
    color: var(--ink);
    text-decoration: none;
}

.license-document-list strong,
.license-history-list strong { font-size: 13px; }
.license-document-list small,
.license-history-list small { color: var(--muted); font-size: 12px; }
.license-document-list form { margin: 0; }

.license-history-list article > div { display: grid; gap: 4px; }
.license-history-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.license-history-list article > b { font-size: 12px; }

.license-action-dialog { width: min(100%, 650px); }
.license-action-dialog-shell { width: min(610px, calc(100vw - 34px)); }
.license-renew-form { display: grid; gap: 15px; padding: 22px; }
.license-renew-grid { display: grid; grid-template-columns: 1fr 150px; gap: 12px; }
.license-action-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

@media (max-width: 1100px) {
    .license-filter-form { grid-template-columns: 1fr 1fr; }
    .license-search-field { grid-column: 1 / -1; }
    .license-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .license-heading,
    .license-list-heading,
    .license-panel-heading,
    .license-detail-toolbar { align-items: stretch; flex-direction: column; }
    .license-heading .button { align-self: flex-start; }
    .license-metric-grid,
    .license-card-grid,
    .license-detail-grid,
    .license-form-grid,
    .license-filter-form { grid-template-columns: 1fr; }
    .license-search-field,
    .license-form-wide { grid-column: auto; }
    .license-detail-toolbar { display: flex; }
    .license-reminder-state { margin-right: 0; }
    .license-detail-hero { grid-template-columns: 1fr; }
    .license-detail-cost { text-align: left; }
    .license-document-upload { grid-template-columns: 1fr; }
    .license-document-upload label { align-items: flex-start; flex-direction: column; }
    .license-document-list > div,
    .license-history-list article { grid-template-columns: auto 1fr; }
    .license-document-list form,
    .license-history-list article > b { grid-column: 2; justify-self: start; }
    .license-renew-grid { grid-template-columns: 1fr; }
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 70% -20%, rgba(196, 70, 79, .06), transparent 30%),
        var(--surface-soft);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(231, 235, 232, .9);
    background: rgba(255, 255, 255, .86);
    box-shadow: 14px 0 45px rgba(40, 52, 43, .025);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.sidebar-brand {
    display: flex;
    height: 112px;
    align-items: center;
    justify-content: space-between;
    padding: 25px 28px 20px;
}

.sidebar-brand img {
    display: block;
    width: 154px;
    height: 68px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px 24px;
}

.nav-section-label {
    margin: 9px 13px 11px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.nav-section-spaced {
    margin-top: 29px;
}

.nav-link {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 13px;
    margin: 3px 0;
    padding: 12px 14px;
    border-radius: 14px;
    color: #626d72;
    font-size: 14px;
    font-weight: 590;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.nav-link.dashboard-nav svg {
    fill: currentColor;
    stroke: none;
}

.nav-link:hover {
    color: var(--brand-slate);
    background: #f4f7f4;
    transform: translateX(2px);
}

.nav-link.active {
    color: #69272b;
    background: linear-gradient(135deg, #f7e5e7, #f9f1f1);
    font-weight: 700;
}

.nav-link.active::after {
    position: absolute;
    top: 12px;
    right: -18px;
    bottom: 12px;
    width: 3px;
    border-radius: 5px 0 0 5px;
    background: var(--brand-primary);
    content: "";
}

.nav-count {
    display: grid;
    min-width: 21px;
    height: 21px;
    margin-left: auto;
    padding: 0 5px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--brand-primary);
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.sidebar-footer {
    padding: 18px;
}

.sidebar-help {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e8eee7;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8faf8, #f6f0f0);
}

.sidebar-help div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.sidebar-help strong {
    color: var(--brand-slate);
    font-size: 12px;
}

.sidebar-help small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-dot {
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(196, 70, 79, .16);
}

.main-area {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(24px, 4vw, 56px);
    border-bottom: 1px solid rgba(231, 235, 232, .72);
    background: rgba(245, 247, 245, .76);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.topbar-left {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.eyebrow {
    margin-bottom: 3px;
    color: #738078;
    font-size: var(--font-ui-small);
    font-weight: 680;
    letter-spacing: .08em;
    text-transform: capitalize;
}

.topbar h1 {
    overflow: hidden;
    margin: 0;
    font-size: 21px;
    font-weight: 720;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid #e6ebe7;
    border-radius: 50%;
    color: #58645c;
    background: rgba(255, 255, 255, .78);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.icon-button:hover {
    background: #fff;
    transform: translateY(-1px);
}

.icon-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--brand-primary);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -7px;
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #f7f9f7;
    border-radius: 12px;
    color: #fff;
    background: var(--brand-primary-dark);
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.menu-button,
.sidebar-close {
    display: none;
}

.user-chip {
    display: flex;
    min-width: 238px;
    align-items: center;
    gap: 11px;
    padding: 7px 8px 7px 9px;
    border: 1px solid #e4e9e5;
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
}

.avatar,
.assignment-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #642529;
    background: linear-gradient(145deg, #f5dee0, #faefef);
    font-size: var(--font-ui-small);
    font-weight: 800;
}

.avatar {
    width: 38px;
    height: 38px;
}

.assignment-avatar {
    width: 38px;
    height: 38px;
    text-transform: uppercase;
}

.assignment-avatar.large {
    width: 62px;
    height: 62px;
    font-size: 17px;
}

.user-chip-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.user-chip-text strong,
.user-chip-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip-text strong {
    font-size: 12px;
    font-weight: 700;
}

.user-chip-text small {
    margin-top: 2px;
    color: #68746c;
    font-size: var(--font-ui-caption);
}

.logout-button {
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
}

.logout-button:hover {
    color: #b84e4e;
    background: #fbefef;
}

.logout-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.page-content {
    width: min(100%, 1580px);
    margin: 0 auto;
    padding: 36px clamp(24px, 4vw, 56px) 64px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 690;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.button-primary {
    color: #fff;
    background: linear-gradient(145deg, var(--brand-primary), #7d0000);
    box-shadow: 0 10px 25px rgba(170, 51, 59, .21);
}

.button-primary:hover:not(:disabled) {
    box-shadow: 0 14px 30px rgba(170, 51, 59, .28);
}

.button-dark {
    color: #fff;
    background: var(--brand-slate);
    box-shadow: 0 10px 24px rgba(65, 83, 100, .16);
}

.button-secondary {
    border-color: #e1e7e2;
    color: var(--brand-slate);
    background: #fff;
}

.button-ghost {
    border-color: #e1e7e2;
    color: #607066;
    background: rgba(255, 255, 255, .72);
}

.button-full {
    width: 100%;
}

.button-plus {
    font-size: 20px;
    font-weight: 400;
    line-height: 0;
}

.page-card {
    border: 1px solid rgba(226, 233, 227, .94);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
}

.section-kicker,
.hero-kicker {
    color: var(--brand-primary-dark);
    font-size: var(--font-ui-small);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-card {
    position: relative;
    display: grid;
    min-height: 405px;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    overflow: hidden;
    border: 1px solid #ece0e0;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 76% 10%, rgba(196, 70, 79, .2), transparent 24%),
        linear-gradient(135deg, #fff 4%, #faf4f4 52%, #f6e7e8);
    box-shadow: var(--shadow-lg);
}

.hero-card::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(65, 83, 100, .08) .65px, transparent .65px);
    background-size: 11px 11px;
    mask-image: linear-gradient(90deg, transparent 10%, #000 80%);
    opacity: .33;
    content: "";
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 60px clamp(40px, 5vw, 78px);
}

.hero-copy h2 {
    margin: 14px 0 18px;
    color: #25322b;
    font-size: clamp(42px, 4.1vw, 68px);
    font-weight: 760;
    letter-spacing: -.064em;
    line-height: .98;
}

.hero-copy h2 span {
    color: var(--brand-primary);
}

.hero-copy p {
    max-width: 510px;
    margin: 0;
    color: #6d776f;
    font-size: 16px;
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 29px;
}

.hero-visual {
    position: relative;
    min-height: 360px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 0 80px rgba(196, 70, 79, .16);
    filter: blur(3px);
    transform: translate(-50%, -50%);
}

.device-orbit {
    position: absolute;
    inset: 0;
}

.device-laptop {
    position: absolute;
    top: 49%;
    left: 50%;
    width: min(75%, 410px);
    filter: drop-shadow(0 30px 28px rgba(66, 44, 46, .2));
    transform: translate(-50%, -50%) perspective(900px) rotateY(-8deg) rotateX(4deg);
}

.device-screen {
    position: relative;
    aspect-ratio: 1.58;
    overflow: hidden;
    padding: 30px;
    border: 9px solid #34404a;
    border-bottom-width: 13px;
    border-radius: 18px 18px 8px 8px;
    background:
        radial-gradient(circle at 85% 15%, rgba(196, 70, 79, .35), transparent 34%),
        linear-gradient(145deg, #fbf7f7, #f3e3e4);
}

.device-screen::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, .45), transparent 40%);
    content: "";
}

.screen-mark {
    position: relative;
    z-index: 2;
    color: var(--brand-slate);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .15em;
}

.screen-line {
    position: relative;
    z-index: 2;
    display: block;
    width: 40%;
    height: 8px;
    margin-top: 12px;
    border-radius: 10px;
    background: rgba(65, 83, 100, .13);
}

.screen-line.line-long {
    width: 66%;
    height: 13px;
    margin-top: 25px;
    background: rgba(65, 83, 100, .2);
}

.screen-cards {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 25px;
    left: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.screen-cards i {
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 8px 20px rgba(55, 73, 59, .07);
    backdrop-filter: blur(10px);
}

.screen-cards i:first-child {
    background: rgba(196, 70, 79, .3);
}

.device-base {
    width: 112%;
    height: 15px;
    margin-left: -6%;
    border-radius: 2px 2px 16px 16px;
    background: linear-gradient(180deg, var(--text-muted), #67737b);
    clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}

.floating-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 35px rgba(44, 62, 48, .12);
    backdrop-filter: blur(15px);
    animation: float 5s ease-in-out infinite;
}

.floating-chip div {
    display: flex;
    flex-direction: column;
}

.floating-chip strong {
    font-size: 17px;
}

.floating-chip small {
    color: #7e8981;
    font-size: var(--font-ui-caption);
}

.chip-one {
    top: 17%;
    right: 8%;
}

.chip-two {
    bottom: 16%;
    left: 2%;
    animation-delay: -2.4s;
}

.chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px currentColor;
}

.chip-dot.green {
    color: rgba(196, 70, 79, .13);
    background: var(--brand-primary);
}

.chip-dot.slate {
    color: rgba(65, 83, 100, .12);
    background: var(--brand-slate);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.metric-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 185px;
    flex-direction: column;
    overflow: hidden;
    padding: 23px;
    border: 1px solid #e4e9e5;
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.metric-card::after {
    position: absolute;
    right: -35px;
    bottom: -45px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: var(--metric-soft);
    content: "";
}

.metric-card:hover {
    border-color: var(--metric);
    box-shadow: 0 18px 40px rgba(40, 55, 45, .09);
    transform: translateY(-3px);
}

.accent-green {
    --metric: var(--brand-primary);
    --metric-soft: rgba(196, 70, 79, .1);
}

.accent-slate {
    --metric: var(--brand-slate);
    --metric-soft: rgba(65, 83, 100, .09);
}

.accent-amber {
    --metric: var(--amber);
    --metric-soft: rgba(202, 139, 35, .09);
}

.accent-blue {
    --metric: var(--blue);
    --metric-soft: rgba(63, 121, 183, .09);
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: var(--metric);
    background: var(--metric-soft);
}

.metric-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.metric-trend {
    padding: 5px 8px;
    border-radius: 20px;
    color: var(--brand-primary-dark);
    background: var(--brand-primary-soft);
    font-size: var(--font-ui-caption);
    font-weight: 750;
    text-transform: uppercase;
}

.metric-arrow {
    color: var(--text-muted);
    font-size: 19px;
}

.metric-value {
    font-size: 35px;
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1;
}

.metric-label {
    margin-top: 7px;
    font-size: 13px;
    font-weight: 700;
}

.metric-detail {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 12px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 24px;
}

.dashboard-panel {
    min-width: 0;
    padding: 27px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 19px;
}

.panel-heading h3,
.form-section-heading h3 {
    margin: 5px 0 0;
    font-size: 19px;
    font-weight: 720;
    letter-spacing: -.03em;
}

.text-link {
    color: #66746a;
    font-size: var(--font-ui-small);
    font-weight: 650;
    white-space: nowrap;
}

.text-link span {
    color: var(--brand-primary);
    font-size: 15px;
}

.activity-list,
.assignment-stack {
    display: flex;
    flex-direction: column;
}

.activity-row,
.assignment-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 14px 3px;
    border-top: 1px solid #edf0ee;
}

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

.activity-row {
    transition: transform .2s ease;
}

.activity-row:hover {
    transform: translateX(3px);
}

.asset-symbol {
    display: inline-grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #ecd9db;
    border-radius: 13px;
    color: #8b3b40;
    background: #f8ecec;
    font-size: var(--font-ui-caption);
    font-weight: 820;
    letter-spacing: .06em;
}

.asset-symbol.small {
    width: 35px;
    height: 35px;
    border-radius: 10px;
}

.activity-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.activity-main strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 690;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-main small {
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-chevron {
    color: #b1b9b3;
    font-size: 21px;
}

.assignment-meta {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.assignment-meta strong {
    color: var(--brand-slate);
    font-size: var(--font-ui-caption);
}

.assignment-meta small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.status-pill {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 30px;
    color: #526259;
    background: #eff2f0;
    font-size: var(--font-ui-caption);
    font-weight: 720;
    white-space: nowrap;
}

.status-instock,
.status-active,
.status-approved,
.status-signeddocumentuploaded {
    color: #793035;
    background: #f7e5e7;
}

.status-assigned,
.status-incoming,
.status-inapproving,
.status-initprocessing,
.status-convertedtoassignment {
    color: #3c698e;
    background: #e9f2f9;
}

.status-reserved,
.status-awaitingreturn,
.status-awaitingapproval,
.status-awaitingsignature,
.status-draft,
.status-created {
    color: #92691f;
    background: #fbf3df;
}

.status-inservice,
.status-faulty,
.status-rejected,
.status-lost {
    color: #aa4444;
    background: #faeaea;
}

.status-scrapped,
.status-passive,
.status-returned,
.status-cancelled {
    color: #68716b;
    background: #ecefed;
}

.operation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 24px;
    padding: 33px 38px;
    border-radius: 25px;
    color: #fbf7f7;
    background:
        radial-gradient(circle at 85% 0, rgba(196, 70, 79, .32), transparent 31%),
        linear-gradient(135deg, #344554, var(--brand-slate));
    box-shadow: 0 20px 45px rgba(65, 83, 100, .2);
}

.operation-banner .section-kicker {
    color: #dd9398;
}

.operation-banner h3 {
    margin: 7px 0 6px;
    font-size: 22px;
    letter-spacing: -.035em;
}

.operation-banner p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .67);
    font-size: 12px;
    line-height: 1.55;
}

.operation-banner .button-dark {
    flex: 0 0 auto;
    color: var(--brand-slate);
    background: #fff;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 5px 0 27px;
}

.page-heading.compact {
    align-items: center;
}

.page-heading h2 {
    margin: 7px 0 7px;
    font-size: clamp(31px, 3.2vw, 46px);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.05;
}

.page-heading p {
    max-width: 720px;
    margin: 0;
    color: #657169;
    font-size: var(--font-ui-body);
    line-height: 1.55;
}

.back-link {
    display: inline-flex;
    margin-bottom: 14px;
    color: #6b776e;
    font-size: var(--font-ui-small);
    font-weight: 650;
}

.back-link:hover {
    color: var(--brand-primary-dark);
}

.title-with-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.list-search-card {
    display: grid;
    grid-template-columns: minmax(230px, .36fr) minmax(420px, 1fr);
    align-items: center;
    gap: 13px 24px;
    margin-bottom: 19px;
    padding: 20px 22px;
    border-color: #eadede;
    background:
        radial-gradient(circle at 100% 0, rgba(146, 0, 0, .08), transparent 31%),
        #fff;
}

.list-search-copy h3 {
    margin: 5px 0 3px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
}

.list-search-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.list-search-form {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.list-search-form .search-field {
    min-width: 0;
    flex: 1;
}

.list-search-form .button {
    min-height: 44px;
    white-space: nowrap;
}

.list-search-result {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.list-search-result strong {
    color: var(--ink);
}

.filter-card {
    margin-bottom: 19px;
    padding: 16px;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(150px, .35fr) minmax(150px, .35fr) auto auto;
    gap: 10px;
}

.search-field {
    position: relative;
}

.search-field svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--text-muted);
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
}

.search-field input {
    padding-left: 42px !important;
}

.search-field input,
.select-field select,
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #dfe5e0;
    border-radius: 11px;
    outline: 0;
    color: var(--ink);
    background: #fbfcfb;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

@media (max-width: 900px) {
    .list-search-card {
        grid-template-columns: 1fr;
    }

    .list-search-result {
        grid-column: 1;
    }
}

@media (max-width: 620px) {
    .list-search-card {
        padding: 17px;
    }

    .list-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .list-search-form .button {
        justify-content: center;
        width: 100%;
    }
}

.select-field select {
    height: 44px;
}

.search-field input:focus,
.select-field select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(196, 70, 79, .75);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 70, 79, .1);
}

.search-field input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
    color: #7f8a82;
}

.table-card {
    overflow: hidden;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 15px 19px;
    border-bottom: 1px solid #e7ece8;
    color: #657169;
    background: #fafbfa;
    font-size: var(--font-ui-caption);
    font-weight: 780;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    padding: 15px 19px;
    border-bottom: 1px solid #edf0ee;
    color: #46534a;
    font-size: 13px;
    vertical-align: middle;
}

tbody tr {
    transition: background .16s ease;
}

tbody tr:hover {
    background: #fdfbfb;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.table-primary {
    display: flex;
    min-width: 180px;
    align-items: center;
    gap: 11px;
}

.table-primary > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.table-primary strong {
    color: #27342c;
    font-size: 14px;
    font-weight: 720;
}

.table-primary small,
.cell-muted {
    display: block;
    margin-top: 3px;
    color: #68746c;
    font-size: var(--font-ui-caption);
}

.cell-strong {
    display: block;
    color: #344139;
    font-size: 13px;
    font-weight: 680;
}

.mono {
    color: #3f4d44;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: var(--font-ui-small);
}

.table-action {
    width: 45px;
    text-align: right;
}

.table-action a {
    display: inline-grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    color: #819087;
    background: #f2f5f3;
    font-size: 19px;
    transition: background .2s ease, color .2s ease;
}

.table-action a:hover {
    color: #fff;
    background: var(--brand-primary);
}

.empty-state {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 45px;
    text-align: center;
}

.empty-state-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 19px;
    color: var(--brand-primary-dark);
    background: var(--brand-primary-soft);
    font-size: 25px;
    font-weight: 750;
}

.empty-state-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.empty-state h2,
.empty-state h3 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: -.03em;
}

.empty-state p {
    max-width: 480px;
    margin: 0 0 20px;
    color: #7e8881;
    font-size: 12px;
    line-height: 1.55;
}

.empty-state small {
    margin-bottom: 18px;
}

.mini-empty {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    border: 1px dashed #e1e7e2;
    border-radius: 14px;
    color: var(--text-muted);
    background: #fafbfa;
    font-size: var(--font-ui-small);
}

.mini-empty.tall {
    min-height: 230px;
    flex-direction: column;
    gap: 8px;
}

.mini-empty strong {
    color: #526058;
    font-size: 13px;
}

.mini-empty small {
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.empty-dot {
    width: 12px;
    height: 12px;
    margin-bottom: 7px;
    border-radius: 50%;
    background: #c7cec9;
    box-shadow: 0 0 0 7px #f0f2f0;
}

.form-layout {
    display: grid;
    gap: 20px;
}

.form-card {
    padding: 30px;
}

.form-section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.form-section-heading p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.form-step {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: #8a393e;
    background: #f7e5e7;
    font-size: var(--font-ui-small);
    font-weight: 800;
}

.form-step svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

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

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    color: #59655d;
    font-size: var(--font-ui-small);
    font-weight: 720;
}

.field textarea {
    resize: vertical;
}

.field span.field-validation-error {
    color: var(--danger);
    font-size: var(--font-ui-caption);
}

.validation-summary {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #9e3838;
    background: #fbeded;
    font-size: var(--font-ui-small);
}

.validation-summary:empty {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.detail-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 29px;
    background:
        radial-gradient(circle at 90% 10%, rgba(196, 70, 79, .11), transparent 28%),
        #fff;
}

.detail-device {
    display: flex;
    width: 105px;
    height: 105px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    border-radius: 24px;
    color: #7e363b;
    background: #f8e9ea;
}

.detail-device-symbol {
    font-size: 27px;
    font-weight: 820;
    letter-spacing: -.04em;
}

.detail-device span {
    font-size: var(--font-ui-caption);
    font-weight: 700;
}

.detail-device.has-photo {
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    padding: 0;
    border: 1px solid #e8dcdc;
    background: #fff;
    font: inherit;
    cursor: zoom-in;
}

.detail-device.has-photo img {
    width: 100%;
    height: calc(100% - 26px);
    padding: 7px;
    object-fit: contain;
}

.detail-device.has-photo span {
    display: flex;
    width: 100%;
    min-height: 26px;
    padding: 4px 7px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
    color: #7e363b;
    background: #f8e9ea;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-device.has-photo span b {
    font-size: 10px;
    font-weight: 650;
    opacity: .75;
}

.button-count {
    display: inline-grid;
    min-width: 27px;
    min-height: 22px;
    margin-left: 5px;
    padding: 2px 6px;
    place-items: center;
    border-radius: 999px;
    color: #7e363b;
    background: #f7e5e7;
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.asset-photo-uploader {
    min-width: 0;
}

.asset-photo-dropzone {
    display: grid;
    min-height: 126px;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px dashed #cbd8cc;
    border-radius: 17px;
    background:
        radial-gradient(circle at 94% 10%, rgba(196, 64, 73, .08), transparent 28%),
        #fbfcfb;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.asset-photo-dropzone:hover,
.asset-photo-dropzone:focus-within,
.asset-photo-uploader.has-file .asset-photo-dropzone {
    border-color: #bb6369;
    background-color: #fcf7f7;
    box-shadow: 0 0 0 3px rgba(184, 72, 79, .08);
}

.asset-photo-uploader.has-error .asset-photo-dropzone {
    border-color: #d99090;
    background: #fffafa;
}

.asset-photo-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.asset-photo-preview-grid {
    display: grid;
    width: 180px;
    height: 96px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    color: #873c41;
    background: #f7e5e7;
    font-size: var(--font-ui-small);
    font-weight: 820;
    letter-spacing: .08em;
}

.asset-photo-preview-grid img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 2px;
    border-radius: 7px;
    object-fit: contain;
    background: #fff;
}

.asset-photo-preview-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    place-items: center;
}

.asset-photo-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.asset-photo-copy strong {
    color: #263129;
    font-size: var(--font-ui-body);
}

.asset-photo-copy small,
.asset-photo-copy em {
    overflow-wrap: anywhere;
    color: #748077;
    font-size: var(--font-ui-small);
    font-style: normal;
    line-height: 1.45;
}

.asset-photo-copy em {
    color: #873c41;
}

.asset-photo-uploader.has-error .asset-photo-copy em {
    color: var(--danger);
}

.asset-photo-button {
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .asset-photo-dropzone {
        grid-template-columns: 126px minmax(0, 1fr);
        gap: 13px;
    }

    .asset-photo-preview-grid {
        width: 126px;
        height: 82px;
        border-radius: 15px;
    }

    .asset-photo-button {
        display: none;
    }
}

.asset-gallery-shell {
    width: min(980px, calc(100vw - 34px));
    max-height: calc(100vh - 34px);
    overflow: hidden;
}

.inventory-photo-gallery-card {
    padding: 25px 27px;
    border-color: #e9d9da;
    background:
        radial-gradient(circle at 96% 5%, rgba(193, 68, 77, .09), transparent 29%),
        #fff;
}

.inventory-photo-gallery-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.inventory-photo-gallery-heading h3 {
    margin: 7px 0 6px;
}

.inventory-photo-gallery-heading p {
    max-width: 710px;
    margin: 0;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.inventory-photo-gallery-heading-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.inventory-photo-gallery-count {
    display: grid;
    min-width: 48px;
    min-height: 40px;
    padding: 7px 10px;
    place-items: center;
    border-radius: 12px;
    color: #7e363b;
    background: #f7e5e7;
    font-size: var(--font-ui-small);
    font-weight: 820;
}

.inventory-photo-gallery-strip {
    display: flex;
    gap: 10px;
    margin-top: 19px;
    padding-bottom: 3px;
    overflow-x: auto;
}

.inventory-photo-gallery-strip button {
    position: relative;
    width: 112px;
    height: 88px;
    flex: 0 0 auto;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #dce6dc;
    border-radius: 14px;
    background: #faf7f7;
    cursor: zoom-in;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.inventory-photo-gallery-strip button:hover {
    border-color: #bb6369;
    box-shadow: 0 8px 20px rgba(77, 43, 45, .1);
    transform: translateY(-2px);
}

.inventory-photo-gallery-strip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inventory-photo-gallery-strip button span {
    position: absolute;
    top: 7px;
    left: 7px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(38, 54, 43, .74);
    font-size: 10px;
    font-weight: 800;
}

.inventory-photo-inline-form {
    display: grid;
    gap: 13px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e4ebe4;
}

.inventory-photo-inline-submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.inventory-photo-inline-submit span {
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.inventory-photo-inline-limit {
    margin-top: 20px;
}

.asset-gallery-header h3,
.asset-photo-manager-dialog h3 {
    margin: 5px 0 3px;
}

.asset-gallery-header p,
.asset-photo-manager-dialog header p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.asset-gallery-stage {
    position: relative;
    display: grid;
    min-height: min(62vh, 620px);
    place-items: center;
    overflow: hidden;
    border-top: 1px solid #e6ebe7;
    border-bottom: 1px solid #e6ebe7;
    background:
        radial-gradient(circle at 50% 20%, rgba(193, 68, 77, .09), transparent 36%),
        #f7f9f7;
}

.asset-gallery-slide {
    width: 100%;
    height: min(62vh, 620px);
    margin: 0;
    padding: 28px 76px;
}

.asset-gallery-slide[hidden] {
    display: none;
}

.asset-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(53, 34, 36, .11));
}

.asset-gallery-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #dce4dd;
    border-radius: 50%;
    color: #33443a;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 25px rgba(50, 33, 34, .11);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.asset-gallery-arrow:hover {
    border-color: #bb656b;
    color: #8d393e;
}

.asset-gallery-arrow.previous {
    left: 20px;
}

.asset-gallery-arrow.next {
    right: 20px;
}

.asset-gallery-counter {
    position: absolute;
    right: 18px;
    bottom: 15px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(31, 43, 35, .72);
    font-size: var(--font-ui-small);
    font-weight: 750;
}

.asset-gallery-thumbnails {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    overflow-x: auto;
    background: #fff;
}

.asset-gallery-thumbnails button {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 13px;
    background: #f4f7f4;
    cursor: pointer;
}

.asset-gallery-thumbnails button.is-active {
    border-color: #b35158;
    box-shadow: 0 0 0 3px rgba(179, 81, 88, .12);
}

.asset-gallery-thumbnails img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: contain;
    background: #fff;
}

.asset-photo-manager-shell {
    width: min(1040px, calc(100vw - 34px));
    max-height: calc(100vh - 34px);
    overflow: auto;
}

.asset-photo-manager-content {
    display: grid;
    gap: 22px;
    padding: 24px;
}

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

.asset-photo-manager-card {
    display: grid;
    min-width: 0;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e7e1;
    border-radius: 17px;
    background: #fff;
}

.asset-photo-manager-image {
    position: relative;
    height: 145px;
    overflow: hidden;
    border-radius: 13px;
    background: #f5f8f5;
}

.asset-photo-manager-image img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.asset-photo-manager-image span {
    position: absolute;
    top: 9px;
    left: 9px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(39, 55, 44, .72);
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.asset-photo-manager-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.asset-photo-manager-meta strong {
    overflow: hidden;
    color: #263129;
    font-size: var(--font-ui-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-photo-manager-meta small {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.asset-photo-manager-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-photo-manager-actions form {
    flex: 1;
    margin: 0;
}

.asset-photo-manager-actions .button {
    width: 100%;
}

.asset-photo-manager-actions input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}

.compact-button {
    min-height: 36px;
    padding: 8px 11px;
    font-size: var(--font-ui-small);
    cursor: pointer;
}

.compact-button.is-loading {
    opacity: .62;
    cursor: wait;
}

.asset-photo-add-form {
    display: grid;
    gap: 13px;
    padding-top: 21px;
    border-top: 1px solid #e5eae6;
}

.asset-photo-manager-submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.asset-photo-manager-submit span {
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.asset-photo-manager-empty {
    min-height: 180px;
}

.asset-photo-limit-note {
    display: flex;
    padding: 17px 19px;
    border: 1px solid #e9d8d9;
    border-radius: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    color: #6f3539;
    background: #faf1f1;
}

.asset-photo-limit-note span {
    color: #657265;
    font-size: var(--font-ui-small);
}

@media (max-width: 820px) {
    .inventory-photo-gallery-heading {
        flex-direction: column;
    }

    .inventory-photo-gallery-heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .asset-photo-manager-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .asset-gallery-slide {
        padding: 20px 58px;
    }
}

@media (max-width: 560px) {
    .inventory-photo-gallery-card {
        padding: 21px 18px;
    }

    .inventory-photo-gallery-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-photo-gallery-heading-actions .button,
    .inventory-photo-gallery-count {
        width: 100%;
    }

    .inventory-photo-inline-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .asset-gallery-shell,
    .asset-photo-manager-shell {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .asset-gallery-stage,
    .asset-gallery-slide {
        min-height: 54vh;
        height: 54vh;
    }

    .asset-gallery-slide {
        padding: 16px 45px;
    }

    .asset-gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    .asset-gallery-arrow.previous {
        left: 8px;
    }

    .asset-gallery-arrow.next {
        right: 8px;
    }

    .asset-photo-manager-content {
        padding: 17px;
    }

    .asset-photo-manager-grid {
        grid-template-columns: 1fr;
    }

    .asset-photo-manager-submit {
        align-items: stretch;
        flex-direction: column;
    }
}

.detail-hero-copy {
    min-width: 0;
    flex: 1;
}

.detail-hero-copy h3 {
    margin: 8px 0 11px;
    font-size: 27px;
    letter-spacing: -.04em;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.detail-tags span {
    padding: 7px 9px;
    border: 1px solid #e4e9e5;
    border-radius: 9px;
    color: #758078;
    background: rgba(255, 255, 255, .7);
    font-size: var(--font-ui-caption);
}

.qr-placeholder {
    position: relative;
    display: grid;
    width: 95px;
    height: 95px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    padding: 16px;
    border: 1px solid #e4e9e5;
    border-radius: 18px;
    background: rgba(255, 255, 255, .75);
}

.qr-placeholder span {
    border: 4px solid var(--brand-slate);
}

.qr-placeholder small {
    position: absolute;
    right: 0;
    bottom: -17px;
    left: 0;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    text-align: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-panel {
    padding: 27px;
}

.detail-list {
    margin: 0;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid #edf0ee;
}

.detail-list div:first-child {
    border-top: 0;
}

.detail-list dt {
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.detail-list dd {
    margin: 0;
    color: #4d5952;
    font-size: var(--font-ui-body);
    font-weight: 650;
    text-align: right;
}

.current-assignment {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.current-assignment strong {
    margin-top: 12px;
    font-size: 15px;
}

.current-assignment span {
    margin-top: 5px;
    color: #647168;
    font-size: var(--font-ui-small);
}

.current-assignment small {
    margin-top: 15px;
    padding: 6px 9px;
    border-radius: 9px;
    color: #843c41;
    background: #f8e9ea;
    font-size: var(--font-ui-caption);
}

.note-card {
    margin-top: 20px;
    padding: 27px;
}

.note-card p {
    margin: 9px 0 0;
    color: #68746b;
    font-size: 12px;
    line-height: 1.65;
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    box-shadow: 0 17px 38px rgba(40, 55, 45, .09);
    transform: translateY(-2px);
}

.category-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-code {
    display: inline-grid;
    min-width: 45px;
    height: 36px;
    padding: 0 10px;
    place-items: center;
    border-radius: 11px;
    color: #8a3b40;
    background: #f7e6e7;
    font-size: var(--font-ui-small);
    font-weight: 800;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c7cdc9;
}

.status-dot.active {
    background: var(--brand-primary);
    box-shadow: 0 0 0 5px rgba(196, 70, 79, .12);
}

.category-card h3 {
    margin: 18px 0 7px;
    font-size: 19px;
    letter-spacing: -.03em;
}

.category-card p {
    min-height: 35px;
    margin: 0;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.category-stats {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.category-stats strong {
    color: #4f5d54;
    font-size: 12px;
}

.catalog-form-card {
    position: sticky;
    top: 118px;
    padding: 27px;
}

.subsection-heading {
    margin-top: 48px;
}

.subsection-heading h2 {
    font-size: 30px;
}

.catalog-tools {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(360px, 1.15fr) minmax(290px, .9fr);
    gap: 18px;
    align-items: stretch;
}

.catalog-form-card.inline-card {
    position: static;
    min-height: 280px;
}

.compact-grid {
    gap: 10px;
}

.model-list-card {
    padding: 27px;
}

.model-mini-list {
    display: grid;
    gap: 0;
    margin-top: 14px;
}

.model-mini-list > div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-top: 1px solid #edf0ee;
}

.model-mini-list > div:first-child {
    border-top: 0;
}

.model-mini-list > div > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.model-mini-list strong {
    overflow: hidden;
    color: #4c5951;
    font-size: var(--font-ui-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-mini-list small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.model-mini-list p {
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.catalog-form-card h3 {
    margin: 7px 0 7px;
    font-size: 21px;
    letter-spacing: -.04em;
}

.catalog-form-card > p {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.stacked-form {
    display: grid;
    gap: 15px;
}

.persona-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.persona-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 28px;
    border: 1px solid #e1e8e2;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.persona-number {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 19px;
    font-size: 24px;
    font-weight: 760;
}

.imak-persona .persona-number {
    color: #80363b;
    background: #f7e5e7;
}

.active-persona .persona-number {
    color: var(--brand-slate);
    background: #ebeff2;
}

.persona-card div {
    display: flex;
    flex-direction: column;
}

.persona-card strong {
    font-size: 14px;
}

.persona-card small {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.type-pill {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: var(--font-ui-caption);
    font-weight: 700;
    white-space: nowrap;
}

.type-pill.imak {
    color: #7e363b;
    background: #f7e6e7;
}

.type-pill.periodic {
    color: #486175;
    background: #eaf0f4;
}

.flow-switch {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    margin-bottom: 20px;
}

.flow-card {
    display: flex;
    min-height: 150px;
    align-items: center;
    gap: 22px;
    padding: 27px;
    border-radius: 23px;
    box-shadow: var(--shadow-sm);
}

.personal-flow {
    border: 1px solid #ecdbdc;
    background: linear-gradient(145deg, #fff, #f8eded);
}

.operation-flow {
    border: 1px solid #dfe5ea;
    background: linear-gradient(145deg, #fff, #edf1f4);
}

.flow-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.flow-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.personal-flow .flow-icon {
    color: var(--brand-primary-dark);
}

.operation-flow .flow-icon {
    color: var(--brand-slate);
}

.flow-card > div:last-child {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    flex: 1;
    gap: 3px 15px;
}

.flow-card span {
    color: #68746b;
    font-size: var(--font-ui-small);
    font-weight: 700;
}

.flow-card strong {
    grid-row: 1 / 3;
    grid-column: 2;
    font-size: 34px;
    letter-spacing: -.05em;
}

.flow-card small {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    line-height: 1.45;
}

.flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-connector span {
    width: 32px;
    height: 1px;
    background: #ccd4ce;
}

.flow-connector i {
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(196, 70, 79, .13);
}

.document-status {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 9px;
    color: #68736b;
    background: #eef1ef;
    font-size: var(--font-ui-caption);
    font-weight: 680;
    white-space: nowrap;
}

.document-awaitingsignature {
    color: #90661c;
    background: #fbf2dc;
}

.document-signeddocumentuploaded {
    color: #7e363b;
    background: #f7e5e7;
}

.request-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.request-choice-card {
    position: relative;
    display: flex;
    min-height: 188px;
    align-items: flex-end;
    overflow: hidden;
    padding: 29px;
    border-radius: 23px;
}

.personal-request {
    border: 1px solid #ebdadb;
    background:
        radial-gradient(circle at 90% 10%, rgba(196, 70, 79, .25), transparent 28%),
        linear-gradient(145deg, #fff, #f8ecec);
}

.operation-request {
    border: 1px solid #dfe6eb;
    background:
        radial-gradient(circle at 90% 10%, rgba(65, 83, 100, .18), transparent 28%),
        linear-gradient(145deg, #fff, #edf2f5);
}

.choice-number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(65, 83, 100, .14);
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -.07em;
}

.request-choice-card h3 {
    margin: 7px 0 6px;
    font-size: 22px;
    letter-spacing: -.04em;
}

.request-choice-card p {
    max-width: 450px;
    margin: 0;
    color: #77827a;
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.connection-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.connection-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b4bcb6;
}

.connection-state.connected {
    color: #7f3e42;
}

.connection-state.connected i {
    background: var(--brand-primary);
}

.role-list {
    display: flex;
    max-width: 410px;
    flex-wrap: wrap;
    gap: 5px;
}

.role-list span {
    padding: 5px 7px;
    border-radius: 7px;
    color: #5b6860;
    background: #eff2f0;
    font-size: var(--font-ui-caption);
}

.role-editor {
    max-width: 850px;
    padding: 31px;
}

.role-options {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.role-option {
    display: flex;
    min-height: 71px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e2e8e3;
    border-radius: 14px;
    background: #fbfcfb;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.role-option:has(input:checked) {
    border-color: rgba(196, 70, 79, .55);
    background: #f8eeee;
}

.role-option input {
    position: absolute;
    opacity: 0;
}

.role-check {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #d7ded8;
    border-radius: 9px;
    color: transparent;
    background: #fff;
    font-size: 12px;
}

.role-option input:checked + .role-check {
    border-color: var(--brand-primary);
    color: #fff;
    background: var(--brand-primary);
}

.role-option > span:last-child {
    display: flex;
    flex-direction: column;
}

.role-option strong {
    font-size: 14px;
}

.role-option small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.toast-message {
    position: fixed;
    z-index: 150;
    right: 28px;
    bottom: 28px;
    display: flex;
    max-width: 440px;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid #e2e8e3;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 60px rgba(40, 55, 45, .17);
    backdrop-filter: blur(18px);
    animation: toast-in .35s ease both;
}

.toast-message.success {
    color: #79393d;
}

.toast-message.error {
    color: #aa4444;
}

.toast-message button {
    border: 0;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    font-size: 19px;
}

.toast-icon {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: currentColor;
    font-size: var(--font-ui-small);
}

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

.auth-body {
    overflow: hidden;
    background: #f6f8f5;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.13fr) minmax(420px, .87fr);
}

.auth-showcase {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    padding: clamp(50px, 8vw, 120px);
    color: #faf7f7;
    background:
        linear-gradient(145deg, rgba(31, 47, 58, .97), rgba(65, 83, 100, .95)),
        var(--brand-slate);
}

.auth-showcase::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 40% 50%, #000, transparent 67%);
    content: "";
}

.auth-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.auth-kicker {
    color: #e6a5a9;
    font-size: var(--font-ui-small);
    font-weight: 790;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth-showcase h1 {
    margin: 28px 0;
    font-size: clamp(57px, 7vw, 104px);
    font-weight: 760;
    letter-spacing: -.075em;
    line-height: .89;
}

.auth-showcase h1 em {
    color: var(--brand-primary);
    font-style: normal;
}

.auth-showcase-content > p {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, .64);
    font-size: 15px;
    line-height: 1.75;
}

.auth-feature-row {
    display: grid;
    max-width: 680px;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    margin-top: 60px;
}

.auth-feature-row div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.auth-feature-row strong {
    color: var(--brand-primary);
    font-size: var(--font-ui-small);
}

.auth-feature-row span {
    color: rgba(255, 255, 255, .7);
    font-size: var(--font-ui-small);
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 70, 79, .13);
    filter: blur(1px);
}

.auth-orb-one {
    top: -180px;
    right: -90px;
    width: 470px;
    height: 470px;
    box-shadow: 0 0 120px rgba(196, 70, 79, .18);
}

.auth-orb-two {
    right: 7%;
    bottom: -280px;
    width: 580px;
    height: 580px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: transparent;
}

.auth-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 5vw, 80px);
    background:
        radial-gradient(circle at 70% 20%, rgba(196, 70, 79, .1), transparent 25%),
        #f9f6f6;
}

.auth-card {
    width: min(100%, 440px);
}

.auth-logo {
    display: block;
    width: 190px;
    height: 88px;
    margin-bottom: 40px;
    object-fit: contain;
    object-position: left center;
}

.auth-card-kicker {
    color: var(--brand-primary-dark);
    font-size: var(--font-ui-small);
    font-weight: 780;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-copy h2 {
    margin: 10px 0 10px;
    font-size: 39px;
    font-weight: 750;
    letter-spacing: -.055em;
}

.auth-copy p {
    margin: 0 0 30px;
    color: #7a857d;
    font-size: 13px;
    line-height: 1.65;
}

.microsoft-button {
    display: flex;
    width: 100%;
    min-height: 57px;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border: 1px solid #dce3dd;
    border-radius: 14px;
    color: #35423a;
    background: #fff;
    box-shadow: 0 12px 30px rgba(40, 55, 45, .07);
    cursor: pointer;
    font-size: 12px;
    font-weight: 680;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.microsoft-button:hover {
    border-color: #c8d2ca;
    box-shadow: 0 16px 35px rgba(40, 55, 45, .1);
    transform: translateY(-1px);
}

.microsoft-button > span:nth-child(2) {
    flex: 1;
    text-align: left;
}

.microsoft-button > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.microsoft-mark {
    display: grid;
    width: 23px;
    height: 23px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
}

.microsoft-mark i:nth-child(1) { background: #f35325; }
.microsoft-mark i:nth-child(2) { background: #c2000d; }
.microsoft-mark i:nth-child(3) { background: #05a6f0; }
.microsoft-mark i:nth-child(4) { background: #ffba08; }

.setup-notice {
    display: flex;
    padding: 15px;
    border: 1px solid #eadbdc;
    border-radius: 13px;
    flex-direction: column;
    background: #f8eeee;
}

.setup-notice strong {
    color: #7a3d41;
    font-size: var(--font-ui-small);
}

.setup-notice span {
    margin-top: 5px;
    color: #778673;
    font-size: var(--font-ui-caption);
    line-height: 1.5;
}

.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 23px 0;
    color: #a1a9a3;
    font-size: var(--font-ui-caption);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-divider::before {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: #e1e6e2;
    content: "";
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: #f9f6f6;
}

.auth-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 26px 0 0;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.auth-security svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.form-alert {
    margin-bottom: 17px;
    padding: 12px 14px;
    border: 1px solid #f0d6d6;
    border-radius: 11px;
    color: #a64343;
    background: #fbeded;
    font-size: var(--font-ui-small);
}

.simple-auth-page {
    display: grid;
    min-height: 100vh;
    padding: 30px;
    place-items: center;
    background:
        radial-gradient(circle at 50% 0, rgba(196, 70, 79, .12), transparent 32%),
        #f5f7f5;
}

.simple-auth-card {
    display: flex;
    width: min(100%, 560px);
    align-items: center;
    padding: 45px;
    border: 1px solid #e1e7e2;
    border-radius: 28px;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.simple-auth-card > img {
    width: 140px;
    height: 65px;
    margin-bottom: 24px;
    object-fit: contain;
}

.simple-auth-card h1 {
    margin: 0 0 9px;
    font-size: 25px;
    letter-spacing: -.04em;
}

.simple-auth-card p {
    margin: 0 0 24px;
    color: #7b867e;
    font-size: 12px;
}

.heading-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.heading-actions form {
    margin: 0;
}

.button-danger-soft {
    color: #a44343;
    border: 1px solid #efcece;
    background: #fff5f5;
}

.button-danger-soft:hover:not(:disabled) {
    color: #fff;
    background: #b65050;
}

.field-hint {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    line-height: 1.45;
}

.field-hint.warning {
    color: #996f25;
}

.inline-connected {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
    color: #843c41;
    font-size: var(--font-ui-caption);
    font-weight: 700;
}

.inline-connected i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(196, 70, 79, .11);
}

.switch-field {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.switch-field > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-control {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 20px;
    background: #dfe5e0;
    transition: background .2s ease;
}

.switch-control::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(46, 29, 30, .17);
    content: "";
    transition: transform .2s ease;
}

.switch-field > input:checked + .switch-control {
    background: var(--brand-primary);
}

.switch-field > input:checked + .switch-control::after {
    transform: translateX(18px);
}

.switch-field > span:last-child {
    display: flex;
    flex-direction: column;
}

.switch-field strong {
    color: #4f5c54;
    font-size: var(--font-ui-body);
}

.switch-field small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.clickable-row {
    cursor: pointer;
}

.person-detail-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    background:
        radial-gradient(circle at 84% 14%, rgba(196, 70, 79, .13), transparent 28%),
        #fff;
}

.person-large-avatar {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 19px;
    color: #813a3f;
    background: #f7e5e7;
    font-size: 17px;
    font-weight: 790;
    letter-spacing: -.04em;
}

.person-detail-copy {
    min-width: 0;
    flex: 1;
}

.person-detail-copy h3 {
    margin: 6px 0 4px;
    font-size: 22px;
    letter-spacing: -.035em;
}

.person-detail-copy p {
    margin: 0;
    color: #7d8880;
    font-size: var(--font-ui-small);
}

.person-contact {
    display: flex;
    min-width: 240px;
    flex-direction: column;
    padding: 15px 18px;
    border: 1px solid #e5eae6;
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
}

.person-contact span {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.person-contact strong {
    margin-top: 5px;
    overflow: hidden;
    color: #526058;
    font-size: var(--font-ui-body);
    text-overflow: ellipsis;
}

.panel-count {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 12px;
    color: #7e363b;
    background: #f7e5e7;
    font-size: 13px;
}

.employment-card {
    margin-top: 20px;
    padding: 27px;
}

.horizontal-detail-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.horizontal-detail-list div,
.horizontal-detail-list div:first-child {
    padding: 12px 18px;
    border-top: 0;
    border-left: 1px solid #edf0ee;
}

.horizontal-detail-list div:first-child {
    padding-left: 0;
    border-left: 0;
}

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

.project-card {
    min-height: 265px;
    padding: 25px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
    box-shadow: 0 17px 38px rgba(40, 55, 45, .09);
    transform: translateY(-2px);
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-card h3 {
    margin: 20px 0 5px;
    font-size: 19px;
    letter-spacing: -.035em;
}

.project-card > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.project-dates {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 21px 0 17px;
    padding: 13px;
    border-radius: 13px;
    background: #f6f8f6;
}

.project-dates span {
    display: flex;
    flex-direction: column;
}

.project-dates span:last-child {
    text-align: right;
}

.project-dates small {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.project-dates strong {
    margin-top: 4px;
    color: #526058;
    font-size: 13px;
}

.project-dates i {
    color: var(--text-muted);
    font-style: normal;
}

.project-stats {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.project-stats strong {
    color: #4b5a51;
    font-size: var(--font-ui-small);
}

.project-edit-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #edf0ee;
    color: #894146;
    font-size: var(--font-ui-small);
    font-weight: 700;
}

.project-edit-link span {
    font-size: 15px;
}

.project-empty {
    grid-column: 1 / -1;
}

[hidden] {
    display: none !important;
}

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

.assignment-type-option {
    position: relative;
    display: flex;
    min-height: 145px;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #e1e7e2;
    border-radius: 19px;
    background: #fbfcfb;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.assignment-type-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.assignment-type-option:has(input:checked) {
    border-color: rgba(196, 70, 79, .72);
    background: #fbf1f1;
    box-shadow: 0 0 0 4px rgba(196, 70, 79, .08);
}

.operation-option:has(input:checked) {
    border-color: rgba(67, 85, 104, .46);
    background: #f3f6f8;
    box-shadow: 0 0 0 4px rgba(67, 85, 104, .06);
}

.assignment-type-check {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 1px solid #dce3dd;
    border-radius: 50%;
    color: transparent;
    background: #fff;
    font-size: var(--font-ui-small);
}

.assignment-type-option:has(input:checked) .assignment-type-check {
    color: #fff;
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.assignment-type-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    color: #843c41;
    background: #f7e5e7;
    font-size: var(--font-ui-small);
    font-weight: 800;
}

.operation-option .assignment-type-icon {
    color: #435568;
    background: #e9eef2;
}

.assignment-type-option > span:last-child {
    display: flex;
    padding-right: 20px;
    flex-direction: column;
}

.assignment-type-option strong {
    margin: 3px 0 7px;
    color: #36423b;
    font-size: 14px;
}

.assignment-type-option small {
    color: #7e8981;
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.assignment-date-grid {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #edf0ee;
}

.asset-picker-card {
    padding: 30px;
}

.asset-picker-card .form-section-heading {
    align-items: center;
}

.asset-picker-card .form-section-heading > div {
    flex: 1;
}

.selected-counter {
    padding: 8px 11px;
    border-radius: 11px;
    color: #68746b;
    background: #f5ebeb;
    font-size: var(--font-ui-caption);
}

.selected-counter strong {
    color: #7e363b;
    font-size: 12px;
}

.asset-picker-search {
    margin-bottom: 16px;
}

.asset-picker-filter-panel {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e4e9e5;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #fbf7f7);
}

.asset-picker-filter-panel .asset-picker-search {
    margin-bottom: 13px;
}

.asset-picker-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 11px;
}

.asset-filter-picker {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.asset-filter-picker > span {
    color: #667269;
    font-size: var(--font-ui-caption);
    font-weight: 750;
}

.asset-filter-picker > .imak-picker {
    min-width: 0;
}

.asset-filter-reset {
    min-height: 44px;
    white-space: nowrap;
}

.asset-filter-empty {
    margin-top: 14px;
}

.asset-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 490px;
    gap: 10px;
    overflow-y: auto;
    padding-right: 5px;
}

.asset-pick-option {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e3e8e4;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.asset-pick-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.asset-pick-option:has(input:checked) {
    border-color: rgba(196, 70, 79, .65);
    background: #fbf3f3;
}

.asset-pick-check {
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dce3dd;
    border-radius: 7px;
    color: transparent;
    background: #fff;
    font-size: var(--font-ui-small);
}

.asset-pick-option:has(input:checked) .asset-pick-check {
    color: #fff;
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.asset-pick-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.asset-pick-main strong {
    color: #48564d;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: var(--font-ui-body);
}

.asset-pick-main small {
    margin-top: 3px;
    overflow: hidden;
    color: #747f77;
    font-size: var(--font-ui-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-pick-main em {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    font-style: normal;
}

.asset-validation {
    display: block;
    margin-top: 11px;
    color: var(--danger);
    font-size: var(--font-ui-caption);
}

.sticky-form-actions {
    position: sticky;
    z-index: 5;
    bottom: 14px;
    padding: 13px;
    border: 1px solid rgba(222, 229, 223, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 35px rgba(46, 29, 30, .11);
    backdrop-filter: blur(13px);
}

.assignment-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 29px;
    background:
        radial-gradient(circle at 8% 10%, rgba(196, 70, 79, .12), transparent 26%),
        radial-gradient(circle at 92% 90%, rgba(67, 85, 104, .08), transparent 28%),
        #fff;
}

.assignment-draft-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 24px 27px;
    border-color: rgba(146, 0, 0, .18);
    background:
        radial-gradient(circle at 100% 0, rgba(146, 0, 0, .09), transparent 34%),
        linear-gradient(135deg, #fff, #fdf8f8);
}

.assignment-draft-copy {
    max-width: 760px;
}

.assignment-draft-copy h3 {
    margin: 6px 0 7px;
    color: #2d3832;
    font-size: 20px;
}

.assignment-draft-copy p {
    margin: 0;
    color: #6b766e;
    font-size: var(--font-ui-body);
    line-height: 1.65;
}

.assignment-draft-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.assignment-draft-actions form {
    margin: 0;
}

.assignment-party {
    min-width: 0;
}

.party-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    margin-top: 11px;
}

.party-person > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.party-person strong {
    overflow: hidden;
    color: #354139;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.party-person small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imak-avatar {
    color: #42586c;
    background: #eaf0f4;
}

.assignment-relation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    font-weight: 700;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.assignment-relation i {
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
    background: #d7ded8;
}

.assignment-relation i::after {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(196, 70, 79, .12);
    content: "";
    transform: translateX(-50%);
}

.assignment-document-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 20px;
    margin-top: 20px;
}

.document-flow,
.document-upload {
    padding: 27px;
}

.document-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #edf0ee;
}

.document-line:first-of-type {
    border-top: 0;
}

.document-step {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: var(--text-muted);
    background: #eef1ef;
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.document-step.complete {
    color: #fff;
    background: var(--brand-primary);
}

.document-line > span:last-child {
    display: flex;
    flex-direction: column;
}

.document-line strong {
    color: #4b5850;
    font-size: var(--font-ui-body);
}

.document-line small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    line-height: 1.45;
}

.document-upload h3 {
    margin: 9px 0 7px;
    font-size: 18px;
}

.document-upload > p {
    margin: 0 0 15px;
    color: #7e8981;
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.document-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.document-upload-form {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf0ee;
}

.document-upload-form label {
    color: #5e6a62;
    font-size: var(--font-ui-caption);
    font-weight: 700;
}

.document-upload-form input[type="file"] {
    width: 100%;
    padding: 9px;
    border: 1px dashed #d5ddd7;
    border-radius: 10px;
    color: #7d8780;
    background: #fafbfa;
    font-size: var(--font-ui-caption);
}

.return-document-grid {
    margin-top: 20px;
}

.return-document-grid .document-flow,
.return-document-grid .document-upload {
    min-height: 100%;
}

.return-document-center {
    background:
        radial-gradient(circle at 100% 0, rgba(196, 70, 79, .09), transparent 34%),
        #fff;
}

.return-print-actions {
    flex-wrap: wrap;
    margin-top: 14px;
}

.return-document-upload .field-hint {
    margin-top: -2px;
}

.return-mail-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 17px;
    padding: 15px;
    border: 1px solid #e2e9e3;
    border-radius: 14px;
    background: rgba(250, 247, 247, .88);
}

.return-mail-action > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.return-mail-action strong {
    color: #435149;
    font-size: var(--font-ui-body);
}

.return-mail-action small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.return-mail-action form {
    flex: 0 0 auto;
    margin: 0;
}

.return-email-dialog {
    width: min(670px, calc(100vw - 32px));
}

.return-dialog-icon {
    color: #784044;
    background: #f7e5e7;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 18px;
}

.return-email-form {
    margin-top: 23px;
}

.return-email-warning {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    padding: 14px 15px;
    border: 1px solid #e8d8d9;
    border-radius: 13px;
    color: #536158;
    background: #f9f1f1;
}

.return-email-warning strong {
    font-size: var(--font-ui-body);
}

.return-email-warning span {
    font-size: var(--font-ui-small);
}

/* Paket 14 · Geçici zimmet süre uzatma ve iade kararı */
.temporary-return-decision-callout {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 20px 22px;
    border-color: #e5b9b9;
    background:
        radial-gradient(circle at 88% 5%, rgba(146, 0, 0, .12), transparent 34%),
        #fff7f7;
}

.temporary-return-decision-icon,
.temporary-return-dialog-icon {
    display: grid;
    place-items: center;
    color: #7c2020;
    background: #f7dddd;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-weight: 820;
    letter-spacing: .04em;
}

.temporary-return-decision-icon {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 13px;
}

.temporary-return-decision-callout h3 {
    margin: 5px 0 5px;
    font-size: 19px;
    letter-spacing: -.025em;
}

.temporary-return-decision-callout p {
    margin: 0;
    color: #74696a;
    font-size: 12px;
    line-height: 1.55;
}

.temporary-return-decision-dialog {
    width: min(820px, calc(100vw - 32px));
}

.temporary-return-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.temporary-return-decision-option {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 19px;
    border: 1px solid #e9e1e1;
    border-radius: 19px;
    background: rgba(251, 249, 249, .92);
}

.temporary-return-decision-option.extension {
    border-color: #e3c4c4;
    background: #fff5f5;
}

.temporary-return-decision-option.return {
    border-color: #e7ddd0;
    background: #fbf8f3;
}

.temporary-decision-number {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: #7d2424;
    background: #f5dede;
    font-size: 12px;
    font-weight: 800;
}

.temporary-return-decision-option h4 {
    margin: 0 0 5px;
    color: #342a2b;
    font-size: 17px;
}

.temporary-return-decision-option p,
.temporary-return-decision-note {
    margin: 0;
    color: #756a6b;
    font-size: 12px;
    line-height: 1.55;
}

.temporary-return-decision-option label {
    margin-top: auto;
    color: #5f5354;
    font-size: 12px;
    font-weight: 740;
}

.temporary-return-decision-option input[type="date"] {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #e7dddd;
    border-radius: 12px;
    color: #302627;
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.temporary-return-decision-note {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #e4caca;
    border-radius: 13px;
    background: #faeded;
}

.temporary-return-target-highlight {
    animation: temporary-return-highlight 1.8s ease-out;
}

@keyframes temporary-return-highlight {
    0%, 35% {
        border-color: rgba(146, 0, 0, .62);
        box-shadow: 0 0 0 5px rgba(146, 0, 0, .1);
    }

    100% {
        border-color: var(--line);
        box-shadow: var(--shadow-sm);
    }
}

@media (max-width: 760px) {
    .temporary-return-decision-callout {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .temporary-return-decision-callout > .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .temporary-return-decision-grid {
        grid-template-columns: 1fr;
    }
}

.document-file-icon.return-file-icon {
    color: #42586c;
    background: #eaf0f4;
}

.assignment-items-card {
    margin-top: 20px;
    overflow: hidden;
}

.table-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 27px 18px;
}

.table-section-heading h3 {
    margin: 5px 0 0;
    font-size: 18px;
}

.table-section-heading > span {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.table-section-heading > span strong {
    color: #4d5b52;
    font-size: var(--font-ui-small);
}

.inline-return-form {
    display: flex;
    min-width: 250px;
    align-items: center;
    gap: 7px;
}

.inline-return-form input {
    min-width: 120px;
    height: 34px;
    padding: 7px 9px;
    border: 1px solid #dfe5e0;
    border-radius: 9px;
    outline: 0;
    color: #526058;
    background: #fbfcfb;
    font-size: var(--font-ui-caption);
}

.inline-return-form .button {
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
}

.assignment-notes {
    margin: 0;
    color: #69766d;
    font-size: var(--font-ui-small);
    line-height: 1.65;
}

.portal-hero {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px;
    background:
        radial-gradient(circle at 86% 14%, rgba(196, 70, 79, .18), transparent 30%),
        linear-gradient(135deg, #fff, #f9f1f1);
}

.portal-profile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 20px;
}

.portal-avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    font-size: 21px;
}

.portal-profile h2 {
    margin: 7px 0 5px;
    font-size: 30px;
    letter-spacing: -.045em;
}

.portal-profile p {
    margin: 0;
    color: #7b867e;
    font-size: var(--font-ui-body);
}

.portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.portal-warning {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 18px;
    border: 1px solid #f0dbaf;
    border-radius: 14px;
    color: #7e622a;
    background: #fff9ec;
}

.portal-warning strong {
    font-size: var(--font-ui-small);
    white-space: nowrap;
}

.portal-warning span {
    font-size: var(--font-ui-small);
    line-height: 1.5;
}

.portal-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin: 18px 0;
}

.portal-metrics article {
    position: relative;
    display: flex;
    min-height: 125px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #e2e8e3;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    flex-direction: column;
}

.portal-metrics article::after {
    position: absolute;
    right: -22px;
    bottom: -27px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(196, 70, 79, .09);
    content: "";
}

.portal-metrics span {
    color: #7c8780;
    font-size: var(--font-ui-small);
    font-weight: 700;
}

.portal-metrics strong {
    margin-top: 9px;
    font-size: 27px;
    letter-spacing: -.05em;
}

.portal-metrics small {
    margin-top: auto;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

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

.portal-columns.lower {
    margin-top: 18px;
}

.portal-panel {
    min-width: 0;
    padding: 26px;
}

.portal-assignment-list,
.document-vault,
.portal-request-list {
    display: grid;
}

.portal-assignment-list > a,
.document-vault > a,
.portal-request-list > a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 13px 2px;
    border-top: 1px solid #edf0ee;
    transition: transform .18s ease;
}

.portal-assignment-list > a:first-child,
.document-vault > a:first-child,
.portal-request-list > a:first-child {
    border-top: 0;
}

.portal-assignment-list > a:hover,
.document-vault > a:hover,
.portal-request-list > a:hover {
    transform: translateX(3px);
}

.portal-assignment-list > a > span:nth-child(2),
.document-vault > a > span:nth-child(2),
.portal-request-list > a > span:first-child {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.portal-assignment-list strong,
.document-vault strong,
.portal-request-list strong {
    overflow: hidden;
    color: #46534b;
    font-size: var(--font-ui-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-assignment-list small,
.document-vault small,
.portal-request-list small {
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-assignment-code,
.document-file-icon {
    display: grid;
    min-width: 48px;
    height: 38px;
    padding: 0 8px;
    place-items: center;
    border-radius: 11px;
    color: #863b40;
    background: #f7e5e7;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.portal-assignment-code.operation {
    color: #435568;
    background: #e9eef2;
    font-family: inherit;
    font-size: var(--font-ui-small);
}

.document-file-icon {
    min-width: 42px;
    color: #a04747;
    background: #f9eaea;
}

.request-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.request-summary-strip article {
    position: relative;
    display: flex;
    min-height: 75px;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    padding: 17px 20px;
    border: 1px solid #e2e8e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.request-summary-strip span {
    color: #748078;
    font-size: var(--font-ui-caption);
    font-weight: 700;
}

.request-summary-strip strong {
    margin-left: auto;
    font-size: 23px;
}

.request-summary-strip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.request-summary-strip i.amber {
    background: #d39937;
    box-shadow: 0 0 0 5px rgba(211, 153, 55, .12);
}

.request-summary-strip i.blue {
    background: #4d84b5;
    box-shadow: 0 0 0 5px rgba(77, 132, 181, .11);
}

.request-summary-strip i.green {
    background: var(--brand-primary);
    box-shadow: 0 0 0 5px rgba(196, 70, 79, .12);
}

.request-items-card {
    padding: 30px;
}

.request-items-card .form-section-heading > div {
    flex: 1;
}

.request-item-list {
    display: grid;
    gap: 11px;
}

.request-item-row {
    display: grid;
    grid-template-columns: 35px minmax(180px, .8fr) 105px minmax(240px, 1.2fr) 32px;
    align-items: start;
    gap: 11px;
    padding: 15px;
    border: 1px solid #e3e8e4;
    border-radius: 16px;
    background: #fafbfa;
}

.request-item-number {
    display: grid;
    width: 30px;
    height: 30px;
    margin-top: 23px;
    place-items: center;
    border-radius: 10px;
    color: #853c41;
    background: #f7e5e7;
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.request-quantity-field input {
    text-align: center;
}

.request-item-remove {
    display: grid;
    width: 29px;
    height: 29px;
    margin-top: 23px;
    padding: 0;
    place-items: center;
    border: 1px solid #ecdada;
    border-radius: 9px;
    color: #b35757;
    background: #fff5f5;
    cursor: pointer;
    font-size: 17px;
}

.request-item-remove:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.request-detail-hero {
    display: grid;
    grid-template-columns: minmax(250px, 1.2fr) repeat(3, minmax(160px, .8fr));
    align-items: center;
    gap: 12px;
    padding: 27px;
    background:
        radial-gradient(circle at 8% 10%, rgba(196, 70, 79, .12), transparent 25%),
        #fff;
}

.request-owner {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.request-owner > span:last-child,
.request-detail-fact {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.request-owner small,
.request-detail-fact small {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.request-owner strong,
.request-detail-fact strong {
    overflow: hidden;
    margin-top: 6px;
    color: #45524a;
    font-size: var(--font-ui-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-owner em,
.request-detail-fact span {
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-detail-fact {
    min-height: 70px;
    justify-content: center;
    padding: 12px 15px;
    border-left: 1px solid #e7ece8;
}

.request-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .7fr);
    gap: 18px;
    margin-top: 18px;
}

.request-purpose-card,
.request-timeline-card {
    padding: 27px;
}

.request-purpose-card h3 {
    margin: 7px 0 9px;
    font-size: 19px;
}

.request-purpose-card > p {
    margin: 0;
    color: #657269;
    font-size: var(--font-ui-small);
    line-height: 1.7;
}

.decision-note {
    display: flex;
    margin-top: 18px;
    padding: 14px;
    border-left: 3px solid var(--brand-primary);
    border-radius: 10px;
    background: #f9f1f1;
    flex-direction: column;
}

.decision-note strong {
    color: #7f3e42;
    font-size: 13px;
}

.decision-note span {
    margin-top: 5px;
    color: #66736a;
    font-size: var(--font-ui-caption);
    line-height: 1.5;
}

.work-item-timeline {
    display: grid;
}

.timeline-event {
    position: relative;
    display: flex;
    gap: 12px;
    min-height: 48px;
}

.timeline-event::before {
    position: absolute;
    top: 15px;
    bottom: -2px;
    left: 5px;
    width: 1px;
    background: #dfe5e0;
    content: "";
}

.timeline-event:last-child::before {
    display: none;
}

.timeline-event i {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    margin-top: 2px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #b8c0ba;
    box-shadow: 0 0 0 2px #dfe5e0;
}

.timeline-event.current i {
    background: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(196, 70, 79, .14);
}

.timeline-event > span {
    display: flex;
    padding-bottom: 15px;
    flex-direction: column;
}

.timeline-event strong {
    color: #526058;
    font-size: 13px;
}

.timeline-event small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    line-height: 1.45;
}

.request-products-card {
    margin-top: 18px;
    overflow: hidden;
}

.inline-cell-title {
    margin-left: 7px;
    color: #4f5c54;
    font-size: var(--font-ui-small);
}

.quantity-value {
    display: inline-grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: #526058;
    background: #eff2f0;
    font-size: var(--font-ui-small);
}

.quantity-value.approved {
    color: #7e363b;
    background: #f7e5e7;
}

.reject-request-card {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr);
    align-items: center;
    gap: 30px;
    margin-top: 18px;
    padding: 27px;
    border-color: #eedddd;
    background: #fffafa;
}

.reject-request-card h3 {
    margin: 6px 0;
    font-size: 17px;
}

.reject-request-card p {
    margin: 0;
    color: #8e7b7b;
    font-size: var(--font-ui-caption);
}

.reject-request-card form {
    display: flex;
    gap: 9px;
}

.reject-request-card input {
    min-width: 0;
    flex: 1;
    min-height: 43px;
    padding: 10px 13px;
    border: 1px solid #ead6d6;
    border-radius: 11px;
    outline: 0;
    color: #5f5555;
    background: #fff;
    font-size: var(--font-ui-small);
}

.approval-card {
    padding: 30px;
}

.approval-item-list {
    display: grid;
    gap: 10px;
}

.approval-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid #e2e8e3;
    border-radius: 15px;
    background: #fafbfa;
}

.approval-item > span:nth-of-type(2) {
    display: flex;
    flex-direction: column;
}

.approval-item > span:nth-of-type(2) strong {
    color: #4c5951;
    font-size: var(--font-ui-body);
}

.approval-item > span:nth-of-type(2) small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.approval-item .field {
    display: grid;
    grid-template-columns: auto 75px;
    align-items: center;
    gap: 9px;
}

.approval-item .field span {
    grid-column: 1 / -1;
}

.approval-item input[type="number"] {
    text-align: center;
}

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

.fulfillment-overview article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 15px;
    border: 1px solid #e1e7e2;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.fulfillment-overview article > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.fulfillment-overview strong {
    overflow: hidden;
    color: #4b5850;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fulfillment-overview small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.fulfillment-overview em {
    color: #758078;
    font-size: var(--font-ui-small);
    font-style: normal;
}

.fulfillment-overview b {
    color: var(--brand-primary-dark);
    font-size: 14px;
}

.notification-center {
    overflow: hidden;
}

.notification-row {
    margin: 0;
    border-top: 1px solid #edf0ee;
}

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

.notification-row button {
    display: flex;
    width: 100%;
    min-height: 82px;
    align-items: center;
    gap: 14px;
    padding: 17px 22px;
    border: 0;
    color: inherit;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: background .18s ease;
}

.notification-row button:hover {
    background: #fcfafa;
}

.notification-row.unread button {
    background: #fbf4f4;
}

.notification-state {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #c5ccc7;
}

.notification-row.unread .notification-state {
    background: var(--brand-primary);
    box-shadow: 0 0 0 5px rgba(196, 70, 79, .12);
}

.notification-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.notification-copy strong {
    color: #48564d;
    font-size: var(--font-ui-body);
}

.notification-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-row time {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    white-space: nowrap;
}

.sidebar-overlay {
    display: none;
}

.personnel-directory-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.waiting-persona .persona-number {
    color: #9a6d20;
    background: #fbf2df;
}

.directory-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: var(--font-ui-caption);
    font-weight: 740;
    white-space: nowrap;
}

.directory-status i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.directory-status.verified {
    color: #7f3439;
    background: #f8e6e8;
}

.directory-status.verified i {
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(196, 70, 79, .12);
}

.directory-status.waiting {
    color: #93681f;
    background: #fbf3e4;
}

.directory-status.waiting i {
    background: #d79b35;
}

.directory-status.neutral {
    color: #657480;
    background: #edf1f3;
}

.directory-status.neutral i {
    background: #8c9aa4;
}

.cell-strong,
.cell-muted {
    display: block;
}

.cell-strong {
    color: #344139;
    font-size: 13px;
    font-weight: 680;
}

.cell-muted {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.imak-dialog {
    width: min(760px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 28px;
    outline: none;
    color: var(--ink);
    background: transparent;
}

.imak-dialog:focus,
.imak-dialog:focus-visible {
    outline: none;
}

.imak-dialog::backdrop {
    background: rgba(39, 27, 27, .46);
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.imak-dialog[open] {
    animation: imak-dialog-in .22s ease-out;
}

@keyframes imak-dialog-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.imak-dialog-shell {
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(226, 234, 227, .95);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 2%, rgba(196, 70, 79, .13), transparent 28%),
        rgba(255, 255, 255, .98);
    box-shadow: 0 32px 90px rgba(44, 27, 28, .24);
}

.imak-dialog-header {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 36px;
    align-items: start;
    gap: 16px;
}

.imak-dialog-header h3 {
    margin: 6px 0 6px;
    font-size: 25px;
    letter-spacing: -.045em;
}

.imak-dialog-header p {
    max-width: 560px;
    margin: 0;
    color: #606d64;
    font-size: 12px;
    line-height: 1.6;
}

.imak-dialog-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    color: #80383d;
    background: #f7e5e7;
    font-size: var(--font-ui-small);
    font-weight: 790;
    letter-spacing: -.02em;
}

.microsoft-icon {
    color: #526775;
    background:
        linear-gradient(135deg, rgba(196, 70, 79, .2), transparent 52%),
        #edf2f4;
}

.imak-dialog-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0 0 3px;
    border: 1px solid #e0e7e2;
    border-radius: 50%;
    color: #768179;
    background: rgba(255, 255, 255, .85);
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.imak-dialog-close:hover {
    transform: rotate(4deg);
    background: #f8f3f3;
}

.imak-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e9eeea;
}

.imak-dialog-actions form {
    margin: 0;
}

.personnel-form-dialog {
    width: min(1040px, calc(100vw - 32px));
}

.personnel-dialog-content {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.personnel-form-dialog .form-card {
    padding: 24px;
    border-color: #e4eae5;
    border-radius: 20px;
    background: rgba(255, 255, 255, .76);
    box-shadow: none;
}

.personnel-form-dialog .form-section-heading {
    margin-bottom: 20px;
}

.fixed-personnel-type {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(196, 70, 79, .44);
    border-radius: 16px;
    background: #faefef;
}

.fixed-personnel-type-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: #83393e;
    background: #f5dee0;
    font-size: var(--font-ui-small);
    font-weight: 800;
}

.fixed-personnel-type > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.fixed-personnel-type strong {
    color: #344139;
    font-size: var(--font-ui-body);
}

.fixed-personnel-type small {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: var(--font-ui-small);
    line-height: 1.45;
}

.fixed-personnel-type-state {
    padding: 6px 9px;
    border-radius: 999px;
    color: #833c41;
    background: #f3dcde;
    font-size: var(--font-ui-caption);
    font-weight: 760;
}

.inventory-detail-dialog {
    width: min(1120px, calc(100vw - 32px));
}

.inventory-edit-dialog {
    width: min(1120px, calc(100vw - 32px));
}

.inventory-edit-dialog-shell {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-color: rgba(113, 75, 77, .32) transparent;
    scrollbar-width: thin;
    padding: 27px;
}

.inventory-edit-dialog-content {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.inventory-edit-dialog-content .page-card {
    border-color: #eee2e2;
    box-shadow: none;
}

.inventory-edit-dialog-actions {
    position: sticky;
    z-index: 3;
    bottom: -28px;
    margin-right: -27px;
    margin-left: -27px;
    padding: 16px 27px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 26%);
}

.inventory-detail-dialog-shell {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-color: rgba(74, 96, 81, .32) transparent;
    scrollbar-width: thin;
    padding: 27px;
}

.inventory-detail-dialog-shell::-webkit-scrollbar {
    width: 7px;
}

.inventory-detail-dialog-shell::-webkit-scrollbar-track {
    margin-block: 16px;
    background: transparent;
}

.inventory-detail-dialog-shell::-webkit-scrollbar-thumb {
    min-height: 54px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(74, 96, 81, .28);
    background-clip: padding-box;
}

.inventory-detail-dialog-shell::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 96, 81, .46);
    background-clip: padding-box;
}

.inventory-detail-dialog-header {
    grid-template-columns: 58px minmax(0, 1fr) 36px;
}

.inventory-detail-dialog-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: var(--font-ui-body);
}

.inventory-detail-dialog-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 4px 0 5px;
}

.inventory-detail-dialog-title h3 {
    margin: 0;
}

.inventory-detail-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #e9dede;
    border-radius: 15px;
    background: #faf3f3;
}

.inventory-detail-dialog-toolbar > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #714b4d;
    font-size: var(--font-ui-small);
    font-weight: 700;
}

.inventory-detail-dialog-toolbar > span i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 5px rgba(196, 70, 79, .13);
}

.inventory-detail-dialog-content {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.inventory-detail-dialog-content .page-card {
    border-color: #e3e9e4;
    box-shadow: none;
}

.inventory-detail-dialog-content .detail-grid,
.inventory-detail-dialog-content .note-card {
    margin-top: 0;
}

.inventory-detail-dialog-actions {
    position: sticky;
    z-index: 3;
    bottom: -28px;
    margin-right: -27px;
    margin-left: -27px;
    padding: 16px 27px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 26%);
}

.directory-sync-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.directory-sync-steps article {
    display: flex;
    min-height: 116px;
    padding: 16px;
    flex-direction: column;
    border: 1px solid #e3e9e4;
    border-radius: 17px;
    background: rgba(255, 255, 255, .78);
}

.directory-sync-steps article > span {
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 7px;
    border-radius: 8px;
    color: #8a3c41;
    background: #f9e8e9;
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.directory-sync-steps strong {
    color: #435047;
    font-size: var(--font-ui-body);
}

.directory-sync-steps small {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    line-height: 1.45;
}

.directory-sync-note,
.directory-sync-warning {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.directory-sync-note {
    border: 1px solid #ecd6d8;
    color: #587051;
    background: #f9f0f0;
}

.directory-sync-warning {
    border: 1px solid #efdfba;
    color: #8c6825;
    background: #fff9ed;
}

.imak-picker-trigger {
    display: grid;
    width: 100%;
    min-height: 76px;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid #dfe6e0;
    border-radius: 16px;
    color: inherit;
    background:
        radial-gradient(circle at 96% 0, rgba(196, 70, 79, .09), transparent 27%),
        #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.imak-picker-trigger:hover,
.imak-picker-trigger:focus-visible {
    border-color: rgba(196, 70, 79, .72);
    outline: 0;
    box-shadow: 0 10px 28px rgba(120, 58, 62, .09);
    transform: translateY(-1px);
}

.imak-picker-trigger > svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #8d978f;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.imak-picker-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    color: #80363b;
    background: #f7e5e7;
    font-size: var(--font-ui-small);
    font-weight: 800;
    letter-spacing: .02em;
}

.imak-picker-avatar.large {
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

.imak-picker-trigger-copy,
.imak-picker-option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.imak-picker-trigger-copy small {
    margin-bottom: 4px;
    color: var(--brand-primary-dark);
    font-size: var(--font-ui-small);
    font-weight: 720;
}

.imak-picker-trigger-copy strong {
    overflow: hidden;
    color: #2e3b33;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imak-picker-trigger-copy em {
    margin-top: 4px;
    overflow: hidden;
    color: #68746c;
    font-size: var(--font-ui-small);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imak-picker-dialog {
    width: min(760px, calc(100vw - 32px));
}

.imak-picker-search {
    margin: 24px 0 12px;
}

.imak-picker-search input {
    color: #354139;
    font-size: 13px;
}

.imak-picker-options {
    display: grid;
    max-height: min(430px, calc(100vh - 270px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding: 2px 5px 2px 2px;
}

.imak-picker-option {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 82px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid #e2e8e3;
    border-radius: 17px;
    color: inherit;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.imak-picker-option[hidden] {
    display: none;
}

.imak-picker-option:hover {
    border-color: #e4c7c9;
    background: #fcf8f8;
    transform: translateY(-1px);
}

.imak-picker-option.is-selected {
    border-color: rgba(196, 70, 79, .68);
    background:
        radial-gradient(circle at 100% 0, rgba(196, 70, 79, .12), transparent 35%),
        #fbf3f3;
}

.imak-picker-option-copy strong {
    overflow: hidden;
    color: #28362d;
    font-size: 14px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imak-picker-option-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: #59675e;
    font-size: var(--font-ui-small);
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imak-picker-option-copy em {
    margin-top: 4px;
    overflow: hidden;
    color: #6f7b73;
    font-size: var(--font-ui-small);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imak-picker-verified {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 8px;
    color: #854549;
    background: #f8e8e9;
    font-size: var(--font-ui-caption);
    font-weight: 790;
}

.imak-picker-verified i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-primary);
}

.imak-picker-check {
    position: absolute;
    right: 11px;
    bottom: 10px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid #dce5dd;
    border-radius: 50%;
    color: transparent;
    background: #fff;
    font-size: var(--font-ui-small);
}

.imak-picker-option.is-selected .imak-picker-check {
    color: #fff;
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.imak-picker-no-results,
.picker-empty-state {
    color: var(--text-muted);
    text-align: center;
}

.imak-picker-no-results {
    margin: 22px 0 5px;
    font-size: var(--font-ui-small);
}

.imak-picker-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9eeea;
}

.filter-form > .imak-picker {
    min-width: 0;
}

.imak-picker.compact .imak-picker-trigger {
    min-height: 44px;
    grid-template-columns: 30px minmax(0, 1fr) 17px;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 11px;
    background: #fbfcfb;
}

.imak-picker.compact .imak-picker-avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: var(--font-ui-caption);
}

.imak-picker.compact .imak-picker-trigger-copy small,
.imak-picker.compact .imak-picker-trigger-copy em {
    display: none;
}

.imak-picker.compact .imak-picker-trigger-copy strong {
    color: #4a574e;
    font-size: var(--font-ui-small);
    font-weight: 650;
}

.imak-picker.compact .imak-picker-trigger > svg {
    width: 16px;
    height: 16px;
}

.picker-empty-state {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    padding: 28px;
    flex-direction: column;
}

.picker-empty-state strong {
    margin-top: 16px;
    color: #465249;
    font-size: 14px;
}

.picker-empty-state p {
    max-width: 390px;
    margin: 7px 0 18px;
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.asset-qr-panel {
    display: flex;
    width: 178px;
    align-items: center;
    justify-content: center;
    padding: 13px;
    flex-direction: column;
    border: 1px solid #e0e8e1;
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 30px rgba(59, 36, 38, .08);
}

.asset-qr-code {
    display: grid;
    width: 130px;
    height: 130px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

[data-qr-code] svg {
    display: block;
    width: 100%;
    height: 100%;
}

.asset-qr-panel > small {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: var(--font-ui-caption);
    font-weight: 680;
    text-align: center;
}

.qr-loading,
.qr-error {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    line-height: 1.4;
    text-align: center;
}

.inventory-qr-dialog {
    width: min(900px, calc(100vw - 32px));
}

.qr-dialog-icon {
    color: #382527;
    background:
        linear-gradient(135deg, rgba(196, 70, 79, .28), transparent 58%),
        #f5eaea;
}

.qr-label-search {
    margin-top: 24px;
}

.qr-picker-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0;
}

.qr-picker-toolbar > span {
    color: var(--text-secondary);
    font-size: var(--font-ui-small);
}

.qr-picker-toolbar > span strong {
    color: #80363b;
    font-size: var(--font-ui-body);
}

.qr-picker-toolbar > div {
    display: flex;
    gap: 8px;
}

.qr-picker-toolbar button {
    padding: 0;
    border: 0;
    color: #814044;
    background: transparent;
    font-size: var(--font-ui-small);
    font-weight: 700;
    cursor: pointer;
}

.qr-picker-toolbar button + button {
    padding-left: 8px;
    border-left: 1px solid #dde5de;
    color: #69756d;
}

.qr-label-options {
    display: grid;
    max-height: min(440px, calc(100vh - 330px));
    gap: 9px;
    overflow-y: auto;
    padding: 2px 5px 2px 2px;
}

.qr-label-option {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.qr-label-option[hidden] {
    display: none;
}

.qr-label-option:hover {
    border-color: #e3c6c8;
    background: #fcf8f8;
    transform: translateY(-1px);
}

.qr-label-option:has(input:checked) {
    border-color: rgba(196, 70, 79, .68);
    background: #faefef;
}

.qr-label-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qr-label-option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.qr-label-option-copy strong {
    color: #2e3c33;
    font-size: var(--font-ui-body);
}

.qr-label-option-copy small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-label-option-status {
    padding: 6px 9px;
    border-radius: 999px;
    color: #5b685f;
    background: #eef2ef;
    font-size: var(--font-ui-caption);
    font-weight: 680;
    white-space: nowrap;
}

.qr-label-option-check {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid #dbe3dc;
    border-radius: 50%;
    color: transparent;
    background: #fff;
    font-size: var(--font-ui-small);
    font-weight: 800;
}

.qr-label-option:has(input:checked) .qr-label-option-check {
    color: #fff;
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.qr-verified-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 30px;
    background:
        radial-gradient(circle at 92% 5%, rgba(196, 70, 79, .16), transparent 28%),
        #fff;
}

.qr-verified-mark {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 23px;
    color: #84393e;
    background: #f7e5e7;
    box-shadow: 0 12px 28px rgba(118, 49, 54, .1);
}

.qr-verified-mark svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.qr-verified-hero h3 {
    margin: 6px 0 5px;
    font-size: 27px;
    letter-spacing: -.035em;
}

.qr-verified-hero p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-ui-body);
}

.qr-verified-code {
    display: flex;
    min-width: 190px;
    padding: 16px 18px;
    flex-direction: column;
    border: 1px solid #e1e8e2;
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
}

.qr-verified-code span {
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
    font-weight: 720;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.qr-verified-code strong {
    margin-top: 6px;
    color: #334139;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: var(--font-ui-body);
}

.qr-detail-grid {
    margin-top: 20px;
}

.qr-current-assignment {
    min-height: 220px;
}

.qr-security-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding: 20px 22px;
    border-color: #ead7d9;
    background: #faf3f3;
}

.qr-security-note-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    color: #813a3f;
    background: #f3dee0;
    font-size: var(--font-ui-body);
    font-weight: 800;
}

.qr-security-note strong {
    color: #3b4a40;
    font-size: var(--font-ui-body);
}

.qr-security-note p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: var(--font-ui-small);
    line-height: 1.55;
}

.qr-label-print-page {
    min-height: 100vh;
    margin: 0;
    color: #1d2821;
    background: #eef2ee;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.qr-print-toolbar {
    display: flex;
    width: min(1000px, calc(100% - 32px));
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 24px auto;
    padding: 20px 22px;
    border: 1px solid #dde5de;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(35, 50, 40, .1);
}

.qr-print-toolbar h1 {
    margin: 5px 0 4px;
    font-size: 24px;
}

.qr-print-toolbar p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-ui-small);
}

.qr-print-actions {
    display: flex;
    gap: 9px;
}

.qr-label-sheet-list {
    margin-bottom: 30px;
}

.qr-label-sheet {
    display: grid;
    width: 210mm;
    min-height: 297mm;
    grid-template-columns: repeat(3, 1fr);
    align-content: start;
    gap: 2mm;
    margin: 0 auto;
    padding: 8mm;
    background: #fff;
    box-shadow: 0 18px 50px rgba(41, 25, 26, .12);
}

.qr-label-sheet + .qr-label-sheet {
    margin-top: 20px;
}

.qr-device-label {
    display: grid;
    height: 38mm;
    grid-template-columns: 27mm minmax(0, 1fr);
    align-items: center;
    gap: 2.5mm;
    padding: 2.5mm;
    overflow: hidden;
    border: .25mm solid #cfd8d1;
    border-radius: 2.5mm;
    background:
        radial-gradient(circle at 100% 0, rgba(196, 70, 79, .11), transparent 34%),
        #fff;
    break-inside: avoid;
    page-break-inside: avoid;
}

.qr-device-label-code {
    display: grid;
    width: 27mm;
    height: 27mm;
    place-items: center;
    overflow: hidden;
    border-radius: 1.5mm;
    background: #fff;
}

.qr-device-label-copy {
    display: flex;
    min-width: 0;
    height: 100%;
    justify-content: center;
    flex-direction: column;
}

.qr-device-label-copy img {
    width: auto;
    height: 5mm;
    align-self: flex-start;
    margin-bottom: 1.2mm;
}

.qr-label-category {
    color: #813b40;
    font-size: 11px;
    font-weight: 760;
}

.qr-device-label-copy strong {
    margin-top: .7mm;
    overflow: hidden;
    color: #1f2c23;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-device-label-copy small {
    margin-top: .7mm;
    overflow: hidden;
    color: #536159;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-device-label-copy em {
    margin-top: 1mm;
    color: #6b776f;
    font-size: 11px;
    font-style: normal;
    line-height: 1.15;
}

.argox-single-label-page .qr-print-toolbar {
    width: min(760px, calc(100% - 32px));
}

.argox-single-label-page .qr-label-sheet-list {
    display: flex;
    justify-content: center;
}

.argox-single-label-page .qr-label-sheet {
    display: block;
    width: 40mm;
    min-height: 20mm;
    height: 20mm;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.argox-single-label-page .qr-device-label {
    display: grid;
    width: 40mm;
    height: 20mm;
    grid-template-columns: 18mm minmax(0, 1fr);
    align-items: center;
    gap: .7mm;
    padding: .6mm;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    box-shadow: none;
    text-shadow: none;
}

.argox-single-label-page .qr-device-label-code {
    width: 18mm;
    height: 18mm;
    border-radius: 0;
    background: #fff;
}

.argox-single-label-page .qr-device-label-code svg {
    display: block;
    width: 18mm;
    height: 18mm;
    shape-rendering: crispEdges;
}

.argox-single-label-page .qr-device-label-copy {
    height: 18.8mm;
    justify-content: center;
    color: #000;
}

.argox-single-label-page .qr-label-monochrome-brand {
    margin-bottom: .45mm;
    color: #000;
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 7pt;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
}

.argox-single-label-page .qr-label-category {
    overflow: hidden;
    color: #000;
    font-size: 6.2pt;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.argox-single-label-page .qr-device-label-copy strong {
    margin-top: .5mm;
    color: #000;
    font-size: 7.8pt;
    line-height: 1.05;
}

.argox-single-label-page .qr-device-label-copy small {
    display: -webkit-box;
    margin-top: .5mm;
    overflow: hidden;
    color: #000;
    font-size: 5.8pt;
    line-height: 1.1;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.argox-single-label-page .qr-device-label,
.argox-single-label-page .qr-device-label * {
    color: #000 !important;
    text-shadow: none !important;
}

.inventory-excel-dialog {
    width: min(980px, calc(100vw - 32px));
}

.inventory-excel-dialog .imak-dialog-header p,
.inventory-import-result-dialog .imak-dialog-header p {
    max-width: 690px;
    color: #536159;
    font-size: var(--font-ui-body);
    line-height: 1.55;
}

.excel-dialog-icon {
    color: #722227;
    background:
        linear-gradient(135deg, rgba(196, 70, 79, .26), transparent 58%),
        #f8e9ea;
    font-size: 11px;
}

.inventory-excel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.inventory-excel-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 390px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid #e1e8e2;
    border-radius: 22px;
    flex-direction: column;
    background: rgba(255, 255, 255, .86);
}

.inventory-excel-card::after {
    position: absolute;
    right: -34px;
    bottom: -46px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(196, 70, 79, .08);
    content: "";
    pointer-events: none;
}

.inventory-excel-card.import-card::after {
    background: rgba(65, 83, 100, .07);
}

.inventory-excel-card-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 14px;
    color: #7f2e33;
    background: #f7e5e7;
    font-size: 22px;
    font-weight: 700;
}

.inventory-excel-card.import-card .inventory-excel-card-icon {
    color: #415364;
    background: #edf1f3;
}

.inventory-excel-card h4 {
    margin: 8px 0 8px;
    color: #202b24;
    font-size: 21px;
    letter-spacing: -.035em;
}

.inventory-excel-card > p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-ui-body);
    line-height: 1.6;
}

.inventory-excel-meta {
    display: flex;
    margin: auto 0 16px;
    padding: 15px 16px;
    border: 1px solid #eadfdf;
    border-radius: 15px;
    flex-direction: column;
    background: #faf3f3;
}

.inventory-excel-meta strong {
    color: #742f34;
    font-size: 18px;
}

.inventory-excel-meta span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: var(--font-ui-small);
}

.inventory-excel-card > .button,
.inventory-excel-card form > .button {
    position: relative;
    z-index: 1;
    width: 100%;
}

.excel-template-link {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 12px;
    margin: 18px 0 12px;
    padding: 13px 14px;
    border: 1px solid #e7dcdc;
    border-radius: 15px;
    background: #fbf6f6;
    transition: border-color .18s ease, transform .18s ease;
}

.excel-template-link:hover {
    border-color: #dab3b5;
    transform: translateY(-1px);
}

.excel-template-link > span {
    display: grid;
    width: 40px;
    height: 40px;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 12px;
    color: #853237;
    background: #f4dfe1;
    font-size: var(--font-ui-caption);
    font-weight: 800;
}

.excel-template-link strong {
    align-self: end;
    color: #324039;
    font-size: 13px;
}

.excel-template-link small {
    align-self: start;
    color: var(--text-muted);
    font-size: var(--font-ui-caption);
}

.inventory-excel-card form {
    display: grid;
    gap: 10px;
}

.excel-upload-zone {
    position: relative;
    display: grid;
    min-height: 78px;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px dashed #bdc9c0;
    border-radius: 15px;
    background: #fcfafa;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.excel-upload-zone:hover,
.excel-upload-zone:focus-within,
.excel-upload-zone.has-file {
    border-color: #c16067;
    background: #faefef;
}

.e
