.k5-global{padding:20px;margin-bottom:18px}.k5-global h2{margin-top:0}.k5-global form>label,.k5-global .k5-name-field{display:grid;gap:8px;max-width:520px}.k5-logo-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:20px 0}.k5-logo-row label{display:grid;gap:6px;max-width:100%;min-width:0}.k5-logo-row input{max-width:100%}.k5-logo-preview{width:56px;height:56px;border:1px solid var(--border);border-radius:12px;display:grid;place-items:center;font-size:26px;font-weight:700;color:var(--accent);background:var(--surface)}.k5-logo-preview img{width:100%;height:100%;object-fit:contain;border-radius:inherit}.k5-default-order{margin:16px 0}.k5-default-order summary{cursor:pointer;font-weight:600;padding:10px 0}.k5-order-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--border);padding:8px 0}.k5-order-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.k5-order-row button{flex:none}.k5-global .account-actions{flex-wrap:wrap}.k5-management-grants{border:1px solid var(--border);border-radius:10px;padding:16px;margin:16px 0}.k5-management-grants legend{font-weight:600;padding:0 6px}.k5-grant-flags{display:flex;gap:20px;flex-wrap:wrap}.k5-management-grants details{margin:12px 0}.k5-grant-status{overflow-wrap:anywhere}

@media (min-width: 768px) {
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .panel.k5-global {
    padding: 12px 16px;
    margin-bottom: 10px;
    min-width: 0;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 10px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    min-width: 0;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-title h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-title .muted {
    margin: 0;
    font-size: 13px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-head [data-k5-status] {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form {
    display: grid;
    gap: 10px;
    min-width: 0;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-global-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 20px;
    min-width: 0;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-name-field {
    flex: 0 1 260px;
    min-width: min(200px, 100%);
    max-width: 280px;
    margin: 0;
    display: grid;
    gap: 4px;
    font-size: 13px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-name-field .input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-logo-row {
    flex: 1 1 360px;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-logo-preview {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elev2, var(--surface, var(--bg-elev)));
    font-size: 20px;
    flex: none;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-logo-field {
    flex: 0 1 auto;
    max-width: min(260px, 100%);
    min-width: 0;
    margin: 0;
    display: grid;
    gap: 4px;
    font-size: 13px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-logo-field input[type="file"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-logo-field .small {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form [data-k5-remove-logo] {
    flex: none;
    align-self: center;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-global-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft, var(--border));
    min-width: 0;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-default-order {
    margin: 0;
    flex: 1 1 220px;
    min-width: 0;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-default-order[open] {
    flex: 1 1 100%;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-default-order summary {
    padding: 4px 0;
    font-size: 13px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-default-order > p {
    margin: 4px 0 8px;
    font-size: 12px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form [data-k5-order] {
    max-height: 240px;
    overflow: auto;
    padding-right: 4px;
  }
  html[data-ui="amber"]:is([data-theme="light"], [data-theme="dark"]) .k5-global .k5-global-form .k5-global-footer > .account-actions {
    margin: 0;
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
}
