/* Interactive counterpart of the native panel; sample content only. */
.mac-demo {
  position: relative;
  background: #000;
  color: #aaa;
  padding: 36px 12px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  min-width: 960px;
  border-radius: 0 0 24px 24px;
}
.mac-demo button,
.mac-demo input,
.mac-demo a {
  font: inherit;
  color: inherit;
}
.mac-demo button {
  cursor: pointer;
  border: 0;
  background: none;
}
.mac-demo button:focus-visible,
.mac-demo a:focus-visible,
.mac-demo input:focus-visible {
  outline: 2px solid #548dff;
  outline-offset: 3px;
}
.mac-demo-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  border-bottom: 1px solid #161616;
  padding: 0 4px 12px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.mac-demo-toolbar > button {
  font-size: 19px;
  padding: 3px;
}
.mac-demo-toolbar .mac-sync {
  color: #ff941e;
  background: #141414;
  border-radius: 30px;
  font-size: 12px;
  padding: 6px 9px;
  margin-right: 32px;
}
.mac-search {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mac-search input {
  width: 58px;
  min-width: 0;
  background: none;
  border: 0;
  outline-offset: 2px;
  font-size: 12px;
}
.mac-search input:focus {
  width: 105px;
}
.mac-pages {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mac-pages button {
  padding: 7px 10px;
  border-radius: 30px;
  white-space: nowrap;
}
.mac-pages button[aria-pressed="true"] {
  background: #222;
  color: #eee;
}
.mac-demo-toolbar > a {
  margin-left: auto;
  text-decoration: none;
}
.mac-demo-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: #333 #000;
}
.mac-demo .mac-demo-card {
  position: relative;
  flex: 0 0 164px;
  height: 140px;
  border: 1px solid #303030;
  border-radius: 20px;
  background: #222;
  color: #ddd;
  text-align: left;
  padding: 12px;
  overflow: hidden;
  white-space: pre-line;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.35;
}
.mac-demo-card[aria-pressed="true"] {
  outline: 2px solid #548dff;
  outline-offset: 2px;
}
.mac-demo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mac-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mac-card-url {
  color: #888;
  margin-top: 4px;
  font-weight: 600;
}
.mac-card-footer {
  position: relative;
  margin-top: auto;
  font-size: 10px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 7px;
}
.has-image .mac-card-footer {
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
.color-card .mac-card-text {
  margin: auto;
  color: #26313e;
  font-size: 16px;
  font-weight: 650;
}
.mac-demo-status {
  font-size: 10px;
  color: #aaa;
  min-height: 14px;
  margin: 5px 4px 0;
}
.mac-demo-menu,
.mac-demo-form {
  position: absolute;
  right: 14px;
  top: 82px;
  z-index: 5;
  background: #252525;
  border: 1px solid #444;
  box-shadow: 0 8px 30px #0008;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
}
.mac-demo-menu button {
  display: block;
  padding: 9px;
}
.mac-demo-form input {
  background: #151515;
  border: 1px solid #555;
  padding: 7px;
  border-radius: 5px;
}
.mac-demo-form button {
  padding: 8px;
}
.mac-demo-empty {
  padding: 35px;
  color: #aaa;
  font-size: 13px;
}
.mac-pages {
  max-width: 390px;
  overflow-x: auto;
  scrollbar-width: none;
}
.native-library-scroll .mac-demo {
  min-width: 1000px;
}
.native-hero-scroll {
  width: 1000px;
}

.mac-demo-toolbar svg {
  display: block;
}
.mac-demo-cards {
  scrollbar-width: none;
}
.color-card .mac-card-footer {
  color: #424b59;
}
.mac-demo .mac-demo-card {
  border-radius: 18px;
}

/* The iPhone form preview follows IOSCloudLibrarySetupView's controls/copy. */
#iphone > p:not(.eyebrow) {
  max-width: 720px;
  line-height: 1.65;
  margin-top: 16px;
}
/* Account controls follow the shared native Account view; this sample sends no email. */
.mac-demo-account-pane {
  width: min(560px, calc(100vw - 32px));
  max-height: 85vh;
  padding: 32px;
  border: 1px solid #38383b;
  border-radius: 16px;
  background: #151516;
  color: #f3f3f4;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  overflow: auto;
  box-shadow: 0 24px 80px #0008;
}
.mac-demo-account-pane::backdrop {
  background: #0008;
}
.mac-demo-account-pane h3 {
  font-size: 20px;
  margin: 0 0 20px;
}
.mac-demo-account-pane h4 {
  font-size: 16px;
  margin: 24px 0 12px;
}
.mac-demo-account-pane p {
  line-height: 1.5;
  margin: 16px 0;
  color: #aaa;
}
.mac-demo-account-pane strong {
  font-size: 16px;
}
.mac-demo-account-pane button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #48484a;
  border-radius: 8px;
  background: #353537;
  color: #f3f3f4;
  cursor: pointer;
}
.mac-demo-account-pane input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px;
  background: #232325;
  color: white;
  border: 1px solid #48484a;
  border-radius: 6px;
  font: inherit;
}
.mac-demo-account-pane small {
  display: block;
  color: #aaa;
  margin-top: 16px;
}
.mac-demo-account-pane .mac-account-close {
  float: right;
  padding: 4px 12px;
}
.mac-demo-account-pane :focus-visible {
  outline: 2px solid #bfd69f;
  outline-offset: 3px;
}

/* Public website entry into the hosted app. */
.mac-clip-context-menu {
  position: absolute;
  z-index: 8;
  min-width: 208px;
  padding: 5px;
  background: #292929;
  border: 1px solid #414141;
  box-shadow: 0 10px 28px #000b;
  border-radius: 11px;
  font-size: 12px;
}
.mac-clip-context-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  text-align: left;
}
.mac-clip-context-menu button:hover {
  background: #3b3b3b;
  color: #fff;
}
.mac-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mac-demo-card .mac-source-icon {
  position: static;
  inset: auto;
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 3px;
  flex: none;
}
.mac-demo-card:hover:not([aria-pressed="true"]) {
  border-color: #666;
}
.mac-demo-card .mac-card-text {
  overflow-wrap: anywhere;
}
.mac-demo-card .mac-card-footer {
  min-width: 0;
}
.mac-demo-menu a {
  display: block;
  padding: 9px;
  border-radius: 6px;
}
.mac-demo-menu :is(button, a):hover {
  background: #ffffff0c;
  color: #fff;
}
.mac-demo-menu,
.mac-clip-context-menu,
.mac-demo-account-pane {
  overscroll-behavior: contain;
}
.mac-demo-account-pane label {
  display: block;
}
