.simple-body {
    min-height: 100vh;
    background: #eef2ed;
}

.simple-content {
    min-height: 100vh;
}

.portal-error {
    min-height: 100vh;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.portal-error .error-code {
    color: var(--accent-deep);
    font-family: var(--font-display);
    font-size: clamp(90px, 16vw, 170px);
    font-weight: 450;
    line-height: .9;
    letter-spacing: -.08em;
}

.portal-error h1 {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 520;
}

.portal-error p {
    margin: 9px 0 24px;
    color: var(--muted);
}

.demo-stack {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.demo-stack .demo-card {
    margin-top: 0;
}

.portal-topbar-title {
    display: flex;
    align-items: baseline;
    gap: 13px;
}

.portal-topbar-title span {
    color: #95a09b;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .1em;
}

.portal-topbar-title strong {
    color: #35433e;
    font-size: 14px;
    font-weight: 600;
}

.permission-nav {
    height: 38px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6d7974;
    font-size: 12px;
}

.permission-nav .icon {
    width: 15px;
    height: 15px;
    color: var(--accent-deep);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.admin-stat {
    min-height: 94px;
    padding: 17px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    background: #fbfcf9;
    border: 1px solid #dce2dc;
}

.admin-stat > div {
    display: flex;
    flex-direction: column;
}

.admin-stat strong {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.03em;
}

.admin-stat > div span {
    color: #7f8a85;
    font-size: 10px;
}

.admin-stat > small {
    color: #a1aaa6;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .07em;
}

.stat-icon.warning {
    color: #9a5d2f;
    background: #faf0e4;
}

.stat-icon.neutral {
    color: #537066;
    background: #e9efeb;
}

.admin-panel {
    margin-top: 15px;
    padding: 22px;
    background: #fbfcf9;
    border: 1px solid #dce2dc;
}

.panel-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-ink);
    font-size: 11px;
    font-weight: 600;
}

.panel-link .icon {
    width: 14px;
    height: 14px;
}

.account-list {
    display: flex;
    flex-direction: column;
}

.account-list-row {
    min-height: 72px;
    padding: 9px 4px;
    display: grid;
    grid-template-columns: 38px minmax(180px, 1.4fr) 84px 96px minmax(130px, 1fr) 30px;
    align-items: center;
    gap: 13px;
    border-top: 1px solid #e6eae5;
}

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

.account-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--accent-ink);
    background: #dff1ea;
    font-family: var(--font-display);
    font-size: 13px;
}

.account-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.account-name > span:last-child,
.account-name:not(:has(.account-avatar)) {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.account-name strong {
    overflow: hidden;
    color: #2e3b36;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-name small {
    overflow: hidden;
    color: #8d9893;
    font-size: 9.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.status-pill,
.permission-pill {
    width: fit-content;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 600;
}

.status-pill.active,
.permission-pill.allowed {
    color: #176d57;
    background: #ddf4eb;
}

.status-pill.disabled,
.permission-pill.blocked {
    color: #9b4d45;
    background: #f9e9e6;
}

.account-usage {
    color: #6e7a75;
    font-family: var(--font-mono);
    font-size: 9px;
}

.admin-two-column {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 15px;
}

.permission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.permission-cards > div {
    min-height: 142px;
    padding: 15px;
    background: #f2f5f1;
    border: 1px solid #e4e8e3;
}

.permission-cards span {
    color: #91a09a;
    font-family: var(--font-mono);
    font-size: 8px;
}

.permission-cards strong {
    display: block;
    margin-top: 16px;
    font-size: 12px;
}

.permission-cards p {
    margin-top: 6px;
    color: #7c8983;
    font-size: 9.5px;
    line-height: 1.7;
}

.quick-panel a {
    min-height: 48px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #52615b;
    border-top: 1px solid #e6eae5;
    font-size: 11px;
}

.quick-panel a:first-of-type {
    border-top: 0;
}

.quick-panel a > span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.quick-panel .icon {
    width: 15px;
    height: 15px;
}

.portal-empty {
    min-height: 240px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #d5ded7;
    background: #f6f8f5;
}

.portal-empty.compact {
    min-height: 170px;
}

.portal-empty .empty-visual {
    margin-bottom: 13px;
}

.portal-empty h3 {
    font-size: 14px;
}

.portal-empty p {
    margin: 5px 0 16px;
    color: #8c9893;
    font-size: 10.5px;
}

.portal-search {
    height: 44px;
    margin: 20px 0 10px;
    padding-left: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fbfcf9;
    border: 1px solid #dce2dc;
}

.portal-search .icon {
    width: 16px;
    height: 16px;
    color: #91a09a;
}

.portal-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #3d4b45;
    font-size: 12px;
}

.portal-search .workspace-button {
    height: 44px;
}

.admin-table {
    margin-top: 4px;
}

.admin-table-head,
.admin-table-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) 75px 75px minmax(170px, 1fr) minmax(240px, auto);
    align-items: center;
    gap: 13px;
}

