:root {
    --paper: #f6f6f7;
    --ink: #202126;
    --muted: #686b74;
    --accent: #ff4350;
    --cherry: #c52649;
    --line: #e4e5e9;
}
* { box-sizing: border-box; }
body.invent-landing {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.invent-landing :is(h1,h2,p,a,span,button,label):not(.k-icon):not(.k-tool-icon) { font-family: inherit; }
.invent-landing a { color: inherit; text-decoration: none; }
.shell { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.app-hub { --cherry: #fd4654; min-height: 100vh; display: flex; flex-direction: column; }
.app-hub main { flex: 1; padding-bottom: 56px; }
.site-header { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; letter-spacing: -1px; }
.brand img { width: 42px; height: 42px; }
.brand-dot { color: var(--accent); }
.apps-heading { padding-top: 48px; padding-bottom: 28px; }
.apps-heading h1 { margin: 0; font-size: 30px; font-weight: 650; line-height: 1.3; letter-spacing: -1px; }
.access-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.access-card {
    position: relative;
    display: grid;
    grid-template-rows: 60px auto 1fr auto 58px;
    min-height: 390px;
    min-width: 0;
    padding: 30px 30px 12px;
    background: #fff;
    border: 1px solid #e7e8ec;
    border-radius: 20px;
    box-shadow: 0 2px 4px #20212603, 0 12px 32px #20212605;
    transition: box-shadow .2s ease;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.access-card > button.card-top { width: 100%; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.access-card > button.card-top:disabled { opacity: 1; }
.device-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #292c34;
    color: #fff;
    box-shadow: inset 0 1px 0 #ffffff30, 0 4px 8px #20212610;
}
.mobile-card .device-icon { background: var(--cherry); }
.access-card .device-icon { border: 0; padding: 0; }
.access-card .device-icon:disabled { opacity: 1; }
.office-card-details, .office-card-details-inner, .mobile-card-details, .mobile-card-details-inner { display: contents; }
.device-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-tag { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; color: #777b85; }
.access-card h2 { font-size: 32px; font-weight: 650; letter-spacing: -.9px; line-height: 1.2; margin: 24px 0 12px; }
.access-card > p, .office-card-details-inner > p, .mobile-card-details-inner > p { margin: 0 0 28px; font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 410px; }
.invent-landing .access-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 12px 17px;
    border-radius: 10px;
    background: #292c34;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .18s ease, box-shadow .18s ease;
}
.invent-landing .mobile-card .access-button { background: var(--cherry); }
.access-button > span:last-child { font-size: 21px; line-height: 1; }
.mobile-options { grid-row: 5; margin-top: 10px; }
/* Expanded settings grow their card without stretching the neighbouring app. */
.mobile-card:has(#index-config-button[aria-expanded="true"]) { grid-template-rows: 60px auto 1fr auto auto; }
.invent-landing #index-config-button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    background: transparent;
    color: #5e626d;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
}
.invent-landing #index-config-button > span[aria-hidden="true"] { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; font-size: 25px; line-height: 1; }
#index-config-button::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: auto; margin-right: 5px; }
#index-config-button[aria-expanded="true"]::after { transform: rotate(225deg); }
.mobile-options #more-div { background: #f6f7f9; border: 1px solid var(--line); padding: 16px; border-radius: 12px; margin: 10px 0 14px; }
.mobile-options p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.instance-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.instance-actions button { min-height: 44px; min-width: 0; white-space: normal; }
.beta-option { margin-top: 18px; font-size: 14px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 24px 0 28px; }
.site-footer .brand { gap: 0; font-size: 15px; color: #9699a1; }
.site-footer-reset { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.site-footer-reset svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-footer-reset:hover { color: var(--accent); border-color: var(--accent); }
.site-footer-credit { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--muted); font-size: 12px; }
.site-footer-credit img { display: block; width: auto; height: 24px; flex-shrink: 0; object-fit: contain; }
.site-footer-credit:hover { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 600; }
.invent-landing a:focus-visible, .invent-landing button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.invent-landing .k-window { max-width: calc(100vw - 24px); }
#foCustom { max-width: 100%; box-sizing: border-box; }
#foCustom table { width: 100%; table-layout: fixed; }
#foCustom td { padding: 6px; overflow-wrap: anywhere; }
#foCustom .k-widget, #foCustom .k-input { max-width: 100%; }
#foCustom .form_user_bottom_buttons { padding: 16px 6px 6px; }
.office-login { max-width: 430px; margin: 64px auto 90px; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 32px #20212605; }
.office-login h1 { font-size: 32px; letter-spacing: -1px; margin: 0 0 9px; }
.office-login p { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.office-login label { display: block; font-size: 13px; margin: 18px 0 6px; }
.office-login .k-input { width: 100%; min-height: 44px; }
.office-login #main-button { width: 100%; min-height: 46px; margin-top: 24px; background: var(--cherry); border-color: var(--cherry); color: white; }
@media (min-width: 701px) { .office-card { order: -1; } }
@media (hover: hover) {
    .access-card:hover { box-shadow: 0 2px 6px #20212605, 0 16px 40px #2021260b; }
    .invent-landing .access-button:hover { background: #3d414d; box-shadow: 0 3px 8px #20212614; }
    .invent-landing .mobile-card .access-button:hover { background: #e33f4c; }
    .invent-landing #index-config-button:hover { color: var(--ink); }
}
@media (max-width: 850px) {
    .access-card { padding-inline: 24px; }
    .card-tag { font-size: 9px; letter-spacing: .8px; }
}
@media (max-width: 700px) {
    .shell { width: calc(100% - 40px); }
    .site-header { height: 80px; }
    .brand { font-size: 23px; }
    .brand img { width: 37px; height: 37px; }
    .apps-heading { padding-top: 26px; padding-bottom: 22px; }
    .apps-heading h1 { font-size: 24px; letter-spacing: -.7px; }
    .access-section { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .access-card { padding: 23px 23px 12px; min-height: 0; border-radius: 17px; grid-template-rows: 50px auto 1fr auto 54px; }
    .office-card { grid-template-rows: 50px auto 1fr auto; padding-bottom: 23px; }
    .device-icon { width: 50px; height: 50px; border-radius: 14px; }
    .access-card h2 { font-size: 29px; margin-top: 20px; }
    .access-card > p, .office-card-details-inner > p, .mobile-card-details-inner > p { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
    .mobile-card:has(#index-config-button[aria-expanded="true"]) { grid-template-rows: 50px auto 1fr auto auto; }
    .office-login { margin: 35px auto 55px; padding: 27px; }
    .invent-landing #foCustom td { padding: 5px; font-size: 13px; }
    .invent-landing .k-window-content { padding: 12px; }
    .invent-landing #foCustom .form_user_table td:last-child:empty { display: none; }
}
/* Both cards can be toggled at every viewport size. */
.access-card {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 16px 24px;
    transition: padding .35s ease, box-shadow .2s ease;
}
.access-card > button.card-top { cursor: pointer; }
.office-card-details, .mobile-card-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows .35s ease, opacity .25s ease, visibility .35s;
}
.office-card-details-inner, .mobile-card-details-inner { display: block; overflow: hidden; min-height: 0; }
.office-card.office-card-expanded, .mobile-card.mobile-card-expanded { padding: 24px; }
.office-card-expanded .office-card-details, .mobile-card-expanded .mobile-card-details {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}
@media (prefers-reduced-motion: reduce) { .access-card, .access-button, .office-card-details, .mobile-card-details, .access-card .card-tag { transition: none !important; } }
