body.standalone-app {
  background: #eef2f6;
  min-height: 100%;
}

.standalone-toolbar {
  align-items: center;
  background: #102033;
  color: #fff;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px;
}

.standalone-toolbar:empty {
  display: none;
}

.standalone-toolbar__title {
  font-size: 14px;
  font-weight: 700;
  margin-right: 4px;
}

.standalone-toolbar__badge {
  background: #d7f7e8;
  border-radius: 999px;
  color: #0f5132;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
}

.standalone-toolbar__spacer {
  flex: 1 1 auto;
}

.standalone-toolbar__button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 7px 10px;
}

.standalone-toolbar__button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.standalone-auth {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(16, 32, 51, 0.08);
  margin: 48px auto;
  max-width: 620px;
  padding: 28px;
}

.standalone-auth h2 {
  color: #102033;
  font-size: 24px;
  margin: 0 0 10px;
}

.standalone-auth p {
  color: #44546f;
  line-height: 1.45;
  margin: 0 0 18px;
}

.standalone-auth__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.standalone-auth__form {
  display: grid;
  gap: 12px;
}

.standalone-auth__label {
  color: #102033;
  font-size: 13px;
  font-weight: 700;
}

.standalone-auth__input {
  border: 1px solid #b6c2cf;
  border-radius: 4px;
  color: #102033;
  font-size: 15px;
  padding: 10px 12px;
  width: 100%;
}

.standalone-auth__input:focus {
  border-color: #0c66e4;
  box-shadow: 0 0 0 3px rgba(12, 102, 228, 0.18);
  outline: 0;
}

.standalone-auth__hint {
  color: #626f86;
  font-size: 13px;
  margin: 0;
}

.standalone-auth__error {
  background: #fff2f0;
  border: 1px solid #ffbdad;
  border-radius: 4px;
  color: #ae2e24;
  font-size: 13px;
  padding: 9px 10px;
}

.standalone-auth button {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}

.standalone-auth__primary {
  background: #0c66e4;
  color: #fff;
}

.standalone-auth__secondary {
  background: #edf2f7;
  color: #102033;
}

body.standalone-app #gantt-container {
  min-height: calc(100vh - 44px);
}

/* Keep the standalone workspace readable at normal 100% browser zoom while still showing useful context. */
body.standalone-app {
  zoom: 0.75;
  width: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

@supports not (zoom: 1) {
  body.standalone-app {
    transform: scale(0.75);
    transform-origin: top left;
  }
}

@media (max-width: 720px) {
  .standalone-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .standalone-toolbar__spacer {
    display: none;
  }

  body.standalone-app #gantt-container {
    min-height: auto;
  }
}

/* Keep the standalone shell on the same corner system as the main app. */
:root {
  --app-radius: 10px;
}

.standalone-toolbar,
.standalone-toolbar button,
.standalone-status,
.standalone-auth,
.standalone-auth__input,
.standalone-auth__error,
.standalone-auth button {
  border-radius: var(--app-radius) !important;
}