.admin-table-head {
    padding: 9px 7px;
    color: #95a09b;
    border-bottom: 1px solid #dde3dd;
    font-family: var(--font-mono);
    font-size: 9px;
}

.admin-table-row {
    min-height: 72px;
    padding: 8px 7px;
    border-bottom: 1px solid #e7eae6;
}

.admin-table-row:last-child {
    border-bottom: 0;
}

.admin-table-row .account-name {
    color: inherit;
}

.quota-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quota-cell > span {
    color: #6f7c76;
    font-size: 9.5px;
}

.quota-cell > i {
    width: 100%;
    height: 3px;
    max-width: 140px;
    background: #e2e8e3;
}

.quota-cell > i b {
    display: block;
    height: 100%;
    background: var(--accent-deep);
}

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

.admin-actions form {
    display: contents;
}

.mini-action {
    min-height: 27px;
    padding: 0 7px;
    border: 1px solid #dce2dc;
    color: #6e7b75;
    background: #fff;
    font-size: 8.5px;
    cursor: pointer;
}

.mini-action.danger {
    color: #a34d45;
    border-color: #ead3cf;
}

.mini-action.success {
    color: #21735d;
    border-color: #cce6dd;
}

.customer-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 24px;
    background: #fbfcf9;
    border: 1px solid #dce2dc;
}

.customer-summary > span {
    min-height: 74px;
    padding: 14px 17px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e2e7e1;
}

.customer-summary > span:first-child {
    border-left: 0;
}

.customer-summary small {
    color: #909b96;
    font-size: 9px;
}

.customer-summary strong {
    margin-top: 3px;
    color: #36433e;
    font-size: 12px;
    font-weight: 600;
}

.text-success {
    color: #197159 !important;
}

.text-danger {
    color: #a34e46 !important;
}

.portal-form-card {
    max-width: 980px;
    margin-top: 24px;
    background: #fbfcf9;
    border: 1px solid #dce2dc;
}

.form-section {
    padding: 26px;
    border-top: 1px solid #e3e8e2;
}

.form-section:first-of-type {
    border-top: 0;
}

.form-section-title {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.form-section-title > span {
    color: var(--accent-deep);
    font-family: var(--font-mono);
    font-size: 9px;
}

.form-section-title h2 {
    font-size: 16px;
}

.form-section-title p {
    margin-top: 4px;
    color: #85918c;
    font-size: 10px;
}

.portal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

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

.permission-switches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.switch-row {
    position: relative;
    min-height: 74px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: center;
    gap: 18px;
    background: #f4f7f3;
    border: 1px solid #e2e7e1;
    cursor: pointer;
}

.switch-row > span {
    display: flex;
    flex-direction: column;
}

.switch-row strong {
    font-size: 11px;
}

.switch-row small {
    margin-top: 3px;
    color: #86928d;
    font-size: 9.5px;
}

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

.switch-row i {
    width: 42px;
    height: 23px;
    border-radius: 999px;
    background: #cfd8d2;
    position: relative;
    transition: background .2s ease;
}

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

.switch-row input:checked + i {
    background: var(--accent-deep);
}

.switch-row input:checked + i::after {
    transform: translateX(19px);
}

.switch-row input:focus-visible + i {
    outline: 2px solid var(--accent-deep);
    outline-offset: 2px;
}

.quota-input-row {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.quota-input-row .workspace-field {
    width: min(260px, 100%);
}

.quota-readout {
    min-height: 45px;
    padding: 5px 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #edf5f0;
    border: 1px solid #d8e7df;
}

.quota-readout span {
    color: #8a9791;
    font-size: 8px;
}

.quota-readout strong {
    color: #2b6c5b;
    font-size: 11px;
}

.portal-form-actions {
    padding: 18px 26px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #f2f5f1;
    border-top: 1px solid #dfe5df;
}

.inline-alert {
    position: static;
    margin-top: 18px;
}

.compact-heading {
    margin-top: 20px;
}

.permission-banner {
    margin-top: 18px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #80542e;
    background: #fbf1e5;
    border-left: 2px solid #d79a55;
    font-size: 11px;
}

.permission-banner .icon {
    width: 15px;
    height: 15px;
}

.quota-overview {
    min-height: 58px;
    margin-top: 12px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto minmax(140px, 1fr) auto;
    align-items: center;
    gap: 16px;
    background: #fbfcf9;
    border: 1px solid #dce2dc;
}

.quota-overview-copy {
    display: flex;
    flex-direction: column;
}

.quota-overview-copy span,
.quota-overview > span {
    color: #8a9691;
    font-size: 9px;
}

.quota-overview-copy strong {
    color: #3b4944;
    font-size: 11px;
}

.quota-overview > i {
    height: 4px;
    background: #e2e8e3;
}

.quota-overview > i b {
    display: block;
    height: 100%;
    background: var(--accent-deep);
}

.cos-folder-card {
    min-width: 0;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e1e5df;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}

.cos-folder-card:hover {
    border-color: #b7ccc4;
    box-shadow: 0 10px 28px rgba(25, 61, 50, .06);
    transform: translateY(-2px);
}

.cos-folder-main {
    min-width: 0;
    flex: 1;
    min-height: 79px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cos-folder-main .folder-info {
    flex: 1;
}

.folder-delete {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #efd4d0;
    display: grid;
    place-items: center;
    color: #b0443d;
    background: #fff1ef;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.folder-delete:hover {
    color: #aa4b43;
    background: #faefed;
}

.folder-delete .icon {
    width: 17px;
    height: 17px;
}

.folder-card-actions {
    flex: 0 0 auto;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-left: 1px solid #edf0ec;
}

.folder-card-actions form {
    display: contents;
}

.folder-upload,
.folder-delete {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.folder-upload {
    border: 1px solid #b9ded2;
    color: #176f58;
    background: #e8f7f1;
}

.folder-upload:hover {
    border-color: #83c1ad;
    color: #0d5d47;
    background: #d9f1e8;
}

.folder-upload .icon {
    width: 17px;
    height: 17px;
}

.portal-stats {
    margin-top: 25px;
}

@media (max-width: 1180px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-table-head,
    .admin-table-row {
        grid-template-columns: minmax(210px, 1.4fr) 70px 70px minmax(140px, 1fr);
    }

    .admin-table-head span:last-child {
        display: none;
    }

    .admin-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 47px;
    }

    .admin-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .account-list-row {
        grid-template-columns: 38px minmax(150px, 1fr) 80px 30px;
    }

    .account-list-row .permission-pill,
    .account-list-row .account-usage {
        display: none;
    }

    .customer-summary {
        grid-template-columns: 1fr 1fr;
    }

    .customer-summary > span:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #e2e7e1;
    }

    .customer-summary > span:nth-child(4) {
        border-top: 1px solid #e2e7e1;
    }

    .permission-cards {
        grid-template-columns: 1fr;
    }

    .portal-form-grid,
    .permission-switches {
        grid-template-columns: 1fr;
    }

    .quota-input-row {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .portal-topbar-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .portal-topbar-title span {
        font-size: 7px;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .admin-panel {
        padding: 15px;
    }

    .account-list-row {
        grid-template-columns: 36px 1fr 30px;
        gap: 9px;
    }

    .account-list-row .status-pill {
        display: none;
    }

    .admin-table-head {
        display: none;
    }

    .admin-table-row {
        grid-template-columns: 1fr auto;
        gap: 9px 12px;
        padding: 13px 3px;
    }

    .admin-table-row .account-name {
        grid-column: 1 / -1;
    }

    .admin-actions {
        grid-column: 1 / -1;
        padding-left: 0;
        flex-wrap: wrap;
    }

    .portal-search {
        padding-left: 10px;
    }

    .portal-search .workspace-button {
        padding-inline: 12px;
    }

    .customer-summary {
        grid-template-columns: 1fr;
    }

    .customer-summary > span {
        border-left: 0;
        border-top: 1px solid #e2e7e1;
    }

    .customer-summary > span:first-child {
        border-top: 0;
    }

    .portal-form-card {
        margin-inline: -1px;
    }

    .form-section {
        padding: 18px;
    }

    .portal-form-actions {
        padding: 15px 18px;
    }

    .quota-overview {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cos-folder-card {
        min-width: 0;
    }
}

.compact-banner {
    margin: 0;
}

.combined-content-panel {
    overflow: hidden;
}

.content-section-label {
    margin: 4px 0 10px;
    padding: 0 0 8px;
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.content-section-label.file-section-label {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e6ebe5;
}

.content-section-label h3 {
    color: #263a33;
    font-size: 13px;
}

.content-section-label span {
    color: #929d97;
    font-size: 9.5px;
}

.combined-content-panel .portal-empty.compact {
    min-height: 240px;
}

.shared-storage-page .file-table-head,
.shared-storage-page .file-row {
    grid-template-columns: minmax(280px, 2fr) 95px 100px 145px 198px;
}

.folder-row {
    background: #fbfcfa;
    cursor: pointer;
}

.storage-page-main > .breadcrumb {
    gap: 9px;
    color: #697771;
    font-size: 13px;
}

.storage-page-main > .breadcrumb .crumb-separator {
    width: 14px;
    height: 14px;
    opacity: .8;
}

.storage-page-main > .breadcrumb .current {
    color: #34453e;
    font-size: 13px;
    font-weight: 650;
}

.folder-row:hover {
    background: #f1f7f3;
}

.file-icon.folder {
    width: 38px;
    height: 34px;
    padding-top: 0;
    color: #23745d;
    background: #e4f3ed;
    border-color: #cce4da;
}

.file-icon.folder .icon {
    width: 19px;
    height: 19px;
}

.folder-row .file-name strong {
    color: #24463a;
}

.folder-row .file-category {
    color: #23745d;
    font-weight: 600;
}

.share-owner-name {
    display: inline-block;
    padding: 1px 7px;
    color: #087f67;
    background: #dff6ed;
    border: 1px solid #b9e4d7;
    border-radius: 3px;
    font-weight: 750;
}

.file-sharing-state {
    min-height: 17px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.share-state-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 7px;
    color: #0f7258;
    background: #dff6ed;
    border: 1px solid #b8e3d4;
    border-radius: 3px;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1;
}

.icon-button.is-shared {
    color: #176f58;
    background: #e4f5ee;
    border-color: #a9d9c9;
}

.icon-button.is-shared:hover {
    color: #fff;
    background: #23866c;
    border-color: #23866c;
}

.my-shares-trigger span {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    color: #176f58;
    background: #dff6ed;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 9px;
}

.storage-file-table .file-table-head,
.storage-file-table .file-row {
    grid-template-columns: minmax(240px, 1.7fr) 78px 88px 118px 248px;
}

.move-location-dialog {
    width: min(760px, calc(100vw - 32px));
}

.move-location-dialog > form {
    padding: 24px;
}

.move-selected-item {
    margin-top: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: #f4f8f5;
    border: 1px solid #dce6df;
}

.move-selected-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    color: #23745d;
    background: #dff1e9;
    border: 1px solid #c1dfd4;
}

.move-selected-icon .icon {
    width: 18px;
    height: 18px;
}

.move-selected-item > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.move-selected-item small {
    color: #819087;
    font-size: 9px;
}

.move-selected-item strong {
    overflow: hidden;
    color: #2d4138;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.move-selected-item em {
    color: #6f8077;
    font-size: 9px;
    font-style: normal;
}

.move-target-path {
    margin-top: 15px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f8f5;
    border: 1px solid #e0e7e1;
}

.move-target-path span {
    color: #7a8780;
    font-size: 10px;
}

.move-target-path strong {
    min-width: 0;
    overflow: hidden;
    color: #34463e;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.move-target-tree {
    max-height: 330px;
    margin-top: 10px;
    padding: 8px;
    overflow: auto;
    background: #fff;
    border: 1px solid #dce4de;
    scrollbar-width: thin;
}

.move-target-tree-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.move-target-option {
    min-height: 34px;
    padding: 6px 8px 6px calc(10px + var(--tree-depth, 0) * 17px);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #56665e;
    font-size: 10.5px;
    cursor: pointer;
}

.move-target-option:hover {
    color: #1b6c55;
    background: #eef7f2;
}

.move-target-option:has(input:checked) {
    color: #145e48;
    background: #e2f3ec;
    font-weight: 650;
}

.move-target-option:has(input:disabled) {
    opacity: .42;
    cursor: not-allowed;
}

.move-target-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #23886d;
}

.move-target-option .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #4d9079;
}

.move-target-option span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.my-shares-dialog {
    width: min(1120px, calc(100vw - 48px));
    height: min(86vh, 820px);
    max-height: calc(100vh - 48px);
    flex-direction: column;
    overflow: hidden;
}

.my-shares-dialog[open] {
    display: flex;
}

.my-shares-dialog > .dialog-head {
    flex: 0 0 auto;
    padding: 22px 24px 17px;
    border-bottom: 1px solid #e1e7e2;
}

.my-shares-dialog .dialog-head p {
    margin-top: 3px;
    color: #7d8983;
    font-size: 10px;
}

.my-shares-search {
    flex: 0 0 auto;
    margin: 14px 20px 10px;
    padding: 0 11px;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #d8e2dc;
}

.my-shares-search > .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #6a8177;
}

.my-shares-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 12px;
}

.my-shares-search > span {
    flex: 0 0 auto;
    color: #72827a;
    font-family: var(--font-mono);
    font-size: 9px;
}

.my-shares-list {
    flex: 1 1 auto;
    min-height: 90px;
    padding: 0 20px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #a9c9bd #edf3ef;
}

.my-share-item {
    min-height: 58px;
    padding: 9px 3px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 82px auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e4e9e5;
}

.my-share-item[hidden],
.my-shares-empty[hidden] {
    display: none;
}

.my-share-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #4f7667;
    background: #edf4f0;
    border: 1px solid #dbe7e1;
}

.my-share-icon.folder {
    color: #23745d;
    background: #e4f3ed;
    border-color: #cce4da;
}

.my-share-icon .icon {
    width: 17px;
    height: 17px;
}

.my-share-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.my-share-copy strong,
.my-share-copy small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.my-share-copy strong {
    color: #293d35;
    font-size: 11.5px;
}

.my-share-copy small {
    color: #808d86;
    font-size: 9px;
}

.my-share-size {
    color: #61716a;
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-align: right;
}

.my-share-item form {
    margin: 0;
}

.my-share-cancel {
    min-height: 31px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a14d43;
    background: #fff7f5;
    border: 1px solid #efd1cc;
    font: inherit;
    font-size: 9.5px;
    cursor: pointer;
}

.my-share-cancel:hover {
    color: #8c332a;
    background: #fbe9e6;
    border-color: #e4aaa2;
}

.my-share-cancel .icon {
    width: 14px;
    height: 14px;
}

.my-shares-empty {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #84918a;
    text-align: center;
}

.my-shares-empty .icon {
    width: 24px;
    height: 24px;
    color: #47917a;
}

.my-shares-empty strong {
    color: #44574e;
    font-size: 12px;
}

.my-shares-empty span {
    font-size: 9.5px;
}

.my-shares-dialog-actions {
    flex: 0 0 auto;
    margin: 0;
    padding: 13px 20px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e1e7e2;
    background: #f7faf7;
}

.my-shares-dialog-actions form {
    margin: 0;
}

.share-owner-switcher {
    margin: 18px 0;
    padding: 15px;
    background: #fbfcfa;
    border: 1px solid #dce2dc;
}

.share-owner-switcher-head {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.share-owner-switcher-head h2 {
    margin-top: 4px;
    font-size: 16px;
}

.share-owner-switcher-head > span {
    color: #7c8983;
    font-family: var(--font-mono);
    font-size: 10px;
}

.share-owner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.share-owner-tab {
    min-width: 0;
    min-height: 62px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #485851;
    background: #fff;
    border: 1px solid #dfe5df;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.share-owner-tab:hover {
    background: #f0f8f4;
    border-color: #9dcebe;
}

.share-owner-tab.active {
    color: #174f3f;
    background: #e6f5ef;
    border-color: #67b49c;
    box-shadow: inset 3px 0 0 #20866a;
}

.share-owner-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: #1e725b;
    background: #dff3eb;
    border: 1px solid #b6ddcf;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.share-owner-tab.active .share-owner-avatar {
    color: #fff;
    background: #23866c;
    border-color: #23866c;
}

.share-owner-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.share-owner-copy strong,
.share-owner-copy small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.share-owner-copy strong {
    color: inherit;
    font-size: 12px;
}

.share-owner-copy small {
    color: #7b8982;
    font-size: 9.5px;
}

.share-owner-total {
    flex: 0 0 auto;
    color: #7c8983;
    font-family: var(--font-mono);
    font-size: 9px;
}

.my-shares-file-table .file-table-head,
.my-shares-file-table .file-row {
    grid-template-columns: minmax(220px, 1.8fr) 80px 90px 120px 92px;
}

.folder-row .file-actions .folder-upload {
    border-color: #b9ded2;
    color: #176f58;
    background: #e8f7f1;
}

.folder-row .file-actions .folder-upload:hover {
    border-color: #83c1ad;
    color: #0d5d47;
    background: #d9f1e8;
}

.condensed-file-table .file-table-head,
.condensed-file-table .file-row {
    grid-template-columns: minmax(280px, 1.8fr) 80px 90px 110px 150px;
}

.folder-edit-actions {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 3px;
}

.editable-folder-grid .cos-folder-card {
    position: relative;
}

.editable-folder-grid .cos-folder-main {
    padding-right: 128px;
}

.folder-edit-actions details,
.inline-rename {
    position: relative;
}

.folder-edit-actions summary,
.inline-rename summary {
    list-style: none;
    cursor: pointer;
}

.folder-edit-actions summary::-webkit-details-marker,
.inline-rename summary::-webkit-details-marker {
    display: none;
}

.folder-edit-actions details form,
.inline-rename form {
    width: 235px;
    padding: 8px;
    position: absolute;
    top: 32px;
    right: 0;
    z-index: 10;
    display: flex;
    gap: 5px;
    background: #fff;
    border: 1px solid #d9e0da;
    box-shadow: 0 10px 30px rgba(36, 54, 46, .12);
}

.folder-edit-actions > form {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.folder-edit-actions > form .folder-delete {
    width: 34px;
    height: 34px;
}

.folder-edit-actions input,
.inline-rename input {
    min-width: 0;
    flex: 1;
    height: 30px;
    padding: 0 7px;
    border: 1px solid #d9e0da;
    font: inherit;
    font-size: 10px;
}

/* Directory tree */

.storage-page-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 19vw, 360px);
    align-items: start;
    gap: 18px;
}

.storage-page-main {
    min-width: 0;
}

.directory-tree-panel {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 116px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fbfcf9;
    border: 1px solid #dce2dc;
}

.directory-tree-head {
    min-height: 70px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e1e6e0;
}

.directory-tree-head h2 {
    margin-top: 4px;
    font-size: 16px;
}

.directory-tree-head > span {
    min-width: 28px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #367862;
    background: #e5f1ec;
    font-family: var(--font-mono);
    font-size: 10px;
}

.directory-tree-filter {
    padding: 8px 12px;
    border-bottom: 1px solid #e1e6e0;
    background: #f7faf7;
}

.directory-tree-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #596861;
    font-size: 11px;
    cursor: pointer;
}

.directory-tree-filter input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #23886d;
    cursor: pointer;
}

.directory-tree-scroll {
    flex: 1;
    min-height: 0;
    padding: 9px;
    overflow: auto;
    scrollbar-width: thin;
}

.directory-tree-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.directory-tree-item {
    margin: 1px 0;
}

.directory-tree-node {
    min-height: 34px;
    padding: 6px 8px 6px calc(12px + var(--tree-depth, 0) * 16px);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #596760;
    font-size: 11px;
    border-left: 2px solid transparent;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.directory-tree-node:hover {
    color: #236e58;
    background: #eef6f1;
}

.directory-tree-node.active {
    color: #155f49;
    background: #e2f3ec;
    border-left-color: #2c9879;
    font-weight: 600;
}

.directory-tree-node .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #4d917a;
}

.directory-tree-node span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.directory-tree-node .tree-node-name {
    min-width: 0;
    flex: 1;
}

.tree-share-state {
    flex: 0 0 auto;
    padding: 1px 5px;
    color: #0f7258;
    background: #dff6ed;
    border: 1px solid #b8e3d4;
    border-radius: 3px;
    font-size: 8.5px;
    font-weight: 750;
    line-height: 1.35;
}

.directory-tree-file {
    color: #69766f;
    font-size: 10.5px;
}

.directory-tree-file .icon {
    color: #7e8b85;
}

.directory-tree-file-item[hidden] {
    display: none;
}

.directory-tree-file.active .icon {
    color: #2c9879;
}

.directory-tree-root {
    --tree-depth: 0;
    padding-left: 12px;
    margin-bottom: 3px;
}

.share-owner-tree-item {
    margin: 3px 0 7px;
}

.share-owner-tree-node {
    color: #285847;
    background: #f4f9f6;
    border: 1px solid #e1ebe5;
    font-size: 11.5px;
    font-weight: 650;
}

.share-owner-tree-node .icon {
    color: #23866c;
}

.share-owner-tree-item > .directory-tree-list {
    margin: 2px 0 0 9px;
    border-left: 1px solid #dce9e3;
}

.directory-tree-empty {
    margin: 18px 10px;
    text-align: center;
    color: #9aa59f;
    font-size: 10px;
}

.directory-tree-tip {
    margin-top: auto;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #77857e;
    background: #f3f6f2;
    border-top: 1px solid #e2e7e1;
    font-size: 9.5px;
}

.directory-tree-tip .icon {
    width: 14px;
    height: 14px;
    color: #3d8a71;
}

.directory-context-menu {
    position: fixed;
    z-index: 120;
    width: 188px;
    padding: 5px;
    background: #fff;
    border: 1px solid #d6dfd8;
    box-shadow: 0 14px 38px rgba(22, 49, 39, .18);
}

.directory-context-menu[hidden] {
    display: none;
}

.directory-context-menu [hidden] {
    display: none !important;
}

.directory-context-menu form {
    margin: 0;
}

.directory-context-menu button,
.directory-context-menu a {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #45554e;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 10.5px;
    text-align: left;
    cursor: pointer;
}

.directory-context-menu button:hover,
.directory-context-menu a:hover {
    color: #185f49;
    background: #e9f5ef;
}

.directory-context-menu .danger:hover {
    color: #a23f37;
    background: #fbedeb;
}

.directory-context-menu .icon {
    width: 15px;
    height: 15px;
    color: #4d8e79;
}

@media (max-width: 1180px) {
    .storage-page-layout {
        grid-template-columns: 1fr;
    }

    .directory-tree-panel {
        position: static;
        grid-row: 1;
        max-height: 310px;
    }

    .storage-page-main {
        grid-row: 2;
    }

    .shared-storage-page .file-table-head,
    .shared-storage-page .file-row {
        grid-template-columns: minmax(240px, 1.8fr) 90px 95px 140px 198px;
    }
}

@media (max-width: 760px) {
    .shared-storage-page .file-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .share-owner-list {
        grid-template-columns: 1fr;
    }

    .my-shares-file-table .file-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .share-owner-total {
        display: none;
    }

    .my-share-item {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .my-share-size {
        display: none;
    }

    .my-shares-dialog-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .my-shares-dialog-actions form,
    .my-shares-dialog-actions .workspace-button {
        width: 100%;
    }
}

@media (min-width: 1181px) {
    .workspace-content:has(.storage-page-layout) .workspace-main {
        width: 100%;
        max-width: none;
    }
}
